@realsee/dnalogel 3.50.14 → 3.50.15-alpha.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.
Files changed (110) hide show
  1. package/README.md +116 -0
  2. package/dist/Sculpt/Objects/Base/index.d.ts +1 -1
  3. package/dist/Sculpt/index.d.ts +4 -4
  4. package/dist/index.cjs.js +262 -262
  5. package/dist/index.js +4235 -4231
  6. package/dist/index.umd.js +263 -263
  7. package/dist/shared-utils/five/index.d.ts +2 -0
  8. package/dist/shared-utils/tag.d.ts +1 -1
  9. package/dist/shared-utils/three/index.d.ts +1 -0
  10. package/libs/AreaMakerPlugin/Controller.js +104 -74
  11. package/libs/AreaMakerPlugin/index.js +33 -3
  12. package/libs/AreaMakerPlugin/utils/Item.js +66 -36
  13. package/libs/CSS3DRenderPlugin/Controller.js +39 -19
  14. package/libs/CSS3DRenderPlugin/index.js +34 -14
  15. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +60 -35
  16. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +98 -78
  17. package/libs/CruisePlugin/BaseController.js +59 -29
  18. package/libs/CruisePlugin/Move.js +33 -14
  19. package/libs/CruisePlugin/Work.js +66 -47
  20. package/libs/CruisePlugin/index.js +38 -19
  21. package/libs/CurrentPanoImagePlugin/Controller.js +68 -38
  22. package/libs/CurrentPanoImagePlugin/index.js +34 -4
  23. package/libs/GuideLinePlugin/Controller.js +69 -50
  24. package/libs/GuideLinePlugin/GuideLineItem.js +34 -15
  25. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  26. package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -15
  27. package/libs/GuideLinePlugin/index.js +38 -19
  28. package/libs/ModelMakerPlugin/Controller.js +60 -42
  29. package/libs/ModelMakerPlugin/index.js +34 -16
  30. package/libs/ModelTVVideoPlugin/Plugin.js +48 -28
  31. package/libs/ModelTVVideoPlugin/index.js +24 -4
  32. package/libs/Object3DHelperPlugin/Controller.js +49 -30
  33. package/libs/Object3DHelperPlugin/index.js +36 -17
  34. package/libs/PanoCompassPlugin/Controller.js +33 -13
  35. package/libs/PanoCompassPlugin/index.js +34 -14
  36. package/libs/PanoDoorLabelPlugin/BaseController.js +55 -25
  37. package/libs/PanoDoorLabelPlugin/Controller.js +99 -69
  38. package/libs/PanoDoorLabelPlugin/index.js +34 -4
  39. package/libs/PanoMeasurePlugin/Components/Controller0.js +8 -8
  40. package/libs/PanoMeasurePlugin/Components/Controller1.js +8 -8
  41. package/libs/PanoMeasurePlugin/Controller/WatchController.js +75 -49
  42. package/libs/PanoMeasurePlugin/Controller/index.js +16 -16
  43. package/libs/PanoMeasurePlugin/Model/area.js +41 -15
  44. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +29 -0
  45. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +8 -8
  46. package/libs/PanoMeasurePlugin/index.js +3 -3
  47. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +43 -15
  48. package/libs/PanoRulerProPlugin/Controller.js +60 -30
  49. package/libs/PanoRulerProPlugin/RulerItems.js +85 -55
  50. package/libs/PanoRulerProPlugin/index.js +33 -3
  51. package/libs/PanoSpatialTagPlugin/Plugin.js +54 -34
  52. package/libs/PanoSpatialTagPlugin/index.js +22 -2
  53. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  54. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +235 -206
  55. package/libs/PanoTagPlugin/Components/Tag/index.js +152 -125
  56. package/libs/PanoTagPlugin/Components/TagContainer.js +97 -70
  57. package/libs/PanoTagPlugin/Components/TagItem.js +31 -4
  58. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +29 -2
  59. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +55 -28
  60. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +53 -26
  61. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +54 -27
  62. package/libs/PanoTagPlugin/controller/TagRender.js +48 -29
  63. package/libs/PanoTagPlugin/controller/TagUtil.js +33 -14
  64. package/libs/PanoTagPlugin/controller/index.js +49 -30
  65. package/libs/PanoTagPlugin/index.js +41 -22
  66. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +59 -29
  67. package/libs/PanoVideoPlugin/Controller.js +91 -61
  68. package/libs/PanoVideoPlugin/VideoMeshController.js +56 -26
  69. package/libs/PanoVideoPlugin/index.js +36 -6
  70. package/libs/PipelinePlugin/Controller.js +80 -51
  71. package/libs/PipelinePlugin/index.js +34 -5
  72. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +44 -14
  73. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +43 -13
  74. package/libs/PipelinePlugin/utils/Objects/Pipe.js +61 -31
  75. package/libs/Sculpt/Meshes/Box.js +3 -2
  76. package/libs/Sculpt/Meshes/Cylinder.js +3 -2
  77. package/libs/Sculpt/Meshes/Line.js +9 -8
  78. package/libs/Sculpt/Meshes/LineWithDots.js +8 -7
  79. package/libs/Sculpt/Meshes/Point.js +3 -2
  80. package/libs/Sculpt/Meshes/Polygon.js +3 -2
  81. package/libs/Sculpt/Meshes/Prism.js +9 -8
  82. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  83. package/libs/Sculpt/Objects/Base/index.d.ts +1 -1
  84. package/libs/Sculpt/Objects/Line/Editor.js +7 -6
  85. package/libs/Sculpt/index.d.ts +4 -4
  86. package/libs/Sculpt/index.js +3 -2
  87. package/libs/Sculpt/utils/three/ColoredMesh.js +6 -5
  88. package/libs/base/BasePlugin.js +4 -3
  89. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +89 -60
  90. package/libs/floorplan/MapviewFloorplanPlugin/index.js +34 -5
  91. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +79 -50
  92. package/libs/floorplan/ModelFloorplanPlugin/index.js +34 -5
  93. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +68 -38
  94. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +34 -4
  95. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +104 -75
  96. package/libs/floorplan/TopviewFloorplanPlugin/index.js +34 -5
  97. package/libs/floorplan/index.js +1 -0
  98. package/libs/index.js +28 -28
  99. package/libs/shared-utils/five/fiveModelLoad.js +1 -0
  100. package/libs/shared-utils/five/index.d.ts +2 -0
  101. package/libs/shared-utils/five/index.js +3 -2
  102. package/libs/shared-utils/five/lookObject.js +3 -2
  103. package/libs/shared-utils/index.js +42 -35
  104. package/libs/shared-utils/logger.js +1 -1
  105. package/libs/shared-utils/tag.d.ts +1 -1
  106. package/libs/shared-utils/tag.js +41 -41
  107. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
  108. package/libs/shared-utils/three/index.d.ts +1 -0
  109. package/libs/shared-utils/three/index.js +1 -0
  110. package/package.json +1 -1
@@ -31,20 +31,47 @@ import "../../../shared-utils/three/temp.js";
31
31
  import "../../../shared-utils/dom/resizeObserver.js";
32
32
  import "../../../shared-utils/five/mode.js";
33
33
  import "hammerjs";
34
+ import "../../../shared-utils/three/PointSelector/index.js";
35
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
36
+ import "../../../shared-utils/three/Magnifier.js";
37
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
38
+ import "../../../shared-utils/three/Assets/index.js";
39
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
34
40
  import "three/examples/jsm/renderers/CSS3DRenderer";
41
+ import "../../../CSS3DRenderPlugin/utils/even.js";
42
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
43
+ import "../../../shared-utils/three/getObjectVisible.js";
35
44
  import "@realsee/five/line";
36
45
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
37
46
  import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
38
47
  import "../../../vendor/three/build/three.module.js";
39
48
  import "../../../shared-utils/three/core/Sphere.js";
40
49
  import "animejs";
50
+ import "../../../shared-utils/isNil.js";
41
51
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
42
- import "../../utils/tag/format.js";
52
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
53
+ import "../../../shared-utils/five/initialCSS3DRender.js";
54
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
55
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
56
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
57
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
58
+ import "../../../Sculpt/Meshes/Line.js";
59
+ import "../../../Sculpt/typings/style.js";
60
+ import "../../../shared-utils/five/FiveLine.js";
61
+ import "../../../shared-utils/three/IObject3D.js";
62
+ import "../../../Sculpt/utils/removeAllTag.js";
63
+ import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
64
+ import "../../../shared-utils/three/applyObjectMatrixWorld.js";
43
65
  import "../../../shared-utils/util.js";
66
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
67
+ import "../../../shared-utils/isTouchDevice.js";
68
+ import "../../../shared-utils/five/getPosition.js";
69
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
70
+ import "../../../shared-utils/three/PointSelector/utils/contents.js";
71
+ import "../../utils/tag/format.js";
44
72
  import "../../../shared-utils/three/blink.js";
45
73
  import "../../../shared-utils/vectorToCoordinate.js";
46
74
  import "../../../shared-utils/formatRad.js";
47
- import "../../../shared-utils/isNil.js";
48
75
  import "../../../shared-utils/five/lookPoint.js";
49
76
  import "../../../shared-utils/uuid.js";
50
77
  import "../../utils/tagPosition.js";
@@ -55,26 +82,26 @@ import "../../../shared-utils/five/getFloorIndex.js";
55
82
  import "../../../shared-utils/safeObj.js";
56
83
  import "../../utils/Cache.js";
57
84
  const P = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
58
- class be extends f {
59
- constructor(t, e) {
60
- super(t, e), this.state.unfolded = !0;
85
+ class Ot extends f {
86
+ constructor(e, t) {
87
+ super(e, t), this.state.unfolded = !0;
61
88
  }
62
89
  applyVisible() {
63
- var e, r, a, n, o, i;
64
- this.computeRenderType() === "Mesh" ? ((r = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((n = (a = this.data.mediaData) == null ? void 0 : a[0]) == null ? void 0 : n.type) === "Image" && this.renderImagePlane() : (this.tag3DContentSvelte || this.plugin.updateRender3DDomTag(), (o = this.tag3DContentSvelte) == null || o.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
90
+ var t, r, o, n, a, i;
91
+ this.computeRenderType() === "Mesh" ? ((r = (t = this.data.mediaData) == null ? void 0 : t[0]) == null ? void 0 : r.type) === "Video" ? this.renderVideoPlane() : ((n = (o = this.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : n.type) === "Image" && this.renderImagePlane() : (this.tag3DContentSvelte || this.plugin.updateRender3DDomTag(), (a = this.tag3DContentSvelte) == null || a.svelteApp.$set({ tag: this, state: this.plugin.state }), (i = this.tag3DContentSvelte) == null || i.css3DInstance.setVisible(this.currentVisible));
65
92
  }
66
93
  renderVideoPlane() {
67
94
  var i;
68
- const t = this.data.mediaData[0];
69
- if (!t)
70
- return;
71
- const { url: e } = t;
95
+ const e = this.data.mediaData[0];
72
96
  if (!e)
73
97
  return;
74
- const r = this.currentVisible, a = (() => !!(this.mediaPlane && !r))(), n = (() => !!(!this.mediaPlane && r))(), o = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
75
- if ((a || o) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), n || o) {
76
- const p = this.position.map(d), s = new u(e, p, {
77
- videoCoverSrc: t.videoCoverUrl,
98
+ const { url: t } = e;
99
+ if (!t)
100
+ return;
101
+ const r = this.currentVisible, o = (() => !!(this.mediaPlane && !r))(), n = (() => !!(!this.mediaPlane && r))(), a = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
102
+ if ((o || a) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), n || a) {
103
+ const p = this.position.map(d), m = new u(t, p, {
104
+ videoCoverSrc: e.videoCoverUrl,
78
105
  playButton: this.data.playIcon,
79
106
  paused: !((i = this.data.autoplayConfig) != null && i.autoplayVideo),
80
107
  objectFit: this.data.objectFit,
@@ -82,23 +109,23 @@ class be extends f {
82
109
  ImageTextureMap: g,
83
110
  domEvents: this.plugin.domEvents
84
111
  });
85
- s.onVideoReady = (m) => {
86
- m.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: s.videoInstance }));
112
+ m.onVideoReady = (s) => {
113
+ s.addEventListener("play", () => this.plugin.mediaStore.set({ currentMediaElement: m.videoInstance }));
87
114
  };
88
- const l = (m) => (this.five.on("renderFrame", m), () => this.five.off("renderFrame", m));
89
- s.initialRenderHooks(l), this.mediaPlane = s, this.play = () => s.play(), this.pause = () => s.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
115
+ const l = (s) => (this.five.on("renderFrame", s), () => this.five.off("renderFrame", s));
116
+ m.initialRenderHooks(l), this.mediaPlane = m, this.play = () => m.play(), this.pause = () => m.pause(), this.plugin.imagePlaneGroup.add(this.mediaPlane);
90
117
  }
91
118
  this.five.needsRender = !0;
92
119
  }
93
120
  renderImagePlane() {
94
- const t = this.data.mediaData[0];
95
- if (!t)
96
- return;
97
- const { url: e } = t;
121
+ const e = this.data.mediaData[0];
98
122
  if (!e)
99
123
  return;
100
- const r = this.position.map(d), a = this.currentVisible, n = (() => !!(this.mediaPlane && !a))(), o = (() => !!(!this.mediaPlane && a))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== e))();
101
- (n || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (o || i) && (this.mediaPlane = new c(e, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
124
+ const { url: t } = e;
125
+ if (!t)
126
+ return;
127
+ const r = this.position.map(d), o = this.currentVisible, n = (() => !!(this.mediaPlane && !o))(), a = (() => !!(!this.mediaPlane && o))(), i = (() => !!(this.mediaPlane && this.mediaPlane.src !== t))();
128
+ (n || i) && this.mediaPlane && (this.plugin.imagePlaneGroup.remove(this.mediaPlane), this.mediaPlane.dispose(), this.mediaPlane.removeFromParent(), this.mediaPlane = void 0), (a || i) && (this.mediaPlane = new c(t, r, { objectFit: this.data.objectFit }), this.getConfig().clickable !== !1 && this.plugin.domEvents.addAutoBindEventListener(
102
129
  this.mediaPlane,
103
130
  "click",
104
131
  (p) => {
@@ -112,5 +139,5 @@ class be extends f {
112
139
  }
113
140
  }
114
141
  export {
115
- be as PlaneTag
142
+ Ot as PlaneTag
116
143
  };
@@ -1,8 +1,8 @@
1
- var h = Object.defineProperty;
2
- var m = (n, o, t) => o in n ? h(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t;
3
- var l = (n, o, t) => (m(n, typeof o != "symbol" ? o + "" : o, t), t);
1
+ var f = Object.defineProperty;
2
+ var h = (r, s, t) => s in r ? f(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
3
+ var l = (r, s, t) => (h(r, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import { BaseTag as g } from "./BaseTag.js";
5
- import * as c from "three";
5
+ import * as m from "three";
6
6
  import "../../../shared-utils/Subscribe.js";
7
7
  import "../../utils/tag/calculateTagConfig.js";
8
8
  import "../../../vendor/object-assign-deep/objectAssignDeep.js";
@@ -22,21 +22,48 @@ import "../../../shared-utils/three/temp.js";
22
22
  import "../../../shared-utils/dom/resizeObserver.js";
23
23
  import "../../../shared-utils/five/mode.js";
24
24
  import "hammerjs";
25
+ import "../../../shared-utils/three/PointSelector/index.js";
26
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
27
+ import "../../../shared-utils/three/Magnifier.js";
28
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
29
+ import "../../../shared-utils/three/Assets/index.js";
30
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
25
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
32
+ import "../../../CSS3DRenderPlugin/utils/even.js";
33
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
34
+ import "../../../shared-utils/three/centerPoint.js";
35
+ import "../../../shared-utils/three/getObjectVisible.js";
26
36
  import "@realsee/five/line";
27
37
  import "../../../vendor/three/examples/jsm/lines/LineGeometry.js";
28
38
  import "../../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
29
39
  import "../../../vendor/three/build/three.module.js";
30
40
  import "../../../shared-utils/three/core/Sphere.js";
31
41
  import "animejs";
42
+ import "../../../shared-utils/isNil.js";
32
43
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
33
- import "../../utils/tag/format.js";
34
- import "../../../shared-utils/three/centerPoint.js";
44
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
45
+ import "../../../shared-utils/five/initialCSS3DRender.js";
46
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
47
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
48
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
49
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
50
+ import "../../../Sculpt/Meshes/Line.js";
51
+ import "../../../Sculpt/typings/style.js";
52
+ import "../../../shared-utils/five/FiveLine.js";
53
+ import "../../../shared-utils/three/IObject3D.js";
54
+ import "../../../Sculpt/utils/removeAllTag.js";
55
+ import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
56
+ import "../../../shared-utils/three/applyObjectMatrixWorld.js";
35
57
  import "../../../shared-utils/util.js";
58
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
59
+ import "../../../shared-utils/isTouchDevice.js";
60
+ import "../../../shared-utils/five/getPosition.js";
61
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
62
+ import "../../../shared-utils/three/PointSelector/utils/contents.js";
63
+ import "../../utils/tag/format.js";
36
64
  import "../../../shared-utils/three/blink.js";
37
65
  import "../../../shared-utils/vectorToCoordinate.js";
38
66
  import "../../../shared-utils/formatRad.js";
39
- import "../../../shared-utils/isNil.js";
40
67
  import "../../../shared-utils/five/lookPoint.js";
41
68
  import "../../../shared-utils/uuid.js";
42
69
  import "../../utils/tagPosition.js";
@@ -46,8 +73,8 @@ import "../../../shared-utils/url/getUrl.js";
46
73
  import "../../../shared-utils/five/getFloorIndex.js";
47
74
  import "../../../shared-utils/safeObj.js";
48
75
  import "../../utils/Cache.js";
49
- const b = new c.Vector2();
50
- class dt extends g {
76
+ const b = new m.Vector2();
77
+ class Ft extends g {
51
78
  constructor(t, e) {
52
79
  super(t, e);
53
80
  l(this, "__Object__");
@@ -58,8 +85,8 @@ class dt extends g {
58
85
  */
59
86
  unfoldAndFoldOthers() {
60
87
  const t = this.can("fold"), e = this.can("unfold");
61
- t && e && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((s) => {
62
- s.id !== this.id && s.fold();
88
+ t && e && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
89
+ o.id !== this.id && o.fold();
63
90
  }));
64
91
  }
65
92
  onClick(t) {
@@ -83,8 +110,8 @@ class dt extends g {
83
110
  }, 200);
84
111
  }
85
112
  applyVisible() {
86
- var t, e, s, i;
87
- this.currentVisible && this.updateScreenPosition(), (s = (e = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : e.css3DObject) == null || s.setVisible(this.currentVisible), (i = this.tag3DContentSvelte) == null || i.svelteApp.$set({
113
+ var t, e, o, i;
114
+ this.currentVisible && this.updateScreenPosition(), (o = (e = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : e.css3DObject) == null || o.setVisible(this.currentVisible), (i = this.tag3DContentSvelte) == null || i.svelteApp.$set({
88
115
  state: this.plugin.state,
89
116
  temporaryState: this.temporaryState
90
117
  }), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
@@ -100,8 +127,8 @@ class dt extends g {
100
127
  * @param {boolean} unfolded
101
128
  */
102
129
  setUnfold(t) {
103
- const e = this.can("fold"), s = this.can("unfold");
104
- e && s && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
130
+ const e = this.can("fold"), o = this.can("unfold");
131
+ e && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
105
132
  }
106
133
  setPosition(t) {
107
134
  this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
@@ -110,27 +137,27 @@ class dt extends g {
110
137
  var a;
111
138
  if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
112
139
  return;
113
- const { force: e = !1 } = t != null ? t : {}, s = e ? this.state.visible : this.currentVisible, i = (a = this.__Object__) != null ? a : {
140
+ const { force: e = !1 } = t != null ? t : {}, o = e ? this.state.visible : this.currentVisible, i = (a = this.__Object__) != null ? a : {
114
141
  timeoutId: void 0,
115
142
  inAnimation: !1
116
143
  };
117
- if (this.__Object__ = i, !s && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
144
+ if (this.__Object__ = i, !o && this.screenPosition ? (i.inAnimation = !0, i.timeoutId = setTimeout(() => {
118
145
  requestAnimationFrame(() => {
119
146
  this.currentVisible || (i.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
120
147
  });
121
- }, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !s && !i.inAnimation)
148
+ }, 1e3)) : i.timeoutId && (clearTimeout(i.timeoutId), i.inAnimation = !1, i.timeoutId = void 0), !o && !i.inAnimation)
122
149
  return;
123
- const r = this.computeTagProject();
124
- if (r) {
150
+ const n = this.computeTagProject();
151
+ if (n) {
125
152
  const d = (() => {
126
153
  if (!this.currentConfig.simulate3D)
127
154
  return 1;
128
- const p = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), f = this.getDistance(void 0, 1);
129
- return Math.max(Math.min(1 - p * f / 40, 1), 0.5);
130
- })(), u = this.five.renderer.getSize(b);
155
+ const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(void 0, 1);
156
+ return Math.max(Math.min(1 - u * c / 40, 1), 0.5);
157
+ })(), p = this.five.renderer.getSize(b);
131
158
  this.screenPosition = {
132
- leftPx: (r.x + 1) / 2 * u.x,
133
- topPx: (-r.y + 1) / 2 * u.y,
159
+ leftPx: (n.x + 1) / 2 * p.x,
160
+ topPx: (-n.y + 1) / 2 * p.y,
134
161
  scale: d
135
162
  };
136
163
  } else
@@ -145,9 +172,9 @@ class dt extends g {
145
172
  }
146
173
  }
147
174
  computeNormal() {
148
- return new c.Vector3().fromArray(this.normal);
175
+ return new m.Vector3().fromArray(this.normal);
149
176
  }
150
177
  }
151
178
  export {
152
- dt as PointTag
179
+ Ft as PointTag
153
180
  };
@@ -1,15 +1,15 @@
1
1
  var k = Object.defineProperty;
2
2
  var v = Object.getOwnPropertySymbols;
3
3
  var x = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
- var y = (m, i, t) => i in m ? k(m, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : m[i] = t, R = (m, i) => {
4
+ var y = (s, i, t) => i in s ? k(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, R = (s, i) => {
5
5
  for (var t in i || (i = {}))
6
- x.call(i, t) && y(m, t, i[t]);
6
+ x.call(i, t) && y(s, t, i[t]);
7
7
  if (v)
8
8
  for (var t of v(i))
9
- O.call(i, t) && y(m, t, i[t]);
10
- return m;
9
+ O.call(i, t) && y(s, t, i[t]);
10
+ return s;
11
11
  };
12
- var c = (m, i, t) => (y(m, typeof i != "symbol" ? i + "" : i, t), t);
12
+ var c = (s, i, t) => (y(s, typeof i != "symbol" ? i + "" : i, t), t);
13
13
  import { Group as T, Quaternion as G, Vector3 as P, Matrix4 as C } from "three";
14
14
  import A from "../Components/Tag/index.js";
15
15
  import { isMediaModelTag as M } from "../utils/tag/tagCheck.js";
@@ -85,13 +85,40 @@ import "../../shared-utils/five/transformPosition.js";
85
85
  import "../../shared-utils/three/temp.js";
86
86
  import "../../shared-utils/dom/resizeObserver.js";
87
87
  import "hammerjs";
88
+ import "../../shared-utils/three/PointSelector/index.js";
89
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
90
+ import "../../shared-utils/three/Magnifier.js";
91
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
92
+ import "../../shared-utils/three/Assets/index.js";
93
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
88
94
  import "three/examples/jsm/renderers/CSS3DRenderer";
95
+ import "../../CSS3DRenderPlugin/utils/even.js";
96
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
97
+ import "../../shared-utils/three/getObjectVisible.js";
89
98
  import "@realsee/five/line";
90
99
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
91
100
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
92
101
  import "../../vendor/three/build/three.module.js";
93
102
  import "../../shared-utils/three/core/Sphere.js";
94
103
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
104
+ import "../../shared-utils/three/PointSelector/utils/html.js";
105
+ import "../../shared-utils/five/initialCSS3DRender.js";
106
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
107
+ import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
108
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
109
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
110
+ import "../../Sculpt/Meshes/Line.js";
111
+ import "../../Sculpt/typings/style.js";
112
+ import "../../shared-utils/five/FiveLine.js";
113
+ import "../../shared-utils/three/IObject3D.js";
114
+ import "../../Sculpt/utils/removeAllTag.js";
115
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
116
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
117
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
118
+ import "../../shared-utils/isTouchDevice.js";
119
+ import "../../shared-utils/five/getPosition.js";
120
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
121
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
95
122
  import "../utils/noTypecheck.js";
96
123
  import "../Components/Tag/AudioTag/index.js";
97
124
  import "../Components/Tag/AudioTag/AudioTag.js";
@@ -145,25 +172,17 @@ import "../../vendor/svelte/store/index.js";
145
172
  import "../../CSS3DRenderPlugin/index.js";
146
173
  import "../../CSS3DRenderPlugin/Controller.js";
147
174
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
148
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
149
- import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
150
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
151
- import "../../CSS3DRenderPlugin/utils/even.js";
152
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
153
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
154
- import "../../shared-utils/three/getObjectVisible.js";
155
175
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
156
176
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
157
177
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
158
178
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
159
- import "../../shared-utils/url/absoluteUrl.js";
160
179
  import "../../shared-utils/five/fiveModelLoad.js";
180
+ import "../../shared-utils/url/absoluteUrl.js";
161
181
  import "../../shared-utils/five/FiveDomEvents.js";
162
182
  import "../../shared-utils/five/calculateThreeMouse.js";
163
183
  import "../../shared-utils/three/core/Raycaster.js";
164
- import "../../shared-utils/isTouchDevice.js";
165
184
  import "../../base/BasePlugin.js";
166
- class xr extends N {
185
+ class Kr extends N {
167
186
  constructor(t) {
168
187
  super(t);
169
188
  c(this, "rendererMap", /* @__PURE__ */ new Map());
@@ -203,8 +222,8 @@ class xr extends N {
203
222
  if (o.tag3DContentSvelte) {
204
223
  const { svelteApp: d, css3DInstance: n, initialNormal: l, currentNormal: p } = o.tag3DContentSvelte;
205
224
  if ((a = n == null ? void 0 : n.css3DObject) == null || a.setVisible((this.state.visible && ((e = o.state) == null ? void 0 : e.visible)) !== !1), d.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !l.equals(p)) {
206
- const s = new G().setFromUnitVectors(l, p);
207
- n.css3DObject.setRotationFromQuaternion(s);
225
+ const m = new G().setFromUnitVectors(l, p);
226
+ n.css3DObject.setRotationFromQuaternion(m);
208
227
  }
209
228
  return;
210
229
  } else {
@@ -226,20 +245,20 @@ class xr extends N {
226
245
  const h = "black";
227
246
  p.container.style.backgroundColor = h, p.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
228
247
  var S;
229
- if (s.css3DObject.opacityMesh && l.clickable !== !1) {
230
- const j = this.addObjectClickHandler(o, s.css3DObject.opacityMesh, (w) => {
248
+ if (m.css3DObject.opacityMesh && l.clickable !== !1) {
249
+ const j = this.addObjectClickHandler(o, m.css3DObject.opacityMesh, (w) => {
231
250
  this.hooks.emit("click", { event: w, target: "TagContent", tag: o });
232
251
  });
233
252
  (S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(j);
234
253
  }
235
254
  });
236
255
  }
237
- const s = this.css3DRenderPlugin.create3DDomContainer(d, p);
238
- if (!s)
256
+ const m = this.css3DRenderPlugin.create3DDomContainer(d, p);
257
+ if (!m)
239
258
  return;
240
- this.store.css3DRenderDisposer.set(o.id, [s.dispose]);
259
+ this.store.css3DRenderDisposer.set(o.id, [m.dispose]);
241
260
  const u = new A({
242
- target: s.container,
261
+ target: m.container,
243
262
  props: {
244
263
  tag: o,
245
264
  hooks: this.hooks,
@@ -251,12 +270,12 @@ class xr extends N {
251
270
  });
252
271
  o.tag3DContentSvelte = {
253
272
  svelteApp: u,
254
- domContainer: s,
255
- css3DInstance: s,
273
+ domContainer: m,
274
+ css3DInstance: m,
256
275
  initialNormal: n,
257
276
  currentNormal: n,
258
277
  dispose: () => {
259
- u.$destroy(), s.dispose();
278
+ u.$destroy(), m.dispose();
260
279
  }
261
280
  }, M(o) && ((b = o.model) != null && b.object) && this.updateTagCss3DObjectMatrix(o, o.model.object);
262
281
  }
@@ -267,8 +286,8 @@ class xr extends N {
267
286
  * @param model 模型
268
287
  */
269
288
  updateTagCss3DObjectMatrix(t, r) {
270
- var s, u, h;
271
- const o = (u = (s = t.getConfig().tag3DConfig) == null ? void 0 : s.ratio) != null ? u : 216e-5, e = (h = t.tag3DContentSvelte) == null ? void 0 : h.css3DInstance.css3DObject;
289
+ var m, u, h;
290
+ const o = (u = (m = t.getConfig().tag3DConfig) == null ? void 0 : m.ratio) != null ? u : 216e-5, e = (h = t.tag3DContentSvelte) == null ? void 0 : h.css3DInstance.css3DObject;
272
291
  if (!e)
273
292
  return;
274
293
  const a = M(t) ? t.data.mediaPosition : t.position;
@@ -300,5 +319,5 @@ class xr extends N {
300
319
  }
301
320
  }
302
321
  export {
303
- xr as TagRender
322
+ Kr as TagRender
304
323
  };
@@ -1,9 +1,9 @@
1
1
  var d = Object.defineProperty;
2
- var c = (a, n, e) => n in a ? d(a, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[n] = e;
3
- var r = (a, n, e) => (c(a, typeof n != "symbol" ? n + "" : n, e), e);
2
+ var c = (m, n, e) => n in m ? d(m, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[n] = e;
3
+ var r = (m, n, e) => (c(m, typeof n != "symbol" ? n + "" : n, e), e);
4
4
  import { DefaultConfig as l } from "../tag.config.js";
5
5
  import "three";
6
- import { anyPositionToVector3 as p } from "../../shared-utils/positionToVector3.js";
6
+ import { anyPositionToVector3 as a } from "../../shared-utils/positionToVector3.js";
7
7
  import { isPlaneTag as u, isMediaModelTag as f, isPoint3DTag as h } from "../utils/tag/tagCheck.js";
8
8
  import { normalPositionToPositions as g } from "../utils/normalPositionToPositions.js";
9
9
  import { writable as P } from "../../vendor/svelte/store/index.js";
@@ -36,21 +36,41 @@ import "../../shared-utils/five/transformPosition.js";
36
36
  import "../../shared-utils/three/temp.js";
37
37
  import "../../shared-utils/dom/resizeObserver.js";
38
38
  import "hammerjs";
39
+ import "../../shared-utils/three/PointSelector/index.js";
40
+ import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
41
+ import "../../shared-utils/three/Magnifier.js";
42
+ import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
43
+ import "../../shared-utils/three/Assets/index.js";
44
+ import "../../shared-utils/three/PointSelector/utils/html.js";
45
+ import "../../shared-utils/five/initialCSS3DRender.js";
46
+ import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
47
+ import "../../Sculpt/Meshes/Line.js";
48
+ import "../../Sculpt/typings/style.js";
49
+ import "../../shared-utils/five/FiveLine.js";
39
50
  import "@realsee/five/line";
40
51
  import "../../vendor/three/examples/jsm/lines/LineGeometry.js";
41
52
  import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
42
53
  import "../../vendor/three/build/three.module.js";
54
+ import "../../shared-utils/three/IObject3D.js";
55
+ import "../../Sculpt/utils/removeAllTag.js";
56
+ import "../../Sculpt/utils/Meshes/getLengthHTML.js";
57
+ import "../../shared-utils/three/applyObjectMatrixWorld.js";
58
+ import "../../shared-utils/util.js";
43
59
  import "../../shared-utils/three/core/Sphere.js";
44
60
  import "animejs";
45
61
  import "../../shared-utils/isNil.js";
46
62
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
63
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
64
+ import "../../shared-utils/isTouchDevice.js";
65
+ import "../../shared-utils/five/getPosition.js";
66
+ import "../../shared-utils/five/getRaycasterByNdcPosition.js";
67
+ import "../../shared-utils/three/PointSelector/utils/contents.js";
47
68
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
48
69
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
49
- import "../../shared-utils/util.js";
50
70
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
51
71
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
52
- import "../../shared-utils/url/absoluteUrl.js";
53
72
  import "../../shared-utils/five/fiveModelLoad.js";
73
+ import "../../shared-utils/url/absoluteUrl.js";
54
74
  import "../../shared-utils/three/loadTexture.js";
55
75
  import "../../shared-utils/three/Quadrangle.js";
56
76
  import "../../shared-utils/math/pointsIsRectangle.js";
@@ -61,8 +81,7 @@ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
61
81
  import "../../shared-utils/three/getNormal.js";
62
82
  import "../../shared-utils/five/calculateThreeMouse.js";
63
83
  import "../../shared-utils/three/core/Raycaster.js";
64
- import "../../shared-utils/isTouchDevice.js";
65
- class be extends E {
84
+ class Ne extends E {
66
85
  constructor(e) {
67
86
  super(e);
68
87
  r(this, "tags", []);
@@ -142,10 +161,10 @@ class be extends E {
142
161
  return (e = this._cache_css3DTag) != null ? e : [];
143
162
  }
144
163
  addRenderQueue(e) {
145
- var m, s;
164
+ var p, s;
146
165
  const { type: t, keys: i = [], tags: o = [] } = e;
147
166
  this.renderQueue.has(t) ? this.renderQueue.set(t, {
148
- keys: Array.from(/* @__PURE__ */ new Set([...(m = this.renderQueue.get(t).keys) != null ? m : [], ...i])),
167
+ keys: Array.from(/* @__PURE__ */ new Set([...(p = this.renderQueue.get(t).keys) != null ? p : [], ...i])),
149
168
  tags: Array.from(/* @__PURE__ */ new Set([...(s = this.renderQueue.get(t).tags) != null ? s : [], ...o]))
150
169
  }) : this.renderQueue.set(t, { keys: i, tags: o });
151
170
  }
@@ -167,20 +186,20 @@ class be extends E {
167
186
  if (f(e))
168
187
  return e.data.mediaPosition;
169
188
  if (h(e))
170
- return g(this.five.camera.position, p(e.position), p(e.normal));
189
+ return g(this.five.camera.position, a(e.position), a(e.normal));
171
190
  }
172
191
  addObjectClickHandler(e, t, i) {
173
192
  if (!t || !this.domEvents)
174
193
  return () => {
175
194
  };
176
- const o = () => !(!e.currentVisible || e.loading), m = (s) => {
195
+ const o = () => !(!e.currentVisible || e.loading), p = (s) => {
177
196
  if (!o())
178
197
  return !1;
179
198
  i(s.origDomEvent);
180
199
  };
181
- return this.domEvents.addEventListener(t, "click", m), () => {
200
+ return this.domEvents.addEventListener(t, "click", p), () => {
182
201
  var s;
183
- (s = this.domEvents) == null || s.removeEventListener(t, "click", m);
202
+ (s = this.domEvents) == null || s.removeEventListener(t, "click", p);
184
203
  };
185
204
  }
186
205
  /**
@@ -192,5 +211,5 @@ class be extends E {
192
211
  }
193
212
  }
194
213
  export {
195
- be as TagUtil
214
+ Ne as TagUtil
196
215
  };