@realsee/dnalogel 3.44.5 → 3.46.0

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 (162) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Sculpt/Meshes/Area.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Box.d.ts +1 -1
  4. package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
  5. package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  6. package/dist/Sculpt/Meshes/Line.d.ts +8 -2
  7. package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  8. package/dist/Sculpt/Meshes/Point.d.ts +1 -1
  9. package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  10. package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
  11. package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  12. package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
  13. package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
  14. package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
  15. package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  16. package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
  17. package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  18. package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
  19. package/dist/Sculpt/index.d.ts +5 -0
  20. package/dist/Sculpt/typings/index.d.ts +11 -6
  21. package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  22. package/dist/Sculpt/typings/utils.type.d.ts +2 -0
  23. package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  24. package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  25. package/dist/index.cjs.js +56 -56
  26. package/dist/index.js +29820 -29686
  27. package/dist/index.umd.js +49 -49
  28. package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
  29. package/dist/shared-utils/tag.d.ts +6 -3
  30. package/libs/AreaMakerPlugin/Controller.js +150 -78
  31. package/libs/AreaMakerPlugin/index.js +76 -4
  32. package/libs/AreaMakerPlugin/utils/Item.js +190 -111
  33. package/libs/CSS3DRenderPlugin/Controller.js +89 -29
  34. package/libs/CSS3DRenderPlugin/index.js +75 -15
  35. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
  36. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
  37. package/libs/CruisePlugin/BaseController.js +121 -49
  38. package/libs/CruisePlugin/Move.js +73 -21
  39. package/libs/CruisePlugin/Work.js +98 -46
  40. package/libs/CruisePlugin/index.js +79 -27
  41. package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
  42. package/libs/CurrentPanoImagePlugin/index.js +76 -4
  43. package/libs/GuideLinePlugin/Controller.js +82 -30
  44. package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
  45. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
  46. package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
  47. package/libs/GuideLinePlugin/index.js +79 -27
  48. package/libs/ModelMakerPlugin/Controller.js +140 -83
  49. package/libs/ModelMakerPlugin/index.js +75 -18
  50. package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
  51. package/libs/ModelTVVideoPlugin/index.js +68 -8
  52. package/libs/Object3DHelperPlugin/Controller.js +54 -31
  53. package/libs/Object3DHelperPlugin/index.js +35 -13
  54. package/libs/PanoCompassPlugin/Controller.js +97 -42
  55. package/libs/PanoCompassPlugin/index.js +71 -16
  56. package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
  57. package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
  58. package/libs/PanoDoorLabelPlugin/index.js +76 -4
  59. package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
  60. package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
  61. package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
  62. package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
  63. package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
  64. package/libs/PanoMeasurePlugin/Model/area.js +114 -38
  65. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
  66. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
  67. package/libs/PanoMeasurePlugin/index.js +77 -32
  68. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
  69. package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
  70. package/libs/PanoSpatialTagPlugin/index.js +66 -6
  71. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
  72. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
  73. package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
  74. package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
  75. package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
  76. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
  77. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
  78. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
  79. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
  80. package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
  81. package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
  82. package/libs/PanoTagPlugin/controller/index.js +113 -61
  83. package/libs/PanoTagPlugin/index.js +89 -37
  84. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
  85. package/libs/PanoVideoPlugin/Controller.js +137 -65
  86. package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
  87. package/libs/PanoVideoPlugin/index.js +82 -10
  88. package/libs/PipelinePlugin/Controller.js +199 -128
  89. package/libs/PipelinePlugin/index.js +76 -5
  90. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
  91. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
  92. package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
  93. package/libs/Sculpt/Meshes/Area.d.ts +1 -1
  94. package/libs/Sculpt/Meshes/Box.d.ts +1 -1
  95. package/libs/Sculpt/Meshes/Box.js +16 -15
  96. package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
  97. package/libs/Sculpt/Meshes/Circle.js +1 -1
  98. package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
  99. package/libs/Sculpt/Meshes/Cylinder.js +8 -7
  100. package/libs/Sculpt/Meshes/Line.d.ts +8 -2
  101. package/libs/Sculpt/Meshes/Line.js +93 -65
  102. package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
  103. package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
  104. package/libs/Sculpt/Meshes/Point.d.ts +1 -1
  105. package/libs/Sculpt/Meshes/Point.js +7 -6
  106. package/libs/Sculpt/Meshes/Polygon.js +1 -1
  107. package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
  108. package/libs/Sculpt/Meshes/Polyline.js +5 -4
  109. package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
  110. package/libs/Sculpt/Meshes/Rectangle.js +3 -2
  111. package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
  112. package/libs/Sculpt/Objects/Box/index.js +41 -43
  113. package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
  114. package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
  115. package/libs/Sculpt/Objects/Line/Editor.js +62 -0
  116. package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
  117. package/libs/Sculpt/Objects/Line/index.js +107 -0
  118. package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
  119. package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
  120. package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
  121. package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
  122. package/libs/Sculpt/Objects/Polygon/index.js +80 -80
  123. package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
  124. package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
  125. package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
  126. package/libs/Sculpt/Objects/Polyline/index.js +63 -58
  127. package/libs/Sculpt/Objects/Prism/index.js +56 -58
  128. package/libs/Sculpt/index.d.ts +5 -0
  129. package/libs/Sculpt/index.js +58 -48
  130. package/libs/Sculpt/typings/index.d.ts +11 -6
  131. package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
  132. package/libs/Sculpt/typings/utils.type.d.ts +2 -0
  133. package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
  134. package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
  135. package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
  136. package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
  137. package/libs/base/BasePlugin.js +14 -13
  138. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
  139. package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
  140. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
  141. package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
  142. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
  143. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
  144. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
  145. package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
  146. package/libs/floorplan/index.js +1 -0
  147. package/libs/index.js +194 -192
  148. package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
  149. package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
  150. package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
  151. package/libs/shared-utils/Utils/WorkUtil.js +8 -7
  152. package/libs/shared-utils/five/index.js +3 -2
  153. package/libs/shared-utils/five/lookObject.js +3 -2
  154. package/libs/shared-utils/logger.js +1 -1
  155. package/libs/shared-utils/tag.d.ts +6 -3
  156. package/libs/shared-utils/tag.js +38 -24
  157. package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
  158. package/libs/shared-utils/three/index.js +1 -0
  159. package/package.json +1 -1
  160. package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  161. package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
  162. /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
@@ -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,76 @@ 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 "./utils/three/CSS3DSprite.js";
98
+ import "../shared-utils/isTouchDevice.js";
99
+ import "../shared-utils/five/getPosition.js";
100
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
41
101
  const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
42
- class re extends j {
102
+ class dt extends j {
43
103
  constructor(e) {
44
104
  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", []);
105
+ m(this, "five");
106
+ m(this, "behindFiveContainer");
107
+ m(this, "frontFiveContainer");
108
+ m(this, "VERSION", b);
109
+ m(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
110
+ m(this, "created3DElementResults", []);
51
111
  /**
52
112
  * @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
53
113
  * @param { Vector3Position[] } points 矩形四个点坐标
@@ -83,37 +143,37 @@ class re extends j {
83
143
  * } | void
84
144
  * ```
85
145
  */
86
- n(this, "create3DDomContainer", (e, t) => {
146
+ m(this, "create3DDomContainer", (e, t) => {
87
147
  if (this.state.disposed)
88
148
  return;
89
- const o = (() => {
90
- var a;
149
+ const p = (() => {
150
+ var n;
91
151
  (t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${E}: please use "config.devicePixelRatio" replace "config.dpr"`);
92
- const d = {
152
+ const s = {
93
153
  ratio: 216e-5,
94
- devicePixelRatio: (a = t == null ? void 0 : t.dpr) != null ? a : 1,
154
+ devicePixelRatio: (n = t == null ? void 0 : t.dpr) != null ? n : 1,
95
155
  mode: "front",
96
156
  autoRender: !0,
97
157
  wrapperStyle: {}
98
158
  };
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 }));
159
+ return Object.assign(s, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
160
+ })(), { autoRender: h } = p;
161
+ p.mode === "behind" && p.behindFiveContainer && (this.behindFiveContainer = p.behindFiveContainer);
162
+ const r = this.create3DElement(this.five.camera, e, l(a({}, p), { autoRender: !1 }));
103
163
  if (!r)
104
164
  return;
105
165
  const D = r.dispose;
106
166
  r.dispose = () => (this.created3DElementResults.includes(r) && this.created3DElementResults.splice(this.created3DElementResults.indexOf(r), 1), D());
107
167
  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);
168
+ var n, v;
169
+ const s = r.css3DObject.mode === "front" ? (v = this.frontFiveContainer) != null ? v : (n = this.five.getElement()) == null ? void 0 : n.parentElement : this.getBehindFiveElement();
170
+ if (!s)
171
+ return console.error(`${E}: wrapper is ${s}; mode is ${r.css3DObject.mode}`);
172
+ r.appendToElement(s), r.render(), this.created3DElementResults.push(r);
113
173
  }, u = () => {
114
174
  r.css3DObject.mode === "front" && c(), r.css3DObject.mode === "behind" && w(this.five).then(() => c());
115
175
  };
116
- return h && u(), l(p({}, r), { render: h ? void 0 : u });
176
+ return h && u(), l(a({}, r), { render: h ? void 0 : u });
117
177
  });
118
178
  this.five = e;
119
179
  }
@@ -152,5 +212,5 @@ class re extends j {
152
212
  }
153
213
  export {
154
214
  E as PLUGIN_NAME,
155
- re as default
215
+ dt as default
156
216
  };
@@ -1,34 +1,94 @@
1
1
  import o from "./Controller.js";
2
- import { CSS3DRender as B } from "./utils/three/CSS3DRender.js";
2
+ import { CSS3DRender as Jr } 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 "./utils/three/CSS3DSprite.js";
83
+ import "../shared-utils/isTouchDevice.js";
84
+ import "../shared-utils/five/getPosition.js";
85
+ import "../shared-utils/five/getRaycasterByNdcPosition.js";
25
86
  import "./utils/three/CSS3DScene.js";
26
87
  import "./utils/getAllCSS3DObject.js";
27
- import "../shared-utils/util.js";
28
88
  import "./utils/three/CSS3DGroup.js";
29
- const y = (r) => new o(r);
89
+ const Gr = (r) => new o(r);
30
90
  export {
31
- B as CSS3DRender,
32
- y as CSS3DRenderPlugin,
33
- y as default
91
+ Jr as CSS3DRender,
92
+ Gr as CSS3DRenderPlugin,
93
+ Gr as default
34
94
  };
@@ -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,160 @@ 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 "./CSS3DSprite.js";
88
+ import "../../../shared-utils/isTouchDevice.js";
89
+ import "../../../shared-utils/five/getPosition.js";
90
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
17
91
  const $ = 1, W = `CSS3DObjectPlus@${$}`, k = 216e-5, z = 3e-3;
18
- class ot extends N {
92
+ class gi extends N {
19
93
  constructor(t) {
20
94
  var x, b, w, g, V;
21
95
  if (O(t.cornerPoints) && O(t.width))
22
96
  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;
97
+ const i = (x = t.container) != null ? x : document.createElement("div"), r = (b = t.cornerPoints) != null ? b : (() => {
98
+ const o = t.width / 2;
25
99
  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)
100
+ new p(-o, o, 0),
101
+ new p(-o, -o, 0),
102
+ new p(o, -o, 0),
103
+ new p(o, o, 0)
30
104
  ];
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);
105
+ })(), 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
106
  let u;
33
- if (c === n)
34
- e.style.width = `${p}px`, e.style.height = `${l}px`, u = e;
107
+ if (m === s)
108
+ i.style.width = `${c}px`, i.style.height = `${a}px`, u = i;
35
109
  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;
110
+ const o = document.createElement("div");
111
+ o.style.width = `${c}px`, o.style.height = `${a}px`, o.style.pointerEvents = "none";
112
+ const S = s / m;
113
+ 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
114
  }
41
115
  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) => {
116
+ e(this, "version", $);
117
+ e(this, "isCSS3DObjectPlus", !0);
118
+ e(this, "isCSS3DObject", !0);
119
+ e(this, "name", W);
120
+ e(this, "container");
121
+ e(this, "width");
122
+ e(this, "height");
123
+ e(this, "domWidthPx");
124
+ e(this, "domHeightPx");
125
+ e(this, "cornerPoints");
126
+ e(this, "centerPosition");
127
+ e(this, "ratio");
128
+ e(this, "mode", "front");
129
+ e(this, "hooks", new Q());
130
+ e(this, "opacityMesh");
131
+ e(this, "selfVisible", !0);
132
+ e(this, "setVisible", (t) => {
59
133
  this.selfVisible = t, this.visible = T(this.parent) && this.selfVisible, this.opacityMesh && (this.opacityMesh.visible = this.visible);
60
134
  });
61
- o(this, "updateVisible", () => {
135
+ e(this, "updateVisible", () => {
62
136
  this.setVisible(this.selfVisible);
63
137
  });
64
138
  /**
65
139
  * @description: 生成透明Mesh
66
140
  */
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;
141
+ e(this, "createOpacityMesh", (t) => {
142
+ const { domWidthPx: i, domHeightPx: r } = t, s = new R(i, r);
143
+ return s.position.copy(t.position), s.rotation.copy(t.rotation), s.scale.copy(t.scale), s;
70
144
  });
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;
145
+ 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)
146
+ this.width = l, this.height = d, this.domWidthPx = c, this.domHeightPx = a, this.centerPosition = y;
73
147
  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]);
148
+ const o = s / m;
149
+ 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
150
  }
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();
151
+ i.classList.add(`${W}__container`);
152
+ 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
153
  this.lookAt(H);
80
- const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new r().crossVectors(f, v).normalize();
154
+ const f = this.up.clone().applyQuaternion(this.quaternion), v = M.clone(), j = new p().crossVectors(f, v).normalize();
81
155
  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());
156
+ var o;
157
+ this.mode === "front" && ((o = this.opacityMesh) == null || o.removeFromParent());
84
158
  }), this.addEventListener("removed", () => {
85
- var i;
86
- (i = this.opacityMesh) == null || i.removeFromParent();
159
+ var o;
160
+ (o = this.opacityMesh) == null || o.removeFromParent();
87
161
  });
88
162
  }
89
163
  removeFromParent() {
90
- var e;
164
+ var i;
91
165
  const t = this.parent;
92
- return t !== null && t.remove(this), (e = this.opacityMesh) == null || e.removeFromParent(), this;
166
+ return t !== null && t.remove(this), (i = this.opacityMesh) == null || i.removeFromParent(), this;
93
167
  }
94
168
  removeOpacityMesh() {
95
169
  var t;
@@ -108,20 +182,20 @@ class ot extends N {
108
182
  }
109
183
  }
110
184
  applyMatrix4(t) {
111
- var e;
112
- super.applyMatrix4(t), (e = this.opacityMesh) == null || e.applyMatrix4(t);
185
+ var i;
186
+ super.applyMatrix4(t), (i = this.opacityMesh) == null || i.applyMatrix4(t);
113
187
  }
114
188
  applyQuaternion(t) {
115
- var e;
116
- return super.applyQuaternion(t), (e = this.opacityMesh) == null || e.applyQuaternion(t), this;
189
+ var i;
190
+ return super.applyQuaternion(t), (i = this.opacityMesh) == null || i.applyQuaternion(t), this;
117
191
  }
118
192
  applyScaleMatrix4(t) {
119
- var e;
120
- this.scale.applyMatrix4(t), (e = this.opacityMesh) == null || e.scale.applyMatrix4(t);
193
+ var i;
194
+ this.scale.applyMatrix4(t), (i = this.opacityMesh) == null || i.scale.applyMatrix4(t);
121
195
  }
122
196
  }
123
197
  export {
124
- ot as CSS3DObjectPlus,
198
+ gi as CSS3DObjectPlus,
125
199
  z as DefaultRatio,
126
200
  k as MinRatio
127
201
  };