@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
@@ -1,40 +1,120 @@
1
1
  var d = Object.defineProperty;
2
2
  var v = Object.getOwnPropertySymbols;
3
3
  var A = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
4
- var f = (o, e, t) => e in o ? d(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, y = (o, e) => {
5
- for (var t in e || (e = {}))
6
- A.call(e, t) && f(o, t, e[t]);
4
+ var f = (p, i, t) => i in p ? d(p, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[i] = t, y = (p, i) => {
5
+ for (var t in i || (i = {}))
6
+ A.call(i, t) && f(p, t, i[t]);
7
7
  if (v)
8
- for (var t of v(e))
9
- w.call(e, t) && f(o, t, e[t]);
10
- return o;
8
+ for (var t of v(i))
9
+ w.call(i, t) && f(p, t, i[t]);
10
+ return p;
11
11
  };
12
- var p = (o, e, t) => (f(o, typeof e != "symbol" ? e + "" : e, t), t);
13
- var l = (o, e, t) => new Promise((i, s) => {
14
- var a = (u) => {
12
+ var n = (p, i, t) => (f(p, typeof i != "symbol" ? i + "" : i, t), t);
13
+ var l = (p, i, t) => new Promise((r, m) => {
14
+ var o = (s) => {
15
15
  try {
16
- n(t.next(u));
16
+ a(t.next(s));
17
17
  } catch (c) {
18
- s(c);
18
+ m(c);
19
19
  }
20
- }, r = (u) => {
20
+ }, e = (s) => {
21
21
  try {
22
- n(t.throw(u));
22
+ a(t.throw(s));
23
23
  } catch (c) {
24
- s(c);
24
+ m(c);
25
25
  }
26
- }, n = (u) => u.done ? i(u.value) : Promise.resolve(u.value).then(a, r);
27
- n((t = t.apply(o, e)).next());
26
+ }, a = (s) => s.done ? r(s.value) : Promise.resolve(s.value).then(o, e);
27
+ a((t = t.apply(p, i)).next());
28
28
  });
29
- import * as m from "three";
29
+ import * as u from "three";
30
30
  import "hammerjs";
31
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
32
32
  import "@realsee/five/line";
33
+ import "../../../Sculpt/utils/Modules/Global.js";
33
34
  import "../../../shared-utils/three/THREESphere.js";
34
35
  import "animejs";
35
36
  import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
36
37
  import { CustomBezierCurve3 as x } from "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
38
+ import "../../../Sculpt/utils/Modules/Cursor.js";
39
+ import "../../../Object3DHelperPlugin/Controller.js";
40
+ import "../../../base/BasePlugin.js";
41
+ import "../../../shared-utils/Subscribe.js";
42
+ import "../../../shared-utils/Utils/FiveUtil.js";
43
+ import "../../../shared-utils/Utils/BaseUtil.js";
44
+ import "../../../shared-utils/Utils/WorkUtil.js";
45
+ import "../../../shared-utils/five/transformPosition.js";
46
+ import "../../../shared-utils/five/getFiveModel.js";
47
+ import "../../../shared-utils/url/absoluteUrl.js";
37
48
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.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 "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
59
+ import "../../../shared-utils/positionToVector3.js";
60
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
61
+ import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
62
+ import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
63
+ import "../../../CSS3DRenderPlugin/utils/even.js";
64
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
65
+ import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
66
+ import "../../../shared-utils/three/centerPoint.js";
67
+ import "../../../shared-utils/three/getObjectVisible.js";
68
+ import "../../../shared-utils/isNil.js";
69
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
70
+ import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
71
+ import "../../../shared-utils/util.js";
72
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
73
+ import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
74
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
75
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
76
+ import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
77
+ import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
78
+ import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
79
+ import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
80
+ import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
81
+ import "../../../shared-utils/threex/domevents/index.js";
82
+ import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
83
+ import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
84
+ import "../../../Sculpt/utils/three/rayOnLine.js";
85
+ import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
86
+ import "../../../shared-utils/Object3DHelper/index.js";
87
+ import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
88
+ import "../../../shared-utils/math/rad2Deg.js";
89
+ import "../../../shared-utils/math/deg2Rad.js";
90
+ import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
91
+ import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
92
+ import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
93
+ import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
94
+ import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
95
+ import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
96
+ import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
97
+ import "../../../shared-utils/five/fiveModelLoad.js";
98
+ import "../../../shared-utils/five/FiveDomEvents.js";
99
+ import "../../../shared-utils/five/calculateThreeMouse.js";
100
+ import "../../../shared-utils/three/THREERaycaster.js";
101
+ import "../../../shared-utils/three/PointSelector/index.js";
102
+ import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
103
+ import "../../../shared-utils/three/Magnifier.js";
104
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
105
+ import "../../../shared-utils/three/Assets/index.js";
106
+ import "../../../shared-utils/three/PointSelector/utils/html.js";
107
+ import "../../../shared-utils/five/initialCSS3DRender.js";
108
+ import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
109
+ import "../../../Sculpt/Meshes/Line.js";
110
+ import "../../../Sculpt/typings/style.js";
111
+ import "../../../shared-utils/five/FiveLine.js";
112
+ import "../../../shared-utils/tag.js";
113
+ import "../../../shared-utils/five/vector3ToScreen.js";
114
+ import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
115
+ import "../../../shared-utils/isTouchDevice.js";
116
+ import "../../../shared-utils/five/getPosition.js";
117
+ import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
38
118
  import "../../../shared-utils/animationFrame/index.js";
39
119
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
40
120
  import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
@@ -65,40 +145,40 @@ const C = (
65
145
  }
66
146
  `
67
147
  );
68
- class h extends m.Mesh {
69
- constructor(t, i = O) {
148
+ class h extends u.Mesh {
149
+ constructor(t, r = O) {
70
150
  super();
71
- p(this, "geometryConfig", {
151
+ n(this, "geometryConfig", {
72
152
  radius: 1.5 / 100,
73
153
  tubularSegments: 20,
74
154
  radialSegments: 8
75
155
  });
76
- p(this, "customID");
77
- p(this, "path");
78
- p(this, "pathLength", 0);
79
- p(this, "pathPoints");
80
- p(this, "texture");
81
- p(this, "opacityAnime");
156
+ n(this, "customID");
157
+ n(this, "path");
158
+ n(this, "pathLength", 0);
159
+ n(this, "pathPoints");
160
+ n(this, "texture");
161
+ n(this, "opacityAnime");
82
162
  /** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
83
- p(this, "uPreMeter", 1);
84
- t.geometryConfig && (this.geometryConfig = y(y({}, this.geometryConfig), t.geometryConfig)), this.customID = t.id || this.uuid, this.pathPoints = t.path, this.path = h.calculatePath(t.path.map((u) => new m.Vector3().fromArray(u))), this.pathLength = this.path.getLength(), this.texture = h.formatTexture(t.texture);
85
- const { radius: s, tubularSegments: a, radialSegments: r } = this.geometryConfig, n = h.formatTexture(t.texture);
163
+ n(this, "uPreMeter", 1);
164
+ t.geometryConfig && (this.geometryConfig = y(y({}, this.geometryConfig), t.geometryConfig)), this.customID = t.id || this.uuid, this.pathPoints = t.path, this.path = h.calculatePath(t.path.map((s) => new u.Vector3().fromArray(s))), this.pathLength = this.path.getLength(), this.texture = h.formatTexture(t.texture);
165
+ const { radius: m, tubularSegments: o, radialSegments: e } = this.geometryConfig, a = h.formatTexture(t.texture);
86
166
  this.geometry = h.formatGeometryUV(
87
- new m.TubeBufferGeometry(this.path, a, s, r),
167
+ new u.TubeBufferGeometry(this.path, o, m, e),
88
168
  this.pathLength,
89
169
  this.uPreMeter
90
- ), this.material = new m.ShaderMaterial({
170
+ ), this.material = new u.ShaderMaterial({
91
171
  uniforms: {
92
172
  opacity: { value: 1 },
93
173
  uOffset: { value: 0 },
94
174
  vOffset: { value: 0 },
95
175
  envMap: {
96
- value: n
176
+ value: a
97
177
  }
98
178
  },
99
179
  transparent: !0,
100
180
  vertexShader: C,
101
- fragmentShader: i
181
+ fragmentShader: r
102
182
  });
103
183
  }
104
184
  /** 根据控制点数量计算管道路径
@@ -106,13 +186,13 @@ class h extends m.Mesh {
106
186
  * @description 两个控制点使用直线路径,多个控制点使用贝塞尔路径
107
187
  */
108
188
  static calculatePath(t) {
109
- return t.length === 2 ? new m.LineCurve3(t[0], t[1]) : new x(t);
189
+ return t.length === 2 ? new u.LineCurve3(t[0], t[1]) : new x(t);
110
190
  }
111
- static formatGeometryUV(t, i, s) {
112
- const a = t.getAttribute("uv");
113
- for (let r = 0; r < a.count; r++) {
114
- const n = a.getX(r) * i * s;
115
- a.setX(r, n);
191
+ static formatGeometryUV(t, r, m) {
192
+ const o = t.getAttribute("uv");
193
+ for (let e = 0; e < o.count; e++) {
194
+ const a = o.getX(e) * r * m;
195
+ o.setX(e, a);
116
196
  }
117
197
  return t;
118
198
  }
@@ -120,34 +200,34 @@ class h extends m.Mesh {
120
200
  * 管道的 Texture 需要满足一定的要求,需要使用 formatTexture 先 format
121
201
  */
122
202
  static formatTexture(t) {
123
- return t.wrapS = m.RepeatWrapping, t.wrapT = m.RepeatWrapping, t;
203
+ return t.wrapS = u.RepeatWrapping, t.wrapT = u.RepeatWrapping, t;
124
204
  }
125
205
  hide(t) {
126
206
  return l(this, null, function* () {
127
- var a;
128
- (a = this.opacityAnime) == null || a.dispose();
129
- const i = 0;
207
+ var o;
208
+ (o = this.opacityAnime) == null || o.dispose();
209
+ const r = 0;
130
210
  if (typeof (t == null ? void 0 : t.duration) != "number")
131
- return this.setOpacity(i);
132
- const s = this.material.uniforms.opacity.value;
133
- return s === i ? !0 : new Promise((r) => {
134
- this.opacityAnime = new g({ progress: s }).to({ progress: i }).onUpdate(({ progress: n }) => this.setOpacity(n)).onComplete(() => r(!0)).onDispose(() => {
135
- this.setOpacity(i), r(!1);
211
+ return this.setOpacity(r);
212
+ const m = this.material.uniforms.opacity.value;
213
+ return m === r ? !0 : new Promise((e) => {
214
+ this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => e(!0)).onDispose(() => {
215
+ this.setOpacity(r), e(!1);
136
216
  }).play();
137
217
  });
138
218
  });
139
219
  }
140
220
  show(t) {
141
221
  return l(this, null, function* () {
142
- var a;
143
- (a = this.opacityAnime) == null || a.dispose();
144
- const i = 1;
222
+ var o;
223
+ (o = this.opacityAnime) == null || o.dispose();
224
+ const r = 1;
145
225
  if (typeof (t == null ? void 0 : t.duration) != "number")
146
- return this.setOpacity(i);
147
- const s = this.material.uniforms.opacity.value;
148
- return new Promise((r) => {
149
- this.opacityAnime = new g({ progress: s }).to({ progress: i }).onUpdate(({ progress: n }) => this.setOpacity(n)).onComplete(() => r(!0)).onDispose(() => {
150
- this.setOpacity(i), r(!1);
226
+ return this.setOpacity(r);
227
+ const m = this.material.uniforms.opacity.value;
228
+ return new Promise((e) => {
229
+ this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => e(!0)).onDispose(() => {
230
+ this.setOpacity(r), e(!1);
151
231
  }).play();
152
232
  });
153
233
  });
@@ -1,4 +1,4 @@
1
- import type { LineStyle } from '../utils/color';
1
+ import type { LineStyle } from '../typings/style';
2
2
  import type { PointsData } from '../utils/data';
3
3
  import type { ColoredMeshStyle } from '../utils/three/ColoredMesh';
4
4
  import { PolygonWithEdgeMesh } from './PolygonWithEdge';
@@ -1,7 +1,7 @@
1
1
  import { IObject3D } from '../../shared-utils/three/IObject3D';
2
2
  import { type AnyPositions, type AnyPosition } from '../../shared-utils/positionToVector3';
3
3
  import type * as THREE from 'three';
4
- import type { LineStyle } from '../utils/color';
4
+ import type { LineStyle } from '../typings/style';
5
5
  import { RectangleWithEdgeMesh } from './RectangleWithEdge';
6
6
  import { RectangleMesh } from './Rectangle';
7
7
  import type { PointsData } from '../utils/data';
@@ -1,30 +1,31 @@
1
1
  var d = Object.defineProperty;
2
2
  var p = (e, i, t) => i in e ? d(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
- var n = (e, i, t) => (p(e, typeof i != "symbol" ? i + "" : i, t), t);
4
- import { IObject3D as a } from "../../shared-utils/three/IObject3D.js";
3
+ var s = (e, i, t) => (p(e, typeof i != "symbol" ? i + "" : i, t), t);
4
+ import { IObject3D as m } from "../../shared-utils/three/IObject3D.js";
5
5
  import { anyPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
6
6
  import "three";
7
7
  import "hammerjs";
8
8
  import "three/examples/jsm/renderers/CSS3DRenderer";
9
9
  import "@realsee/five/line";
10
+ import "../utils/Modules/Global.js";
10
11
  import "../../shared-utils/three/THREESphere.js";
11
12
  import "animejs";
12
13
  import { notNil as r } from "../../shared-utils/isNil.js";
13
14
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
14
15
  import { RectangleWithEdgeMesh as P } from "./RectangleWithEdge.js";
15
- import { RectangleMesh as m } from "./Rectangle.js";
16
- class w extends a {
16
+ import { RectangleMesh as a } from "./Rectangle.js";
17
+ class H extends m {
17
18
  constructor(t) {
18
19
  super();
19
- n(this, "name", "BoxMesh");
20
- n(this, "bottomPlane");
21
- n(this, "topPlane");
22
- n(this, "heightPoint");
23
- n(this, "edgePlanes", []);
20
+ s(this, "name", "BoxMesh");
21
+ s(this, "bottomPlane");
22
+ s(this, "topPlane");
23
+ s(this, "heightPoint");
24
+ s(this, "edgePlanes", []);
24
25
  this.bottomPlane = new P(t), this.topPlane = new P(t), this.add(this.bottomPlane), t != null && t.points && this.setPoints(t);
25
26
  }
26
27
  get planes() {
27
- return this.children.filter((t) => t instanceof m);
28
+ return this.children.filter((t) => t instanceof a);
28
29
  }
29
30
  get color() {
30
31
  var t;
@@ -62,8 +63,8 @@ class w extends a {
62
63
  return;
63
64
  const o = c(t);
64
65
  this.heightPoint = o, this.addIfNotExists(this.topPlane);
65
- const h = this.bottomPlane.projectPoint(o), s = o.clone().sub(h), l = this.bottomPlane.points.map((g) => g.clone().add(s));
66
- this.topPlane.setPoints(l), this.up.copy(s.clone().normalize()), this.setEdgePlanes();
66
+ const h = this.bottomPlane.projectPoint(o), n = o.clone().sub(h), l = this.bottomPlane.points.map((g) => g.clone().add(n));
67
+ this.topPlane.setPoints(l), this.up.copy(n.clone().normalize()), this.setEdgePlanes();
67
68
  }
68
69
  setEdgePlanes() {
69
70
  for (let t = 0; t < 4; t++) {
@@ -75,8 +76,8 @@ class w extends a {
75
76
  occlusionVisibility: this.occlusionVisibility,
76
77
  occlusionMode: this.occlusionMode
77
78
  }), o = this.edgePlanes[t]);
78
- const h = this.topPlane.sortedPoint, s = this.bottomPlane.sortedPoint, l = t === 3 ? 0 : t + 1;
79
- o.setPoints([h[t], s[l], s[t]]), this.addIfNotExists(o);
79
+ const h = this.topPlane.sortedPoint, n = this.bottomPlane.sortedPoint, l = t === 3 ? 0 : t + 1;
80
+ o.setPoints([h[t], n[l], n[t]]), o.line.setPoints([h[t], n[t]]), this.addIfNotExists(o);
80
81
  }
81
82
  }
82
83
  setStyle(t) {
@@ -90,5 +91,5 @@ class w extends a {
90
91
  }
91
92
  }
92
93
  export {
93
- w as BoxMesh
94
+ H as BoxMesh
94
95
  };
@@ -1,5 +1,5 @@
1
1
  import * as THREE from 'three';
2
- import { type OcclusionStyle } from '../utils/color';
2
+ import { type OcclusionStyle } from '../typings/style';
3
3
  import ColoredMesh, { type ColoredMeshStyle } from '../utils/three/ColoredMesh';
4
4
  import { type AnyPosition } from '../../shared-utils/positionToVector3';
5
5
  export type CircleStyle = ColoredMeshStyle & OcclusionStyle;
@@ -2,7 +2,7 @@ var g = Object.defineProperty;
2
2
  var c = (i, e, t) => e in i ? g(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var o = (i, e, t) => (c(i, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import * as d from "three";
5
- import { DEFAULT_HIGHLIGHT_OPACITY as u } from "../utils/color.js";
5
+ import { DEFAULT_HIGHLIGHT_OPACITY as u } from "../typings/style.js";
6
6
  import { radiusToSegments as y } from "../utils/radiusToSegments.js";
7
7
  import { ColoredMesh as f } from "../utils/three/ColoredMesh.js";
8
8
  import { anyPositionToVector3 as s } from "../../shared-utils/positionToVector3.js";
@@ -1,4 +1,4 @@
1
- import type { LineStyle } from '../utils/color';
1
+ import type { LineStyle } from '../typings/style';
2
2
  import { CircleMesh, type CircleData, type CircleStyle } from './Circle';
3
3
  export type CircleWithEdgeMeshStyle = CircleStyle & LineStyle;
4
4
  export declare class CircleWithEdgeMesh extends CircleMesh {
@@ -14,17 +14,18 @@ import { IObject3D as f } from "../../shared-utils/three/IObject3D.js";
14
14
  import * as h from "three";
15
15
  import "hammerjs";
16
16
  import "three/examples/jsm/renderers/CSS3DRenderer";
17
- import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../utils/color.js";
17
+ import { DEFAULT_HIGHLIGHT_OPACITY as M } from "../typings/style.js";
18
18
  import "@realsee/five/line";
19
19
  import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
20
+ import "../utils/Modules/Global.js";
20
21
  import "../../shared-utils/three/THREESphere.js";
21
22
  import "animejs";
22
23
  import { notNil as g } from "../../shared-utils/isNil.js";
23
24
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
24
- import { CircleWithEdgeMesh as C } from "./CircleWithEdge.js";
25
+ import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
25
26
  import { radiusToSegments as y } from "../utils/radiusToSegments.js";
26
27
  import { ColoredMesh as a } from "../utils/three/ColoredMesh.js";
27
- class z extends f {
28
+ class A extends f {
28
29
  constructor(t) {
29
30
  super();
30
31
  o(this, "bottomCircle");
@@ -33,7 +34,7 @@ class z extends f {
33
34
  o(this, "opacityBeforeHighlight");
34
35
  o(this, "highlighted", !1);
35
36
  o(this, "params");
36
- this.params = t, this.bottomCircle = new C(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new C(t), this.topCircle.name = "topCircle", this.edgeMesh = new a(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
37
+ this.params = t, this.bottomCircle = new m(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new m(t), this.topCircle.name = "topCircle", this.edgeMesh = new a(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
37
38
  }
38
39
  get bottomCenter() {
39
40
  return this.bottomCircle.center;
@@ -51,8 +52,8 @@ class z extends f {
51
52
  return this.bottomCircle.color;
52
53
  }
53
54
  setPoints(t) {
54
- const r = d(t.topCenter), s = d(t.bottomCenter), m = r.clone().sub(s).normalize();
55
- this.bottomCircle.setPoints({ center: s, normal: m, radius: t.radius }), this.setTopCenter(r), this.needsRender = !0;
55
+ const r = d(t.topCenter), s = d(t.bottomCenter), C = r.clone().sub(s).normalize();
56
+ this.bottomCircle.setPoints({ center: s, normal: C, radius: t.radius }), this.setTopCenter(r), this.needsRender = !0;
56
57
  }
57
58
  setTopCenter(t) {
58
59
  this.addIfNotExists(this.topCircle), this.topCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
@@ -85,5 +86,5 @@ class z extends f {
85
86
  }
86
87
  }
87
88
  export {
88
- z as CylinderMesh
89
+ A as CylinderMesh
89
90
  };
@@ -1,13 +1,16 @@
1
1
  import * as THREE from 'three';
2
- import { type Color, type OcclusionStyle, type LineStyle } from '../utils/color';
2
+ import { type Color, type OcclusionStyle, type LineStyle } from '../typings/style';
3
3
  import { LineGeometry, LineMaterial, THREE_Line2 } from '../../shared-utils/five/FiveLine';
4
4
  import { type AnyPositions } from '../../shared-utils/positionToVector3';
5
5
  import { IObject3D } from '../../shared-utils/three/IObject3D';
6
6
  import type { Merge } from 'type-fest';
7
7
  import type { PointsData } from '../utils/data';
8
+ import { LightTag } from '../../shared-utils/tag';
8
9
  export type LineMeshStyle = LineStyle & {
9
10
  dashed?: boolean;
10
- } & OcclusionStyle;
11
+ } & OcclusionStyle & {
12
+ lengthEnable?: boolean;
13
+ };
11
14
  export type LineData = PointsData;
12
15
  export declare class LineMaterial2 extends LineMaterial {
13
16
  get three_color(): Color;
@@ -28,6 +31,8 @@ export declare class THREE_Line3 extends THREE_Line2 {
28
31
  export declare class LineMesh extends IObject3D {
29
32
  name: string;
30
33
  points: THREE.Vector3[];
34
+ lengthDoms: LightTag[];
35
+ get style(): LineMeshStyle;
31
36
  get lineWidth(): number;
32
37
  get color(): THREE.Color;
33
38
  get dashed(): boolean;
@@ -44,4 +49,5 @@ export declare class LineMesh extends IObject3D {
44
49
  setStyle(params: Partial<LineMeshStyle>): void;
45
50
  highlight(): void;
46
51
  unhighlight(): void;
52
+ updateLengthItems(): void;
47
53
  }