| { | { | ||||
| "name": "threepipe", | "name": "threepipe", | ||||
| "version": "0.0.50", | |||||
| "version": "0.0.51", | |||||
| "lockfileVersion": 3, | "lockfileVersion": 3, | ||||
| "requires": true, | "requires": true, | ||||
| "packages": { | "packages": { | ||||
| "": { | "": { | ||||
| "name": "threepipe", | "name": "threepipe", | ||||
| "version": "0.0.50", | |||||
| "version": "0.0.51", | |||||
| "license": "Apache-2.0", | "license": "Apache-2.0", | ||||
| "dependencies": { | "dependencies": { | ||||
| "@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1004/package.tgz", | "@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1004/package.tgz", |
| { | { | ||||
| "name": "threepipe", | "name": "threepipe", | ||||
| "version": "0.0.50", | |||||
| "version": "0.0.51", | |||||
| "description": "A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.", | "description": "A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.", | ||||
| "main": "dist/index.js", | "main": "dist/index.js", | ||||
| "module": "dist/index.mjs", | "module": "dist/index.mjs", |
| } | } | ||||
| private _addSceneObject: EventListener2<'addSceneObject', ISceneEventMap, IScene> = (e)=>{ | private _addSceneObject: EventListener2<'addSceneObject', ISceneEventMap, IScene> = (e)=>{ | ||||
| const object = e.object | const object = e.object | ||||
| object?.traverse && object.traverse((o: IObject3D)=>{ | |||||
| object?.traverse && !object.isWidget && object.traverse((o: IObject3D)=>{ | |||||
| if (o.isWidget) return | |||||
| if (!o.userData[TransformAnimationPlugin.PluginType]) { | if (!o.userData[TransformAnimationPlugin.PluginType]) { | ||||
| o.userData[TransformAnimationPlugin.PluginType] = { | o.userData[TransformAnimationPlugin.PluginType] = { | ||||
| transforms: [] as TSavedTransform[], | transforms: [] as TSavedTransform[], |
| this.visible = false | this.visible = false | ||||
| this.userData.bboxVisible = false | this.userData.bboxVisible = false | ||||
| this.size = 2 | |||||
| this.size = 1.5 | |||||
| this.addEventListener('objectChange', () => { | this.addEventListener('objectChange', () => { | ||||
| this?.object?.setDirty && this.object.setDirty({frameFade: false}) | this?.object?.setDirty && this.object.setDirty({frameFade: false}) |
| export const VERSION = '0.0.50' | |||||
| export const VERSION = '0.0.51' |