@realsee/dnalogel 3.48.7 → 3.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -3
- package/dist/Sculpt/Meshes/Line.d.ts +2 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -0
- package/dist/index.cjs.js +3008 -87
- package/dist/index.js +39484 -20079
- package/dist/index.umd.js +3001 -80
- package/dist/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +1 -1
- package/dist/shared-utils/three/PointSelector/index.d.ts +2 -1
- package/dist/shared-utils/three/generatePolygonGeometry.d.ts +1 -1
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/libs/AreaMakerPlugin/Controller.js +7 -4
- package/libs/AreaMakerPlugin/index.js +7 -4
- package/libs/AreaMakerPlugin/utils/Item.js +7 -4
- package/libs/CSS3DRenderPlugin/Controller.js +12 -9
- package/libs/CSS3DRenderPlugin/index.js +9 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +21 -18
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +6 -3
- package/libs/CruisePlugin/BaseController.js +12 -9
- package/libs/CruisePlugin/Move.js +7 -4
- package/libs/CruisePlugin/Work.js +7 -4
- package/libs/CruisePlugin/index.js +11 -8
- package/libs/CurrentPanoImagePlugin/Controller.js +6 -3
- package/libs/CurrentPanoImagePlugin/index.js +7 -4
- package/libs/GuideLinePlugin/Controller.js +9 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +4 -3
- package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -4
- package/libs/GuideLinePlugin/index.js +11 -8
- package/libs/ModelMakerPlugin/Controller.js +7 -4
- package/libs/ModelMakerPlugin/index.js +7 -4
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +1 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +7 -4
- package/libs/ModelTVVideoPlugin/index.js +6 -3
- package/libs/Object3DHelperPlugin/Controller.js +6 -3
- package/libs/Object3DHelperPlugin/index.js +9 -6
- package/libs/PanoCompassPlugin/Controller.js +6 -3
- package/libs/PanoCompassPlugin/index.js +7 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +16 -13
- package/libs/PanoDoorLabelPlugin/Controller.js +58 -55
- package/libs/PanoDoorLabelPlugin/index.js +7 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +6 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +6 -3
- package/libs/PanoMeasurePlugin/Model/area.js +6 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -3
- package/libs/PanoMeasurePlugin/index.js +17 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +16 -13
- package/libs/PanoSpatialTagPlugin/Plugin.js +7 -4
- package/libs/PanoSpatialTagPlugin/index.js +4 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +6 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +6 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +6 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +6 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +11 -5
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +14 -11
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +12 -9
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +10 -7
- package/libs/PanoTagPlugin/controller/TagRender.js +7 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +7 -4
- package/libs/PanoTagPlugin/controller/index.js +10 -7
- package/libs/PanoTagPlugin/index.js +16 -13
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +25 -22
- package/libs/PanoVideoPlugin/Controller.js +9 -6
- package/libs/PanoVideoPlugin/VideoMeshController.js +6 -3
- package/libs/PanoVideoPlugin/index.js +9 -6
- package/libs/PipelinePlugin/Controller.js +13 -10
- package/libs/PipelinePlugin/index.js +7 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +6 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +16 -13
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +20 -17
- package/libs/Sculpt/Meshes/Box.js +7 -6
- package/libs/Sculpt/Meshes/Cylinder.js +4 -3
- package/libs/Sculpt/Meshes/Line.d.ts +2 -1
- package/libs/Sculpt/Meshes/Line.js +11 -10
- package/libs/Sculpt/Meshes/LineWithDots.js +1 -1
- package/libs/Sculpt/Meshes/Point.js +11 -10
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +31 -31
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -0
- package/libs/Sculpt/Meshes/Prism.js +48 -38
- package/libs/Sculpt/Meshes/Rectangle.js +5 -4
- package/libs/Sculpt/Objects/Line/Editor.js +4 -3
- package/libs/Sculpt/index.js +4 -3
- package/libs/Sculpt/utils/Modules/Global.js +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +5 -4
- package/libs/base/BasePlugin.js +5 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +6 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +7 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +6 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +7 -4
- package/libs/floorplan/index.js +2 -1
- package/libs/index.js +131 -128
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +57 -57
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +91 -97
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +34 -31
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +1 -1
- package/libs/shared-utils/five/FiveLine.js +6 -18
- package/libs/shared-utils/five/index.js +4 -3
- package/libs/shared-utils/five/lookObject.js +18 -17
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +2 -1
- package/libs/shared-utils/three/PointSelector/index.js +24 -22
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
- package/libs/shared-utils/three/boundingBox.js +1 -1
- package/libs/shared-utils/three/generatePolygonGeometry.d.ts +1 -1
- package/libs/shared-utils/three/generatePolygonGeometry.js +8 -10
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/shared-utils/three/index.js +2 -1
- package/libs/vendor/three/build/three.module.js +19336 -0
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +28 -0
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +69 -0
- package/package.json +1 -1
- /package/dist/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/dist/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/dist/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.d.ts +0 -0
- /package/libs/shared-utils/three/{objects → core}/LineSegments.js +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.d.ts → core/Raycaster.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREERaycaster.js → core/Raycaster.js} +0 -0
- /package/libs/shared-utils/three/{THREESphere.d.ts → core/Sphere.d.ts} +0 -0
- /package/libs/shared-utils/three/{THREESphere.js → core/Sphere.js} +0 -0
package/libs/index.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { consoleVersion as o } from "./shared-utils/logger.js";
|
|
2
2
|
import { autoFixOffscreenCanvas as r } from "./shared-utils/offscreenCanvas.js";
|
|
3
|
-
import { PaintBrush as
|
|
4
|
-
import { PaintBrushTypeEnum as
|
|
5
|
-
import { ModelViewPlugin as
|
|
6
|
-
import { CSS3DRenderPlugin as
|
|
7
|
-
import { PanoCursorRaycasterPlugin as
|
|
8
|
-
import { ModelRoomLabelPlugin as
|
|
9
|
-
import { FLOOR_PLAN_ATTACHED_TO as
|
|
10
|
-
import { ModelFloorplanPlugin as
|
|
11
|
-
import { MapviewFloorplanPlugin as
|
|
12
|
-
import { TopviewFloorplanPlugin as
|
|
13
|
-
import { PanoFloorplanRadarPlugin as
|
|
14
|
-
import { FLOOR_TYPE_MAP as
|
|
15
|
-
import { ModelChassisCompassPlugin as
|
|
16
|
-
import { ModelEntryDoorGuidePlugin as
|
|
17
|
-
import { CameraMovementPlugin as
|
|
18
|
-
import { CameraMovementEffect as
|
|
19
|
-
import { PanoRulerPlugin as
|
|
20
|
-
import { PanoRulerProPlugin as
|
|
21
|
-
import { PanoCompassPlugin as
|
|
22
|
-
import { PanoMeasurePlugin as
|
|
23
|
-
import { PanoSpatialTagPlugin as
|
|
24
|
-
import { modelItemLabelPluginServerParams as
|
|
25
|
-
import { ModelTVVideoPlugin as
|
|
26
|
-
import { DIRECTION as
|
|
27
|
-
import { itemLabelPluginServerParams as
|
|
28
|
-
import { PanoDoorLabelPlugin as
|
|
29
|
-
import { GuideLinePlugin as
|
|
30
|
-
import { CruisePlugin as
|
|
31
|
-
import { PanoTagPlugin as
|
|
32
|
-
import { Object3DHelperPlugin as
|
|
33
|
-
import { PanoVideoPlugin as
|
|
34
|
-
import { PipelinePlugin as
|
|
35
|
-
import { AreaMakerPlugin as
|
|
36
|
-
import { CurrentPanoImagePlugin as
|
|
37
|
-
import { Sculpt as
|
|
38
|
-
import { ModelMakerPlugin as
|
|
39
|
-
import { index as
|
|
40
|
-
import { CSS3DRender as
|
|
41
|
-
import { Model as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { Polyline as
|
|
45
|
-
import { Magnifier as
|
|
46
|
-
import { DISPLAY_STRATEGY_TYPE as
|
|
47
|
-
import { ModelItemLabelPlugin as
|
|
48
|
-
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as
|
|
49
|
-
import { Plugin as
|
|
50
|
-
import { GuideLineItem$1 as
|
|
51
|
-
import { GuideLineModeItem$1 as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { typing as
|
|
55
|
-
import { default as
|
|
56
|
-
import { defaultGlobalConfig as
|
|
57
|
-
import { ContentType as
|
|
58
|
-
import { Object3DHelperController as
|
|
59
|
-
import { typings as
|
|
3
|
+
import { PaintBrush as yl } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as Dl } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as bl } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as Fl } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as cl } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as Nl, modelRoomLabelPluginServerParams as hl } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as wl } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as Hl } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as jl } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as Wl } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as zl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as Kl, ROOM_FETILE_TYPE_MAP as Ql, ROOM_TYPE_MAP as Xl } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as on } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as tn } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as pn } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as ln, Rotation as nn } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as Pn } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as fn } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as gn } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as dn } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as Tn } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as Cn } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as En } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as Rn } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as On } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as An } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as Gn } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as vn, MovePlugin as Fn } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as cn } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as Nn } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as kn } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as Bn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as Un } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as $n } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { Sculpt as qn, SculptPlugin as zn } from "./Sculpt/index.js";
|
|
38
|
+
import { ModelMakerPlugin as Kn } from "./ModelMakerPlugin/index.js";
|
|
39
|
+
import { index as Xn } from "./shared-utils/index.js";
|
|
40
|
+
import { CSS3DRender as oa } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
|
+
import { Model as ta } from "./PanoMeasurePlugin/Model/index.js";
|
|
42
|
+
import { default as ma } from "./PanoMeasurePlugin/Model/point.js";
|
|
43
|
+
import { default as ea } from "./PanoMeasurePlugin/Model/line.js";
|
|
44
|
+
import { Polyline as na } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
45
|
+
import { Magnifier as Pa } from "./shared-utils/three/Magnifier.js";
|
|
46
|
+
import { DISPLAY_STRATEGY_TYPE as fa } from "./ModelItemLabelPlugin/typings.js";
|
|
47
|
+
import { ModelItemLabelPlugin as ga } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
48
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as da } from "./ItemLabelPlugin/typings.js";
|
|
49
|
+
import { Plugin as Ta } from "./ItemLabelPlugin/Plugin.js";
|
|
50
|
+
import { GuideLineItem$1 as Ca } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
51
|
+
import { GuideLineModeItem$1 as Ea } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
52
|
+
import { default as Ra, default as Sa } from "./CruisePlugin/Work.js";
|
|
53
|
+
import { default as ya } from "./CruisePlugin/Move.js";
|
|
54
|
+
import { typing as Da } from "./CruisePlugin/typing/index.js";
|
|
55
|
+
import { default as ba, pluginFlag as va } from "./PanoTagPlugin/controller/index.js";
|
|
56
|
+
import { defaultGlobalConfig as Ya } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
57
|
+
import { ContentType as Va, DimensionType as Na, PointType as ha } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
58
|
+
import { Object3DHelperController as wa, PLUGIN as Ba } from "./Object3DHelperPlugin/Controller.js";
|
|
59
|
+
import { typings as Ua } from "./PanoVideoPlugin/typings/index.js";
|
|
60
60
|
import "./components/PaintBrush/Controller.js";
|
|
61
61
|
import "./components/PaintBrush/utils.js";
|
|
62
62
|
import "./components/PaintBrush/tween.js";
|
|
@@ -71,6 +71,9 @@ 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 "./vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
75
|
+
import "./vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
76
|
+
import "./vendor/three/build/three.module.js";
|
|
74
77
|
import "./shared-utils/tag.js";
|
|
75
78
|
import "./shared-utils/positionToVector3.js";
|
|
76
79
|
import "./shared-utils/five/vector3ToScreen.js";
|
|
@@ -81,7 +84,7 @@ import "./shared-utils/Subscribe.js";
|
|
|
81
84
|
import "./shared-utils/Utils/WorkUtil.js";
|
|
82
85
|
import "./shared-utils/five/transformPosition.js";
|
|
83
86
|
import "./shared-utils/three/temp.js";
|
|
84
|
-
import "./shared-utils/three/
|
|
87
|
+
import "./shared-utils/three/core/Sphere.js";
|
|
85
88
|
import "animejs";
|
|
86
89
|
import "./shared-utils/url/absoluteUrl.js";
|
|
87
90
|
import "./shared-utils/five/fiveModelLoad.js";
|
|
@@ -379,7 +382,7 @@ import "./PanoTagPlugin/controller/TagUtil.js";
|
|
|
379
382
|
import "./PanoTagPlugin/tag.config.js";
|
|
380
383
|
import "./PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
381
384
|
import "./shared-utils/five/FiveDomEvents.js";
|
|
382
|
-
import "./shared-utils/three/
|
|
385
|
+
import "./shared-utils/three/core/Raycaster.js";
|
|
383
386
|
import "./PanoTagPlugin/utils/DebugUtil.js";
|
|
384
387
|
import "./PanoTagPlugin/utils/addDebugPoints.js";
|
|
385
388
|
import "./PanoTagPlugin/controller/Tag/PointTag.js";
|
|
@@ -441,7 +444,7 @@ import "./shared-utils/three/Extras/Core/Interpolations2.js";
|
|
|
441
444
|
import "./AreaMakerPlugin/Controller.js";
|
|
442
445
|
import "./AreaMakerPlugin/utils/Item.js";
|
|
443
446
|
import "./shared-utils/three/core/Object3D.js";
|
|
444
|
-
import "./shared-utils/three/
|
|
447
|
+
import "./shared-utils/three/core/LineSegments.js";
|
|
445
448
|
import "./components/AreaLabel/LabelItem.js";
|
|
446
449
|
import "./components/AreaLabel/Assets/roomLabelBg.js";
|
|
447
450
|
import "./CurrentPanoImagePlugin/Controller.js";
|
|
@@ -509,72 +512,72 @@ import "./shared-utils/five/lookObject.js";
|
|
|
509
512
|
r();
|
|
510
513
|
o();
|
|
511
514
|
export {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
515
|
+
Un as AreaMakerPlugin,
|
|
516
|
+
oa as CSS3DRender,
|
|
517
|
+
Fl as CSS3DRenderPlugin,
|
|
518
|
+
ln as CameraMovementEffect,
|
|
519
|
+
pn as CameraMovementPlugin,
|
|
520
|
+
Va as ContentType,
|
|
521
|
+
vn as CruisePlugin,
|
|
522
|
+
Ra as CruisePluginController,
|
|
523
|
+
Da as CruisePluginTypes,
|
|
524
|
+
$n as CurrentPanoImagePlugin,
|
|
525
|
+
Rn as DIRECTION,
|
|
526
|
+
fa as DISPLAY_STRATEGY_TYPE,
|
|
527
|
+
Na as DimensionType,
|
|
528
|
+
wl as FLOOR_PLAN_ATTACHED_TO,
|
|
529
|
+
Kl as FLOOR_TYPE_MAP,
|
|
530
|
+
Ca as GuideLineItem,
|
|
531
|
+
Ea as GuideLineModeItem,
|
|
532
|
+
Gn as GuideLinePlugin,
|
|
533
|
+
da as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
534
|
+
Ta as ItemLabelPlugin,
|
|
535
|
+
Pa as Magnifier,
|
|
536
|
+
jl as MapviewFloorplanPlugin,
|
|
537
|
+
on as ModelChassisCompassPlugin,
|
|
538
|
+
tn as ModelEntryDoorGuidePlugin,
|
|
539
|
+
Hl as ModelFloorplanPlugin,
|
|
540
|
+
ga as ModelItemLabelPlugin,
|
|
541
|
+
Kn as ModelMakerPlugin,
|
|
542
|
+
Nl as ModelRoomLabelPlugin,
|
|
543
|
+
En as ModelTVVideoPlugin,
|
|
544
|
+
bl as ModelViewPlugin,
|
|
545
|
+
ya as MoveController,
|
|
546
|
+
Fn as MovePlugin,
|
|
547
|
+
wa as Object3DHelperController,
|
|
548
|
+
Nn as Object3DHelperPlugin,
|
|
549
|
+
Ba as PLUGIN,
|
|
550
|
+
yl as PaintBrush,
|
|
551
|
+
Dl as PaintBrushTypeEnum,
|
|
552
|
+
gn as PanoCompassPlugin,
|
|
553
|
+
cl as PanoCursorRaycasterPlugin,
|
|
554
|
+
An as PanoDoorLabelPlugin,
|
|
555
|
+
zl as PanoFloorplanRadarPlugin,
|
|
556
|
+
dn as PanoMeasurePlugin,
|
|
557
|
+
ea as PanoMeasurePluginLine,
|
|
558
|
+
ta as PanoMeasurePluginModel,
|
|
559
|
+
ma as PanoMeasurePluginPoint,
|
|
560
|
+
na as PanoMeasurePluginPolyline,
|
|
561
|
+
Pn as PanoRulerPlugin,
|
|
562
|
+
fn as PanoRulerProPlugin,
|
|
563
|
+
Tn as PanoSpatialTagPlugin,
|
|
564
|
+
cn as PanoTagPlugin,
|
|
565
|
+
ba as PanoTagPluginController,
|
|
566
|
+
kn as PanoVideoPlugin,
|
|
567
|
+
Ua as PanoVideoPluginType,
|
|
568
|
+
Bn as PipelinePlugin,
|
|
569
|
+
ha as PointType,
|
|
570
|
+
Ql as ROOM_FETILE_TYPE_MAP,
|
|
571
|
+
Xl as ROOM_TYPE_MAP,
|
|
572
|
+
nn as Rotation,
|
|
573
|
+
qn as Sculpt,
|
|
574
|
+
zn as SculptPlugin,
|
|
575
|
+
Wl as TopviewFloorplanPlugin,
|
|
576
|
+
Xn as Util,
|
|
577
|
+
Sa as WalkController,
|
|
578
|
+
Ya as defaultGlobalConfig,
|
|
579
|
+
On as itemLabelPluginServerParams,
|
|
580
|
+
Cn as modelItemLabelPluginServerParams,
|
|
581
|
+
hl as modelRoomLabelPluginServerParams,
|
|
582
|
+
va as pluginFlag
|
|
580
583
|
};
|
|
@@ -1,25 +1,61 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { BaseController as
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var f = (c, a, e) => a in c ? v(c, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[a] = e;
|
|
3
|
+
var r = (c, a, e) => (f(c, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
+
import { BaseController as g } from "../Base/BaseController.js";
|
|
5
5
|
import * as m from "three";
|
|
6
|
-
import { getMouseRaycaster as
|
|
6
|
+
import { getMouseRaycaster as p } from "../utils/getMouseRaycaster.js";
|
|
7
7
|
import { rayOnLine as y } from "../../../Sculpt/utils/three/rayOnLine.js";
|
|
8
|
-
class w extends
|
|
8
|
+
class w extends g {
|
|
9
9
|
constructor(...e) {
|
|
10
10
|
super(...e);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
r(this, "name", "MoveController");
|
|
12
|
+
r(this, "startInfo");
|
|
13
|
+
r(this, "_moveByMouse", {
|
|
14
14
|
enabled: !1
|
|
15
15
|
});
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
r(this, "mouseInfo");
|
|
17
|
+
r(this, "mousedownEventListenerDisposer");
|
|
18
|
+
/**
|
|
19
|
+
* @description: 拖动开始,找出拖的Direction
|
|
20
|
+
*/
|
|
21
|
+
r(this, "dragStart", (e) => {
|
|
22
|
+
if (this.moveByMouseEnable || this.isDragging)
|
|
23
|
+
return;
|
|
24
|
+
const t = e == null ? void 0 : e.intersect;
|
|
25
|
+
if (!t)
|
|
26
|
+
return this.dragEnd();
|
|
27
|
+
const o = (t == null ? void 0 : t.object).direction;
|
|
28
|
+
if (!o)
|
|
29
|
+
return this.dragEnd();
|
|
30
|
+
const s = new m.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), h = new m.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), u = new m.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), n = (() => {
|
|
31
|
+
switch (o) {
|
|
32
|
+
case "x":
|
|
33
|
+
return s;
|
|
34
|
+
case "y":
|
|
35
|
+
return h;
|
|
36
|
+
case "z":
|
|
37
|
+
return u;
|
|
38
|
+
}
|
|
39
|
+
})(), i = t.point.clone(), d = new m.Line3(
|
|
40
|
+
i.clone().sub(n.normalize()),
|
|
41
|
+
i.clone().add(n.normalize())
|
|
42
|
+
);
|
|
43
|
+
this.startInfo = { startVectorProject: i, line: d }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
|
|
44
|
+
});
|
|
45
|
+
r(this, "dragging", (e) => {
|
|
46
|
+
if (!this.isDragging || !this.startInfo)
|
|
47
|
+
return;
|
|
48
|
+
const t = "touches" in e ? e.touches[0].clientX : e.x, o = "touches" in e ? e.touches[0].clientY : e.y, s = p(this.camera, { x: t, y: o }, this.container);
|
|
49
|
+
return s ? (this.move(s), !1) : this.dragEnd();
|
|
50
|
+
});
|
|
51
|
+
r(this, "dragEnd", () => {
|
|
52
|
+
this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
|
|
53
|
+
});
|
|
18
54
|
const t = this.helperObject3D;
|
|
19
55
|
this.hoverListener([t.xArrow, t.yArrow, t.zArrow]);
|
|
20
|
-
const o = this.
|
|
21
|
-
this.domEvents.addEventListener(this.helperObject3D, "mousedown",
|
|
22
|
-
this.domEvents.removeEventListener(this.helperObject3D, "mousedown",
|
|
56
|
+
const o = this.show.bind(this), s = this.hide.bind(this);
|
|
57
|
+
this.domEvents.addEventListener(this.helperObject3D, "mousedown", this.dragStart), document.addEventListener("mousemove", this.dragging), document.addEventListener("mouseup", this.dragEnd), this.domEvents.addEventListener(this.helperObject3D, "touchstart", this.dragStart), document.addEventListener("touchmove", this.dragging), document.addEventListener("touchend", this.dragEnd), this.hooks.on("rotateStart", s), this.hooks.on("rotateEnd", o), this.hooks.on("scaleStart", s), this.hooks.on("scaleEnd", o), this.hooks.on("moveByMouseEnable", s), this.hooks.on("moveByMouseDisable", o), this.disposers.push(() => {
|
|
58
|
+
this.domEvents.removeEventListener(this.helperObject3D, "mousedown", this.dragStart), document.removeEventListener("mousemove", this.dragging), document.removeEventListener("mouseup", this.dragEnd), this.domEvents.removeEventListener(this.helperObject3D, "touchstart", this.dragStart), document.removeEventListener("touchmove", this.dragging), document.removeEventListener("touchend", this.dragEnd), this.hooks.off("rotateStart", s), this.hooks.off("rotateEnd", o), this.hooks.off("scaleStart", s), this.hooks.off("scaleEnd", o), this.hooks.off("moveByMouseEnable", s), this.hooks.off("moveByMouseDisable", o);
|
|
23
59
|
}), this.moveByMouseEnable && this.moveByMouse();
|
|
24
60
|
}
|
|
25
61
|
get moveByMouseEnable() {
|
|
@@ -53,14 +89,14 @@ class w extends p {
|
|
|
53
89
|
this._moveByMouse = { enabled: !1 }, this.preventTapDefaultEvent = !1, this.hooks.emit("moveByMouseDisable"), (e = this.mousedownEventListenerDisposer) == null || e.call(this);
|
|
54
90
|
}
|
|
55
91
|
onIntersectionOnModelUpdate(e) {
|
|
56
|
-
var
|
|
92
|
+
var h, u, n;
|
|
57
93
|
if (!this.moveByMouseEnable)
|
|
58
94
|
return;
|
|
59
95
|
const { point: t, face: o } = e;
|
|
60
96
|
if (!this.hooks.emit("wantToMove", t)) {
|
|
61
97
|
if (this.originObject3D.position.copy(t), (this._moveByMouse.useFaceNormal === !0 || typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.enable !== !1) && o != null && o.normal) {
|
|
62
|
-
const
|
|
63
|
-
this.originObject3D.quaternion.setFromUnitVectors(
|
|
98
|
+
const i = (() => typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.alignmentVector ? this._moveByMouse.useFaceNormal.alignmentVector : { x: 0, y: 1, z: 0 })(), d = new m.Vector3((h = i.x) != null ? h : 0, (u = i.y) != null ? u : 0, (n = i.z) != null ? n : 0), l = (() => typeof this._moveByMouse.useFaceNormal == "object" && this._moveByMouse.useFaceNormal.fixedFaceNormal ? this._moveByMouse.useFaceNormal.fixedFaceNormal(o.normal) : o.normal)();
|
|
99
|
+
this.originObject3D.quaternion.setFromUnitVectors(d, l), this.internalHooks.emit("setObjectRotate", this.originObject3D.quaternion.clone());
|
|
64
100
|
}
|
|
65
101
|
this.internalHooks.emit("setObjectPosition", t), this.hooks.emit("move", t);
|
|
66
102
|
}
|
|
@@ -75,49 +111,13 @@ class w extends p {
|
|
|
75
111
|
const { x: t, y: o } = e;
|
|
76
112
|
this.mouseInfo.x === t && this.mouseInfo.y === o && Date.now() - this.mouseInfo.mouseDownTimestamp < 500 && (this.disableMoveByMouse(), this.mouseInfo = void 0);
|
|
77
113
|
}
|
|
78
|
-
/**
|
|
79
|
-
* @description: 拖动开始,找出拖的Direction
|
|
80
|
-
*/
|
|
81
|
-
dragStart(e) {
|
|
82
|
-
if (this.moveByMouseEnable || this.isDragging)
|
|
83
|
-
return;
|
|
84
|
-
const t = e == null ? void 0 : e.intersect;
|
|
85
|
-
if (!t)
|
|
86
|
-
return this.dragEnd();
|
|
87
|
-
const o = (t == null ? void 0 : t.object).direction;
|
|
88
|
-
if (!o)
|
|
89
|
-
return this.dragEnd();
|
|
90
|
-
const h = new m.Vector3(1, 0, 0).applyQuaternion(this.helperObject3D.quaternion), i = new m.Vector3(0, 1, 0).applyQuaternion(this.helperObject3D.quaternion), n = new m.Vector3(0, 0, 1).applyQuaternion(this.helperObject3D.quaternion), s = (() => {
|
|
91
|
-
switch (o) {
|
|
92
|
-
case "x":
|
|
93
|
-
return h;
|
|
94
|
-
case "y":
|
|
95
|
-
return i;
|
|
96
|
-
case "z":
|
|
97
|
-
return n;
|
|
98
|
-
}
|
|
99
|
-
})(), r = t.point.clone(), l = new m.Line3(
|
|
100
|
-
r.clone().sub(s.normalize()),
|
|
101
|
-
r.clone().add(s.normalize())
|
|
102
|
-
);
|
|
103
|
-
this.startInfo = { startVectorProject: r, line: l }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("moveStart"), this.isDragging = !0;
|
|
104
|
-
}
|
|
105
|
-
dragging(e) {
|
|
106
|
-
if (!this.isDragging || !this.startInfo)
|
|
107
|
-
return;
|
|
108
|
-
const t = g(this.camera, e, this.container);
|
|
109
|
-
return t ? (this.move(t), !1) : this.dragEnd();
|
|
110
|
-
}
|
|
111
114
|
move(e) {
|
|
112
115
|
if (!this.startInfo)
|
|
113
116
|
return this.dragEnd();
|
|
114
|
-
const { line: t, startVectorProject: o } = this.startInfo,
|
|
115
|
-
|
|
116
|
-
const
|
|
117
|
-
this.hooks.emit("wantToMove",
|
|
118
|
-
}
|
|
119
|
-
dragEnd() {
|
|
120
|
-
this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
|
|
117
|
+
const { line: t, startVectorProject: o } = this.startInfo, s = this.originObject3D, h = y({ raycaster: e, line: t, clampToLine: !1 }), u = h.clone().sub(o), n = new m.Matrix4();
|
|
118
|
+
n.setPosition(u);
|
|
119
|
+
const i = s.position.clone().applyMatrix4(n);
|
|
120
|
+
this.hooks.emit("wantToMove", i) || (s.applyMatrix4(n), o.copy(h), this.internalHooks.emit("applyObjectPosition", { matrix: n }), this.hooks.emit("move", i));
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
export {
|