@realsee/dnalogel 3.47.13 → 3.47.15

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 (101) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  3. package/dist/Sculpt/Meshes/Line.d.ts +1 -0
  4. package/dist/Sculpt/Meshes/Polygon.d.ts +2 -1
  5. package/dist/index.cjs.js +53 -53
  6. package/dist/index.js +18650 -18640
  7. package/dist/index.umd.js +47 -47
  8. package/libs/AreaMakerPlugin/Controller.js +78 -150
  9. package/libs/AreaMakerPlugin/index.js +3 -75
  10. package/libs/AreaMakerPlugin/utils/Item.js +111 -185
  11. package/libs/CSS3DRenderPlugin/Controller.js +29 -86
  12. package/libs/CSS3DRenderPlugin/index.js +12 -69
  13. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +58 -127
  14. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +113 -174
  15. package/libs/CruisePlugin/BaseController.js +50 -122
  16. package/libs/CruisePlugin/Move.js +21 -74
  17. package/libs/CruisePlugin/Work.js +46 -99
  18. package/libs/CruisePlugin/index.js +26 -79
  19. package/libs/CurrentPanoImagePlugin/Controller.js +104 -176
  20. package/libs/CurrentPanoImagePlugin/index.js +4 -76
  21. package/libs/GuideLinePlugin/Controller.js +26 -79
  22. package/libs/GuideLinePlugin/GuideLineItem.js +24 -77
  23. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -3
  24. package/libs/GuideLinePlugin/GuideLineModeItem.js +22 -75
  25. package/libs/GuideLinePlugin/index.js +26 -79
  26. package/libs/ModelMakerPlugin/Controller.js +83 -139
  27. package/libs/ModelMakerPlugin/index.js +16 -72
  28. package/libs/ModelTVVideoPlugin/Plugin.js +48 -105
  29. package/libs/ModelTVVideoPlugin/index.js +7 -64
  30. package/libs/Object3DHelperPlugin/Controller.js +32 -56
  31. package/libs/Object3DHelperPlugin/index.js +12 -35
  32. package/libs/PanoCompassPlugin/Controller.js +37 -93
  33. package/libs/PanoCompassPlugin/index.js +11 -67
  34. package/libs/PanoDoorLabelPlugin/BaseController.js +25 -97
  35. package/libs/PanoDoorLabelPlugin/Controller.js +115 -187
  36. package/libs/PanoDoorLabelPlugin/index.js +4 -76
  37. package/libs/PanoMeasurePlugin/Components/Controller0.js +83 -128
  38. package/libs/PanoMeasurePlugin/Components/Controller1.js +96 -141
  39. package/libs/PanoMeasurePlugin/Controller/EditController.js +66 -111
  40. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -121
  41. package/libs/PanoMeasurePlugin/Controller/index.js +59 -101
  42. package/libs/PanoMeasurePlugin/Model/area.js +21 -91
  43. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -73
  44. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +27 -72
  45. package/libs/PanoMeasurePlugin/index.js +25 -67
  46. package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +17 -89
  47. package/libs/PanoSpatialTagPlugin/Plugin.js +106 -163
  48. package/libs/PanoSpatialTagPlugin/index.js +5 -62
  49. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +67 -141
  50. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +208 -281
  51. package/libs/PanoTagPlugin/Components/Tag/index.js +180 -251
  52. package/libs/PanoTagPlugin/Components/TagContainer.js +80 -151
  53. package/libs/PanoTagPlugin/Components/TagItem.js +67 -138
  54. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +61 -132
  55. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +28 -99
  56. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +30 -101
  57. package/libs/PanoTagPlugin/controller/Tag/PointTag.js +36 -107
  58. package/libs/PanoTagPlugin/controller/TagRender.js +68 -121
  59. package/libs/PanoTagPlugin/controller/TagUtil.js +79 -132
  60. package/libs/PanoTagPlugin/controller/index.js +55 -108
  61. package/libs/PanoTagPlugin/index.js +31 -84
  62. package/libs/PanoTagPlugin/utils/requestIdleCallback.d.ts +1 -1
  63. package/libs/PanoTagPlugin/utils/requestIdleCallback.js +5 -13
  64. package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +30 -104
  65. package/libs/PanoVideoPlugin/Controller.js +64 -136
  66. package/libs/PanoVideoPlugin/VideoMeshController.js +74 -148
  67. package/libs/PanoVideoPlugin/index.js +8 -80
  68. package/libs/PipelinePlugin/Controller.js +128 -199
  69. package/libs/PipelinePlugin/index.js +5 -76
  70. package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +17 -91
  71. package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -88
  72. package/libs/PipelinePlugin/utils/Objects/Pipe.js +56 -130
  73. package/libs/Sculpt/Meshes/Box.js +5 -6
  74. package/libs/Sculpt/Meshes/Cylinder.js +2 -3
  75. package/libs/Sculpt/Meshes/Line.d.ts +1 -0
  76. package/libs/Sculpt/Meshes/Line.js +50 -41
  77. package/libs/Sculpt/Meshes/Point.js +9 -10
  78. package/libs/Sculpt/Meshes/Polygon.d.ts +2 -1
  79. package/libs/Sculpt/Meshes/Polygon.js +47 -37
  80. package/libs/Sculpt/Meshes/Polyline.js +18 -16
  81. package/libs/Sculpt/Meshes/Rectangle.js +3 -4
  82. package/libs/Sculpt/Objects/Line/Editor.js +2 -3
  83. package/libs/Sculpt/Objects/Rectangle/index.js +1 -1
  84. package/libs/Sculpt/utils/removeAllTag.js +4 -4
  85. package/libs/Sculpt/utils/three/ColoredMesh.js +3 -4
  86. package/libs/base/BasePlugin.js +3 -4
  87. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +59 -128
  88. package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -75
  89. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +59 -129
  90. package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -75
  91. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +62 -134
  92. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -76
  93. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +81 -151
  94. package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -75
  95. package/libs/floorplan/index.js +0 -1
  96. package/libs/index.js +62 -62
  97. package/libs/shared-utils/five/index.js +2 -3
  98. package/libs/shared-utils/five/lookObject.js +17 -18
  99. package/libs/shared-utils/logger.js +1 -1
  100. package/libs/shared-utils/three/index.js +0 -1
  101. package/package.json +1 -1
@@ -1,12 +1,11 @@
1
1
  var v = Object.defineProperty;
2
- var u = (r, o, t) => o in r ? v(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
3
- var m = (r, o, t) => (u(r, typeof o != "symbol" ? o + "" : o, t), t);
2
+ var u = (o, e, t) => e in o ? v(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var r = (o, e, t) => (u(o, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import "three";
5
5
  import "hammerjs";
6
6
  import "three/examples/jsm/renderers/CSS3DRenderer";
7
7
  import "@realsee/five/line";
8
8
  import "../../../shared-utils/tag.js";
9
- import "../../../Sculpt/utils/Modules/Global.js";
10
9
  import "../../../shared-utils/three/THREESphere.js";
11
10
  import "animejs";
12
11
  import { requestAnimationFrameInterval as c } from "../../../shared-utils/animationFrame/index.js";
@@ -20,80 +19,7 @@ import "../../../shared-utils/Subscribe.js";
20
19
  import "../../../shared-utils/Utils/WorkUtil.js";
21
20
  import "../../../shared-utils/five/transformPosition.js";
22
21
  import "../../../shared-utils/three/temp.js";
23
- import "../../../Sculpt/utils/Modules/Cursor.js";
24
- import "../../../Object3DHelperPlugin/Controller.js";
25
- import "../../../base/BasePlugin.js";
26
- import "../../../shared-utils/url/absoluteUrl.js";
27
22
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
- import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
29
- import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
30
- import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
31
- import "../../../shared-utils/three/IObject3D.js";
32
- import "../../../shared-utils/three/boundingBox.js";
33
- import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
34
- import "../../../shared-utils/Object3DHelper/utils/direction.js";
35
- import "../../../shared-utils/Object3DHelper/Constants/color.js";
36
- import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
37
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
- import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
41
- import "../../../CSS3DRenderPlugin/utils/even.js";
42
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
43
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
44
- import "../../../shared-utils/three/centerPoint.js";
45
- import "../../../shared-utils/three/getObjectVisible.js";
46
- import "../../../shared-utils/isNil.js";
47
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
48
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
49
- import "../../../shared-utils/util.js";
50
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
51
- import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
52
- import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
53
- import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
54
- import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
55
- import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
56
- import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
57
- import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
58
- import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
59
- import "../../../shared-utils/threex/domevents/index.js";
60
- import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
61
- import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
62
- import "../../../Sculpt/utils/three/rayOnLine.js";
63
- import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
64
- import "../../../shared-utils/Object3DHelper/index.js";
65
- import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
66
- import "../../../shared-utils/math/rad2Deg.js";
67
- import "../../../shared-utils/math/deg2Rad.js";
68
- import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
69
- import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
70
- import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
71
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
72
- import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
73
- import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
74
- import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
75
- import "../../../shared-utils/five/fiveModelLoad.js";
76
- import "../../../shared-utils/five/FiveDomEvents.js";
77
- import "../../../shared-utils/five/calculateThreeMouse.js";
78
- import "../../../shared-utils/three/THREERaycaster.js";
79
- import "../../../shared-utils/three/PointSelector/index.js";
80
- import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
81
- import "../../../shared-utils/three/Magnifier.js";
82
- import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
83
- import "../../../shared-utils/three/Assets/index.js";
84
- import "../../../shared-utils/three/PointSelector/utils/html.js";
85
- import "../../../shared-utils/five/initialCSS3DRender.js";
86
- import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
87
- import "../../../Sculpt/Meshes/Line.js";
88
- import "../../../Sculpt/typings/style.js";
89
- import "../../../shared-utils/five/FiveLine.js";
90
- import "../../../Sculpt/utils/removeAllTag.js";
91
- import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
92
- import "../../../shared-utils/three/applyObjectMatrixWorld.js";
93
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
94
- import "../../../shared-utils/isTouchDevice.js";
95
- import "../../../shared-utils/five/getPosition.js";
96
- import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
97
23
  import "../../../shared-utils/animationFrame/BetterTween.js";
98
24
  import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
99
25
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
@@ -117,19 +43,19 @@ const d = (
117
43
  }
118
44
  `
119
45
  );
120
- class ni extends h {
46
+ class N extends h {
121
47
  constructor(t) {
122
48
  super(t, d);
123
49
  /** 初始状态下,当前水管内的水流在整体管道上的位移
124
50
  * @description 因为水管是不连续的,而要达到水流的连续效果,需要用过贴图的 uOffset 控制每根水管的初始状态
125
51
  */
126
- m(this, "initialDisplacement", 0);
127
- m(this, "oldTime", (/* @__PURE__ */ new Date()).getTime());
52
+ r(this, "initialDisplacement", 0);
53
+ r(this, "oldTime", (/* @__PURE__ */ new Date()).getTime());
128
54
  /** 横向流动速度:m / s */
129
- m(this, "flowSpeed", 0.6);
55
+ r(this, "flowSpeed", 0.6);
130
56
  /** 纵向旋转速度:deg / s */
131
- m(this, "rotateSpeed", 0);
132
- m(this, "flowAnimationDisposer", () => {
57
+ r(this, "rotateSpeed", 0);
58
+ r(this, "flowAnimationDisposer", () => {
133
59
  });
134
60
  }
135
61
  setInitialDisplacement(t, i = "backward") {
@@ -148,20 +74,20 @@ class ni extends h {
148
74
  * @param distance 位移:米 * 方向
149
75
  */
150
76
  moveForwardFromInitialOffset(t) {
151
- const i = t * -1, p = this.initialDisplacement + i;
152
- this.moveFromOrigin(p);
77
+ const i = t * -1, m = this.initialDisplacement + i;
78
+ this.moveFromOrigin(m);
153
79
  }
154
80
  flow() {
155
81
  this.flowAnimationDisposer(), this.oldTime = (/* @__PURE__ */ new Date()).getTime();
156
82
  let t = 0, i = 0;
157
- const p = c(() => {
158
- const e = (/* @__PURE__ */ new Date()).getTime(), n = e - this.oldTime, s = this.flowSpeed * (n / 1e3), a = this.rotateSpeed * (n / 1e3);
159
- t = t + s, i = i + a;
160
- const l = 1 / 360, f = i * l;
161
- this.material.uniforms.vOffset.value = f, this.moveForwardFromInitialOffset(t), this.oldTime = e;
83
+ const m = c(() => {
84
+ const n = (/* @__PURE__ */ new Date()).getTime(), s = n - this.oldTime, a = this.flowSpeed * (s / 1e3), l = this.rotateSpeed * (s / 1e3);
85
+ t = t + a, i = i + l;
86
+ const p = 1 / 360, f = i * p;
87
+ this.material.uniforms.vOffset.value = f, this.moveForwardFromInitialOffset(t), this.oldTime = n;
162
88
  });
163
89
  this.flowAnimationDisposer = function() {
164
- p(), this.moveForwardFromInitialOffset(0);
90
+ m(), this.moveForwardFromInitialOffset(0);
165
91
  };
166
92
  }
167
93
  stopFlow() {
@@ -175,5 +101,5 @@ class ni extends h {
175
101
  }
176
102
  }
177
103
  export {
178
- ni as ObjectFlowPipe
104
+ N as ObjectFlowPipe
179
105
  };
@@ -1,15 +1,14 @@
1
- var s = Object.defineProperty;
2
- var n = (r, t, i) => t in r ? s(r, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[t] = i;
3
- var p = (r, t, i) => (n(r, typeof t != "symbol" ? t + "" : t, i), i);
1
+ var p = Object.defineProperty;
2
+ var n = (e, t, i) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var h = (e, t, i) => (n(e, typeof t != "symbol" ? t + "" : t, i), i);
4
4
  import "three";
5
5
  import "hammerjs";
6
6
  import "three/examples/jsm/renderers/CSS3DRenderer";
7
7
  import "@realsee/five/line";
8
8
  import "../../../shared-utils/tag.js";
9
- import "../../../Sculpt/utils/Modules/Global.js";
10
9
  import "../../../shared-utils/three/THREESphere.js";
11
10
  import "animejs";
12
- import { tweenProgress as h } from "../../../shared-utils/animationFrame/BetterTween.js";
11
+ import { tweenProgress as o } from "../../../shared-utils/animationFrame/BetterTween.js";
13
12
  import { ObjectPipe as a } from "./Pipe.js";
14
13
  import "../../../shared-utils/positionToVector3.js";
15
14
  import "../../../shared-utils/five/vector3ToScreen.js";
@@ -20,99 +19,26 @@ import "../../../shared-utils/Subscribe.js";
20
19
  import "../../../shared-utils/Utils/WorkUtil.js";
21
20
  import "../../../shared-utils/five/transformPosition.js";
22
21
  import "../../../shared-utils/three/temp.js";
23
- import "../../../Sculpt/utils/Modules/Cursor.js";
24
- import "../../../Object3DHelperPlugin/Controller.js";
25
- import "../../../base/BasePlugin.js";
26
- import "../../../shared-utils/url/absoluteUrl.js";
27
22
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
28
- import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
29
- import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
30
- import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
31
- import "../../../shared-utils/three/IObject3D.js";
32
- import "../../../shared-utils/three/boundingBox.js";
33
- import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
34
- import "../../../shared-utils/Object3DHelper/utils/direction.js";
35
- import "../../../shared-utils/Object3DHelper/Constants/color.js";
36
- import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
37
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
- import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
40
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
41
- import "../../../CSS3DRenderPlugin/utils/even.js";
42
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
43
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
44
- import "../../../shared-utils/three/centerPoint.js";
45
- import "../../../shared-utils/three/getObjectVisible.js";
46
- import "../../../shared-utils/isNil.js";
47
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
48
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
49
- import "../../../shared-utils/util.js";
50
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
51
- import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
52
- import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
53
- import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
54
- import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
55
- import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
56
- import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
57
- import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
58
- import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
59
- import "../../../shared-utils/threex/domevents/index.js";
60
- import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
61
- import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
62
- import "../../../Sculpt/utils/three/rayOnLine.js";
63
- import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
64
- import "../../../shared-utils/Object3DHelper/index.js";
65
- import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
66
- import "../../../shared-utils/math/rad2Deg.js";
67
- import "../../../shared-utils/math/deg2Rad.js";
68
- import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
69
- import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
70
- import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
71
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
72
- import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
73
- import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
74
- import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
75
- import "../../../shared-utils/five/fiveModelLoad.js";
76
- import "../../../shared-utils/five/FiveDomEvents.js";
77
- import "../../../shared-utils/five/calculateThreeMouse.js";
78
- import "../../../shared-utils/three/THREERaycaster.js";
79
- import "../../../shared-utils/three/PointSelector/index.js";
80
- import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
81
- import "../../../shared-utils/three/Magnifier.js";
82
- import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
83
- import "../../../shared-utils/three/Assets/index.js";
84
- import "../../../shared-utils/three/PointSelector/utils/html.js";
85
- import "../../../shared-utils/five/initialCSS3DRender.js";
86
- import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
87
- import "../../../Sculpt/Meshes/Line.js";
88
- import "../../../Sculpt/typings/style.js";
89
- import "../../../shared-utils/five/FiveLine.js";
90
- import "../../../Sculpt/utils/removeAllTag.js";
91
- import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
92
- import "../../../shared-utils/three/applyObjectMatrixWorld.js";
93
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
94
- import "../../../shared-utils/isTouchDevice.js";
95
- import "../../../shared-utils/five/getPosition.js";
96
- import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
97
23
  import "../../../shared-utils/animationFrame/index.js";
98
24
  import "../../../shared-utils/three/Extras/Curves/BezierCurve3.js";
99
25
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
100
26
  import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
101
- class rt extends a {
27
+ class D extends a {
102
28
  constructor(i) {
103
29
  super(i);
104
- p(this, "imageCount", 64);
105
- p(this, "highlightAnime");
30
+ h(this, "imageCount", 64);
31
+ h(this, "highlightAnime");
106
32
  }
107
33
  highlight(i) {
108
- const m = (i == null ? void 0 : i.duration) || 500;
109
- this.disposeAnime(), this.highlightAnime = h(m).onUpdate(({ progress: o }) => this.setOpacity(o)).yoyo(!0).repeat(1 / 0).play();
34
+ const r = (i == null ? void 0 : i.duration) || 500;
35
+ this.disposeAnime(), this.highlightAnime = o(r).onUpdate(({ progress: m }) => this.setOpacity(m)).yoyo(!0).repeat(1 / 0).play();
110
36
  }
111
37
  highlight1(i) {
112
- const m = (i == null ? void 0 : i.duration) || 2500;
113
- this.disposeAnime(), this.highlightAnime = h(m).onUpdate(({ progress: o }) => {
114
- const e = -(Math.ceil(o * this.imageCount) - 1) / this.imageCount;
115
- this.material.uniforms.vOffset.value !== e && (this.material.uniforms.vOffset.value = e, this.material.needsUpdate = !0, this.needsRender = !0);
38
+ const r = (i == null ? void 0 : i.duration) || 2500;
39
+ this.disposeAnime(), this.highlightAnime = o(r).onUpdate(({ progress: m }) => {
40
+ const s = -(Math.ceil(m * this.imageCount) - 1) / this.imageCount;
41
+ this.material.uniforms.vOffset.value !== s && (this.material.uniforms.vOffset.value = s, this.material.needsUpdate = !0, this.needsRender = !0);
116
42
  }).repeat(1 / 0).play();
117
43
  }
118
44
  disposeAnime() {
@@ -121,5 +47,5 @@ class rt extends a {
121
47
  }
122
48
  }
123
49
  export {
124
- rt as ObjectHighlightPipe
50
+ D as ObjectHighlightPipe
125
51
  };
@@ -1,37 +1,36 @@
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 = (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]);
4
+ var f = (a, e, t) => e in a ? d(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, y = (a, e) => {
5
+ for (var t in e || (e = {}))
6
+ A.call(e, t) && f(a, t, e[t]);
7
7
  if (v)
8
- for (var t of v(i))
9
- w.call(i, t) && f(p, t, i[t]);
10
- return p;
8
+ for (var t of v(e))
9
+ w.call(e, t) && f(a, t, e[t]);
10
+ return a;
11
11
  };
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 e = (s) => {
12
+ var u = (a, e, t) => (f(a, typeof e != "symbol" ? e + "" : e, t), t);
13
+ var l = (a, e, t) => new Promise((i, s) => {
14
+ var o = (p) => {
15
15
  try {
16
- a(t.next(s));
16
+ n(t.next(p));
17
17
  } catch (c) {
18
- m(c);
18
+ s(c);
19
19
  }
20
- }, o = (s) => {
20
+ }, r = (p) => {
21
21
  try {
22
- a(t.throw(s));
22
+ n(t.throw(p));
23
23
  } catch (c) {
24
- m(c);
24
+ s(c);
25
25
  }
26
- }, a = (s) => s.done ? r(s.value) : Promise.resolve(s.value).then(e, o);
27
- a((t = t.apply(p, i)).next());
26
+ }, n = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(o, r);
27
+ n((t = t.apply(a, e)).next());
28
28
  });
29
- import * as u from "three";
29
+ import * as m from "three";
30
30
  import "hammerjs";
31
31
  import "three/examples/jsm/renderers/CSS3DRenderer";
32
32
  import "@realsee/five/line";
33
33
  import "../../../shared-utils/tag.js";
34
- import "../../../Sculpt/utils/Modules/Global.js";
35
34
  import "../../../shared-utils/three/THREESphere.js";
36
35
  import "animejs";
37
36
  import { BetterTween as g } from "../../../shared-utils/animationFrame/BetterTween.js";
@@ -45,80 +44,7 @@ import "../../../shared-utils/Subscribe.js";
45
44
  import "../../../shared-utils/Utils/WorkUtil.js";
46
45
  import "../../../shared-utils/five/transformPosition.js";
47
46
  import "../../../shared-utils/three/temp.js";
48
- import "../../../Sculpt/utils/Modules/Cursor.js";
49
- import "../../../Object3DHelperPlugin/Controller.js";
50
- import "../../../base/BasePlugin.js";
51
- import "../../../shared-utils/url/absoluteUrl.js";
52
47
  import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
53
- import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
54
- import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
55
- import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
56
- import "../../../shared-utils/three/IObject3D.js";
57
- import "../../../shared-utils/three/boundingBox.js";
58
- import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
59
- import "../../../shared-utils/Object3DHelper/utils/direction.js";
60
- import "../../../shared-utils/Object3DHelper/Constants/color.js";
61
- import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
62
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
63
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
64
- import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
65
- import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
66
- import "../../../CSS3DRenderPlugin/utils/even.js";
67
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
68
- import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
69
- import "../../../shared-utils/three/centerPoint.js";
70
- import "../../../shared-utils/three/getObjectVisible.js";
71
- import "../../../shared-utils/isNil.js";
72
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
73
- import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
74
- import "../../../shared-utils/util.js";
75
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
76
- import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
77
- import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
78
- import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
79
- import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
80
- import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
81
- import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
82
- import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
83
- import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
84
- import "../../../shared-utils/threex/domevents/index.js";
85
- import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
86
- import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
87
- import "../../../Sculpt/utils/three/rayOnLine.js";
88
- import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
89
- import "../../../shared-utils/Object3DHelper/index.js";
90
- import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
91
- import "../../../shared-utils/math/rad2Deg.js";
92
- import "../../../shared-utils/math/deg2Rad.js";
93
- import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
94
- import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
95
- import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
96
- import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
97
- import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
98
- import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
99
- import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
100
- import "../../../shared-utils/five/fiveModelLoad.js";
101
- import "../../../shared-utils/five/FiveDomEvents.js";
102
- import "../../../shared-utils/five/calculateThreeMouse.js";
103
- import "../../../shared-utils/three/THREERaycaster.js";
104
- import "../../../shared-utils/three/PointSelector/index.js";
105
- import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
106
- import "../../../shared-utils/three/Magnifier.js";
107
- import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
108
- import "../../../shared-utils/three/Assets/index.js";
109
- import "../../../shared-utils/three/PointSelector/utils/html.js";
110
- import "../../../shared-utils/five/initialCSS3DRender.js";
111
- import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
112
- import "../../../Sculpt/Meshes/Line.js";
113
- import "../../../Sculpt/typings/style.js";
114
- import "../../../shared-utils/five/FiveLine.js";
115
- import "../../../Sculpt/utils/removeAllTag.js";
116
- import "../../../Sculpt/utils/Meshes/getLengthHTML.js";
117
- import "../../../shared-utils/three/applyObjectMatrixWorld.js";
118
- import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
119
- import "../../../shared-utils/isTouchDevice.js";
120
- import "../../../shared-utils/five/getPosition.js";
121
- import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
122
48
  import "../../../shared-utils/animationFrame/index.js";
123
49
  import "../../../shared-utils/three/Extras/Core/Interpolations.js";
124
50
  import "../../../shared-utils/three/Extras/Core/Interpolations2.js";
@@ -149,40 +75,40 @@ const C = (
149
75
  }
150
76
  `
151
77
  );
152
- class h extends u.Mesh {
153
- constructor(t, r = O) {
78
+ class h extends m.Mesh {
79
+ constructor(t, i = O) {
154
80
  super();
155
- n(this, "geometryConfig", {
81
+ u(this, "geometryConfig", {
156
82
  radius: 1.5 / 100,
157
83
  tubularSegments: 20,
158
84
  radialSegments: 8
159
85
  });
160
- n(this, "customID");
161
- n(this, "path");
162
- n(this, "pathLength", 0);
163
- n(this, "pathPoints");
164
- n(this, "texture");
165
- n(this, "opacityAnime");
86
+ u(this, "customID");
87
+ u(this, "path");
88
+ u(this, "pathLength", 0);
89
+ u(this, "pathPoints");
90
+ u(this, "texture");
91
+ u(this, "opacityAnime");
166
92
  /** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
167
- n(this, "uPreMeter", 1);
168
- 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);
169
- const { radius: m, tubularSegments: e, radialSegments: o } = this.geometryConfig, a = h.formatTexture(t.texture);
93
+ u(this, "uPreMeter", 1);
94
+ 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((p) => new m.Vector3().fromArray(p))), this.pathLength = this.path.getLength(), this.texture = h.formatTexture(t.texture);
95
+ const { radius: s, tubularSegments: o, radialSegments: r } = this.geometryConfig, n = h.formatTexture(t.texture);
170
96
  this.geometry = h.formatGeometryUV(
171
- new u.TubeBufferGeometry(this.path, e, m, o),
97
+ new m.TubeBufferGeometry(this.path, o, s, r),
172
98
  this.pathLength,
173
99
  this.uPreMeter
174
- ), this.material = new u.ShaderMaterial({
100
+ ), this.material = new m.ShaderMaterial({
175
101
  uniforms: {
176
102
  opacity: { value: 1 },
177
103
  uOffset: { value: 0 },
178
104
  vOffset: { value: 0 },
179
105
  envMap: {
180
- value: a
106
+ value: n
181
107
  }
182
108
  },
183
109
  transparent: !0,
184
110
  vertexShader: C,
185
- fragmentShader: r
111
+ fragmentShader: i
186
112
  });
187
113
  }
188
114
  /** 根据控制点数量计算管道路径
@@ -190,13 +116,13 @@ class h extends u.Mesh {
190
116
  * @description 两个控制点使用直线路径,多个控制点使用贝塞尔路径
191
117
  */
192
118
  static calculatePath(t) {
193
- return t.length === 2 ? new u.LineCurve3(t[0], t[1]) : new x(t);
119
+ return t.length === 2 ? new m.LineCurve3(t[0], t[1]) : new x(t);
194
120
  }
195
- static formatGeometryUV(t, r, m) {
196
- const e = t.getAttribute("uv");
197
- for (let o = 0; o < e.count; o++) {
198
- const a = e.getX(o) * r * m;
199
- e.setX(o, a);
121
+ static formatGeometryUV(t, i, s) {
122
+ const o = t.getAttribute("uv");
123
+ for (let r = 0; r < o.count; r++) {
124
+ const n = o.getX(r) * i * s;
125
+ o.setX(r, n);
200
126
  }
201
127
  return t;
202
128
  }
@@ -204,34 +130,34 @@ class h extends u.Mesh {
204
130
  * 管道的 Texture 需要满足一定的要求,需要使用 formatTexture 先 format
205
131
  */
206
132
  static formatTexture(t) {
207
- return t.wrapS = u.RepeatWrapping, t.wrapT = u.RepeatWrapping, t;
133
+ return t.wrapS = m.RepeatWrapping, t.wrapT = m.RepeatWrapping, t;
208
134
  }
209
135
  hide(t) {
210
136
  return l(this, null, function* () {
211
- var e;
212
- (e = this.opacityAnime) == null || e.dispose();
213
- const r = 0;
137
+ var o;
138
+ (o = this.opacityAnime) == null || o.dispose();
139
+ const i = 0;
214
140
  if (typeof (t == null ? void 0 : t.duration) != "number")
215
- return this.setOpacity(r);
216
- const m = this.material.uniforms.opacity.value;
217
- return m === r ? !0 : new Promise((o) => {
218
- this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => o(!0)).onDispose(() => {
219
- this.setOpacity(r), o(!1);
141
+ return this.setOpacity(i);
142
+ const s = this.material.uniforms.opacity.value;
143
+ return s === i ? !0 : new Promise((r) => {
144
+ this.opacityAnime = new g({ progress: s }).to({ progress: i }).onUpdate(({ progress: n }) => this.setOpacity(n)).onComplete(() => r(!0)).onDispose(() => {
145
+ this.setOpacity(i), r(!1);
220
146
  }).play();
221
147
  });
222
148
  });
223
149
  }
224
150
  show(t) {
225
151
  return l(this, null, function* () {
226
- var e;
227
- (e = this.opacityAnime) == null || e.dispose();
228
- const r = 1;
152
+ var o;
153
+ (o = this.opacityAnime) == null || o.dispose();
154
+ const i = 1;
229
155
  if (typeof (t == null ? void 0 : t.duration) != "number")
230
- return this.setOpacity(r);
231
- const m = this.material.uniforms.opacity.value;
232
- return new Promise((o) => {
233
- this.opacityAnime = new g({ progress: m }).to({ progress: r }).onUpdate(({ progress: a }) => this.setOpacity(a)).onComplete(() => o(!0)).onDispose(() => {
234
- this.setOpacity(r), o(!1);
156
+ return this.setOpacity(i);
157
+ const s = this.material.uniforms.opacity.value;
158
+ return new Promise((r) => {
159
+ this.opacityAnime = new g({ progress: s }).to({ progress: i }).onUpdate(({ progress: n }) => this.setOpacity(n)).onComplete(() => r(!0)).onDispose(() => {
160
+ this.setOpacity(i), r(!1);
235
161
  }).play();
236
162
  });
237
163
  });
@@ -1,21 +1,20 @@
1
1
  var p = Object.defineProperty;
2
- var m = (e, i, t) => i in e ? p(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
- var s = (e, i, t) => (m(e, typeof i != "symbol" ? i + "" : i, t), t);
4
- import { IObject3D as d } from "../../shared-utils/three/IObject3D.js";
2
+ var d = (e, i, t) => i in e ? p(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
3
+ var s = (e, i, t) => (d(e, typeof i != "symbol" ? i + "" : i, t), t);
4
+ import { IObject3D as m } from "../../shared-utils/three/IObject3D.js";
5
5
  import { anyPositionToVector3 as P } 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
10
  import "../../shared-utils/tag.js";
11
- import "../utils/Modules/Global.js";
12
11
  import "../../shared-utils/three/THREESphere.js";
13
12
  import "animejs";
14
13
  import { notNil as r } from "../../shared-utils/isNil.js";
15
14
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
16
15
  import { RectangleWithEdgeMesh as c } from "./RectangleWithEdge.js";
17
16
  import { RectangleMesh as a } from "./Rectangle.js";
18
- class N extends d {
17
+ class H extends m {
19
18
  constructor(t) {
20
19
  super();
21
20
  s(this, "name", "BoxMesh");
@@ -92,5 +91,5 @@ class N extends d {
92
91
  }
93
92
  }
94
93
  export {
95
- N as BoxMesh
94
+ H as BoxMesh
96
95
  };
@@ -18,7 +18,6 @@ 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
20
  import "../../shared-utils/tag.js";
21
- import "../utils/Modules/Global.js";
22
21
  import "../../shared-utils/three/THREESphere.js";
23
22
  import "animejs";
24
23
  import { notNil as g } from "../../shared-utils/isNil.js";
@@ -26,7 +25,7 @@ import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
26
25
  import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
27
26
  import { radiusToSegments as y } from "../utils/radiusToSegments.js";
28
27
  import { ColoredMesh as a } from "../utils/three/ColoredMesh.js";
29
- class D extends f {
28
+ class A extends f {
30
29
  constructor(t) {
31
30
  super();
32
31
  o(this, "bottomCircle");
@@ -87,5 +86,5 @@ class D extends f {
87
86
  }
88
87
  }
89
88
  export {
90
- D as CylinderMesh
89
+ A as CylinderMesh
91
90
  };
@@ -39,6 +39,7 @@ export declare class LineMesh extends IObject3D {
39
39
  get occlusionVisibility(): boolean;
40
40
  get occlusionMode(): "translucence" | "depthTest";
41
41
  protected highlighted: boolean;
42
+ private get five();
42
43
  private line;
43
44
  private backLine;
44
45
  private opacityBeforeHighlight;