u-space 0.0.22 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -13,4 +13,4 @@
13
13
  border-radius: 4px;
14
14
  pointer-events: auto;
15
15
  white-space: nowrap;
16
- `,t.labelStyle)for(const[h,d]of Object.entries(t.labelStyle))d!==void 0&&(r.style[h]=d);let a=null;const o=t.labelOffset||{x:0,y:2,z:0};if(t.showLeaderLine!==!1){const{lineColor:h=16777215}=t,d=new n.BufferGeometry().setFromPoints([new n.Vector3(0,0,0),new n.Vector3(o.x,o.y,o.z)]),p=new n.LineBasicMaterial({color:h});a=new n.Line(d,p),s.add(a)}if(this._createCSSObject){const h=this._createCSSObject(r);h.position.set(o.x,o.y,o.z),s.add(h)}this.scene.add(s);const c={id:e,options:t,group:s,labelElement:r,line:a};return this.annotations.set(e,c),c}addText(e,t,s={}){const i=`annotation_${this._idCounter++}`;return this.add(i,{position:t,content:e,...s})}updateContent(e,t){const s=this.annotations.get(e);s&&(s.labelElement.innerHTML=t,s.options.content=t)}updatePosition(e,t){const s=this.annotations.get(e);s&&(s.group.position.set(t.x,t.y,t.z),s.options.position=t)}show(e){const t=this.annotations.get(e);t&&(t.group.visible=!0)}hide(e){const t=this.annotations.get(e);t&&(t.group.visible=!1)}get(e){return this.annotations.get(e)}remove(e){const t=this.annotations.get(e);if(t){const s=[...t.group.children];for(const i of s)t.group.remove(i),i.geometry?.dispose(),i.material?.dispose();this.scene.remove(t.group),this.annotations.delete(e)}}removeAll(){const e=Array.from(this.annotations.keys());for(const t of e)this.remove(t)}showAll(){for(const e of this.annotations.values())e.group.visible=!0}hideAll(){for(const e of this.annotations.values())e.group.visible=!1}keys(){return Array.from(this.annotations.keys())}get size(){return this.annotations.size}dispose(){this.removeAll()}}const _e="0.0.22";window.__USPACE__={version:_e};Object.defineProperty(exports,"CSS2DObject",{enumerable:!0,get:()=>K.CSS2DObject});Object.defineProperty(exports,"CSS3DObject",{enumerable:!0,get:()=>D.CSS3DObject});Object.defineProperty(exports,"CSS3DSprite",{enumerable:!0,get:()=>D.CSS3DSprite});exports.AnnotationManager=Et;exports.BaseGroup=X;exports.BaseMesh=R;exports.BaseSprite=we;exports.CSSRenderer=me;exports.CameraControls=de;exports.CircleMesh=yt;exports.ClippingTool=Ct;exports.ExtrudeMesh=J;exports.InteractionEvent=oe;exports.InteractionManager=ce;exports.LightManager=Ge;exports.MaterialEffects=U;exports.MeasureTool=Tt;exports.Model=k;exports.ModelLoaderManager=O;exports.ObjectManager=he;exports.ObjectUtils=B;exports.PlaneMesh=ft;exports.Poi=gt;exports.RenderPipeline=le;exports.RoomEnvironment=pe;exports.SBMLoader=ye;exports.SBMXLoader=ge;exports.SceneManager=Fe;exports.Selection=He;exports.ShapeMesh=Y;exports.SphereMesh=ve;exports.TSLEffects=wt;exports.TextureLoaderManager=ut;exports.Topology=mt;exports.TubeMesh=Q;exports.Tween=Ee;exports.Viewer=Ye;exports.reinterpretType=vt;exports.tweenAnimation=St;exports.version=_e;
16
+ `,t.labelStyle)for(const[h,d]of Object.entries(t.labelStyle))d!==void 0&&(r.style[h]=d);let a=null;const o=t.labelOffset||{x:0,y:2,z:0};if(t.showLeaderLine!==!1){const{lineColor:h=16777215}=t,d=new n.BufferGeometry().setFromPoints([new n.Vector3(0,0,0),new n.Vector3(o.x,o.y,o.z)]),p=new n.LineBasicMaterial({color:h});a=new n.Line(d,p),s.add(a)}if(this._createCSSObject){const h=this._createCSSObject(r);h.position.set(o.x,o.y,o.z),s.add(h)}this.scene.add(s);const c={id:e,options:t,group:s,labelElement:r,line:a};return this.annotations.set(e,c),c}addText(e,t,s={}){const i=`annotation_${this._idCounter++}`;return this.add(i,{position:t,content:e,...s})}updateContent(e,t){const s=this.annotations.get(e);s&&(s.labelElement.innerHTML=t,s.options.content=t)}updatePosition(e,t){const s=this.annotations.get(e);s&&(s.group.position.set(t.x,t.y,t.z),s.options.position=t)}show(e){const t=this.annotations.get(e);t&&(t.group.visible=!0)}hide(e){const t=this.annotations.get(e);t&&(t.group.visible=!1)}get(e){return this.annotations.get(e)}remove(e){const t=this.annotations.get(e);if(t){const s=[...t.group.children];for(const i of s)t.group.remove(i),i.geometry?.dispose(),i.material?.dispose();this.scene.remove(t.group),this.annotations.delete(e)}}removeAll(){const e=Array.from(this.annotations.keys());for(const t of e)this.remove(t)}showAll(){for(const e of this.annotations.values())e.group.visible=!0}hideAll(){for(const e of this.annotations.values())e.group.visible=!1}keys(){return Array.from(this.annotations.keys())}get size(){return this.annotations.size}dispose(){this.removeAll()}}const _e="0.0.25";window.__USPACE__={version:_e};Object.defineProperty(exports,"CSS2DObject",{enumerable:!0,get:()=>K.CSS2DObject});Object.defineProperty(exports,"CSS3DObject",{enumerable:!0,get:()=>D.CSS3DObject});Object.defineProperty(exports,"CSS3DSprite",{enumerable:!0,get:()=>D.CSS3DSprite});exports.AnnotationManager=Et;exports.BaseGroup=X;exports.BaseMesh=R;exports.BaseSprite=we;exports.CSSRenderer=me;exports.CameraControls=de;exports.CircleMesh=yt;exports.ClippingTool=Ct;exports.ExtrudeMesh=J;exports.InteractionEvent=oe;exports.InteractionManager=ce;exports.LightManager=Ge;exports.MaterialEffects=U;exports.MeasureTool=Tt;exports.Model=k;exports.ModelLoaderManager=O;exports.ObjectManager=he;exports.ObjectUtils=B;exports.PlaneMesh=ft;exports.Poi=gt;exports.RenderPipeline=le;exports.RoomEnvironment=pe;exports.SBMLoader=ye;exports.SBMXLoader=ge;exports.SceneManager=Fe;exports.Selection=He;exports.ShapeMesh=Y;exports.SphereMesh=ve;exports.TSLEffects=wt;exports.TextureLoaderManager=ut;exports.Topology=mt;exports.TubeMesh=Q;exports.Tween=Ee;exports.Viewer=Ye;exports.reinterpretType=vt;exports.tweenAnimation=St;exports.version=_e;
package/dist/index.js CHANGED
@@ -2742,7 +2742,7 @@ class In {
2742
2742
  this.removeAll();
2743
2743
  }
2744
2744
  }
2745
- const Vs = "0.0.22";
2745
+ const Vs = "0.0.25";
2746
2746
  window.__USPACE__ = { version: Vs };
2747
2747
  export {
2748
2748
  In as AnnotationManager,