@realsee/dnalogel 3.44.5 → 3.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/Sculpt/Meshes/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- 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 +140 -83
- 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 +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- 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/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- 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 +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- 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/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.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 _l } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as Il } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as Sl } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as yl } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as Dl } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as bl, modelRoomLabelPluginServerParams as vl } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as Yl } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as Vl } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as hl } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as wl } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as Hl } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FLOOR_TYPE_MAP as jl, ROOM_FETILE_TYPE_MAP as $l, ROOM_TYPE_MAP as Wl } from "./floorplan/typings/floorplanServerData.js";
|
|
15
|
+
import { ModelChassisCompassPlugin as zl } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
16
|
+
import { ModelEntryDoorGuidePlugin as Kl } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
17
|
+
import { CameraMovementPlugin as Xl } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
18
|
+
import { CameraMovementEffect as on, Rotation as rn } from "./CameraMovementPlugin/typing.js";
|
|
19
|
+
import { PanoRulerPlugin as mn } from "./PanoRulerPlugin/Plugin.js";
|
|
20
|
+
import { PanoRulerProPlugin as en } from "./PanoRulerProPlugin/index.js";
|
|
21
|
+
import { PanoCompassPlugin as nn } from "./PanoCompassPlugin/index.js";
|
|
22
|
+
import { PanoMeasurePlugin as Pn } from "./PanoMeasurePlugin/index.js";
|
|
23
|
+
import { PanoSpatialTagPlugin as fn } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
24
|
+
import { modelItemLabelPluginServerParams as gn } from "./ModelItemLabelPlugin/index.js";
|
|
25
|
+
import { ModelTVVideoPlugin as dn } from "./ModelTVVideoPlugin/Plugin.js";
|
|
26
|
+
import { DIRECTION as Tn } from "./ModelTVVideoPlugin/typings.js";
|
|
27
|
+
import { itemLabelPluginServerParams as Cn } from "./ItemLabelPlugin/index.js";
|
|
28
|
+
import { PanoDoorLabelPlugin as En } from "./PanoDoorLabelPlugin/index.js";
|
|
29
|
+
import { GuideLinePlugin as Rn } from "./GuideLinePlugin/index.js";
|
|
30
|
+
import { CruisePlugin as On, MovePlugin as yn } from "./CruisePlugin/index.js";
|
|
31
|
+
import { PanoTagPlugin as Dn } from "./PanoTagPlugin/index.js";
|
|
32
|
+
import { Object3DHelperPlugin as bn } from "./Object3DHelperPlugin/index.js";
|
|
33
|
+
import { PanoVideoPlugin as Fn } from "./PanoVideoPlugin/index.js";
|
|
34
|
+
import { PipelinePlugin as cn } from "./PipelinePlugin/index.js";
|
|
35
|
+
import { AreaMakerPlugin as Nn } from "./AreaMakerPlugin/index.js";
|
|
36
|
+
import { CurrentPanoImagePlugin as kn } from "./CurrentPanoImagePlugin/index.js";
|
|
37
|
+
import { Sculpt as Bn, SculptPlugin as Hn } from "./Sculpt/index.js";
|
|
38
|
+
import { ModelMakerPlugin as jn } from "./ModelMakerPlugin/index.js";
|
|
39
|
+
import { index as Wn } from "./shared-utils/index.js";
|
|
40
|
+
import { CSS3DRender as zn } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
41
|
+
import { Model as Kn } from "./PanoMeasurePlugin/Model/index.js";
|
|
42
|
+
import { default as Xn } from "./PanoMeasurePlugin/Model/point.js";
|
|
43
|
+
import { default as oa } from "./PanoMeasurePlugin/Model/line.js";
|
|
44
|
+
import { Polyline as ta } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
45
|
+
import { Magnifier as ma } from "./shared-utils/three/Magnifier.js";
|
|
46
|
+
import { DISPLAY_STRATEGY_TYPE as ea } from "./ModelItemLabelPlugin/typings.js";
|
|
47
|
+
import { ModelItemLabelPlugin as na } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
48
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Pa } from "./ItemLabelPlugin/typings.js";
|
|
49
|
+
import { Plugin as fa } from "./ItemLabelPlugin/Plugin.js";
|
|
50
|
+
import { GuideLineItem$1 as ga } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
51
|
+
import { GuideLineModeItem$1 as da } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
52
|
+
import { default as Ta, default as La } from "./CruisePlugin/Work.js";
|
|
53
|
+
import { default as _a } from "./CruisePlugin/Move.js";
|
|
54
|
+
import { typing as Ia } from "./CruisePlugin/typing/index.js";
|
|
55
|
+
import { default as Sa, pluginFlag as Oa } from "./PanoTagPlugin/controller/index.js";
|
|
56
|
+
import { defaultGlobalConfig as Aa } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
57
|
+
import { ContentType as Ga, DimensionType as ba, PointType as va } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
58
|
+
import { Object3DHelperController as Ya, PLUGIN as ca } from "./Object3DHelperPlugin/Controller.js";
|
|
59
|
+
import { typings as Na } 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,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/utils/color.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";
|
|
@@ -450,6 +452,7 @@ import "./shared-utils/three/closeVectors.js";
|
|
|
450
452
|
import "./Sculpt/Objects/Base/index.js";
|
|
451
453
|
import "./shared-utils/three/applyObjectMatrixWorld.js";
|
|
452
454
|
import "./Sculpt/Objects/Polyline/Editor.js";
|
|
455
|
+
import "./Sculpt/Objects/Line/Editor.js";
|
|
453
456
|
import "./Sculpt/Objects/Base/Editor.js";
|
|
454
457
|
import "./shared-utils/three/vector3ToArray.js";
|
|
455
458
|
import "./Sculpt/Objects/Point/index.js";
|
|
@@ -481,13 +484,12 @@ import "./Sculpt/Objects/Box/index.js";
|
|
|
481
484
|
import "./Sculpt/Objects/Box/Editor.js";
|
|
482
485
|
import "./Sculpt/Meshes/Box.js";
|
|
483
486
|
import "./shared-utils/forReverseEach.js";
|
|
487
|
+
import "./Sculpt/Objects/Line/index.js";
|
|
484
488
|
import "./ModelMakerPlugin/Controller.js";
|
|
485
489
|
import "./ModelMakerPlugin/item/boxItem.js";
|
|
486
490
|
import "./ModelMakerPlugin/item/polygonItem.js";
|
|
487
491
|
import "./ModelMakerPlugin/item/baseItem.js";
|
|
488
492
|
import "./shared-utils/three/addIfNotExists.js";
|
|
489
|
-
import "./shared-utils/tag.js";
|
|
490
|
-
import "./shared-utils/five/vector3ToScreen.js";
|
|
491
493
|
import "./ModelMakerPlugin/utils/getFiveDomEvent.js";
|
|
492
494
|
import "./ModelMakerPlugin/utils/tagRenderer.js";
|
|
493
495
|
import "./ModelMakerPlugin/utils/Text.js";
|
|
@@ -504,72 +506,72 @@ import "./shared-utils/five/lookObject.js";
|
|
|
504
506
|
r();
|
|
505
507
|
o();
|
|
506
508
|
export {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
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
|
-
|
|
509
|
+
Nn as AreaMakerPlugin,
|
|
510
|
+
zn as CSS3DRender,
|
|
511
|
+
yl as CSS3DRenderPlugin,
|
|
512
|
+
on as CameraMovementEffect,
|
|
513
|
+
Xl as CameraMovementPlugin,
|
|
514
|
+
Ga as ContentType,
|
|
515
|
+
On as CruisePlugin,
|
|
516
|
+
Ta as CruisePluginController,
|
|
517
|
+
Ia as CruisePluginTypes,
|
|
518
|
+
kn as CurrentPanoImagePlugin,
|
|
519
|
+
Tn as DIRECTION,
|
|
520
|
+
ea as DISPLAY_STRATEGY_TYPE,
|
|
521
|
+
ba as DimensionType,
|
|
522
|
+
Yl as FLOOR_PLAN_ATTACHED_TO,
|
|
523
|
+
jl as FLOOR_TYPE_MAP,
|
|
524
|
+
ga as GuideLineItem,
|
|
525
|
+
da as GuideLineModeItem,
|
|
526
|
+
Rn as GuideLinePlugin,
|
|
527
|
+
Pa as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
528
|
+
fa as ItemLabelPlugin,
|
|
529
|
+
ma as Magnifier,
|
|
530
|
+
hl as MapviewFloorplanPlugin,
|
|
531
|
+
zl as ModelChassisCompassPlugin,
|
|
532
|
+
Kl as ModelEntryDoorGuidePlugin,
|
|
533
|
+
Vl as ModelFloorplanPlugin,
|
|
534
|
+
na as ModelItemLabelPlugin,
|
|
535
|
+
jn as ModelMakerPlugin,
|
|
536
|
+
bl as ModelRoomLabelPlugin,
|
|
537
|
+
dn as ModelTVVideoPlugin,
|
|
538
|
+
Sl as ModelViewPlugin,
|
|
539
|
+
_a as MoveController,
|
|
540
|
+
yn as MovePlugin,
|
|
541
|
+
Ya as Object3DHelperController,
|
|
542
|
+
bn as Object3DHelperPlugin,
|
|
543
|
+
ca as PLUGIN,
|
|
544
|
+
_l as PaintBrush,
|
|
545
|
+
Il as PaintBrushTypeEnum,
|
|
546
|
+
nn as PanoCompassPlugin,
|
|
547
|
+
Dl as PanoCursorRaycasterPlugin,
|
|
548
|
+
En as PanoDoorLabelPlugin,
|
|
549
|
+
Hl as PanoFloorplanRadarPlugin,
|
|
550
|
+
Pn as PanoMeasurePlugin,
|
|
551
|
+
oa as PanoMeasurePluginLine,
|
|
552
|
+
Kn as PanoMeasurePluginModel,
|
|
553
|
+
Xn as PanoMeasurePluginPoint,
|
|
554
|
+
ta as PanoMeasurePluginPolyline,
|
|
555
|
+
mn as PanoRulerPlugin,
|
|
556
|
+
en as PanoRulerProPlugin,
|
|
557
|
+
fn as PanoSpatialTagPlugin,
|
|
558
|
+
Dn as PanoTagPlugin,
|
|
559
|
+
Sa as PanoTagPluginController,
|
|
560
|
+
Fn as PanoVideoPlugin,
|
|
561
|
+
Na as PanoVideoPluginType,
|
|
562
|
+
cn as PipelinePlugin,
|
|
563
|
+
va as PointType,
|
|
564
|
+
$l as ROOM_FETILE_TYPE_MAP,
|
|
565
|
+
Wl as ROOM_TYPE_MAP,
|
|
566
|
+
rn as Rotation,
|
|
567
|
+
Bn as Sculpt,
|
|
568
|
+
Hn as SculptPlugin,
|
|
569
|
+
wl as TopviewFloorplanPlugin,
|
|
570
|
+
Wn as Util,
|
|
571
|
+
La as WalkController,
|
|
572
|
+
Aa as defaultGlobalConfig,
|
|
573
|
+
Cn as itemLabelPluginServerParams,
|
|
574
|
+
gn as modelItemLabelPluginServerParams,
|
|
575
|
+
vl as modelRoomLabelPluginServerParams,
|
|
576
|
+
Oa as pluginFlag
|
|
575
577
|
};
|
|
@@ -111,7 +111,7 @@ class w extends p {
|
|
|
111
111
|
move(e) {
|
|
112
112
|
if (!this.startInfo)
|
|
113
113
|
return this.dragEnd();
|
|
114
|
-
const { line: t, startVectorProject: o } = this.startInfo, h = this.originObject3D, i = y({
|
|
114
|
+
const { line: t, startVectorProject: o } = this.startInfo, h = this.originObject3D, i = y({ raycaster: e, line: t, clampToLine: !1 }), n = i.clone().sub(o), s = new m.Matrix4();
|
|
115
115
|
s.setPosition(n);
|
|
116
116
|
const r = h.position.clone().applyMatrix4(s);
|
|
117
117
|
this.hooks.emit("wantToMove", r) || (h.applyMatrix4(s), o.copy(i), this.internalHooks.emit("applyObjectPosition", { matrix: s }), this.hooks.emit("move", r));
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var u = (
|
|
3
|
-
var
|
|
2
|
+
var u = (h, r, t) => r in h ? p(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t;
|
|
3
|
+
var l = (h, r, t) => (u(h, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
4
|
import { BaseController as b } from "../Base/BaseController.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as g from "three";
|
|
6
6
|
import { getMouseRaycaster as P } from "../utils/getMouseRaycaster.js";
|
|
7
7
|
import { rayOnLine as f } from "../../../Sculpt/utils/three/rayOnLine.js";
|
|
8
8
|
class H extends b {
|
|
9
9
|
constructor(...t) {
|
|
10
10
|
super(...t);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
l(this, "name", "ScaleController");
|
|
12
|
+
l(this, "startInfo");
|
|
13
|
+
l(this, "dragStart", (t) => {
|
|
14
14
|
if (this.isDragging)
|
|
15
15
|
return;
|
|
16
16
|
this.isDragging = !0;
|
|
17
|
-
const { intersect: e } = t,
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
this.startInfo = { line:
|
|
17
|
+
const { intersect: e } = t, a = this.camera.position, o = e.object, i = o.scalePosition.basePosition.clone(), s = o.scalePosition.handlePosition.clone().clone().sub(i).clone(), n = new g.Line3(i, i.clone().add(s.normalize().multiplyScalar(5)));
|
|
18
|
+
n.applyMatrix4(this.helperObject3D.matrixWorld);
|
|
19
|
+
const c = new g.Raycaster(a, e.point.clone().sub(a)), m = f({ raycaster: c, line: n });
|
|
20
|
+
this.startInfo = { line: n, scaleStartPoint: m, draggingObject: o }, this.hooks.emit("scaleStart");
|
|
21
21
|
});
|
|
22
|
-
|
|
22
|
+
l(this, "dragging", (t) => {
|
|
23
23
|
if (!this.isDragging || !this.startInfo)
|
|
24
24
|
return;
|
|
25
25
|
const e = P(this.camera, t, this.container);
|
|
26
26
|
return e ? (this.scale(e), !1) : this.dragEnd();
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
var
|
|
28
|
+
l(this, "scale", (t) => {
|
|
29
|
+
var n, c;
|
|
30
30
|
if (!this.startInfo)
|
|
31
31
|
return;
|
|
32
|
-
const { line: e, scaleStartPoint:
|
|
33
|
-
|
|
34
|
-
ratio:
|
|
35
|
-
intersectPoint:
|
|
32
|
+
const { line: e, scaleStartPoint: a, draggingObject: o } = this.startInfo, { scalePosition: i } = o, { basePosition: d } = i, s = f({ raycaster: t, line: e });
|
|
33
|
+
s.applyMatrix4(new g.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone())), (c = (n = this.config) == null ? void 0 : n.scaleCallback) == null || c.call(n, {
|
|
34
|
+
ratio: s.distanceTo(d) / a.distanceTo(d),
|
|
35
|
+
intersectPoint: s,
|
|
36
36
|
scalePosition: i
|
|
37
|
-
}),
|
|
37
|
+
}), o.position.copy(s.clone());
|
|
38
38
|
});
|
|
39
|
-
|
|
39
|
+
l(this, "dragEnd", () => {
|
|
40
40
|
this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.internalHooks.emit("initialHelperPosition"), this.hooks.emit("scaleEnd"));
|
|
41
41
|
});
|
|
42
42
|
this.domEvents.addEventListener(this.helperObject3D, "mousedown", this.dragStart), document.addEventListener("mousemove", this.dragging), document.addEventListener("mouseup", this.dragEnd);
|
|
@@ -50,10 +50,10 @@ class H extends b {
|
|
|
50
50
|
t.offHoverListener && t.offHoverListener(), t.offHoverListener = this.hoverListener(this.helperObject3D.scaleMeshes);
|
|
51
51
|
}
|
|
52
52
|
setScale(t) {
|
|
53
|
-
var
|
|
54
|
-
let e = 1,
|
|
55
|
-
typeof t == "number" ? (e = t,
|
|
56
|
-
const i = new
|
|
53
|
+
var s, n, c;
|
|
54
|
+
let e = 1, a = 1, o = 1;
|
|
55
|
+
typeof t == "number" ? (e = t, a = t, o = t) : typeof t == "object" && (e = (s = t.x) != null ? s : 1, a = (n = t.y) != null ? n : 1, o = (c = t.z) != null ? c : 1);
|
|
56
|
+
const i = new g.Vector3(e, a, o);
|
|
57
57
|
this.hooks.emit("wantToScale", i) || (this.originObject3D.scale.copy(i), this.internalHooks.emit("setObjectScale", i), this.hooks.emit("scale", i), this.render());
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -6,30 +6,30 @@ export declare class WorkUtil extends BaseUtil {
|
|
|
6
6
|
private _workCode;
|
|
7
7
|
get fromType(): WorkFromType;
|
|
8
8
|
/**
|
|
9
|
-
* @description
|
|
9
|
+
* @description 设置插件当前的 workCode
|
|
10
10
|
*/
|
|
11
11
|
set workCode(workCode: string);
|
|
12
12
|
/**
|
|
13
|
-
* @description
|
|
13
|
+
* @description 获取插件当前的 workCode
|
|
14
14
|
*/
|
|
15
15
|
get workCode(): string;
|
|
16
16
|
/**
|
|
17
|
-
* @description
|
|
17
|
+
* @description 获取当前的 work
|
|
18
18
|
*/
|
|
19
19
|
get work(): import("@realsee/five").Work;
|
|
20
20
|
get observers(): import("@realsee/five").WorkObserver[];
|
|
21
21
|
get transform(): THREE.Matrix4;
|
|
22
22
|
constructor(five: Five);
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description 获取全景点坐标
|
|
25
25
|
*/
|
|
26
26
|
getObserverPosition(observerIndex: number): THREE.Vector3 | undefined;
|
|
27
27
|
/**
|
|
28
|
-
* @description
|
|
28
|
+
* @description 获取全景点位和模型的地面坐标
|
|
29
29
|
*/
|
|
30
30
|
getObserverStandingPosition(observerIndex: number): THREE.Vector3 | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* @description
|
|
32
|
+
* @description 获取observer
|
|
33
33
|
*/
|
|
34
34
|
getObserver(observerIndex: number): import("@realsee/five").WorkObserver;
|
|
35
35
|
}
|