Skip to content

Commit

Permalink
more like pedantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ELI7VH committed Jan 6, 2025
1 parent d28606f commit 2aa87e8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ why? because I love threejs and I'm lazy!
## TODO

- lots of stuff
- move demo paths to demo tsconfig
- ad demotsconfig to vite config
14 changes: 7 additions & 7 deletions demo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
start3dSketch,
useOrthographicCamera,
OrthographicCameraBounds,
} from '@/lib'
} from '../src/lib'

import { mapXY } from '@dank-inc/lewps'
import { hsl } from '@dank-inc/sketchy/lib/helpers/color'
Expand Down Expand Up @@ -78,17 +78,17 @@ const sketch = create3dSketch(
const x = u * (bounds[1] - bounds[0]) + bounds[0]
const z = v * (bounds[3] - bounds[2]) + bounds[2]
cube.position.set(x, 0, z)
// scene.add(cube)
scene.add(cube)
return cube
})

return ({ time, dt }) => {
// box.rotation.y += dt * 0.5
// box.position.y = 1 + Math.sin(time) * 1
box.rotation.y += dt * 0.5
box.position.y = 1 + Math.sin(time) * 1

// cubes.forEach((cube) => {
// cube.rotation.y += dt * 0.5
// })
cubes.forEach((cube) => {
cube.rotation.y += dt * 0.5
})

box.rotation.y += mouse.scrollInertia * 0.0001
box.rotation.y += dt
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@dank-inc/sketchy-3d",
"version": "0.99.0",
"version": "0.999.0",
"author": "Elijah Lucian",
"description": "A lightweight wrapper around three.js for creative coders",
"repository": {
"type": "git",
"url": "https://github.com/dank-inc/sketchy-3d.git"
"url": "https://github.com/dank-inc/sketchy-3d"
},
"files": [
"lib"
Expand All @@ -28,12 +28,13 @@
"build": "vite build",
"lint": "tsc --noEmit",
"clean": "rm -rf lib",
"deploy": "npm run build && tsc && npm publish --access public"
"compile": "tsc",
"deploy": "npm run build && npm run compile && npm publish --access public"
},
"devDependencies": {
"@dank-inc/banger": "^0.14.1",
"@dank-inc/lewps": "^1.0.0",
"@dank-inc/numbaz": "^0.5.1",
"@dank-inc/numbaz": "^0.6.1",
"@dank-inc/super-mouse": "^0.10.2",
"@types/node": "^22.10.5",
"@types/three": "^0.171.0",
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src/**/*", "demo/**/*", "vite.config.ts"]
"include": ["src/lib"]
}
5 changes: 0 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { defineConfig } from 'vite'

export default defineConfig({
resolve: {
alias: {
'@': '../src',
},
},
root: 'demo',
build: {
outDir: '../dist',
Expand Down

0 comments on commit 2aa87e8

Please sign in to comment.