@realsee/dnalogel 2.1.0 → 2.1.1

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.js CHANGED
@@ -568,4 +568,4 @@ void main() {
568
568
  float match = 1.0 - uv.x;
569
569
  gl_FragColor = vec4(1.0,1.0,1.0,match);
570
570
  }
571
- `;function uw(){const i=new D.PlaneGeometry(.3,.3),t=aw,e=new D.TextureLoader().load(t);e.encoding=D.sRGBEncoding;const n=new D.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new D.Mesh(i,n)}function dw(){const i=new D.CurvePath;i.add(new D.LineCurve3(new D.Vector3(0,0,0),new D.Vector3(0,0,.1)));const t=new D.TubeGeometry(i,8,.003),e=new D.ShaderMaterial({vertexShader:lw,fragmentShader:cw,depthTest:!1,transparent:!0});return new D.Mesh(t,e)}function fw(){const i=new D.SphereGeometry(.01,20,20),t=new D.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:D.DoubleSide}),e=new D.Mesh(i,t);return e.position.set(0,0,.1),e}class Mu extends D.Object3D{constructor(){super();g(this,"planeMesh");g(this,"lineMesh");g(this,"ballMesh");this.planeMesh=uw(),this.lineMesh=dw(),this.ballMesh=fw(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new D.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class zu{constructor(t){g(this,"five");g(this,"contentElement",document.createElement("div"));g(this,"animeIns");g(this,"container");g(this,"css3DObject");g(this,"disposeCss3DObject");g(this,"state",{enabled:!1});this.five=t;const n=Mn(t).create3DDomContainer([[-.15,.15,0],[-.15,-.15,0],[.15,-.15,0],[.15,.15,0]].map(s=>new D.Vector3().fromArray(s)));if(console.log("\u{1F680} ~ res",n),n){const{container:s,dispose:o,css3DObject:r}=n;this.container=s,this.css3DObject=r,this.disposeCss3DObject=o}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${Qc})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new D.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new Mo({progress:0}).to({progress:[1,0]}).duration(500).easing(Ht.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class hw{constructor(t,e){g(this,"five");g(this,"hooks",new ke.Subscribe);g(this,"magnifier",null);g(this,"pointHelper",null);g(this,"pointDomHelper",null);g(this,"contentDom",document.createElement("div"));g(this,"state",{enabled:!1});g(this,"group",new D.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new Du(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new Mu:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new zu(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var o;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(o=t.face)==null?void 0:o.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const s=this.pointDomHelper;s&&s.updateWithIntersect(t),this.five.needsRender=!0}}const pw=Object.freeze(Object.defineProperty({__proto__:null,Interval:vo,Rectangle:nw,Magnifier:Du,getCoordsFromClient:sw,getCoordsFromElement:Lu,getRaycasterFromFivePointer:ow,getIntersectFromRelativePosition:rw,PointHelper:Mu,PointDomHelper:zu,FivePointSelector:hw,isNil:b0,notNil:mn,BetterTween:Mo,tweenProgress:Cc,nextFrame:cs,requestAnimationFrameInterval:us,getFrameTime:xp},Symbol.toStringTag,{value:"Module"}));exports.CSS3DRenderPlugin=Mn;exports.CameraMovementEffect=Pc;exports.CameraMovementPlugin=Dp;exports.ContentType=ut;exports.CruisePlugin=T0;exports.CruisePluginController=Bo;exports.DIRECTION=Sn;exports.DISPLAY_STRATEGY_TYPE=dn;exports.DimensionType=ht;exports.FLOOR_PLAN_ATTACHED_TO=Zt;exports.FLOOR_TYPE_MAP=Ap;exports.GuideLinePlugin=_c;exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=fn;exports.ItemLabelPlugin=Hg;exports.LinkType=es;exports.Magnifier=kc;exports.MapviewFloorplanPlugin=Zh;exports.ModelChassisCompassPlugin=wp;exports.ModelEntryDoorGuidePlugin=Pp;exports.ModelFloorplanPlugin=_h;exports.ModelItemLabelPlugin=bg;exports.ModelRoomLabelPlugin=sf;exports.ModelTVVideoPlugin=Eg;exports.ModelViewPlugin=wd;exports.Object3DHelperController=ku;exports.Object3DHelperPlugin=tw;exports.PLUGIN=As;exports.PaintBrush=yd;exports.PaintBrushTypeEnum=Ot;exports.PanoCompassPlugin=qp;exports.PanoCursorRaycasterPlugin=Ld;exports.PanoDoorLabelPlugin=Kg;exports.PanoFloorplanRadarPlugin=gp;exports.PanoMeasurePlugin=Um;exports.PanoRulerPlugin=Bp;exports.PanoRulerProPlugin=_p;exports.PanoSpatialTagPlugin=lg;exports.PanoTagPlugin=Ty;exports.PanoTagPluginController=Tu;exports.PointType=at;exports.ROOM_FETILE_TYPE_MAP=vp;exports.ROOM_TYPE_MAP=bp;exports.Rotation=yt;exports.TopviewFloorplanPlugin=Kh;exports.Util=pw;exports.VERSION=qo;exports.itemLabelPluginServerParams=Fg;exports.modelItemLabelPluginServerParams=yg;exports.modelRoomLabelPluginServerParams=of;exports.pluginFlag=Sy;
571
+ `;function uw(){const i=new D.PlaneGeometry(.4,.4),t=aw,e=new D.TextureLoader().load(t);e.encoding=D.sRGBEncoding;const n=new D.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new D.Mesh(i,n)}function dw(){const i=new D.CurvePath;i.add(new D.LineCurve3(new D.Vector3(0,0,0),new D.Vector3(0,0,.1)));const t=new D.TubeGeometry(i,8,.003),e=new D.ShaderMaterial({vertexShader:lw,fragmentShader:cw,depthTest:!1,transparent:!0});return new D.Mesh(t,e)}function fw(){const i=new D.SphereGeometry(.01,20,20),t=new D.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:D.DoubleSide}),e=new D.Mesh(i,t);return e.position.set(0,0,.1),e}class Mu extends D.Object3D{constructor(){super();g(this,"planeMesh");g(this,"lineMesh");g(this,"ballMesh");this.planeMesh=uw(),this.lineMesh=dw(),this.ballMesh=fw(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new D.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class zu{constructor(t){g(this,"five");g(this,"contentElement",document.createElement("div"));g(this,"animeIns");g(this,"container");g(this,"css3DObject");g(this,"disposeCss3DObject");g(this,"state",{enabled:!1});this.five=t;const n=.4/2,o=Mn(t).create3DDomContainer([[-n,n,0],[-n,-n,0],[n,-n,0],[n,n,0]].map(r=>new D.Vector3().fromArray(r)));if(o){const{container:r,dispose:l,css3DObject:a}=o;this.container=r,this.css3DObject=a,this.disposeCss3DObject=l}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${Qc})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new D.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new Mo({progress:0}).to({progress:[1,0]}).duration(500).easing(Ht.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class hw{constructor(t,e){g(this,"five");g(this,"hooks",new ke.Subscribe);g(this,"magnifier",null);g(this,"pointHelper",null);g(this,"pointDomHelper",null);g(this,"contentDom",document.createElement("div"));g(this,"state",{enabled:!1});g(this,"group",new D.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new Du(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new Mu:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new zu(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var o;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(o=t.face)==null?void 0:o.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const s=this.pointDomHelper;s&&s.updateWithIntersect(t),this.five.needsRender=!0}}const pw=Object.freeze(Object.defineProperty({__proto__:null,Interval:vo,Rectangle:nw,Magnifier:Du,getCoordsFromClient:sw,getCoordsFromElement:Lu,getRaycasterFromFivePointer:ow,getIntersectFromRelativePosition:rw,PointHelper:Mu,PointDomHelper:zu,FivePointSelector:hw,isNil:b0,notNil:mn,BetterTween:Mo,tweenProgress:Cc,nextFrame:cs,requestAnimationFrameInterval:us,getFrameTime:xp},Symbol.toStringTag,{value:"Module"}));exports.CSS3DRenderPlugin=Mn;exports.CameraMovementEffect=Pc;exports.CameraMovementPlugin=Dp;exports.ContentType=ut;exports.CruisePlugin=T0;exports.CruisePluginController=Bo;exports.DIRECTION=Sn;exports.DISPLAY_STRATEGY_TYPE=dn;exports.DimensionType=ht;exports.FLOOR_PLAN_ATTACHED_TO=Zt;exports.FLOOR_TYPE_MAP=Ap;exports.GuideLinePlugin=_c;exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=fn;exports.ItemLabelPlugin=Hg;exports.LinkType=es;exports.Magnifier=kc;exports.MapviewFloorplanPlugin=Zh;exports.ModelChassisCompassPlugin=wp;exports.ModelEntryDoorGuidePlugin=Pp;exports.ModelFloorplanPlugin=_h;exports.ModelItemLabelPlugin=bg;exports.ModelRoomLabelPlugin=sf;exports.ModelTVVideoPlugin=Eg;exports.ModelViewPlugin=wd;exports.Object3DHelperController=ku;exports.Object3DHelperPlugin=tw;exports.PLUGIN=As;exports.PaintBrush=yd;exports.PaintBrushTypeEnum=Ot;exports.PanoCompassPlugin=qp;exports.PanoCursorRaycasterPlugin=Ld;exports.PanoDoorLabelPlugin=Kg;exports.PanoFloorplanRadarPlugin=gp;exports.PanoMeasurePlugin=Um;exports.PanoRulerPlugin=Bp;exports.PanoRulerProPlugin=_p;exports.PanoSpatialTagPlugin=lg;exports.PanoTagPlugin=Ty;exports.PanoTagPluginController=Tu;exports.PointType=at;exports.ROOM_FETILE_TYPE_MAP=vp;exports.ROOM_TYPE_MAP=bp;exports.Rotation=yt;exports.TopviewFloorplanPlugin=Kh;exports.Util=pw;exports.VERSION=qo;exports.itemLabelPluginServerParams=Fg;exports.modelItemLabelPluginServerParams=yg;exports.modelRoomLabelPluginServerParams=of;exports.pluginFlag=Sy;
package/dist/index.es.js CHANGED
@@ -21559,7 +21559,7 @@ void main() {
21559
21559
  }
21560
21560
  `;
21561
21561
  function iw() {
21562
- const i = new D.PlaneGeometry(0.3, 0.3), t = ew, e = new D.TextureLoader().load(t);
21562
+ const i = new D.PlaneGeometry(0.4, 0.4), t = ew, e = new D.TextureLoader().load(t);
21563
21563
  e.encoding = D.sRGBEncoding;
21564
21564
  const n = new D.MeshBasicMaterial({
21565
21565
  map: e,
@@ -21617,17 +21617,17 @@ class Fu {
21617
21617
  g(this, "disposeCss3DObject");
21618
21618
  g(this, "state", { enabled: !1 });
21619
21619
  this.five = t;
21620
- const n = ri(t).create3DDomContainer(
21620
+ const n = 0.4 / 2, o = ri(t).create3DDomContainer(
21621
21621
  [
21622
- [-0.15, 0.15, 0],
21623
- [-0.15, -0.15, 0],
21624
- [0.15, -0.15, 0],
21625
- [0.15, 0.15, 0]
21626
- ].map((s) => new D.Vector3().fromArray(s))
21622
+ [-n, n, 0],
21623
+ [-n, -n, 0],
21624
+ [n, -n, 0],
21625
+ [n, n, 0]
21626
+ ].map((r) => new D.Vector3().fromArray(r))
21627
21627
  );
21628
- if (console.log("\u{1F680} ~ res", n), n) {
21629
- const { container: s, dispose: o, css3DObject: r } = n;
21630
- this.container = s, this.css3DObject = r, this.disposeCss3DObject = o;
21628
+ if (o) {
21629
+ const { container: r, dispose: l, css3DObject: a } = o;
21630
+ this.container = r, this.css3DObject = a, this.disposeCss3DObject = l;
21631
21631
  }
21632
21632
  this.contentElement.style.width = "100%", this.contentElement.style.height = "100%", this.contentElement.style.backgroundImage = `url(${_c})`, this.contentElement.style.backgroundSize = "100%", this.contentElement.style.backgroundRepeat = "no-repeat";
21633
21633
  }
package/dist/index.js CHANGED
@@ -21559,7 +21559,7 @@ void main() {
21559
21559
  }
21560
21560
  `;
21561
21561
  function iw() {
21562
- const i = new D.PlaneGeometry(0.3, 0.3), t = ew, e = new D.TextureLoader().load(t);
21562
+ const i = new D.PlaneGeometry(0.4, 0.4), t = ew, e = new D.TextureLoader().load(t);
21563
21563
  e.encoding = D.sRGBEncoding;
21564
21564
  const n = new D.MeshBasicMaterial({
21565
21565
  map: e,
@@ -21617,17 +21617,17 @@ class Fu {
21617
21617
  g(this, "disposeCss3DObject");
21618
21618
  g(this, "state", { enabled: !1 });
21619
21619
  this.five = t;
21620
- const n = ri(t).create3DDomContainer(
21620
+ const n = 0.4 / 2, o = ri(t).create3DDomContainer(
21621
21621
  [
21622
- [-0.15, 0.15, 0],
21623
- [-0.15, -0.15, 0],
21624
- [0.15, -0.15, 0],
21625
- [0.15, 0.15, 0]
21626
- ].map((s) => new D.Vector3().fromArray(s))
21622
+ [-n, n, 0],
21623
+ [-n, -n, 0],
21624
+ [n, -n, 0],
21625
+ [n, n, 0]
21626
+ ].map((r) => new D.Vector3().fromArray(r))
21627
21627
  );
21628
- if (console.log("\u{1F680} ~ res", n), n) {
21629
- const { container: s, dispose: o, css3DObject: r } = n;
21630
- this.container = s, this.css3DObject = r, this.disposeCss3DObject = o;
21628
+ if (o) {
21629
+ const { container: r, dispose: l, css3DObject: a } = o;
21630
+ this.container = r, this.css3DObject = a, this.disposeCss3DObject = l;
21631
21631
  }
21632
21632
  this.contentElement.style.width = "100%", this.contentElement.style.height = "100%", this.contentElement.style.backgroundImage = `url(${_c})`, this.contentElement.style.backgroundSize = "100%", this.contentElement.style.backgroundRepeat = "no-repeat";
21633
21633
  }
package/dist/index.umd.js CHANGED
@@ -568,4 +568,4 @@ void main() {
568
568
  float match = 1.0 - uv.x;
569
569
  gl_FragColor = vec4(1.0,1.0,1.0,match);
570
570
  }
571
- `;function jy(){const i=new D.PlaneGeometry(.3,.3),t=Ly,e=new D.TextureLoader().load(t);e.encoding=D.sRGBEncoding;const n=new D.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new D.Mesh(i,n)}function By(){const i=new D.CurvePath;i.add(new D.LineCurve3(new D.Vector3(0,0,0),new D.Vector3(0,0,.1)));const t=new D.TubeGeometry(i,8,.003),e=new D.ShaderMaterial({vertexShader:My,fragmentShader:zy,depthTest:!1,transparent:!0});return new D.Mesh(t,e)}function Oy(){const i=new D.SphereGeometry(.01,20,20),t=new D.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:D.DoubleSide}),e=new D.Mesh(i,t);return e.position.set(0,0,.1),e}class yu extends D.Object3D{constructor(){super();g(this,"planeMesh");g(this,"lineMesh");g(this,"ballMesh");this.planeMesh=jy(),this.lineMesh=By(),this.ballMesh=Oy(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new D.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class wu{constructor(t){g(this,"five");g(this,"contentElement",document.createElement("div"));g(this,"animeIns");g(this,"container");g(this,"css3DObject");g(this,"disposeCss3DObject");g(this,"state",{enabled:!1});this.five=t;const n=Cn(t).create3DDomContainer([[-.15,.15,0],[-.15,-.15,0],[.15,-.15,0],[.15,.15,0]].map(s=>new D.Vector3().fromArray(s)));if(console.log("\u{1F680} ~ res",n),n){const{container:s,dispose:o,css3DObject:r}=n;this.container=s,this.css3DObject=r,this.disposeCss3DObject=o}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${Xa})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new D.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new Ws({progress:0}).to({progress:[1,0]}).duration(500).easing(Mt.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class Qy{constructor(t,e){g(this,"five");g(this,"hooks",new Ce.Subscribe);g(this,"magnifier",null);g(this,"pointHelper",null);g(this,"pointDomHelper",null);g(this,"contentDom",document.createElement("div"));g(this,"state",{enabled:!1});g(this,"group",new D.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new Au(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new yu:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new wu(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var o;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(o=t.face)==null?void 0:o.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const s=this.pointDomHelper;s&&s.updateWithIntersect(t),this.five.needsRender=!0}}const Ry=Object.freeze(Object.defineProperty({__proto__:null,Interval:Go,Rectangle:xy,Magnifier:Au,getCoordsFromClient:ky,getCoordsFromElement:bu,getRaycasterFromFivePointer:Dy,getIntersectFromRelativePosition:Ty,PointHelper:yu,PointDomHelper:wu,FivePointSelector:Qy,isNil:Yg,notNil:gn,BetterTween:Ws,tweenProgress:va,nextFrame:Li,requestAnimationFrameInterval:Mi,getFrameTime:np},Symbol.toStringTag,{value:"Module"}));ne.CSS3DRenderPlugin=Cn,ne.CameraMovementEffect=Aa,ne.CameraMovementPlugin=rp,ne.ContentType=ct,ne.CruisePlugin=e0,ne.CruisePluginController=io,ne.DIRECTION=Mn,ne.DISPLAY_STRATEGY_TYPE=hn,ne.DimensionType=pt,ne.FLOOR_PLAN_ATTACHED_TO=Vt,ne.FLOOR_TYPE_MAP=Vh,ne.GuideLinePlugin=bl,ne.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=pn,ne.ItemLabelPlugin=dg,ne.LinkType=qi,ne.Magnifier=La,ne.MapviewFloorplanPlugin=xh,ne.ModelChassisCompassPlugin=qh,ne.ModelEntryDoorGuidePlugin=ep,ne.ModelFloorplanPlugin=Ch,ne.ModelItemLabelPlugin=Ym,ne.ModelRoomLabelPlugin=zd,ne.ModelTVVideoPlugin=Vm,ne.ModelViewPlugin=Ku,ne.Object3DHelperController=vu,ne.Object3DHelperPlugin=Iy,ne.PLUGIN=ls,ne.PaintBrush=qu,ne.PaintBrushTypeEnum=zt,ne.PanoCompassPlugin=Sp,ne.PanoCursorRaycasterPlugin=ad,ne.PanoDoorLabelPlugin=Eg,ne.PanoFloorplanRadarPlugin=_h,ne.PanoMeasurePlugin=bm,ne.PanoRulerPlugin=dp,ne.PanoRulerProPlugin=Cp,ne.PanoSpatialTagPlugin=jm,ne.PanoTagPlugin=ey,ne.PanoTagPluginController=mu,ne.PointType=ot,ne.ROOM_FETILE_TYPE_MAP=Uh,ne.ROOM_TYPE_MAP=Jh,ne.Rotation=Pt,ne.TopviewFloorplanPlugin=kh,ne.Util=Ry,ne.VERSION=No,ne.itemLabelPluginServerParams=fg,ne.modelItemLabelPluginServerParams=_m,ne.modelRoomLabelPluginServerParams=jd,ne.pluginFlag=$1,Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
571
+ `;function jy(){const i=new D.PlaneGeometry(.4,.4),t=Ly,e=new D.TextureLoader().load(t);e.encoding=D.sRGBEncoding;const n=new D.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new D.Mesh(i,n)}function By(){const i=new D.CurvePath;i.add(new D.LineCurve3(new D.Vector3(0,0,0),new D.Vector3(0,0,.1)));const t=new D.TubeGeometry(i,8,.003),e=new D.ShaderMaterial({vertexShader:My,fragmentShader:zy,depthTest:!1,transparent:!0});return new D.Mesh(t,e)}function Oy(){const i=new D.SphereGeometry(.01,20,20),t=new D.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:D.DoubleSide}),e=new D.Mesh(i,t);return e.position.set(0,0,.1),e}class yu extends D.Object3D{constructor(){super();g(this,"planeMesh");g(this,"lineMesh");g(this,"ballMesh");this.planeMesh=jy(),this.lineMesh=By(),this.ballMesh=Oy(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new D.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class wu{constructor(t){g(this,"five");g(this,"contentElement",document.createElement("div"));g(this,"animeIns");g(this,"container");g(this,"css3DObject");g(this,"disposeCss3DObject");g(this,"state",{enabled:!1});this.five=t;const n=.4/2,o=Cn(t).create3DDomContainer([[-n,n,0],[-n,-n,0],[n,-n,0],[n,n,0]].map(r=>new D.Vector3().fromArray(r)));if(o){const{container:r,dispose:l,css3DObject:a}=o;this.container=r,this.css3DObject=a,this.disposeCss3DObject=l}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${Xa})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new D.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new Ws({progress:0}).to({progress:[1,0]}).duration(500).easing(Mt.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class Qy{constructor(t,e){g(this,"five");g(this,"hooks",new Ce.Subscribe);g(this,"magnifier",null);g(this,"pointHelper",null);g(this,"pointDomHelper",null);g(this,"contentDom",document.createElement("div"));g(this,"state",{enabled:!1});g(this,"group",new D.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new Au(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new yu:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new wu(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var o;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(o=t.face)==null?void 0:o.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const s=this.pointDomHelper;s&&s.updateWithIntersect(t),this.five.needsRender=!0}}const Ry=Object.freeze(Object.defineProperty({__proto__:null,Interval:Go,Rectangle:xy,Magnifier:Au,getCoordsFromClient:ky,getCoordsFromElement:bu,getRaycasterFromFivePointer:Dy,getIntersectFromRelativePosition:Ty,PointHelper:yu,PointDomHelper:wu,FivePointSelector:Qy,isNil:Yg,notNil:gn,BetterTween:Ws,tweenProgress:va,nextFrame:Li,requestAnimationFrameInterval:Mi,getFrameTime:np},Symbol.toStringTag,{value:"Module"}));ne.CSS3DRenderPlugin=Cn,ne.CameraMovementEffect=Aa,ne.CameraMovementPlugin=rp,ne.ContentType=ct,ne.CruisePlugin=e0,ne.CruisePluginController=io,ne.DIRECTION=Mn,ne.DISPLAY_STRATEGY_TYPE=hn,ne.DimensionType=pt,ne.FLOOR_PLAN_ATTACHED_TO=Vt,ne.FLOOR_TYPE_MAP=Vh,ne.GuideLinePlugin=bl,ne.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=pn,ne.ItemLabelPlugin=dg,ne.LinkType=qi,ne.Magnifier=La,ne.MapviewFloorplanPlugin=xh,ne.ModelChassisCompassPlugin=qh,ne.ModelEntryDoorGuidePlugin=ep,ne.ModelFloorplanPlugin=Ch,ne.ModelItemLabelPlugin=Ym,ne.ModelRoomLabelPlugin=zd,ne.ModelTVVideoPlugin=Vm,ne.ModelViewPlugin=Ku,ne.Object3DHelperController=vu,ne.Object3DHelperPlugin=Iy,ne.PLUGIN=ls,ne.PaintBrush=qu,ne.PaintBrushTypeEnum=zt,ne.PanoCompassPlugin=Sp,ne.PanoCursorRaycasterPlugin=ad,ne.PanoDoorLabelPlugin=Eg,ne.PanoFloorplanRadarPlugin=_h,ne.PanoMeasurePlugin=bm,ne.PanoRulerPlugin=dp,ne.PanoRulerProPlugin=Cp,ne.PanoSpatialTagPlugin=jm,ne.PanoTagPlugin=ey,ne.PanoTagPluginController=mu,ne.PointType=ot,ne.ROOM_FETILE_TYPE_MAP=Uh,ne.ROOM_TYPE_MAP=Jh,ne.Rotation=Pt,ne.TopviewFloorplanPlugin=kh,ne.Util=Ry,ne.VERSION=No,ne.itemLabelPluginServerParams=fg,ne.modelItemLabelPluginServerParams=_m,ne.modelRoomLabelPluginServerParams=jd,ne.pluginFlag=$1,Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
File without changes
package/libs/index.js CHANGED
@@ -28,7 +28,7 @@ import { GuideLinePlugin as Sp } from "./GuideLinePlugin/index.js";
28
28
  import { CruisePlugin as bp } from "./CruisePlugin/index.js";
29
29
  import { PanoTagPlugin as Fp } from "./PanoTagPlugin/index.js";
30
30
  import { Object3DHelperPlugin as yp } from "./Object3DHelperPlugin/index.js";
31
- import { i as Np } from "./index.fd12d787.js";
31
+ import { i as Np } from "./index.5d5d1089.js";
32
32
  import { default as Vp } from "./PanoMeasurePlugin/Modules/Magnifier.js";
33
33
  import { ModelItemLabelPlugin as wp } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
34
34
  import { Plugin as Hp } from "./ItemLabelPlugin/Plugin.js";
@@ -1,13 +1,13 @@
1
- var m = Object.defineProperty;
2
- var p = (n, e, t) => e in n ? m(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var s = (n, e, t) => (p(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import * as r from "three";
1
+ var p = Object.defineProperty;
2
+ var d = (o, t, e) => t in o ? p(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
+ var n = (o, t, e) => (d(o, typeof t != "symbol" ? t + "" : t, e), e);
4
+ import * as a from "three";
5
5
  import { E as l } from "../../tween.esm.bad2b2b4.js";
6
6
  import "../../hammer.b5b6115e.js";
7
7
  import "@realsee/five";
8
- import { BetterTween as d } from "../animationFrame/index.js";
9
- import { rangePieceImg as h } from "../../PanoMeasurePlugin/Modules/rangePiece/html.js";
10
- import { CSS3DRenderPlugin as b } from "../../CSS3DRenderPlugin/index.js";
8
+ import { BetterTween as h } from "../animationFrame/index.js";
9
+ import { rangePieceImg as b } from "../../PanoMeasurePlugin/Modules/rangePiece/html.js";
10
+ import { CSS3DRenderPlugin as u } from "../../CSS3DRenderPlugin/index.js";
11
11
  import "../../CSS3DRenderPlugin/Controller.js";
12
12
  import "../../CSS3DRenderPlugin/CSS3DRender.js";
13
13
  import "three/examples/jsm/renderers/CSS3DRenderer";
@@ -16,53 +16,53 @@ import "../../CSS3DRenderPlugin/utils/evenNumber.js";
16
16
  import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
17
17
  import "../../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
18
18
  import "../../CSS3DRenderPlugin/utils/centerPoint.js";
19
- class A {
20
- constructor(e) {
21
- s(this, "five");
22
- s(this, "contentElement", document.createElement("div"));
23
- s(this, "animeIns");
24
- s(this, "container");
25
- s(this, "css3DObject");
26
- s(this, "disposeCss3DObject");
27
- s(this, "state", { enabled: !1 });
28
- this.five = e;
29
- const o = b(e).create3DDomContainer(
19
+ class V {
20
+ constructor(t) {
21
+ n(this, "five");
22
+ n(this, "contentElement", document.createElement("div"));
23
+ n(this, "animeIns");
24
+ n(this, "container");
25
+ n(this, "css3DObject");
26
+ n(this, "disposeCss3DObject");
27
+ n(this, "state", { enabled: !1 });
28
+ this.five = t;
29
+ const s = 0.4 / 2, r = u(t).create3DDomContainer(
30
30
  [
31
- [-0.15, 0.15, 0],
32
- [-0.15, -0.15, 0],
33
- [0.15, -0.15, 0],
34
- [0.15, 0.15, 0]
35
- ].map((i) => new r.Vector3().fromArray(i))
31
+ [-s, s, 0],
32
+ [-s, -s, 0],
33
+ [s, -s, 0],
34
+ [s, s, 0]
35
+ ].map((i) => new a.Vector3().fromArray(i))
36
36
  );
37
- if (console.log("\u{1F680} ~ res", o), o) {
38
- const { container: i, dispose: a, css3DObject: c } = o;
39
- this.container = i, this.css3DObject = c, this.disposeCss3DObject = a;
37
+ if (r) {
38
+ const { container: i, dispose: c, css3DObject: m } = r;
39
+ this.container = i, this.css3DObject = m, this.disposeCss3DObject = c;
40
40
  }
41
- this.contentElement.style.width = "100%", this.contentElement.style.height = "100%", this.contentElement.style.backgroundImage = `url(${h})`, this.contentElement.style.backgroundSize = "100%", this.contentElement.style.backgroundRepeat = "no-repeat";
41
+ this.contentElement.style.width = "100%", this.contentElement.style.height = "100%", this.contentElement.style.backgroundImage = `url(${b})`, this.contentElement.style.backgroundSize = "100%", this.contentElement.style.backgroundRepeat = "no-repeat";
42
42
  }
43
43
  enable() {
44
- var e;
45
- this.state.enabled || (this.state.enabled = !0, (e = this.container) == null || e.appendChild(this.contentElement));
44
+ var t;
45
+ this.state.enabled || (this.state.enabled = !0, (t = this.container) == null || t.appendChild(this.contentElement));
46
46
  }
47
47
  disable() {
48
48
  !this.state.enabled || (this.state.enabled = !1, this.contentElement.remove());
49
49
  }
50
- updateWithIntersect(e) {
51
- if (!e.face || !this.css3DObject)
50
+ updateWithIntersect(t) {
51
+ if (!t.face || !this.css3DObject)
52
52
  return;
53
- const t = new r.Vector3().addVectors(e.point, e.face.normal);
54
- this.css3DObject.position.copy(e.point), this.css3DObject.lookAt(t), this.five.needsRender = !0;
53
+ const e = new a.Vector3().addVectors(t.point, t.face.normal);
54
+ this.css3DObject.position.copy(t.point), this.css3DObject.lookAt(e), this.five.needsRender = !0;
55
55
  }
56
56
  doAnimation() {
57
- var e;
58
- (e = this.animeIns) == null || e.dispose(), new d({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(l.Quadratic.InOut).onUpdate(({ progress: t }) => {
57
+ var t;
58
+ (t = this.animeIns) == null || t.dispose(), new h({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(l.Quadratic.InOut).onUpdate(({ progress: e }) => {
59
59
  }).play();
60
60
  }
61
61
  dispose() {
62
- var e;
63
- (e = this.disposeCss3DObject) == null || e.call(this);
62
+ var t;
63
+ (t = this.disposeCss3DObject) == null || t.call(this);
64
64
  }
65
65
  }
66
66
  export {
67
- A as PointDomHelper
67
+ V as PointDomHelper
68
68
  };
@@ -20,7 +20,7 @@ void main() {
20
20
  }
21
21
  `;
22
22
  function p() {
23
- const a = new t.PlaneGeometry(0.3, 0.3), n = l, e = new t.TextureLoader().load(n);
23
+ const a = new t.PlaneGeometry(0.4, 0.4), n = l, e = new t.TextureLoader().load(n);
24
24
  e.encoding = t.sRGBEncoding;
25
25
  const s = new t.MeshBasicMaterial({
26
26
  map: e,
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.1.0",
10
+ "version": "2.1.1",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "build": "sh bin/build-production.sh",