@realsee/dnalogel 3.45.0 → 3.46.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 (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Line.d.ts +6 -1
  3. package/dist/Sculpt/utils/removeAllTag.d.ts +2 -0
  4. package/dist/index.cjs.js +53 -53
  5. package/dist/index.js +29600 -29557
  6. package/dist/index.umd.js +49 -49
  7. package/dist/shared-utils/tag.d.ts +6 -3
  8. package/libs/AreaMakerPlugin/Controller.js +151 -78
  9. package/libs/AreaMakerPlugin/index.js +77 -4
  10. package/libs/AreaMakerPlugin/utils/Item.js +191 -111
  11. package/libs/CSS3DRenderPlugin/Controller.js +90 -29
  12. package/libs/CSS3DRenderPlugin/index.js +76 -15
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +133 -58
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +182 -116
  15. package/libs/CruisePlugin/BaseController.js +122 -49
  16. package/libs/CruisePlugin/Move.js +74 -21
  17. package/libs/CruisePlugin/Work.js +99 -46
  18. package/libs/CruisePlugin/index.js +80 -27
  19. package/libs/CurrentPanoImagePlugin/Controller.js +177 -104
  20. package/libs/CurrentPanoImagePlugin/index.js +77 -4
  21. package/libs/GuideLinePlugin/Controller.js +79 -26
  22. package/libs/GuideLinePlugin/GuideLineItem.js +83 -30
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +82 -29
  25. package/libs/GuideLinePlugin/index.js +80 -27
  26. package/libs/ModelMakerPlugin/Controller.js +140 -82
  27. package/libs/ModelMakerPlugin/index.js +76 -18
  28. package/libs/ModelTVVideoPlugin/Plugin.js +118 -57
  29. package/libs/ModelTVVideoPlugin/index.js +69 -8
  30. package/libs/Object3DHelperPlugin/Controller.js +67 -43
  31. package/libs/Object3DHelperPlugin/index.js +36 -13
  32. package/libs/PanoCompassPlugin/Controller.js +98 -42
  33. package/libs/PanoCompassPlugin/index.js +72 -16
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +99 -26
  35. package/libs/PanoDoorLabelPlugin/Controller.js +188 -115
  36. package/libs/PanoDoorLabelPlugin/index.js +77 -4
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -88
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -126
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -72
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +168 -92
  41. package/libs/PanoMeasurePlugin/Controller/index.js +110 -64
  42. package/libs/PanoMeasurePlugin/Model/area.js +115 -38
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +79 -0
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -45
  45. package/libs/PanoMeasurePlugin/index.js +77 -31
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +99 -20
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +211 -150
  48. package/libs/PanoSpatialTagPlugin/index.js +67 -6
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +149 -68
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +296 -216
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +258 -187
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +158 -87
  53. package/libs/PanoTagPlugin/Components/TagItem.js +145 -74
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +133 -62
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +110 -39
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +106 -35
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +114 -43
  58. package/libs/PanoTagPlugin/controller/TagRender.js +133 -80
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +137 -84
  60. package/libs/PanoTagPlugin/controller/index.js +114 -61
  61. package/libs/PanoTagPlugin/index.js +90 -37
  62. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +122 -41
  63. package/libs/PanoVideoPlugin/Controller.js +138 -65
  64. package/libs/PanoVideoPlugin/VideoMeshController.js +150 -69
  65. package/libs/PanoVideoPlugin/index.js +83 -10
  66. package/libs/PipelinePlugin/Controller.js +200 -128
  67. package/libs/PipelinePlugin/index.js +77 -5
  68. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +103 -22
  69. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +96 -15
  70. package/libs/PipelinePlugin/utils/Objects/Pipe.js +137 -56
  71. package/libs/Sculpt/Meshes/Box.js +6 -5
  72. package/libs/Sculpt/Meshes/Cylinder.js +7 -6
  73. package/libs/Sculpt/Meshes/Line.d.ts +6 -1
  74. package/libs/Sculpt/Meshes/Line.js +80 -57
  75. package/libs/Sculpt/Meshes/Point.js +6 -5
  76. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  77. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  78. package/libs/Sculpt/Objects/Base/index.js +20 -17
  79. package/libs/Sculpt/Objects/Line/Editor.js +11 -10
  80. package/libs/Sculpt/utils/removeAllTag.d.ts +2 -0
  81. package/libs/Sculpt/utils/removeAllTag.js +10 -0
  82. package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
  83. package/libs/base/BasePlugin.js +14 -13
  84. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +129 -59
  85. package/libs/floorplan/MapviewFloorplanPlugin/index.js +76 -6
  86. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +130 -59
  87. package/libs/floorplan/ModelFloorplanPlugin/index.js +76 -5
  88. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +159 -86
  89. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +77 -4
  90. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +152 -81
  91. package/libs/floorplan/TopviewFloorplanPlugin/index.js +76 -5
  92. package/libs/floorplan/index.js +1 -0
  93. package/libs/index.js +193 -192
  94. package/libs/shared-utils/five/index.js +3 -2
  95. package/libs/shared-utils/five/lookObject.js +3 -2
  96. package/libs/shared-utils/logger.js +1 -1
  97. package/libs/shared-utils/tag.d.ts +6 -3
  98. package/libs/shared-utils/tag.js +38 -24
  99. package/libs/shared-utils/three/index.js +1 -0
  100. package/package.json +1 -1
@@ -2,21 +2,22 @@ var R = Object.defineProperty, F = Object.defineProperties;
2
2
  var C = Object.getOwnPropertyDescriptors;
3
3
  var f = Object.getOwnPropertySymbols;
4
4
  var O = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
5
- var m = (s, i, e) => i in s ? R(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e, p = (s, i) => {
5
+ var d = (o, i, e) => i in o ? R(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, a = (o, i) => {
6
6
  for (var e in i || (i = {}))
7
- O.call(i, e) && m(s, e, i[e]);
7
+ O.call(i, e) && d(o, e, i[e]);
8
8
  if (f)
9
9
  for (var e of f(i))
10
- S.call(i, e) && m(s, e, i[e]);
11
- return s;
12
- }, l = (s, i) => F(s, C(i));
13
- var n = (s, i, e) => (m(s, typeof i != "symbol" ? i + "" : i, e), e);
10
+ S.call(i, e) && d(o, e, i[e]);
11
+ return o;
12
+ }, l = (o, i) => F(o, C(i));
13
+ var m = (o, i, e) => (d(o, typeof i != "symbol" ? i + "" : i, e), e);
14
14
  import { CSS3DRender as j } from "./utils/three/CSS3DRender.js";
15
15
  import x from "./utils/generateBehindFiveElement.js";
16
16
  import "three";
17
17
  import "hammerjs";
18
18
  import "three/examples/jsm/renderers/CSS3DRenderer";
19
19
  import "@realsee/five/line";
20
+ import "../Sculpt/utils/Modules/Global.js";
20
21
  import "../shared-utils/three/THREESphere.js";
21
22
  import "animejs";
22
23
  import { absoluteUrl as P } from "../shared-utils/url/absoluteUrl.js";
@@ -37,17 +38,77 @@ import "./utils/three/CSS3DScene.js";
37
38
  import "./utils/getAllCSS3DObject.js";
38
39
  import "../shared-utils/util.js";
39
40
  import "./utils/three/CSS3DGroup.js";
41
+ import "../Sculpt/utils/Modules/Cursor.js";
42
+ import "../Object3DHelperPlugin/Controller.js";
43
+ import "../base/BasePlugin.js";
44
+ import "../shared-utils/Utils/FiveUtil.js";
45
+ import "../shared-utils/Utils/BaseUtil.js";
46
+ import "../shared-utils/Utils/WorkUtil.js";
47
+ import "../shared-utils/five/transformPosition.js";
40
48
  import "../shared-utils/five/getFiveModel.js";
49
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
50
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
51
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
52
+ import "../shared-utils/three/IObject3D.js";
53
+ import "../shared-utils/three/boundingBox.js";
54
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
55
+ import "../shared-utils/Object3DHelper/utils/direction.js";
56
+ import "../shared-utils/Object3DHelper/Constants/color.js";
57
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
58
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
59
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
60
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
61
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
62
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
63
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
64
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
65
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
66
+ import "../shared-utils/threex/domevents/index.js";
67
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
68
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
69
+ import "../Sculpt/utils/three/rayOnLine.js";
70
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
71
+ import "../shared-utils/Object3DHelper/index.js";
72
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
73
+ import "../shared-utils/math/rad2Deg.js";
74
+ import "../shared-utils/math/deg2Rad.js";
75
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
76
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
77
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
78
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
79
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
80
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
81
+ import "../shared-utils/five/FiveDomEvents.js";
82
+ import "../shared-utils/five/calculateThreeMouse.js";
83
+ import "../shared-utils/three/THREERaycaster.js";
84
+ import "../shared-utils/three/PointSelector/index.js";
85
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
86
+ import "../shared-utils/three/Magnifier.js";
87
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
88
+ import "../shared-utils/three/Assets/index.js";
89
+ import "../shared-utils/three/PointSelector/utils/html.js";
90
+ import "../shared-utils/five/initialCSS3DRender.js";
91
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
92
+ import "../Sculpt/Meshes/Line.js";
93
+ import "../Sculpt/typings/style.js";
94
+ import "../shared-utils/five/FiveLine.js";
95
+ import "../shared-utils/tag.js";
96
+ import "../shared-utils/five/vector3ToScreen.js";
97
+ import "../Sculpt/utils/removeAllTag.js";
98
+ import "./utils/three/CSS3DSprite.js";
99
+ import "../shared-utils/isTouchDevice.js";
100
+ import "../shared-utils/five/getPosition.js";
101
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
41
102
  const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
42
- class re extends j {
103
+ class at extends j {
43
104
  constructor(e) {
44
105
  super();
45
- n(this, "five");
46
- n(this, "behindFiveContainer");
47
- n(this, "frontFiveContainer");
48
- n(this, "VERSION", b);
49
- n(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
50
- n(this, "created3DElementResults", []);
106
+ m(this, "five");
107
+ m(this, "behindFiveContainer");
108
+ m(this, "frontFiveContainer");
109
+ m(this, "VERSION", b);
110
+ m(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
111
+ m(this, "created3DElementResults", []);
51
112
  /**
52
113
  * @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
53
114
  * @param { Vector3Position[] } points 矩形四个点坐标
@@ -83,37 +144,37 @@ class re extends j {
83
144
  * } | void
84
145
  * ```
85
146
  */
86
- n(this, "create3DDomContainer", (e, t) => {
147
+ m(this, "create3DDomContainer", (e, t) => {
87
148
  if (this.state.disposed)
88
149
  return;
89
- const o = (() => {
90
- var a;
150
+ const p = (() => {
151
+ var n;
91
152
  (t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${E}: please use "config.devicePixelRatio" replace "config.dpr"`);
92
- const d = {
153
+ const s = {
93
154
  ratio: 216e-5,
94
- devicePixelRatio: (a = t == null ? void 0 : t.dpr) != null ? a : 1,
155
+ devicePixelRatio: (n = t == null ? void 0 : t.dpr) != null ? n : 1,
95
156
  mode: "front",
96
157
  autoRender: !0,
97
158
  wrapperStyle: {}
98
159
  };
99
- return Object.assign(d, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
100
- })(), { autoRender: h } = o;
101
- o.mode === "behind" && o.behindFiveContainer && (this.behindFiveContainer = o.behindFiveContainer);
102
- const r = this.create3DElement(this.five.camera, e, l(p({}, o), { autoRender: !1 }));
160
+ return Object.assign(s, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
161
+ })(), { autoRender: h } = p;
162
+ p.mode === "behind" && p.behindFiveContainer && (this.behindFiveContainer = p.behindFiveContainer);
163
+ const r = this.create3DElement(this.five.camera, e, l(a({}, p), { autoRender: !1 }));
103
164
  if (!r)
104
165
  return;
105
166
  const D = r.dispose;
106
167
  r.dispose = () => (this.created3DElementResults.includes(r) && this.created3DElementResults.splice(this.created3DElementResults.indexOf(r), 1), D());
107
168
  const c = () => {
108
- var a, v;
109
- const d = r.css3DObject.mode === "front" ? (v = this.frontFiveContainer) != null ? v : (a = this.five.getElement()) == null ? void 0 : a.parentElement : this.getBehindFiveElement();
110
- if (!d)
111
- return console.error(`${E}: wrapper is ${d}; mode is ${r.css3DObject.mode}`);
112
- r.appendToElement(d), r.render(), this.created3DElementResults.push(r);
169
+ var n, v;
170
+ const s = r.css3DObject.mode === "front" ? (v = this.frontFiveContainer) != null ? v : (n = this.five.getElement()) == null ? void 0 : n.parentElement : this.getBehindFiveElement();
171
+ if (!s)
172
+ return console.error(`${E}: wrapper is ${s}; mode is ${r.css3DObject.mode}`);
173
+ r.appendToElement(s), r.render(), this.created3DElementResults.push(r);
113
174
  }, u = () => {
114
175
  r.css3DObject.mode === "front" && c(), r.css3DObject.mode === "behind" && w(this.five).then(() => c());
115
176
  };
116
- return h && u(), l(p({}, r), { render: h ? void 0 : u });
177
+ return h && u(), l(a({}, r), { render: h ? void 0 : u });
117
178
  });
118
179
  this.five = e;
119
180
  }
@@ -152,5 +213,5 @@ class re extends j {
152
213
  }
153
214
  export {
154
215
  E as PLUGIN_NAME,
155
- re as default
216
+ at as default
156
217
  };
@@ -1,34 +1,95 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as B } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as Kr } from "./utils/three/CSS3DRender.js";
3
3
  import "./utils/generateBehindFiveElement.js";
4
4
  import "three";
5
5
  import "hammerjs";
6
6
  import "three/examples/jsm/renderers/CSS3DRenderer";
7
7
  import "@realsee/five/line";
8
+ import "../Sculpt/utils/Modules/Global.js";
9
+ import "../Sculpt/utils/Modules/Cursor.js";
10
+ import "../Object3DHelperPlugin/Controller.js";
11
+ import "../base/BasePlugin.js";
12
+ import "../shared-utils/Subscribe.js";
8
13
  import "../shared-utils/three/THREESphere.js";
9
14
  import "animejs";
15
+ import "../shared-utils/Utils/FiveUtil.js";
16
+ import "../shared-utils/Utils/BaseUtil.js";
17
+ import "../shared-utils/Utils/WorkUtil.js";
18
+ import "../shared-utils/five/transformPosition.js";
19
+ import "../shared-utils/five/getFiveModel.js";
10
20
  import "../shared-utils/url/absoluteUrl.js";
11
21
  import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
22
+ import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
23
+ import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
24
+ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
25
+ import "../shared-utils/three/IObject3D.js";
26
+ import "../shared-utils/three/boundingBox.js";
27
+ import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
28
+ import "../shared-utils/Object3DHelper/utils/direction.js";
29
+ import "../shared-utils/Object3DHelper/Constants/color.js";
30
+ import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
31
+ import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
32
+ import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
33
+ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
34
+ import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
35
+ import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
36
+ import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
37
+ import "../shared-utils/Object3DHelper/Controller/MoveController.js";
38
+ import "../shared-utils/Object3DHelper/Base/BaseController.js";
39
+ import "../shared-utils/threex/domevents/index.js";
40
+ import "../shared-utils/isNil.js";
41
+ import "../shared-utils/util.js";
42
+ import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
43
+ import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
44
+ import "../Sculpt/utils/three/rayOnLine.js";
45
+ import "../Object3DHelperPlugin/FiveControllerWrapper.js";
46
+ import "../shared-utils/Object3DHelper/index.js";
47
+ import "../shared-utils/Object3DHelper/Controller/RotateController.js";
48
+ import "../shared-utils/math/rad2Deg.js";
49
+ import "../shared-utils/math/deg2Rad.js";
50
+ import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
51
+ import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
52
+ import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
53
+ import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
54
+ import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
55
+ import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
12
56
  import "../shared-utils/five/fiveModelLoad.js";
13
- import "../shared-utils/five/getFiveModel.js";
14
- import "../shared-utils/positionToVector3.js";
15
- import "./utils/three/CSS3DRenderer.js";
16
- import "./utils/three/THREEJS_CSS3DRenderer.js";
17
- import "./utils/createResizeObserver.js";
18
- import "./utils/even.js";
19
- import "../shared-utils/Subscribe.js";
57
+ import "../shared-utils/five/FiveDomEvents.js";
58
+ import "../shared-utils/three/getObjectVisible.js";
59
+ import "../shared-utils/five/calculateThreeMouse.js";
60
+ import "../shared-utils/three/THREERaycaster.js";
61
+ import "../shared-utils/three/PointSelector/index.js";
62
+ import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
63
+ import "../shared-utils/three/Magnifier.js";
64
+ import "../shared-utils/three/PointSelector/utils/PointHelper.js";
65
+ import "../shared-utils/three/Assets/index.js";
20
66
  import "./utils/three/CSS3DObject.js";
67
+ import "./utils/even.js";
21
68
  import "./utils/three/OpacityMesh.js";
22
69
  import "../shared-utils/three/centerPoint.js";
23
- import "../shared-utils/three/getObjectVisible.js";
24
- import "../shared-utils/isNil.js";
70
+ import "../shared-utils/three/PointSelector/utils/html.js";
71
+ import "../shared-utils/five/initialCSS3DRender.js";
72
+ import "./utils/three/CSS3DRenderer.js";
73
+ import "./utils/three/THREEJS_CSS3DRenderer.js";
74
+ import "./utils/createResizeObserver.js";
75
+ import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
76
+ import "../Sculpt/Meshes/Line.js";
77
+ import "../Sculpt/typings/style.js";
78
+ import "../shared-utils/five/FiveLine.js";
79
+ import "../shared-utils/positionToVector3.js";
80
+ import "../shared-utils/tag.js";
81
+ import "../shared-utils/five/vector3ToScreen.js";
82
+ import "../Sculpt/utils/removeAllTag.js";
83
+ import "./utils/three/CSS3DSprite.js";
84
+ import "../shared-utils/isTouchDevice.js";
85
+ import "../shared-utils/five/getPosition.js";
86
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
25
87
  import "./utils/three/CSS3DScene.js";
26
88
  import "./utils/getAllCSS3DObject.js";
27
- import "../shared-utils/util.js";
28
89
  import "./utils/three/CSS3DGroup.js";
29
- const y = (r) => new o(r);
90
+ const Hr = (r) => new o(r);
30
91
  export {
31
- B as CSS3DRender,
32
- y as CSS3DRenderPlugin,
33
- y as default
92
+ Kr as CSS3DRender,
93
+ Hr as CSS3DRenderPlugin,
94
+ Hr as default
34
95
  };
@@ -1,8 +1,8 @@
1
1
  var A = Object.defineProperty;
2
- var D = (a, h, t) => h in a ? A(a, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[h] = t;
3
- var o = (a, h, t) => (D(a, typeof h != "symbol" ? h + "" : h, t), t);
2
+ var D = (h, n, t) => n in h ? A(h, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[n] = t;
3
+ var e = (h, n, t) => (D(h, typeof n != "symbol" ? n + "" : n, t), t);
4
4
  import { CSS3DObject as N } from "three/examples/jsm/renderers/CSS3DRenderer";
5
- import { Vector3 as r } from "three";
5
+ import { Vector3 as p } from "three";
6
6
  import { even as E } from "../even.js";
7
7
  import { Subscribe as Q } from "../../../shared-utils/Subscribe.js";
8
8
  import R from "./OpacityMesh.js";
@@ -10,86 +10,161 @@ import { centerPoint as L } from "../../../shared-utils/three/centerPoint.js";
10
10
  import { getObjectVisible as T } from "../../../shared-utils/three/getObjectVisible.js";
11
11
  import "hammerjs";
12
12
  import "@realsee/five/line";
13
+ import "../../../Sculpt/utils/Modules/Global.js";
13
14
  import "../../../shared-utils/three/THREESphere.js";
14
15
  import "animejs";
15
16
  import { isNil as O } from "../../../shared-utils/isNil.js";
16
17
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
18
+ import "../../../Sculpt/utils/Modules/Cursor.js";
19
+ import "../../../Object3DHelperPlugin/Controller.js";
20
+ import "../../../base/BasePlugin.js";
21
+ import "../../../shared-utils/Utils/FiveUtil.js";
22
+ import "../../../shared-utils/Utils/BaseUtil.js";
23
+ import "../../../shared-utils/Utils/WorkUtil.js";
24
+ import "../../../shared-utils/five/transformPosition.js";
25
+ import "../../../shared-utils/five/getFiveModel.js";
26
+ import "../../../shared-utils/url/absoluteUrl.js";
27
+ import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
28
+ import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
29
+ import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
30
+ import "../../../shared-utils/three/IObject3D.js";
31
+ import "../../../shared-utils/three/boundingBox.js";
32
+ import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
33
+ import "../../../shared-utils/Object3DHelper/utils/direction.js";
34
+ import "../../../shared-utils/Object3DHelper/Constants/color.js";
35
+ import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
36
+ import "./CSS3DRender.js";
37
+ import "../../../shared-utils/positionToVector3.js";
38
+ import "./CSS3DRenderer.js";
39
+ import "./THREEJS_CSS3DRenderer.js";
40
+ import "../createResizeObserver.js";
41
+ import "./CSS3DObject.js";
42
+ import "./CSS3DScene.js";
43
+ import "../getAllCSS3DObject.js";
44
+ import "../../../shared-utils/util.js";
45
+ import "./CSS3DGroup.js";
46
+ import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
47
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
48
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
49
+ import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
50
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
51
+ import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
52
+ import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
53
+ import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
54
+ import "../../../shared-utils/threex/domevents/index.js";
55
+ import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
56
+ import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
57
+ import "../../../Sculpt/utils/three/rayOnLine.js";
58
+ import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
59
+ import "../../../shared-utils/Object3DHelper/index.js";
60
+ import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
61
+ import "../../../shared-utils/math/rad2Deg.js";
62
+ import "../../../shared-utils/math/deg2Rad.js";
63
+ import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
64
+ import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
65
+ import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
66
+ import "../generateBehindFiveElement.js";
67
+ import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
68
+ import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
69
+ import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
70
+ import "../../../shared-utils/five/fiveModelLoad.js";
71
+ import "../../../shared-utils/five/FiveDomEvents.js";
72
+ import "../../../shared-utils/five/calculateThreeMouse.js";
73
+ import "../../../shared-utils/three/THREERaycaster.js";
74
+ import "../../../shared-utils/three/PointSelector/index.js";
75
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
76
+ import "../../../shared-utils/three/Magnifier.js";
77
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
78
+ import "../../../shared-utils/three/Assets/index.js";
79
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
80
+ import "../../../shared-utils/five/initialCSS3DRender.js";
81
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
82
+ import "../../../Sculpt/Meshes/Line.js";
83
+ import "../../../Sculpt/typings/style.js";
84
+ import "../../../shared-utils/five/FiveLine.js";
85
+ import "../../../shared-utils/tag.js";
86
+ import "../../../shared-utils/five/vector3ToScreen.js";
87
+ import "../../../Sculpt/utils/removeAllTag.js";
88
+ import "./CSS3DSprite.js";
89
+ import "../../../shared-utils/isTouchDevice.js";
90
+ import "../../../shared-utils/five/getPosition.js";
91
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
17
92
  const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
18
- class ot extends N {
93
+ class Vi extends N {
19
94
  constructor(t) {
20
95
  var x, b, w, g, V;
21
96
  if (O(t.cornerPoints) && O(t.width))
22
97
  throw new Error("cornerPoints and width cannot be both empty");
23
- const e = (x = t.container) != null ? x : document.createElement("div"), s = (b = t.cornerPoints) != null ? b : (() => {
24
- const i = t.width / 2;
98
+ const i = (x = t.container) != null ? x : document.createElement("div"), r = (b = t.cornerPoints) != null ? b : (() => {
99
+ const o = t.width / 2;
25
100
  return [
26
- new r(-i, i, 0),
27
- new r(-i, -i, 0),
28
- new r(i, -i, 0),
29
- new r(i, i, 0)
101
+ new p(-o, o, 0),
102
+ new p(-o, -o, 0),
103
+ new p(o, -o, 0),
104
+ new p(o, o, 0)
30
105
  ];
31
- })(), n = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", c = Math.max(k, n), d = s[0].distanceTo(s[1]), m = s[1].distanceTo(s[2]), p = E(d / n * P), l = E(m / n * P), y = L(...s);
106
+ })(), s = (w = t.ratio) != null ? w : z, P = (g = t.dpr) != null ? g : 1, F = (V = t.pointerEvents) != null ? V : "auto", m = Math.max(k, s), l = r[0].distanceTo(r[1]), d = r[1].distanceTo(r[2]), c = E(l / s * P), a = E(d / s * P), y = L(...r);
32
107
  let u;
33
- if (c === n)
34
- e.style.width = `${p}px`, e.style.height = `${l}px`, u = e;
108
+ if (m === s)
109
+ i.style.width = `${c}px`, i.style.height = `${a}px`, u = i;
35
110
  else {
36
- const i = document.createElement("div");
37
- i.style.width = `${p}px`, i.style.height = `${l}px`, i.style.pointerEvents = "none";
38
- const S = n / c;
39
- e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${S * p}px`, e.style.height = `${S * l}px`, i.appendChild(e), u = i;
111
+ const o = document.createElement("div");
112
+ o.style.width = `${c}px`, o.style.height = `${a}px`, o.style.pointerEvents = "none";
113
+ const S = s / m;
114
+ i.style.position = "absolute", i.style.left = "0", i.style.top = "0", i.style.width = `${S * c}px`, i.style.height = `${S * a}px`, o.appendChild(i), u = o;
40
115
  }
41
116
  super(u);
42
- o(this, "version", $);
43
- o(this, "isCSS3DObjectPlus", !0);
44
- o(this, "isCSS3DObject", !0);
45
- o(this, "name", W);
46
- o(this, "container");
47
- o(this, "width");
48
- o(this, "height");
49
- o(this, "domWidthPx");
50
- o(this, "domHeightPx");
51
- o(this, "cornerPoints");
52
- o(this, "centerPosition");
53
- o(this, "ratio");
54
- o(this, "mode", "front");
55
- o(this, "hooks", new Q());
56
- o(this, "opacityMesh");
57
- o(this, "selfVisible", !0);
58
- o(this, "setVisible", (t) => {
117
+ e(this, "version", $);
118
+ e(this, "isCSS3DObjectPlus", !0);
119
+ e(this, "isCSS3DObject", !0);
120
+ e(this, "name", W);
121
+ e(this, "container");
122
+ e(this, "width");
123
+ e(this, "height");
124
+ e(this, "domWidthPx");
125
+ e(this, "domHeightPx");
126
+ e(this, "cornerPoints");
127
+ e(this, "centerPosition");
128
+ e(this, "ratio");
129
+ e(this, "mode", "front");
130
+ e(this, "hooks", new Q());
131
+ e(this, "opacityMesh");
132
+ e(this, "selfVisible", !0);
133
+ e(this, "setVisible", (t) => {
59
134
  this.selfVisible = t, this.visible = T(this.parent) && this.selfVisible, this.opacityMesh && (this.opacityMesh.visible = this.visible);
60
135
  });
61
- o(this, "updateVisible", () => {
136
+ e(this, "updateVisible", () => {
62
137
  this.setVisible(this.selfVisible);
63
138
  });
64
139
  /**
65
140
  * @description: 生成透明Mesh
66
141
  */
67
- o(this, "createOpacityMesh", (t) => {
68
- const { domWidthPx: e, domHeightPx: s } = t, n = new R(e, s);
69
- return n.position.copy(t.position), n.rotation.copy(t.rotation), n.scale.copy(t.scale), n;
142
+ e(this, "createOpacityMesh", (t) => {
143
+ const { domWidthPx: i, domHeightPx: r } = t, s = new R(i, r);
144
+ return s.position.copy(t.position), s.rotation.copy(t.rotation), s.scale.copy(t.scale), s;
70
145
  });
71
- if (e.style.pointerEvents = F, Object.assign(e.style, t.style), this.scale.set(c, c, c), this.cornerPoints = s, this.ratio = n, this.container = e, t.mode && (this.mode = t.mode), c === n)
72
- this.width = d, this.height = m, this.domWidthPx = p, this.domHeightPx = l, this.centerPosition = y;
146
+ if (i.style.pointerEvents = F, Object.assign(i.style, t.style), this.scale.set(m, m, m), this.cornerPoints = r, this.ratio = s, this.container = i, t.mode && (this.mode = t.mode), m === s)
147
+ this.width = l, this.height = d, this.domWidthPx = c, this.domHeightPx = a, this.centerPosition = y;
73
148
  else {
74
- const i = n / c;
75
- this.width = i * d, this.height = i * m, this.domWidthPx = i * p, this.domHeightPx = i * l, this.centerPosition = new r().subVectors(y, s[0]).multiplyScalar(i).add(s[0]);
149
+ const o = s / m;
150
+ this.width = o * l, this.height = o * d, this.domWidthPx = o * c, this.domHeightPx = o * a, this.centerPosition = new p().subVectors(y, r[0]).multiplyScalar(o).add(r[0]);
76
151
  }
77
- e.classList.add(`${W}__container`);
78
- const C = new r().subVectors(s[1], s[0]), M = new r().subVectors(s[3], s[0]), H = new r().crossVectors(C, M).normalize();
152
+ i.classList.add(`${W}__container`);
153
+ const C = new p().subVectors(r[1], r[0]), M = new p().subVectors(r[3], r[0]), H = new p().crossVectors(C, M).normalize();
79
154
  this.lookAt(H);
80
- const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new r().crossVectors(f, v).normalize();
155
+ const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new p().crossVectors(f, v).normalize();
81
156
  this.rotateOnWorldAxis(j, f.angleTo(v)), this.position.copy(y), this.addEventListener("added", () => {
82
- var i;
83
- this.mode === "front" && ((i = this.opacityMesh) == null || i.removeFromParent());
157
+ var o;
158
+ this.mode === "front" && ((o = this.opacityMesh) == null || o.removeFromParent());
84
159
  }), this.addEventListener("removed", () => {
85
- var i;
86
- (i = this.opacityMesh) == null || i.removeFromParent();
160
+ var o;
161
+ (o = this.opacityMesh) == null || o.removeFromParent();
87
162
  });
88
163
  }
89
164
  removeFromParent() {
90
- var e;
165
+ var i;
91
166
  const t = this.parent;
92
- return t !== null && t.remove(this), (e = this.opacityMesh) == null || e.removeFromParent(), this;
167
+ return t !== null && t.remove(this), (i = this.opacityMesh) == null || i.removeFromParent(), this;
93
168
  }
94
169
  removeOpacityMesh() {
95
170
  var t;
@@ -108,20 +183,20 @@ class ot extends N {
108
183
  }
109
184
  }
110
185
  applyMatrix4(t) {
111
- var e;
112
- super.applyMatrix4(t), (e = this.opacityMesh) == null || e.applyMatrix4(t);
186
+ var i;
187
+ super.applyMatrix4(t), (i = this.opacityMesh) == null || i.applyMatrix4(t);
113
188
  }
114
189
  applyQuaternion(t) {
115
- var e;
116
- return super.applyQuaternion(t), (e = this.opacityMesh) == null || e.applyQuaternion(t), this;
190
+ var i;
191
+ return super.applyQuaternion(t), (i = this.opacityMesh) == null || i.applyQuaternion(t), this;
117
192
  }
118
193
  applyScaleMatrix4(t) {
119
- var e;
120
- this.scale.applyMatrix4(t), (e = this.opacityMesh) == null || e.scale.applyMatrix4(t);
194
+ var i;
195
+ this.scale.applyMatrix4(t), (i = this.opacityMesh) == null || i.scale.applyMatrix4(t);
121
196
  }
122
197
  }
123
198
  export {
124
- ot as CSS3DObjectPlus,
199
+ Vi as CSS3DObjectPlus,
125
200
  z as DefaultRatio,
126
201
  k as MinRatio
127
202
  };