@realsee/dnalogel 3.45.0 → 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.
- package/CHANGELOG.md +3 -0
- package/dist/Sculpt/Meshes/Line.d.ts +6 -1
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +29609 -29576
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +139 -82
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +140 -88
- package/libs/PanoMeasurePlugin/Components/Controller1.js +178 -126
- package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -72
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +109 -64
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +97 -45
- package/libs/PanoMeasurePlugin/index.js +76 -31
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Box.js +6 -5
- package/libs/Sculpt/Meshes/Cylinder.js +7 -6
- package/libs/Sculpt/Meshes/Line.d.ts +6 -1
- package/libs/Sculpt/Meshes/Line.js +76 -56
- package/libs/Sculpt/Meshes/Point.js +6 -5
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Objects/Line/Editor.js +11 -10
- package/libs/Sculpt/utils/three/ColoredMesh.js +14 -13
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +128 -59
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +67 -67
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
package/libs/index.js
CHANGED
|
@@ -71,28 +71,85 @@ import "./CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
71
71
|
import "hammerjs";
|
|
72
72
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
73
73
|
import "@realsee/five/line";
|
|
74
|
+
import "./Sculpt/utils/Modules/Global.js";
|
|
75
|
+
import "./Sculpt/utils/Modules/Cursor.js";
|
|
76
|
+
import "./shared-utils/five/FiveDomEvents.js";
|
|
77
|
+
import "./shared-utils/three/getObjectVisible.js";
|
|
78
|
+
import "./shared-utils/five/calculateThreeMouse.js";
|
|
79
|
+
import "./shared-utils/five/getFiveModel.js";
|
|
80
|
+
import "./shared-utils/three/THREERaycaster.js";
|
|
81
|
+
import "./shared-utils/three/PointSelector/index.js";
|
|
82
|
+
import "./shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
83
|
+
import "./shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
84
|
+
import "./shared-utils/three/Assets/index.js";
|
|
85
|
+
import "./CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
86
|
+
import "./CSS3DRenderPlugin/utils/even.js";
|
|
87
|
+
import "./shared-utils/Subscribe.js";
|
|
88
|
+
import "./CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
89
|
+
import "./shared-utils/three/centerPoint.js";
|
|
74
90
|
import "./shared-utils/three/THREESphere.js";
|
|
75
91
|
import "animejs";
|
|
92
|
+
import "./shared-utils/isNil.js";
|
|
93
|
+
import "./base/BasePlugin.js";
|
|
94
|
+
import "./shared-utils/Utils/FiveUtil.js";
|
|
95
|
+
import "./shared-utils/Utils/BaseUtil.js";
|
|
96
|
+
import "./shared-utils/Utils/WorkUtil.js";
|
|
97
|
+
import "./shared-utils/five/transformPosition.js";
|
|
76
98
|
import "./shared-utils/url/absoluteUrl.js";
|
|
77
|
-
import "./shared-utils/
|
|
78
|
-
import "./shared-utils/
|
|
99
|
+
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
100
|
+
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
101
|
+
import "./shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
102
|
+
import "./shared-utils/three/IObject3D.js";
|
|
103
|
+
import "./shared-utils/three/boundingBox.js";
|
|
104
|
+
import "./shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
105
|
+
import "./shared-utils/Object3DHelper/utils/direction.js";
|
|
106
|
+
import "./shared-utils/Object3DHelper/Constants/color.js";
|
|
107
|
+
import "./shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
79
108
|
import "./shared-utils/positionToVector3.js";
|
|
80
109
|
import "./CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
81
110
|
import "./CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
82
111
|
import "./CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
83
|
-
import "./CSS3DRenderPlugin/utils/even.js";
|
|
84
|
-
import "./shared-utils/Subscribe.js";
|
|
85
|
-
import "./CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
86
|
-
import "./CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
87
|
-
import "./shared-utils/three/centerPoint.js";
|
|
88
|
-
import "./shared-utils/three/getObjectVisible.js";
|
|
89
|
-
import "./shared-utils/isNil.js";
|
|
90
112
|
import "./CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
91
113
|
import "./CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
92
114
|
import "./shared-utils/util.js";
|
|
93
115
|
import "./CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
94
|
-
import "./shared-utils/
|
|
116
|
+
import "./shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
117
|
+
import "./shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
118
|
+
import "./shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
119
|
+
import "./shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
120
|
+
import "./shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
121
|
+
import "./shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
122
|
+
import "./shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
123
|
+
import "./shared-utils/Object3DHelper/Base/BaseController.js";
|
|
124
|
+
import "./shared-utils/threex/domevents/index.js";
|
|
125
|
+
import "./shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
126
|
+
import "./shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
127
|
+
import "./Sculpt/utils/three/rayOnLine.js";
|
|
128
|
+
import "./Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
129
|
+
import "./shared-utils/Object3DHelper/index.js";
|
|
130
|
+
import "./shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
131
|
+
import "./shared-utils/math/rad2Deg.js";
|
|
132
|
+
import "./shared-utils/math/deg2Rad.js";
|
|
133
|
+
import "./shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
134
|
+
import "./shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
135
|
+
import "./shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
136
|
+
import "./shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
137
|
+
import "./shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
138
|
+
import "./shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
139
|
+
import "./shared-utils/five/fiveModelLoad.js";
|
|
140
|
+
import "./shared-utils/three/PointSelector/utils/html.js";
|
|
141
|
+
import "./shared-utils/five/initialCSS3DRender.js";
|
|
142
|
+
import "./shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
143
|
+
import "./Sculpt/Meshes/Line.js";
|
|
144
|
+
import "./Sculpt/typings/style.js";
|
|
95
145
|
import "./shared-utils/five/FiveLine.js";
|
|
146
|
+
import "./shared-utils/tag.js";
|
|
147
|
+
import "./shared-utils/five/vector3ToScreen.js";
|
|
148
|
+
import "./CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
149
|
+
import "./shared-utils/isTouchDevice.js";
|
|
150
|
+
import "./shared-utils/five/getPosition.js";
|
|
151
|
+
import "./shared-utils/five/getRaycasterByNdcPosition.js";
|
|
152
|
+
import "./shared-utils/createLine/index.js";
|
|
96
153
|
import "./ModelRoomLabelPlugin/Controller.js";
|
|
97
154
|
import "./ModelRoomLabelPlugin/RoomLabelItems.js";
|
|
98
155
|
import "./vendor/svelte/internal/index.js";
|
|
@@ -127,7 +184,6 @@ import "./floorplan/Components/RoomHighlight/Room.js";
|
|
|
127
184
|
import "./floorplan/Components/MissingFloor.js";
|
|
128
185
|
import "./floorplan/Components/Camera.js";
|
|
129
186
|
import "./floorplan/Assets/camera.js";
|
|
130
|
-
import "./shared-utils/math/rad2Deg.js";
|
|
131
187
|
import "./floorplan/Components/Compass.js";
|
|
132
188
|
import "./floorplan/Assets/compass.js";
|
|
133
189
|
import "./floorplan/utils/formatData.js";
|
|
@@ -136,11 +192,6 @@ import "./shared-utils/filter.js";
|
|
|
136
192
|
import "./shared-utils/tap.js";
|
|
137
193
|
import "./shared-utils/getPxmm.js";
|
|
138
194
|
import "./base/BasePluginWithData.js";
|
|
139
|
-
import "./base/BasePlugin.js";
|
|
140
|
-
import "./shared-utils/Utils/FiveUtil.js";
|
|
141
|
-
import "./shared-utils/Utils/BaseUtil.js";
|
|
142
|
-
import "./shared-utils/Utils/WorkUtil.js";
|
|
143
|
-
import "./shared-utils/five/transformPosition.js";
|
|
144
195
|
import "./floorplan/utils/correctFiveState.js";
|
|
145
196
|
import "./floorplan/utils/constant.js";
|
|
146
197
|
import "./shared-utils/nearlyEqual.js";
|
|
@@ -185,7 +236,6 @@ import "./PanoMeasurePlugin/utils/dom/base.js";
|
|
|
185
236
|
import "./PanoMeasurePlugin/utils/isNDCPointInScreen.js";
|
|
186
237
|
import "./PanoMeasurePlugin/Model/area.js";
|
|
187
238
|
import "./PanoMeasurePlugin/Model/polygon.js";
|
|
188
|
-
import "./shared-utils/three/IObject3D.js";
|
|
189
239
|
import "./shared-utils/three/generatePolygonGeometry.js";
|
|
190
240
|
import "./shared-utils/three/earcut3D.js";
|
|
191
241
|
import "earcut";
|
|
@@ -193,19 +243,6 @@ import "./shared-utils/three/getNormal.js";
|
|
|
193
243
|
import "./PanoMeasurePlugin/utils/dom/areaDom.js";
|
|
194
244
|
import "./shared-utils/three/geometryUtil.js";
|
|
195
245
|
import "./PanoMeasurePlugin/utils/isIntersecting.js";
|
|
196
|
-
import "./shared-utils/three/PointSelector/index.js";
|
|
197
|
-
import "./shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
198
|
-
import "./shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
199
|
-
import "./shared-utils/three/Assets/index.js";
|
|
200
|
-
import "./shared-utils/three/PointSelector/utils/html.js";
|
|
201
|
-
import "./shared-utils/five/initialCSS3DRender.js";
|
|
202
|
-
import "./shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
203
|
-
import "./Sculpt/Meshes/Line.js";
|
|
204
|
-
import "./Sculpt/typings/style.js";
|
|
205
|
-
import "./CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
206
|
-
import "./shared-utils/isTouchDevice.js";
|
|
207
|
-
import "./shared-utils/five/getPosition.js";
|
|
208
|
-
import "./shared-utils/five/getRaycasterByNdcPosition.js";
|
|
209
246
|
import "./PanoMeasurePlugin/Modules/DeleteDom/index.js";
|
|
210
247
|
import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js";
|
|
211
248
|
import "./PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -220,7 +257,6 @@ import "./PanoMeasurePlugin/Controller/MixedController.js";
|
|
|
220
257
|
import "./PanoMeasurePlugin/Modules/rangePiece/index.js";
|
|
221
258
|
import "./shared-utils/noop.js";
|
|
222
259
|
import "./PanoMeasurePlugin/utils/mouseGroup.js";
|
|
223
|
-
import "./shared-utils/five/calculateThreeMouse.js";
|
|
224
260
|
import "./PanoMeasurePlugin/Modules/UIController/index.js";
|
|
225
261
|
import "./PanoMeasurePlugin/Modules/UIController/HTML.js";
|
|
226
262
|
import "./PanoMeasurePlugin/Modules/UIController/mobileHTML.js";
|
|
@@ -372,8 +408,6 @@ import "./CruisePlugin/utils/sleep.js";
|
|
|
372
408
|
import "./PanoTagPlugin/controller/TagUtil.js";
|
|
373
409
|
import "./PanoTagPlugin/tag.config.js";
|
|
374
410
|
import "./PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
375
|
-
import "./shared-utils/five/FiveDomEvents.js";
|
|
376
|
-
import "./shared-utils/three/THREERaycaster.js";
|
|
377
411
|
import "./PanoTagPlugin/utils/DebugUtil.js";
|
|
378
412
|
import "./PanoTagPlugin/utils/addDebugPoints.js";
|
|
379
413
|
import "./PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -390,36 +424,6 @@ import "./CruisePlugin/utils/coordinatesAngle.js";
|
|
|
390
424
|
import "./CruisePlugin/utils/coordinatesToVector.js";
|
|
391
425
|
import "./CruisePlugin/utils/safeCall.js";
|
|
392
426
|
import "./shared-utils/five/fiveLoaded.js";
|
|
393
|
-
import "./shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
394
|
-
import "./shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
395
|
-
import "./shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
396
|
-
import "./shared-utils/three/boundingBox.js";
|
|
397
|
-
import "./shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
398
|
-
import "./shared-utils/Object3DHelper/utils/direction.js";
|
|
399
|
-
import "./shared-utils/Object3DHelper/Constants/color.js";
|
|
400
|
-
import "./shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
401
|
-
import "./shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
402
|
-
import "./shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
403
|
-
import "./shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
404
|
-
import "./shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
405
|
-
import "./shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
406
|
-
import "./shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
407
|
-
import "./shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
408
|
-
import "./shared-utils/Object3DHelper/Base/BaseController.js";
|
|
409
|
-
import "./shared-utils/threex/domevents/index.js";
|
|
410
|
-
import "./shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
411
|
-
import "./shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
412
|
-
import "./Sculpt/utils/three/rayOnLine.js";
|
|
413
|
-
import "./Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
414
|
-
import "./shared-utils/Object3DHelper/index.js";
|
|
415
|
-
import "./shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
416
|
-
import "./shared-utils/math/deg2Rad.js";
|
|
417
|
-
import "./shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
418
|
-
import "./shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
419
|
-
import "./shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
420
|
-
import "./shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
421
|
-
import "./shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
422
|
-
import "./shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
423
427
|
import "./PanoVideoPlugin/Controller.js";
|
|
424
428
|
import "./PanoVideoPlugin/VideoMeshController.js";
|
|
425
429
|
import "./PanoVideoPlugin/utils/shader.js";
|
|
@@ -438,8 +442,6 @@ import "./shared-utils/three/objects/LineSegments.js";
|
|
|
438
442
|
import "./components/AreaLabel/LabelItem.js";
|
|
439
443
|
import "./components/AreaLabel/Assets/roomLabelBg.js";
|
|
440
444
|
import "./CurrentPanoImagePlugin/Controller.js";
|
|
441
|
-
import "./Sculpt/utils/Modules/Global.js";
|
|
442
|
-
import "./Sculpt/utils/Modules/Cursor.js";
|
|
443
445
|
import "./shared-utils/three/recurveFindObject.js";
|
|
444
446
|
import "./Sculpt/Objects/Polyline/index.js";
|
|
445
447
|
import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
@@ -488,8 +490,6 @@ import "./ModelMakerPlugin/item/boxItem.js";
|
|
|
488
490
|
import "./ModelMakerPlugin/item/polygonItem.js";
|
|
489
491
|
import "./ModelMakerPlugin/item/baseItem.js";
|
|
490
492
|
import "./shared-utils/three/addIfNotExists.js";
|
|
491
|
-
import "./shared-utils/tag.js";
|
|
492
|
-
import "./shared-utils/five/vector3ToScreen.js";
|
|
493
493
|
import "./ModelMakerPlugin/utils/getFiveDomEvent.js";
|
|
494
494
|
import "./ModelMakerPlugin/utils/tagRenderer.js";
|
|
495
495
|
import "./ModelMakerPlugin/utils/Text.js";
|
|
@@ -3,11 +3,12 @@ import "hammerjs";
|
|
|
3
3
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
4
4
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
5
5
|
import "@realsee/five/line";
|
|
6
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
6
7
|
import "../three/THREESphere.js";
|
|
7
8
|
import "animejs";
|
|
8
|
-
function
|
|
9
|
+
function f(e) {
|
|
9
10
|
return e.model ? e.work ? e.model.loaded ? e.model.name !== e.work.model.file ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
|
|
10
11
|
}
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
f as checkFiveModelLoaded
|
|
13
14
|
};
|
|
@@ -33,9 +33,10 @@ import { FiveUtil as O } from "../Utils/FiveUtil.js";
|
|
|
33
33
|
import { notNil as Y } from "../isNil.js";
|
|
34
34
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
35
|
import "@realsee/five/line";
|
|
36
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
36
37
|
import { worldBoundingSphere as j } from "../three/boundingBox.js";
|
|
37
38
|
import "animejs";
|
|
38
|
-
function
|
|
39
|
+
function tt(e, o, t) {
|
|
39
40
|
return g(this, null, function* () {
|
|
40
41
|
var P, x, z;
|
|
41
42
|
if (!o)
|
|
@@ -78,5 +79,5 @@ function $(e, o, t) {
|
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
81
|
export {
|
|
81
|
-
|
|
82
|
+
tt as lookObject
|
|
82
83
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.46.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -6,12 +6,13 @@ export declare class LightTag {
|
|
|
6
6
|
visible: boolean;
|
|
7
7
|
enabled: boolean;
|
|
8
8
|
wrapper: HTMLElement;
|
|
9
|
+
private tagWrapper;
|
|
9
10
|
private five;
|
|
10
|
-
private originPosition
|
|
11
|
-
private transformedPosition
|
|
11
|
+
private originPosition?;
|
|
12
|
+
private transformedPosition?;
|
|
12
13
|
private disposer;
|
|
13
14
|
private config;
|
|
14
|
-
constructor(five: Five, position
|
|
15
|
+
constructor(five: Five, position?: AnyPosition, config?: {
|
|
15
16
|
wrapper?: HTMLElement;
|
|
16
17
|
});
|
|
17
18
|
show(): void;
|
|
@@ -20,7 +21,9 @@ export declare class LightTag {
|
|
|
20
21
|
}): void;
|
|
21
22
|
enable(): void;
|
|
22
23
|
disable(): void;
|
|
24
|
+
destroy(): void;
|
|
23
25
|
setTransformMatrix(matrix: THREE.Matrix4): void;
|
|
26
|
+
setPosition(position: THREE.Vector3): void;
|
|
24
27
|
updateScreenPosition(): void;
|
|
25
28
|
private onCameraUpdate;
|
|
26
29
|
private onFiveEveryReady;
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var p = (
|
|
3
|
-
var i = (
|
|
4
|
-
import { anyPositionToVector3 as
|
|
5
|
-
import * as
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var p = (n, t, e) => t in n ? c(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var i = (n, t, e) => (p(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { anyPositionToVector3 as d } from "./positionToVector3.js";
|
|
5
|
+
import * as f from "three";
|
|
6
6
|
import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
|
|
7
7
|
import { getFiveModel as m } from "./five/getFiveModel.js";
|
|
8
|
-
const
|
|
8
|
+
const l = "LightTagContainer_shgjakdhwakjdhsja";
|
|
9
9
|
class v {
|
|
10
|
-
constructor(t, e,
|
|
10
|
+
constructor(t, e, s) {
|
|
11
11
|
i(this, "container");
|
|
12
12
|
i(this, "visible", !1);
|
|
13
13
|
i(this, "enabled", !1);
|
|
14
14
|
i(this, "wrapper");
|
|
15
|
+
i(this, "tagWrapper");
|
|
15
16
|
i(this, "five");
|
|
16
17
|
i(this, "originPosition");
|
|
17
18
|
i(this, "transformedPosition");
|
|
@@ -23,16 +24,17 @@ class v {
|
|
|
23
24
|
i(this, "onFiveEveryReady", () => {
|
|
24
25
|
var t;
|
|
25
26
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
26
|
-
const e = new
|
|
27
|
+
const e = new f.Raycaster();
|
|
27
28
|
e.set(this.five.camera.position, this.transformedPosition.clone().sub(this.five.camera.position));
|
|
28
|
-
const
|
|
29
|
-
(
|
|
29
|
+
const s = (t = m(this.five).intersectRaycaster(e)) == null ? void 0 : t[0];
|
|
30
|
+
(s == null ? void 0 : s.distance) > this.transformedPosition.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
var a;
|
|
34
|
+
this.five = t, this.originPosition = e ? d(e).clone() : void 0, this.transformedPosition = (a = this.originPosition) == null ? void 0 : a.clone(), this.container = (() => {
|
|
35
|
+
const r = document.createElement("div");
|
|
36
|
+
return r.style.width = "0", r.style.height = "0", r.style.position = "absolute", r;
|
|
37
|
+
})(), this.config = s != null ? s : {}, this.enable(), this.show();
|
|
36
38
|
}
|
|
37
39
|
show() {
|
|
38
40
|
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
|
|
@@ -41,13 +43,13 @@ class v {
|
|
|
41
43
|
this.visible = !1, t != null && t.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
|
|
42
44
|
}
|
|
43
45
|
enable() {
|
|
44
|
-
var
|
|
46
|
+
var s, a, r, h;
|
|
45
47
|
if (this.enabled)
|
|
46
48
|
return;
|
|
47
|
-
this.enabled = !0, this.wrapper
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
})(),
|
|
49
|
+
this.enabled = !0, this.wrapper = (r = (a = this.config.wrapper) != null ? a : (s = this.five.getElement()) == null ? void 0 : s.parentElement) != null ? r : document.body, this.tagWrapper || (this.tagWrapper = (h = document.getElementById(l)) != null ? h : (() => {
|
|
50
|
+
const o = document.createElement("div");
|
|
51
|
+
return o.id = l, o.style.position = "absolute", o.style.top = "0", o.style.left = "0", o.style.width = "100%", o.style.height = "100%", o.style.pointerEvents = "none", o;
|
|
52
|
+
})(), this.wrapper.contains(this.tagWrapper) || this.wrapper.appendChild(this.tagWrapper)), this.tagWrapper.appendChild(this.container);
|
|
51
53
|
let t = !1;
|
|
52
54
|
const e = () => {
|
|
53
55
|
t || (t = !0, this.five.ready().then(() => {
|
|
@@ -60,19 +62,31 @@ class v {
|
|
|
60
62
|
}
|
|
61
63
|
disable() {
|
|
62
64
|
var t;
|
|
63
|
-
this.enabled && (this.enabled = !1, this.
|
|
65
|
+
this.enabled && (this.enabled = !1, this.tagWrapper.removeChild(this.container), (t = this.disposer) == null || t.call(this));
|
|
66
|
+
}
|
|
67
|
+
destroy() {
|
|
68
|
+
this.disable(), this.container.remove();
|
|
64
69
|
}
|
|
65
70
|
setTransformMatrix(t) {
|
|
66
|
-
|
|
71
|
+
var e;
|
|
72
|
+
this.transformedPosition = (e = this.originPosition) == null ? void 0 : e.clone().applyMatrix4(t), this.onCameraUpdate();
|
|
73
|
+
}
|
|
74
|
+
setPosition(t) {
|
|
75
|
+
this.transformedPosition = t, this.onCameraUpdate();
|
|
67
76
|
}
|
|
68
77
|
updateScreenPosition() {
|
|
78
|
+
if (!this.transformedPosition) {
|
|
79
|
+
this.container.style.left = "-100%", this.container.style.top = "-100%";
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
69
82
|
const t = y(this.five.camera, this.transformedPosition);
|
|
70
83
|
t ? (this.container.style.left = t.leftPercent + "%", this.container.style.top = t.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
|
|
71
84
|
}
|
|
72
85
|
}
|
|
73
|
-
function
|
|
74
|
-
return new v(
|
|
86
|
+
function w(n, t, e) {
|
|
87
|
+
return new v(n, t, e);
|
|
75
88
|
}
|
|
76
89
|
export {
|
|
77
|
-
|
|
90
|
+
v as LightTag,
|
|
91
|
+
w as tag
|
|
78
92
|
};
|
|
@@ -2,6 +2,7 @@ import "hammerjs";
|
|
|
2
2
|
import "three";
|
|
3
3
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
4
4
|
import "@realsee/five/line";
|
|
5
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
5
6
|
import "./THREESphere.js";
|
|
6
7
|
import "animejs";
|
|
7
8
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|