| @@ -1,12 +1,12 @@ | |||
| { | |||
| "name": "threepipe", | |||
| "version": "0.0.50", | |||
| "version": "0.0.51", | |||
| "lockfileVersion": 3, | |||
| "requires": true, | |||
| "packages": { | |||
| "": { | |||
| "name": "threepipe", | |||
| "version": "0.0.50", | |||
| "version": "0.0.51", | |||
| "license": "Apache-2.0", | |||
| "dependencies": { | |||
| "@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1004/package.tgz", | |||
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "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.", | |||
| "main": "dist/index.js", | |||
| "module": "dist/index.mjs", | |||
| @@ -42,7 +42,8 @@ export class TransformAnimationPlugin extends AViewerPluginSync { | |||
| } | |||
| private _addSceneObject: EventListener2<'addSceneObject', ISceneEventMap, IScene> = (e)=>{ | |||
| 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]) { | |||
| o.userData[TransformAnimationPlugin.PluginType] = { | |||
| transforms: [] as TSavedTransform[], | |||
| @@ -108,7 +108,7 @@ export class TransformControls2 extends TransformControls implements IWidget, IO | |||
| this.visible = false | |||
| this.userData.bboxVisible = false | |||
| this.size = 2 | |||
| this.size = 1.5 | |||
| this.addEventListener('objectChange', () => { | |||
| this?.object?.setDirty && this.object.setDirty({frameFade: false}) | |||
| @@ -1 +1 @@ | |||
| export const VERSION = '0.0.50' | |||
| export const VERSION = '0.0.51' | |||