소스 검색

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

master
Palash Bansal 11 달 전
부모
커밋
6897a1cab7
No account linked to committer's email address
5개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 2
    2
      package-lock.json
  2. 1
    1
      package.json
  3. 2
    1
      src/plugins/animation/TransformAnimationPlugin.ts
  4. 1
    1
      src/three/controls/TransformControls2.ts
  5. 1
    1
      src/viewer/version.ts

+ 2
- 2
package-lock.json 파일 보기

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

+ 1
- 1
package.json 파일 보기

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

+ 2
- 1
src/plugins/animation/TransformAnimationPlugin.ts 파일 보기

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

+ 1
- 1
src/three/controls/TransformControls2.ts 파일 보기

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})

+ 1
- 1
src/viewer/version.ts 파일 보기

export const VERSION = '0.0.50'
export const VERSION = '0.0.51'

Loading…
취소
저장