@realsee/dnalogel 3.73.1 → 3.73.3-alpha.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 +8 -0
- package/dist/MeasurePlugin/Controller.d.ts +3 -4
- package/dist/MeasurePlugin/index.d.ts +2 -1
- package/dist/Sculpt/utils/export.d.ts +1 -0
- package/dist/index.cjs.js +70 -70
- package/dist/index.js +4451 -4432
- package/dist/index.umd.js +63 -63
- package/dist/shared-utils/three/index.d.ts +2 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +80 -79
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +1 -0
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +1 -1
- package/libs/CruisePlugin/Work.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/CurrentPanoImagePlugin/Controller.js +3 -2
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/MeasurePlugin/Controller.d.ts +3 -4
- package/libs/MeasurePlugin/Controller.js +29 -29
- package/libs/MeasurePlugin/index.d.ts +2 -1
- package/libs/MeasurePlugin/index.js +6 -5
- package/libs/MeasurePlugin/utils/MeasureMesh.js +1 -1
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +1 -1
- package/libs/ModelMakerPlugin/index.js +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +4 -3
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +18 -17
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +3 -2
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +3 -2
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -3
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -21
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +1 -1
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +3 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +95 -94
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +22 -21
- package/libs/Sculpt/Meshes/Circle.js +3 -2
- package/libs/Sculpt/Meshes/Cylinder.js +3 -2
- package/libs/Sculpt/Meshes/Line.js +3 -2
- package/libs/Sculpt/Meshes/LineWithDots.js +5 -4
- package/libs/Sculpt/Meshes/Point.js +3 -2
- package/libs/Sculpt/Meshes/Rectangle.js +4 -3
- package/libs/Sculpt/Objects/Base/index.js +1 -0
- package/libs/Sculpt/Objects/Line/Editor.js +7 -6
- package/libs/Sculpt/index.js +19 -18
- package/libs/Sculpt/utils/export.d.ts +1 -0
- package/libs/Sculpt/utils/export.js +23 -20
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -2
- package/libs/base/BasePlugin.js +4 -3
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +146 -145
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +3 -2
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
- package/libs/shared-utils/exports.js +62 -55
- package/libs/shared-utils/five/index.js +4 -3
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/index.js +1 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +3 -2
- package/libs/shared-utils/three/PointDomHelper.js +3 -2
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -2
- package/libs/shared-utils/three/geometryUtil.js +12 -8
- package/libs/shared-utils/three/index.d.ts +2 -0
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
package/libs/index.js
CHANGED
|
@@ -1,73 +1,74 @@
|
|
|
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 { FloorplanGuidePlugin as
|
|
15
|
-
import { FLOOR_TYPE_MAP as
|
|
16
|
-
import { ModelChassisCompassPlugin as
|
|
17
|
-
import { ModelEntryDoorGuidePlugin as
|
|
18
|
-
import { CameraMovementPlugin as
|
|
19
|
-
import { CameraMovementEffect as
|
|
20
|
-
import { PanoRulerPlugin as
|
|
21
|
-
import { PanoRulerProPlugin as
|
|
22
|
-
import { PanoCompassPlugin as
|
|
23
|
-
import { PanoMeasurePlugin as
|
|
24
|
-
import { MeasurePlugin as
|
|
25
|
-
import { PanoSpatialTagPlugin as
|
|
26
|
-
import { modelItemLabelPluginServerParams as
|
|
27
|
-
import { ModelTVVideoPlugin as
|
|
28
|
-
import { DIRECTION as
|
|
29
|
-
import { itemLabelPluginServerParams as
|
|
30
|
-
import { PanoDoorLabelPlugin as
|
|
31
|
-
import { GuideLinePlugin as
|
|
32
|
-
import { CruisePlugin as
|
|
33
|
-
import { PanoTagPlugin as
|
|
34
|
-
import { Object3DHelperPlugin as
|
|
35
|
-
import { PanoVideoPlugin as
|
|
36
|
-
import { PipelinePlugin as
|
|
37
|
-
import { AreaMakerPlugin as
|
|
38
|
-
import { CurrentPanoImagePlugin as
|
|
39
|
-
import { Sculpt as
|
|
40
|
-
import { ModelMakerPlugin as
|
|
41
|
-
import { exports as
|
|
42
|
-
import { CSS3DRender as
|
|
43
|
-
import { Model as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { Polyline as
|
|
47
|
-
import { Magnifier as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
3
|
+
import { PaintBrush as On } from "./components/PaintBrush/index.js";
|
|
4
|
+
import { PaintBrushTypeEnum as An } from "./components/PaintBrush/typings.js";
|
|
5
|
+
import { ModelViewPlugin as Gn } from "./ModelViewPlugin/Plugin.js";
|
|
6
|
+
import { CSS3DRenderPlugin as bn } from "./CSS3DRenderPlugin/index.js";
|
|
7
|
+
import { PanoCursorRaycasterPlugin as Vn } from "./PanoCursorRaycasterPlugin/index.js";
|
|
8
|
+
import { ModelRoomLabelPlugin as Nn, modelRoomLabelPluginServerParams as hn } from "./ModelRoomLabelPlugin/index.js";
|
|
9
|
+
import { FLOOR_PLAN_ATTACHED_TO as wn } from "./floorplan/constant.js";
|
|
10
|
+
import { ModelFloorplanPlugin as Un } from "./floorplan/ModelFloorplanPlugin/index.js";
|
|
11
|
+
import { MapviewFloorplanPlugin as $n } from "./floorplan/MapviewFloorplanPlugin/index.js";
|
|
12
|
+
import { TopviewFloorplanPlugin as qn } from "./floorplan/TopviewFloorplanPlugin/index.js";
|
|
13
|
+
import { PanoFloorplanRadarPlugin as Jn } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
|
|
14
|
+
import { FloorplanGuidePlugin as Qn } from "./floorplan/FloorplanGuidePlugin/index.js";
|
|
15
|
+
import { FLOOR_TYPE_MAP as Zn, ROOM_FETILE_TYPE_MAP as oa, ROOM_TYPE_MAP as ra } from "./floorplan/typings/floorplanServerData.js";
|
|
16
|
+
import { ModelChassisCompassPlugin as ia } from "./ModelChassisCompassPlugin/Plugin.js";
|
|
17
|
+
import { ModelEntryDoorGuidePlugin as pa } from "./ModelEntryDoorGuidePlugin/Plugin.js";
|
|
18
|
+
import { CameraMovementPlugin as la } from "./CameraMovementPlugin/CameraMovementPlugin.js";
|
|
19
|
+
import { CameraMovementEffect as aa, Rotation as Pa } from "./CameraMovementPlugin/typing.js";
|
|
20
|
+
import { PanoRulerPlugin as ua } from "./PanoRulerPlugin/Plugin.js";
|
|
21
|
+
import { PanoRulerProPlugin as ga } from "./PanoRulerProPlugin/index.js";
|
|
22
|
+
import { PanoCompassPlugin as da } from "./PanoCompassPlugin/index.js";
|
|
23
|
+
import { PanoMeasurePlugin as Ta } from "./PanoMeasurePlugin/index.js";
|
|
24
|
+
import { MeasurePlugin as La } from "./MeasurePlugin/index.js";
|
|
25
|
+
import { PanoSpatialTagPlugin as Ra } from "./PanoSpatialTagPlugin/Plugin.js";
|
|
26
|
+
import { modelItemLabelPluginServerParams as ya } from "./ModelItemLabelPlugin/index.js";
|
|
27
|
+
import { ModelTVVideoPlugin as Ia } from "./ModelTVVideoPlugin/Plugin.js";
|
|
28
|
+
import { DIRECTION as Oa } from "./ModelTVVideoPlugin/typings.js";
|
|
29
|
+
import { itemLabelPluginServerParams as Aa } from "./ItemLabelPlugin/index.js";
|
|
30
|
+
import { PanoDoorLabelPlugin as Ga } from "./PanoDoorLabelPlugin/index.js";
|
|
31
|
+
import { GuideLinePlugin as ba } from "./GuideLinePlugin/index.js";
|
|
32
|
+
import { CruisePlugin as Va, MovePlugin as Ba } from "./CruisePlugin/index.js";
|
|
33
|
+
import { PanoTagPlugin as ha } from "./PanoTagPlugin/index.js";
|
|
34
|
+
import { Object3DHelperPlugin as wa } from "./Object3DHelperPlugin/index.js";
|
|
35
|
+
import { PanoVideoPlugin as Ua } from "./PanoVideoPlugin/index.js";
|
|
36
|
+
import { PipelinePlugin as $a } from "./PipelinePlugin/index.js";
|
|
37
|
+
import { AreaMakerPlugin as qa } from "./AreaMakerPlugin/index.js";
|
|
38
|
+
import { CurrentPanoImagePlugin as Ja } from "./CurrentPanoImagePlugin/index.js";
|
|
39
|
+
import { Sculpt as Qa, SculptPlugin as Xa, SculptPluginForFive as Za } from "./Sculpt/index.js";
|
|
40
|
+
import { ModelMakerPlugin as rP } from "./ModelMakerPlugin/index.js";
|
|
41
|
+
import { exports as iP } from "./shared-utils/exports.js";
|
|
42
|
+
import { CSS3DRender as pP } from "./CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
43
|
+
import { Model as lP } from "./PanoMeasurePlugin/Model/index.js";
|
|
44
|
+
import { default as aP } from "./PanoMeasurePlugin/Model/point.js";
|
|
45
|
+
import { default as fP } from "./PanoMeasurePlugin/Model/line.js";
|
|
46
|
+
import { Polyline as xP } from "./PanoMeasurePlugin/Model/polyline.js";
|
|
47
|
+
import { Magnifier as sP } from "./shared-utils/three/Magnifier.js";
|
|
48
|
+
import { validatePolygon as MP } from "./MeasurePlugin/utils/validatePolygon.js";
|
|
49
|
+
import { DISPLAY_STRATEGY_TYPE as CP } from "./ModelItemLabelPlugin/typings.js";
|
|
50
|
+
import { ModelItemLabelPlugin as cP } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
|
|
51
|
+
import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as _P } from "./ItemLabelPlugin/typings.js";
|
|
51
52
|
import { Plugin as EP } from "./ItemLabelPlugin/Plugin.js";
|
|
52
|
-
import { GuideLineItem$1 as
|
|
53
|
-
import { GuideLineModeItem$1 as
|
|
53
|
+
import { GuideLineItem$1 as SP } from "./GuideLinePlugin/GuideLineItem/index.js";
|
|
54
|
+
import { GuideLineModeItem$1 as vP } from "./GuideLinePlugin/GuideLineModeItem/index.js";
|
|
54
55
|
import { default as FP, default as GP } from "./CruisePlugin/Work.js";
|
|
55
|
-
import { default as
|
|
56
|
-
import { typing as
|
|
57
|
-
import { default as
|
|
58
|
-
import { defaultGlobalConfig as
|
|
59
|
-
import { ContentType as
|
|
60
|
-
import { Object3DHelperController as
|
|
61
|
-
import { typings as
|
|
62
|
-
import { createPoint as
|
|
63
|
-
import { createLine as
|
|
64
|
-
import { createPolyline as
|
|
65
|
-
import { createPolygon as
|
|
66
|
-
import { createPrism as
|
|
67
|
-
import { createRectangle as
|
|
68
|
-
import { createCircle as
|
|
69
|
-
import { createCylinder as
|
|
70
|
-
import { createBox as
|
|
56
|
+
import { default as bP } from "./CruisePlugin/Move.js";
|
|
57
|
+
import { typing as VP } from "./CruisePlugin/typing/index.js";
|
|
58
|
+
import { default as NP, pluginFlag as hP } from "./PanoTagPlugin/controller/index.js";
|
|
59
|
+
import { defaultGlobalConfig as wP } from "./PanoTagPlugin/typings/tag/TagConfig.js";
|
|
60
|
+
import { ContentType as UP, DimensionType as jP, PointType as $P } from "./PanoTagPlugin/Archive/deprecated.js";
|
|
61
|
+
import { Object3DHelperController as qP, PLUGIN as zP } from "./Object3DHelperPlugin/Controller.js";
|
|
62
|
+
import { typings as KP } from "./PanoVideoPlugin/typings/index.js";
|
|
63
|
+
import { createPoint as XP } from "./Sculpt/Objects/Point/index.js";
|
|
64
|
+
import { createLine as of } from "./Sculpt/Objects/Line/index.js";
|
|
65
|
+
import { createPolyline as tf } from "./Sculpt/Objects/Polyline/index.js";
|
|
66
|
+
import { createPolygon as pf } from "./Sculpt/Objects/Polygon/index.js";
|
|
67
|
+
import { createPrism as lf } from "./Sculpt/Objects/Prism/index.js";
|
|
68
|
+
import { createRectangle as af } from "./Sculpt/Objects/Rectangle/index.js";
|
|
69
|
+
import { createCircle as ff } from "./Sculpt/Objects/Circle/index.js";
|
|
70
|
+
import { createCylinder as xf } from "./Sculpt/Objects/Cylinder/index.js";
|
|
71
|
+
import { createBox as sf } from "./Sculpt/Objects/Box/index.js";
|
|
71
72
|
import "./components/PaintBrush/Controller.js";
|
|
72
73
|
import "./components/PaintBrush/utils.js";
|
|
73
74
|
import "./components/PaintBrush/tween.js";
|
|
@@ -110,6 +111,7 @@ import "./shared-utils/three/core/Sphere.js";
|
|
|
110
111
|
import "./shared-utils/three/blink.js";
|
|
111
112
|
import "./vendor/animejs/lib/anime.es.js";
|
|
112
113
|
import "./shared-utils/util.js";
|
|
114
|
+
import "./vendor/earcut/src/earcut.js";
|
|
113
115
|
import "./shared-utils/five/FivePuppet.js";
|
|
114
116
|
import "./shared-utils/five/fiveModelLoad.js";
|
|
115
117
|
import "./shared-utils/three/PointSelector/utils/html.js";
|
|
@@ -251,7 +253,6 @@ import "./PanoMeasurePlugin/Model/area.js";
|
|
|
251
253
|
import "./PanoMeasurePlugin/Model/polygon.js";
|
|
252
254
|
import "./shared-utils/three/generatePolygonGeometry.js";
|
|
253
255
|
import "./shared-utils/three/earcut3D.js";
|
|
254
|
-
import "./vendor/earcut/src/earcut.js";
|
|
255
256
|
import "./shared-utils/three/getNormal.js";
|
|
256
257
|
import "./PanoMeasurePlugin/utils/isIntersecting.js";
|
|
257
258
|
import "./PanoMeasurePlugin/utils/dom/areaDom.js";
|
|
@@ -297,7 +298,6 @@ import "./Sculpt/Meshes/LineWithDots.js";
|
|
|
297
298
|
import "./Sculpt/Meshes/Point.js";
|
|
298
299
|
import "./Sculpt/Meshes/Polygon.js";
|
|
299
300
|
import "./Sculpt/utils/three/ColoredMesh.js";
|
|
300
|
-
import "./MeasurePlugin/utils/validatePolygon.js";
|
|
301
301
|
import "./shared-utils/three/vectorIsEqual.js";
|
|
302
302
|
import "./vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
303
303
|
import "./Sculpt/utils/Modules/Cursor.js";
|
|
@@ -578,84 +578,85 @@ import "./shared-utils/five/lookObject.js";
|
|
|
578
578
|
r();
|
|
579
579
|
o();
|
|
580
580
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
581
|
+
qa as AreaMakerPlugin,
|
|
582
|
+
pP as CSS3DRender,
|
|
583
|
+
bn as CSS3DRenderPlugin,
|
|
584
|
+
aa as CameraMovementEffect,
|
|
585
|
+
la as CameraMovementPlugin,
|
|
586
|
+
UP as ContentType,
|
|
587
|
+
Va as CruisePlugin,
|
|
588
588
|
FP as CruisePluginController,
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
589
|
+
VP as CruisePluginTypes,
|
|
590
|
+
Ja as CurrentPanoImagePlugin,
|
|
591
|
+
Oa as DIRECTION,
|
|
592
|
+
CP as DISPLAY_STRATEGY_TYPE,
|
|
593
|
+
jP as DimensionType,
|
|
594
|
+
wn as FLOOR_PLAN_ATTACHED_TO,
|
|
595
|
+
Zn as FLOOR_TYPE_MAP,
|
|
596
|
+
Qn as FloorplanGuidePlugin,
|
|
597
|
+
SP as GuideLineItem,
|
|
598
|
+
vP as GuideLineModeItem,
|
|
599
|
+
ba as GuideLinePlugin,
|
|
600
|
+
_P as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
|
|
601
601
|
EP as ItemLabelPlugin,
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
602
|
+
sP as Magnifier,
|
|
603
|
+
$n as MapviewFloorplanPlugin,
|
|
604
|
+
La as MeasurePlugin,
|
|
605
|
+
ia as ModelChassisCompassPlugin,
|
|
606
|
+
pa as ModelEntryDoorGuidePlugin,
|
|
607
|
+
Un as ModelFloorplanPlugin,
|
|
608
|
+
cP as ModelItemLabelPlugin,
|
|
609
|
+
rP as ModelMakerPlugin,
|
|
610
|
+
Nn as ModelRoomLabelPlugin,
|
|
611
|
+
Ia as ModelTVVideoPlugin,
|
|
612
|
+
Gn as ModelViewPlugin,
|
|
613
|
+
bP as MoveController,
|
|
614
|
+
Ba as MovePlugin,
|
|
615
|
+
qP as Object3DHelperController,
|
|
616
|
+
wa as Object3DHelperPlugin,
|
|
617
|
+
zP as PLUGIN,
|
|
618
|
+
On as PaintBrush,
|
|
619
|
+
An as PaintBrushTypeEnum,
|
|
620
|
+
da as PanoCompassPlugin,
|
|
621
|
+
Vn as PanoCursorRaycasterPlugin,
|
|
622
|
+
Ga as PanoDoorLabelPlugin,
|
|
623
|
+
Jn as PanoFloorplanRadarPlugin,
|
|
624
|
+
Ta as PanoMeasurePlugin,
|
|
625
|
+
fP as PanoMeasurePluginLine,
|
|
626
|
+
lP as PanoMeasurePluginModel,
|
|
627
|
+
aP as PanoMeasurePluginPoint,
|
|
628
|
+
xP as PanoMeasurePluginPolyline,
|
|
629
|
+
ua as PanoRulerPlugin,
|
|
630
|
+
ga as PanoRulerProPlugin,
|
|
631
|
+
Ra as PanoSpatialTagPlugin,
|
|
632
|
+
ha as PanoTagPlugin,
|
|
633
|
+
NP as PanoTagPluginController,
|
|
634
|
+
Ua as PanoVideoPlugin,
|
|
635
|
+
KP as PanoVideoPluginType,
|
|
636
|
+
$a as PipelinePlugin,
|
|
637
|
+
$P as PointType,
|
|
638
|
+
oa as ROOM_FETILE_TYPE_MAP,
|
|
639
|
+
ra as ROOM_TYPE_MAP,
|
|
640
|
+
Pa as Rotation,
|
|
641
|
+
Qa as Sculpt,
|
|
642
|
+
Xa as SculptPlugin,
|
|
643
|
+
Za as SculptPluginForFive,
|
|
644
|
+
qn as TopviewFloorplanPlugin,
|
|
645
|
+
iP as Util,
|
|
646
646
|
GP as WalkController,
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
647
|
+
sf as createBox,
|
|
648
|
+
ff as createCircle,
|
|
649
|
+
xf as createCylinder,
|
|
650
|
+
of as createLine,
|
|
651
|
+
XP as createPoint,
|
|
652
|
+
pf as createPolygon,
|
|
653
|
+
tf as createPolyline,
|
|
654
|
+
lf as createPrism,
|
|
655
|
+
af as createRectangle,
|
|
656
|
+
wP as defaultGlobalConfig,
|
|
657
|
+
Aa as itemLabelPluginServerParams,
|
|
658
|
+
ya as modelItemLabelPluginServerParams,
|
|
659
|
+
hn as modelRoomLabelPluginServerParams,
|
|
660
|
+
hP as pluginFlag,
|
|
661
|
+
MP as validatePolygon
|
|
661
662
|
};
|
|
@@ -18,9 +18,10 @@ import "../three/blink.js";
|
|
|
18
18
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
19
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
20
20
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
21
|
+
import "../../vendor/earcut/src/earcut.js";
|
|
21
22
|
import "../five/FivePuppet.js";
|
|
22
23
|
const $ = 1, V = `CSS3DObject@${$}`, q = 216e-5, I = 3e-3;
|
|
23
|
-
class
|
|
24
|
+
class mt extends R {
|
|
24
25
|
constructor(t) {
|
|
25
26
|
var g, x, v, S, _;
|
|
26
27
|
if (O(t.cornerPoints) && O(t.width))
|
|
@@ -89,5 +90,5 @@ class lt extends R {
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
export {
|
|
92
|
-
|
|
93
|
+
mt as CSS3DObjectPlus
|
|
93
94
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var g = (
|
|
4
|
-
import { BaseController as
|
|
5
|
-
import { RENDER_ORDER as
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var S = (v, m, e) => m in v ? C(v, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[m] = e;
|
|
3
|
+
var g = (v, m, e) => (S(v, typeof m != "symbol" ? m + "" : m, e), e);
|
|
4
|
+
import { BaseController as G } from "../Base/BaseController.js";
|
|
5
|
+
import { RENDER_ORDER as E } from "../Constants/RenderOrder.js";
|
|
6
6
|
import * as c from "three";
|
|
7
|
-
import { getMouseRaycaster as
|
|
8
|
-
import { SolidGuideLine as
|
|
9
|
-
import { rayOnLine as
|
|
7
|
+
import { getMouseRaycaster as A } from "../utils/getMouseRaycaster.js";
|
|
8
|
+
import { SolidGuideLine as k } from "../utils/solidGuide.js";
|
|
9
|
+
import { rayOnLine as P } from "../../../Sculpt/utils/three/rayOnLine.js";
|
|
10
10
|
import { worldBoundingBox as I } from "../../three/boundingBox.js";
|
|
11
|
-
import { getNormal as
|
|
12
|
-
var
|
|
13
|
-
class Y extends
|
|
11
|
+
import { getNormal as H } from "../../three/getNormal.js";
|
|
12
|
+
var L, w;
|
|
13
|
+
class Y extends G {
|
|
14
14
|
constructor(...e) {
|
|
15
15
|
super(...e);
|
|
16
16
|
g(this, "name", "ScaleController");
|
|
@@ -18,7 +18,7 @@ class Y extends A {
|
|
|
18
18
|
g(this, "dragGuideLine");
|
|
19
19
|
/** 当前拖拽时显示的面片 */
|
|
20
20
|
g(this, "currentFacePatch");
|
|
21
|
-
g(this, "solidGuide", new
|
|
21
|
+
g(this, "solidGuide", new k(this.camera, this.container, (w = (L = this.config) == null ? void 0 : L.solidGuide) != null ? w : {}));
|
|
22
22
|
g(this, "startInfo");
|
|
23
23
|
g(this, "dragStart", (e) => {
|
|
24
24
|
if (this.isDragging)
|
|
@@ -30,20 +30,20 @@ class Y extends A {
|
|
|
30
30
|
i = i.parent;
|
|
31
31
|
const n = i, o = n.scalePosition.basePosition.clone(), h = n.scalePosition.handlePosition.clone(), l = h.clone().sub(o).clone(), a = new c.Line3(o, o.clone().add(l.normalize().multiplyScalar(5)));
|
|
32
32
|
a.applyMatrix4(this.helperObject3D.matrixWorld);
|
|
33
|
-
const d = new c.Raycaster(r, t.point.clone().sub(r)), p =
|
|
33
|
+
const d = new c.Raycaster(r, t.point.clone().sub(r)), p = P({ raycaster: d, line: a });
|
|
34
34
|
this.startInfo = { line: a, scaleStartPoint: p, draggingObject: n }, this.helperObject3D.scaleMeshes.forEach((u) => {
|
|
35
35
|
u.uuid !== n.uuid && (u.visible = !1);
|
|
36
36
|
}), "hideLineConnections" in this.helperObject3D && typeof this.helperObject3D.hideLineConnections == "function" && this.helperObject3D.hideLineConnections();
|
|
37
37
|
try {
|
|
38
38
|
this.originObject3D.updateMatrixWorld(!0), this.helperObject3D.updateMatrixWorld(!0);
|
|
39
|
-
const u = this.getObjectWorldCenter(),
|
|
40
|
-
this.isRectangleWithEdgeMesh() || this.scene.add(
|
|
39
|
+
const u = this.getObjectWorldCenter(), M = h.clone().applyMatrix4(this.helperObject3D.matrixWorld).clone().sub(u).normalize(), b = u, y = this.solidGuide.createSolidLine(b, M, { color: 16777215, renderOrder: E.DRAG_GUIDE_LINE });
|
|
40
|
+
this.isRectangleWithEdgeMesh() || this.scene.add(y), this.dragGuideLine = y, this.addFaceMesh();
|
|
41
41
|
} catch (u) {
|
|
42
42
|
}
|
|
43
43
|
n.visible = !0, this.hooks.emit("scaleStart");
|
|
44
44
|
});
|
|
45
45
|
g(this, "dragging", (e) => {
|
|
46
|
-
const t = "touches" in e ? e.touches[0].clientX : e.x, r = "touches" in e ? e.touches[0].clientY : e.y, s =
|
|
46
|
+
const t = "touches" in e ? e.touches[0].clientX : e.x, r = "touches" in e ? e.touches[0].clientY : e.y, s = A(this.camera, { x: t, y: r }, this.container), i = this.isMoveControllerDragging();
|
|
47
47
|
if (!this.isDragging && !i && s) {
|
|
48
48
|
this.addHoverFaceMesh(s);
|
|
49
49
|
return;
|
|
@@ -61,26 +61,34 @@ class Y extends A {
|
|
|
61
61
|
const d = this.originObject3D, u = d.geometry.attributes.position;
|
|
62
62
|
if (!u)
|
|
63
63
|
return [];
|
|
64
|
-
const
|
|
65
|
-
for (let
|
|
66
|
-
const
|
|
67
|
-
d.updateMatrixWorld(!0),
|
|
64
|
+
const D = [], M = u.count;
|
|
65
|
+
for (let f = 0; f < M; f++) {
|
|
66
|
+
const j = new c.Vector3().fromBufferAttribute(u, f);
|
|
67
|
+
d.updateMatrixWorld(!0), j.applyMatrix4(d.matrixWorld), D.push(j);
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
if (!
|
|
69
|
+
const b = D.slice(0, 4);
|
|
70
|
+
if (!b || b.length < 4)
|
|
71
71
|
return;
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
const y = H(b).normalize(), x = new c.Plane().setFromNormalAndCoplanarPoint(y, b[0]), F = Math.abs(e.ray.direction.dot(y)) < 0.1;
|
|
73
|
+
let O;
|
|
74
|
+
if (F)
|
|
75
|
+
O = P({ raycaster: e, line: t, clampToLine: !1 }).applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone()));
|
|
76
|
+
else {
|
|
77
|
+
const f = new c.Vector3();
|
|
78
|
+
if (e.ray.intersectPlane(x, f), !f)
|
|
79
|
+
return;
|
|
80
|
+
const j = new c.Matrix4().getInverse(this.helperObject3D.matrixWorld);
|
|
81
|
+
O = f.clone().applyMatrix4(j);
|
|
82
|
+
}
|
|
83
|
+
const W = r.clone().applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld));
|
|
76
84
|
(h = (o = this.config) == null ? void 0 : o.scaleCallback) == null || h.call(o, {
|
|
77
|
-
intersectPoint:
|
|
85
|
+
intersectPoint: O,
|
|
78
86
|
scalePosition: i,
|
|
79
|
-
offset:
|
|
80
|
-
}), s.position.copy(
|
|
87
|
+
offset: O.clone().sub(W)
|
|
88
|
+
}), s.position.copy(O), this.hooks.emit("scale", new c.Vector3(1, 1, 1));
|
|
81
89
|
return;
|
|
82
90
|
}
|
|
83
|
-
const n =
|
|
91
|
+
const n = P({ raycaster: e, line: t, clampToLine: !1 });
|
|
84
92
|
n.applyMatrix4(new c.Matrix4().getInverse(this.helperObject3D.matrixWorld.clone())), (a = (l = this.config) == null ? void 0 : l.scaleCallback) == null || a.call(l, {
|
|
85
93
|
intersectPoint: n,
|
|
86
94
|
scalePosition: i,
|
|
@@ -159,8 +167,8 @@ class Y extends A {
|
|
|
159
167
|
if (!d.vertices || d.vertices.length < 3)
|
|
160
168
|
continue;
|
|
161
169
|
const p = new c.Vector3();
|
|
162
|
-
for (const
|
|
163
|
-
p.add(
|
|
170
|
+
for (const D of d.vertices)
|
|
171
|
+
p.add(D);
|
|
164
172
|
p.divideScalar(d.vertices.length);
|
|
165
173
|
const u = n.distanceTo(p);
|
|
166
174
|
u < a && (a = u, l = d);
|
|
@@ -290,7 +298,7 @@ class Y extends A {
|
|
|
290
298
|
transparent: !0,
|
|
291
299
|
opacity: 0.45
|
|
292
300
|
}), s = new c.Mesh(t, r);
|
|
293
|
-
return s.renderOrder =
|
|
301
|
+
return s.renderOrder = E.DRAG_FACE_PATCH, this.scene.add(s), this.currentFacePatch = s, this.render(), s;
|
|
294
302
|
}
|
|
295
303
|
}
|
|
296
304
|
export {
|