Explorar el Código

Ignore widgets in transform animation plugin, reduce transform controls size, version bump

master
Palash Bansal hace 11 meses
padre
commit
6897a1cab7
No account linked to committer's email address

+ 2
- 2
package-lock.json Ver fichero

@@ -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
- 1
package.json Ver fichero

@@ -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",

+ 2
- 1
src/plugins/animation/TransformAnimationPlugin.ts Ver fichero

@@ -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[],

+ 1
- 1
src/three/controls/TransformControls2.ts Ver fichero

@@ -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
src/viewer/version.ts Ver fichero

@@ -1 +1 @@
export const VERSION = '0.0.50'
export const VERSION = '0.0.51'

Cargando…
Cancelar
Guardar