@realsee/dnalogel 3.51.0 → 3.52.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 +12 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Meshes/Box.d.ts +6 -24
- package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
- package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/dist/Sculpt/Meshes/Line.d.ts +9 -22
- package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
- package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -1
- package/dist/Sculpt/Objects/Base/index.d.ts +2 -1
- package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
- package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +12 -0
- package/dist/Sculpt/index.d.ts +11 -10
- package/dist/Sculpt/typings/style.d.ts +6 -0
- package/dist/Sculpt/utils/export.d.ts +24 -18
- package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/dist/index.cjs.js +88 -3009
- package/dist/index.d.ts +79 -1
- package/dist/index.js +35153 -54255
- package/dist/index.umd.js +81 -3002
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/dist/shared-utils/five/FiveLine.d.ts +18 -14
- package/dist/shared-utils/index.d.ts +0 -1
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/tag.d.ts +5 -7
- package/dist/shared-utils/three/boundingBox.d.ts +14 -20
- package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
- package/dist/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/AreaMakerPlugin/Controller.js +47 -100
- package/libs/AreaMakerPlugin/index.js +12 -65
- package/libs/AreaMakerPlugin/utils/Item.js +102 -157
- package/libs/CSS3DRenderPlugin/Controller.js +45 -93
- package/libs/CSS3DRenderPlugin/index.js +15 -63
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
- package/libs/CruisePlugin/BaseController.js +90 -143
- package/libs/CruisePlugin/Move.js +39 -83
- package/libs/CruisePlugin/Work.js +52 -96
- package/libs/CruisePlugin/index.js +23 -67
- package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
- package/libs/CurrentPanoImagePlugin/index.js +11 -64
- package/libs/GuideLinePlugin/Controller.js +13 -57
- package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
- package/libs/GuideLinePlugin/index.js +23 -67
- package/libs/ModelMakerPlugin/Controller.js +125 -165
- package/libs/ModelMakerPlugin/index.js +23 -63
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
- package/libs/ModelTVVideoPlugin/index.js +8 -56
- package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/libs/Object3DHelperPlugin/Controller.js +105 -92
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
- package/libs/Object3DHelperPlugin/index.js +15 -30
- package/libs/PanoCompassPlugin/Controller.js +46 -93
- package/libs/PanoCompassPlugin/index.js +17 -64
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
- package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
- package/libs/PanoDoorLabelPlugin/index.js +11 -64
- package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
- package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/area.js +25 -74
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
- package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
- package/libs/PanoMeasurePlugin/index.js +18 -64
- package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
- package/libs/PanoMeasurePlugin/utils/line.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +34 -89
- package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
- package/libs/PanoRulerProPlugin/index.js +10 -65
- package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
- package/libs/PanoSpatialTagPlugin/index.js +6 -54
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
- package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
- package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
- package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
- package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
- package/libs/PanoTagPlugin/controller/index.js +37 -81
- package/libs/PanoTagPlugin/index.js +28 -72
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
- package/libs/PanoVideoPlugin/Controller.js +43 -96
- package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
- package/libs/PanoVideoPlugin/index.js +14 -67
- package/libs/PipelinePlugin/Controller.js +123 -176
- package/libs/PipelinePlugin/index.js +11 -64
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
- package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
- package/libs/Sculpt/Meshes/Box.d.ts +6 -24
- package/libs/Sculpt/Meshes/Box.js +22 -93
- package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
- package/libs/Sculpt/Meshes/Circle.js +18 -27
- package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/libs/Sculpt/Meshes/Cylinder.js +17 -24
- package/libs/Sculpt/Meshes/Line.d.ts +9 -22
- package/libs/Sculpt/Meshes/Line.js +85 -104
- package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
- package/libs/Sculpt/Meshes/Point.js +29 -34
- package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/libs/Sculpt/Meshes/Polygon.js +40 -53
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
- package/libs/Sculpt/Meshes/Prism.js +108 -84
- package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +7 -10
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +2 -1
- package/libs/Sculpt/Objects/Base/index.js +16 -17
- package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
- package/libs/Sculpt/Objects/Box/index.js +72 -60
- package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Circle/index.js +34 -30
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +46 -42
- package/libs/Sculpt/Objects/Line/Editor.js +8 -10
- package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Line/index.js +45 -41
- package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Point/index.js +33 -29
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polygon/index.js +67 -63
- package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polyline/index.js +46 -42
- package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Prism/index.js +58 -53
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +12 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +142 -81
- package/libs/Sculpt/index.d.ts +11 -10
- package/libs/Sculpt/index.js +105 -107
- package/libs/Sculpt/typings/style.d.ts +6 -0
- package/libs/Sculpt/utils/export.d.ts +24 -18
- package/libs/Sculpt/utils/export.js +52 -19
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
- package/libs/base/BasePlugin.js +10 -15
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
- package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/index.js +0 -5
- package/libs/index.d.ts +79 -1
- package/libs/index.js +229 -215
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
- package/libs/shared-utils/five/FiveDomEvents.js +88 -88
- package/libs/shared-utils/five/FiveLine.d.ts +18 -14
- package/libs/shared-utils/five/FiveLine.js +31 -13
- package/libs/shared-utils/five/index.js +2 -7
- package/libs/shared-utils/five/lookObject.js +27 -32
- package/libs/shared-utils/index.d.ts +0 -1
- package/libs/shared-utils/index.js +31 -33
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/tag.d.ts +5 -7
- package/libs/shared-utils/tag.js +1 -1
- package/libs/shared-utils/three/boundingBox.d.ts +14 -20
- package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/libs/shared-utils/three/core/LineGeometry.js +26 -0
- package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
- package/libs/shared-utils/three/earcut3D.js +5 -5
- package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
- package/libs/shared-utils/three/geometryUtil.js +3 -1
- package/libs/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/shared-utils/three/getNormal.js +6 -5
- package/libs/shared-utils/three/index.js +0 -5
- package/package.json +1 -1
- package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Box/Editor.js +0 -44
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
- package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/utils/getBetterNormal.js +0 -8
- package/libs/vendor/three/build/three.module.js +0 -19336
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var S = Object.defineProperty;
|
|
2
2
|
var P = Object.getOwnPropertySymbols;
|
|
3
3
|
var H = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var M = (
|
|
5
|
-
for (var
|
|
6
|
-
H.call(n,
|
|
4
|
+
var M = (h, n, e) => n in h ? S(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e, w = (h, n) => {
|
|
5
|
+
for (var e in n || (n = {}))
|
|
6
|
+
H.call(n, e) && M(h, e, n[e]);
|
|
7
7
|
if (P)
|
|
8
|
-
for (var
|
|
9
|
-
B.call(n,
|
|
10
|
-
return
|
|
8
|
+
for (var e of P(n))
|
|
9
|
+
B.call(n, e) && M(h, e, n[e]);
|
|
10
|
+
return h;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var _ = (
|
|
14
|
-
var
|
|
12
|
+
var a = (h, n, e) => (M(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
13
|
+
var _ = (h, n, e) => new Promise((i, s) => {
|
|
14
|
+
var d = (t) => {
|
|
15
15
|
try {
|
|
16
|
-
o(
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
o(e.next(t));
|
|
17
|
+
} catch (l) {
|
|
18
|
+
s(l);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, p = (t) => {
|
|
21
21
|
try {
|
|
22
|
-
o(
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
o(e.throw(t));
|
|
23
|
+
} catch (l) {
|
|
24
|
+
s(l);
|
|
25
25
|
}
|
|
26
|
-
}, o = (
|
|
27
|
-
o((
|
|
26
|
+
}, o = (t) => t.done ? i(t.value) : Promise.resolve(t.value).then(d, p);
|
|
27
|
+
o((e = e.apply(h, n)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Controller as z } from "../base/BasePluginWithData.js";
|
|
30
30
|
import * as c from "three";
|
|
@@ -37,16 +37,11 @@ import "hammerjs";
|
|
|
37
37
|
import "../shared-utils/three/PointSelector/index.js";
|
|
38
38
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
39
39
|
import "@realsee/five/line";
|
|
40
|
-
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
41
|
-
import { boxVertex as v } from "../shared-utils/three/boundingBox.js";
|
|
42
|
-
import "animejs";
|
|
43
40
|
import { notNil as I } from "../shared-utils/isNil.js";
|
|
41
|
+
import { boxVertex as g } from "../shared-utils/three/boundingBox.js";
|
|
42
|
+
import "animejs";
|
|
44
43
|
import { waitFiveModelLoaded as G } from "../shared-utils/five/fiveModelLoad.js";
|
|
45
44
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
47
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
48
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
49
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
50
45
|
import { tagRendererMap as N } from "./utils/tagRenderer.js";
|
|
51
46
|
import { ModelMakerPrismItem as D } from "./item/prismItem.js";
|
|
52
47
|
import { ModelMakerPolygonItem as U } from "./item/polygonItem.js";
|
|
@@ -63,19 +58,29 @@ import "../shared-utils/five/transformPosition.js";
|
|
|
63
58
|
import "../shared-utils/five/getFiveModel.js";
|
|
64
59
|
import "../shared-utils/url/absoluteUrl.js";
|
|
65
60
|
import "../shared-utils/three/IObject3D.js";
|
|
66
|
-
import "../
|
|
61
|
+
import "../shared-utils/three/core/Raycaster.js";
|
|
62
|
+
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
67
63
|
import "../Sculpt/typings/style.js";
|
|
68
|
-
import "../shared-utils/
|
|
64
|
+
import "../shared-utils/three/core/PrismGeometry.js";
|
|
65
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
69
66
|
import "../shared-utils/three/centerPoint.js";
|
|
67
|
+
import "../Sculpt/Meshes/Line.js";
|
|
68
|
+
import "../shared-utils/five/FiveLine.js";
|
|
70
69
|
import "../Sculpt/utils/removeAllTag.js";
|
|
71
70
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
72
71
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
73
72
|
import "../shared-utils/util.js";
|
|
74
|
-
import "../shared-utils/three/core/
|
|
73
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
75
74
|
import "../Sculpt/Meshes/Polyline.js";
|
|
76
75
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
77
76
|
import "../Sculpt/Meshes/Point.js";
|
|
78
77
|
import "../shared-utils/three/closeVectors.js";
|
|
78
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
79
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
80
|
+
import "../shared-utils/three/earcut3D.js";
|
|
81
|
+
import "earcut";
|
|
82
|
+
import "../shared-utils/three/getNormal.js";
|
|
83
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
79
84
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
80
85
|
import "../shared-utils/three/temp.js";
|
|
81
86
|
import "../shared-utils/dom/resizeObserver.js";
|
|
@@ -99,209 +104,164 @@ import "../shared-utils/isTouchDevice.js";
|
|
|
99
104
|
import "../shared-utils/five/getPosition.js";
|
|
100
105
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
101
106
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
102
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
103
|
-
import "../vendor/three/build/three.module.js";
|
|
104
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
105
|
-
import "../shared-utils/three/earcut3D.js";
|
|
106
|
-
import "earcut";
|
|
107
|
-
import "../shared-utils/three/getNormal.js";
|
|
108
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
109
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
110
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
111
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
112
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
113
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
114
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
115
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
116
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
117
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
120
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
121
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
122
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
123
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
124
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
125
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
126
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
127
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
128
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
129
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
130
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
131
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
132
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
133
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
134
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
135
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
136
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
137
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
138
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
139
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
140
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
141
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
142
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
143
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
144
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
145
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
146
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
147
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
148
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
149
107
|
import "./utils/Text.js";
|
|
150
108
|
import "../vendor/svelte/internal/index.js";
|
|
151
109
|
import "../components/AreaLabel/LabelItem.js";
|
|
152
110
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
153
111
|
import "./item/baseItem.js";
|
|
154
112
|
import "../shared-utils/three/addIfNotExists.js";
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
113
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
114
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
115
|
+
class kt extends z {
|
|
116
|
+
constructor(e, i) {
|
|
117
|
+
var s, d;
|
|
118
|
+
super(e);
|
|
119
|
+
a(this, "state");
|
|
120
|
+
a(this, "items", []);
|
|
121
|
+
a(this, "group", new c.Group());
|
|
122
|
+
a(this, "data");
|
|
123
|
+
a(this, "tagRendererMap", {});
|
|
124
|
+
a(this, "fiveDomEvents");
|
|
125
|
+
a(this, "zFightingOffset", 0);
|
|
126
|
+
a(this, "tagWrapper");
|
|
127
|
+
a(this, "occlusionVisibility");
|
|
128
|
+
a(this, "occlusionMode");
|
|
129
|
+
a(this, "fiveEveryReadyListenerDisposer");
|
|
130
|
+
a(this, "onFiveModeChange", (e) => {
|
|
171
131
|
const i = this.occlusionVisibility;
|
|
172
|
-
Array.isArray(i) && this.items.forEach((
|
|
173
|
-
|
|
132
|
+
Array.isArray(i) && this.items.forEach((s) => {
|
|
133
|
+
s.model.setStyle instanceof Function && s.model.setStyle({ occlusionVisibility: i.includes(e) });
|
|
174
134
|
});
|
|
175
135
|
});
|
|
176
|
-
|
|
177
|
-
var
|
|
178
|
-
this.five.scene.add(this.group), (i = (
|
|
136
|
+
a(this, "handleEnable", () => {
|
|
137
|
+
var e, i;
|
|
138
|
+
this.five.scene.add(this.group), (i = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || i.appendChild(this.tagWrapper), this.five.needsRender = !0, this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveEveryReady(), this.five.on("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer = $(this.five, this.onFiveEveryReady);
|
|
179
139
|
});
|
|
180
|
-
|
|
140
|
+
a(this, "handleDisable", () => {
|
|
181
141
|
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange), this.fiveEveryReadyListenerDisposer();
|
|
182
142
|
});
|
|
183
|
-
|
|
143
|
+
a(this, "onFiveEveryReady", () => _(this, null, function* () {
|
|
184
144
|
if (this.five.state.mode === "Panorama")
|
|
185
145
|
return;
|
|
186
|
-
const
|
|
146
|
+
const e = this.items.filter((t) => t instanceof D).map((t) => t.tag), i = e.filter((t) => t.position && t.visible && t.enabled);
|
|
187
147
|
yield K(0);
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}),
|
|
192
|
-
if (
|
|
148
|
+
const s = this.five.camera.position.clone(), d = i.sort((t, l) => s.distanceTo(t.position) - s.distanceTo(l.position)), p = [], o = (t, l) => !(t.right < l.left || t.left > l.right || t.bottom < l.top || t.top > l.bottom);
|
|
149
|
+
e.forEach((t) => {
|
|
150
|
+
t.visibles[2] = void 0;
|
|
151
|
+
}), d.forEach((t) => {
|
|
152
|
+
if (t.visibles[1] === !1)
|
|
193
153
|
return;
|
|
194
|
-
const
|
|
195
|
-
if (!
|
|
154
|
+
const l = t.container.getElementsByClassName("room-label-item__text")[0];
|
|
155
|
+
if (!l)
|
|
196
156
|
return;
|
|
197
|
-
const u =
|
|
198
|
-
|
|
157
|
+
const u = l.getBoundingClientRect();
|
|
158
|
+
p.every((m) => !o(m.boundingClientRect, u)) ? (p.push({ tag: t, boundingClientRect: u }), t.visibles[2] = !0) : t.visibles[2] = !1, t.needsRender = !0;
|
|
199
159
|
});
|
|
200
160
|
}));
|
|
201
|
-
|
|
202
|
-
this.items.forEach((
|
|
203
|
-
var
|
|
204
|
-
const i = (
|
|
205
|
-
i &&
|
|
161
|
+
a(this, "updateTagRenderer", () => {
|
|
162
|
+
this.items.forEach((e) => {
|
|
163
|
+
var s;
|
|
164
|
+
const i = (s = this.tagRendererMap[e.type]) != null ? s : N[e.type];
|
|
165
|
+
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
|
|
206
166
|
});
|
|
207
167
|
});
|
|
208
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (
|
|
168
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (s = i == null ? void 0 : i.occlusionVisibility) != null ? s : !1, this.occlusionMode = (d = i == null ? void 0 : i.occlusionMode) != null ? d : "translucence", this.fiveDomEvents = Y(e), this.tagWrapper = (() => {
|
|
209
169
|
var o;
|
|
210
|
-
const
|
|
211
|
-
return
|
|
212
|
-
})(),
|
|
170
|
+
const p = document.createElement("div");
|
|
171
|
+
return p.style.position = "absolute", p.style.top = "0", p.style.left = "0", p.style.width = "100%", p.style.height = "100%", p.style.pointerEvents = "none", p.style.zIndex = `${(o = i == null ? void 0 : i.tagContainerZIndex) != null ? o : ""}`, p;
|
|
172
|
+
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
213
173
|
}
|
|
214
|
-
load(
|
|
174
|
+
load(e) {
|
|
215
175
|
return _(this, null, function* () {
|
|
216
|
-
var
|
|
217
|
-
if (this.clear(), this.data =
|
|
176
|
+
var p;
|
|
177
|
+
if (this.clear(), this.data = e, yield G(this.five), this.data !== e)
|
|
218
178
|
return;
|
|
219
179
|
this.clear();
|
|
220
|
-
const i = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1,
|
|
221
|
-
(
|
|
222
|
-
var
|
|
180
|
+
const i = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1, s = this.occlusionMode, d = 1.6;
|
|
181
|
+
(p = e == null ? void 0 : e.list) == null || p.forEach((o) => {
|
|
182
|
+
var t, l, u;
|
|
223
183
|
if (o.type === "triangles") {
|
|
224
|
-
const
|
|
225
|
-
|
|
184
|
+
const r = new q();
|
|
185
|
+
r.setPoints(o.object_data.points), r.setStyle({
|
|
226
186
|
color: o.object_data.color,
|
|
227
|
-
opacity: ((
|
|
187
|
+
opacity: ((t = o.object_data.opacity) != null ? t : 0.4) / 2,
|
|
228
188
|
lineColor: o.object_data.color,
|
|
229
|
-
lineWidth:
|
|
189
|
+
lineWidth: d,
|
|
230
190
|
occlusionVisibility: i,
|
|
231
|
-
occlusionMode:
|
|
232
|
-
}), this.fiveDomEvents.addEventListener(
|
|
233
|
-
const
|
|
191
|
+
occlusionMode: s
|
|
192
|
+
}), this.fiveDomEvents.addEventListener(r, "hover", () => r.highlight()), this.fiveDomEvents.addEventListener(r, "unHover", () => r.unhighlight());
|
|
193
|
+
const m = new U({
|
|
234
194
|
five: this.five,
|
|
235
195
|
tagWrapper: this.tagWrapper,
|
|
236
|
-
model:
|
|
196
|
+
model: r,
|
|
237
197
|
group: this.group,
|
|
238
198
|
type: o.type,
|
|
239
199
|
rawData: o
|
|
240
200
|
});
|
|
241
|
-
this.items.push(
|
|
201
|
+
this.items.push(m);
|
|
242
202
|
} else if (o.type === "prism") {
|
|
243
|
-
const
|
|
203
|
+
const r = new T();
|
|
244
204
|
this.zFightingOffset += 1e-4;
|
|
245
|
-
const
|
|
246
|
-
var
|
|
247
|
-
return [f[0], f[1] + ((
|
|
205
|
+
const m = o.object_data.points.map((f) => {
|
|
206
|
+
var v;
|
|
207
|
+
return [f[0], f[1] + ((v = o.object_data.fixedY) != null ? v : 0), f[2]];
|
|
248
208
|
});
|
|
249
|
-
|
|
250
|
-
const E = o.object_data.height + ((
|
|
251
|
-
|
|
209
|
+
m.push(m[0]);
|
|
210
|
+
const E = o.object_data.height + ((l = o.object_data.fixedHeight) != null ? l : 0) + this.zFightingOffset, R = Q(m[0]).add(new c.Vector3().setY(E));
|
|
211
|
+
r.setPoints({ points: m, heightPoint: R }), r.setStyle({
|
|
252
212
|
color: o.object_data.color,
|
|
253
213
|
opacity: ((u = o.object_data.opacity) != null ? u : 0.4) / 2,
|
|
254
214
|
lineColor: o.object_data.color,
|
|
255
|
-
lineWidth:
|
|
215
|
+
lineWidth: d,
|
|
256
216
|
occlusionVisibility: i,
|
|
257
|
-
occlusionMode:
|
|
217
|
+
occlusionMode: s
|
|
258
218
|
});
|
|
259
|
-
const
|
|
219
|
+
const b = new D({
|
|
260
220
|
five: this.five,
|
|
261
221
|
tagWrapper: this.tagWrapper,
|
|
262
|
-
model:
|
|
222
|
+
model: r,
|
|
263
223
|
group: this.group,
|
|
264
224
|
type: o.type,
|
|
265
225
|
rawData: o
|
|
266
226
|
});
|
|
267
|
-
this.items.push(
|
|
227
|
+
this.items.push(b);
|
|
268
228
|
} else if (o.type === "box") {
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
points: [
|
|
272
|
-
heightPoint:
|
|
273
|
-
}),
|
|
229
|
+
const r = new T(), { start: m, end: E, rotation: R = [0, 0, 0, 0], opacity: b, color: f } = o.object_data, v = new c.Vector3().fromArray(m), C = new c.Vector3().fromArray(E), L = new c.Euler().fromArray(R), x = new c.Quaternion().setFromEuler(L), V = x.clone().inverse(), W = new c.Vector3().lerpVectors(v, C, 0.5), k = W.clone().negate(), j = v.clone().add(k).applyQuaternion(V), F = C.clone().add(k).applyQuaternion(V), y = new c.Box3(j.clone().max(F), j.clone().min(F));
|
|
230
|
+
r.setPoints({
|
|
231
|
+
points: [g(y, 2), g(y, 3), g(y, 7), g(y, 6)],
|
|
232
|
+
heightPoint: g(y, 1)
|
|
233
|
+
}), r.position.copy(W), r.quaternion.copy(x), r.setStyle({
|
|
274
234
|
color: f,
|
|
275
|
-
opacity: (
|
|
235
|
+
opacity: (b != null ? b : 0.4) / 2,
|
|
276
236
|
lineColor: f,
|
|
277
|
-
lineWidth:
|
|
237
|
+
lineWidth: d,
|
|
278
238
|
occlusionVisibility: i,
|
|
279
|
-
occlusionMode:
|
|
239
|
+
occlusionMode: s
|
|
280
240
|
});
|
|
281
241
|
const A = new O({
|
|
282
242
|
five: this.five,
|
|
283
243
|
tagWrapper: this.tagWrapper,
|
|
284
|
-
model:
|
|
244
|
+
model: r,
|
|
285
245
|
group: this.group,
|
|
286
246
|
type: o.type,
|
|
287
247
|
rawData: o
|
|
288
248
|
});
|
|
289
249
|
this.items.push(A);
|
|
290
250
|
}
|
|
291
|
-
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded",
|
|
251
|
+
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e);
|
|
292
252
|
});
|
|
293
253
|
}
|
|
294
|
-
setState(
|
|
295
|
-
I(
|
|
254
|
+
setState(e) {
|
|
255
|
+
I(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), I(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
|
|
296
256
|
}
|
|
297
|
-
getItemById(
|
|
298
|
-
return this.items.find((i) => i.rawData.id ===
|
|
257
|
+
getItemById(e) {
|
|
258
|
+
return this.items.find((i) => i.rawData.id === e);
|
|
299
259
|
}
|
|
300
|
-
registerTagRenderer(
|
|
301
|
-
this.tagRendererMap = w(w({}, this.tagRendererMap),
|
|
260
|
+
registerTagRenderer(e) {
|
|
261
|
+
this.tagRendererMap = w(w({}, this.tagRendererMap), e), this.updateTagRenderer();
|
|
302
262
|
}
|
|
303
|
-
hasCustomTagRenderer(
|
|
304
|
-
return !!this.tagRendererMap[
|
|
263
|
+
hasCustomTagRenderer(e) {
|
|
264
|
+
return !!this.tagRendererMap[e];
|
|
305
265
|
}
|
|
306
266
|
enable() {
|
|
307
267
|
this.setState({ enabled: !0 });
|
|
@@ -325,12 +285,12 @@ class fi extends z {
|
|
|
325
285
|
this.group.matrix.copy(this.workUtil.transform.clone()), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld();
|
|
326
286
|
}
|
|
327
287
|
handleShow() {
|
|
328
|
-
this.group.visible = !0, this.tagWrapper.style.
|
|
288
|
+
this.group.visible = !0, this.tagWrapper.style.display = "block", this.five.needsRender = !0;
|
|
329
289
|
}
|
|
330
290
|
handleHide() {
|
|
331
|
-
this.group.visible = !1, this.tagWrapper.style.
|
|
291
|
+
this.group.visible = !1, this.tagWrapper.style.display = "none", this.five.needsRender = !0;
|
|
332
292
|
}
|
|
333
293
|
}
|
|
334
294
|
export {
|
|
335
|
-
|
|
295
|
+
kt as Controller
|
|
336
296
|
};
|
|
@@ -29,95 +29,55 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
29
29
|
import "../shared-utils/three/centerPoint.js";
|
|
30
30
|
import "../shared-utils/three/getObjectVisible.js";
|
|
31
31
|
import "@realsee/five/line";
|
|
32
|
-
import "../
|
|
33
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
34
|
-
import "../vendor/three/build/three.module.js";
|
|
32
|
+
import "../shared-utils/isNil.js";
|
|
35
33
|
import "../shared-utils/three/core/Sphere.js";
|
|
36
34
|
import "animejs";
|
|
37
|
-
import "../shared-utils/isNil.js";
|
|
38
35
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
39
|
-
import "../
|
|
40
|
-
import "../shared-utils/
|
|
41
|
-
import "../shared-utils/three/earcut3D.js";
|
|
42
|
-
import "earcut";
|
|
43
|
-
import "../shared-utils/three/getNormal.js";
|
|
44
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
45
|
-
import "../Sculpt/typings/style.js";
|
|
46
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
47
|
-
import "../shared-utils/three/IObject3D.js";
|
|
48
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
49
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
50
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
51
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
52
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
53
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
54
|
-
import "../shared-utils/three/boundingBox.js";
|
|
55
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
56
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
57
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
58
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
59
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
37
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
60
38
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
61
39
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
62
40
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
63
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
64
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
65
|
-
import "../shared-utils/util.js";
|
|
66
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
67
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
68
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
69
41
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
70
42
|
import "../Sculpt/Meshes/Line.js";
|
|
43
|
+
import "../Sculpt/typings/style.js";
|
|
71
44
|
import "../shared-utils/five/FiveLine.js";
|
|
45
|
+
import "../shared-utils/three/IObject3D.js";
|
|
72
46
|
import "../Sculpt/utils/removeAllTag.js";
|
|
73
47
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
74
48
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
75
|
-
import "../
|
|
76
|
-
import "../
|
|
49
|
+
import "../shared-utils/util.js";
|
|
50
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
77
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
78
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
79
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
80
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
81
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
82
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
84
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
85
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
86
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
87
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
88
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
90
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
91
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
92
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
93
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
94
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
95
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
96
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
97
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
98
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
99
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
102
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
103
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
104
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
105
52
|
import "../shared-utils/isTouchDevice.js";
|
|
106
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
107
53
|
import "../shared-utils/five/getPosition.js";
|
|
108
54
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
109
55
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
56
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
110
57
|
import "./item/boxItem.js";
|
|
111
58
|
import "./item/polygonItem.js";
|
|
112
59
|
import "./item/baseItem.js";
|
|
113
60
|
import "../shared-utils/three/addIfNotExists.js";
|
|
61
|
+
import "../shared-utils/three/boundingBox.js";
|
|
114
62
|
import "./utils/getFiveDomEvent.js";
|
|
63
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
64
|
+
import "../shared-utils/five/calculateThreeMouse.js";
|
|
115
65
|
import "../Sculpt/Meshes/Prism.js";
|
|
66
|
+
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
67
|
+
import "../shared-utils/three/core/PrismGeometry.js";
|
|
68
|
+
import "../shared-utils/three/geometryUtil.js";
|
|
116
69
|
import "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
117
70
|
import "../Sculpt/Meshes/Polyline.js";
|
|
118
71
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
119
72
|
import "../Sculpt/Meshes/Point.js";
|
|
120
73
|
import "../shared-utils/three/closeVectors.js";
|
|
74
|
+
import "../Sculpt/Meshes/Polygon.js";
|
|
75
|
+
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
76
|
+
import "../shared-utils/three/earcut3D.js";
|
|
77
|
+
import "earcut";
|
|
78
|
+
import "../shared-utils/three/getNormal.js";
|
|
79
|
+
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
80
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
121
81
|
import "./utils/tagRenderer.js";
|
|
122
82
|
import "./utils/Text.js";
|
|
123
83
|
import "../vendor/svelte/internal/index.js";
|
|
@@ -125,7 +85,7 @@ import "../components/AreaLabel/LabelItem.js";
|
|
|
125
85
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
126
86
|
import "./item/prismItem.js";
|
|
127
87
|
import "../CruisePlugin/utils/sleep.js";
|
|
128
|
-
const
|
|
88
|
+
const Io = (...o) => new r(...o);
|
|
129
89
|
export {
|
|
130
|
-
|
|
90
|
+
Io as ModelMakerPlugin
|
|
131
91
|
};
|
|
@@ -23,8 +23,7 @@ import "../../shared-utils/three/core/Sphere.js";
|
|
|
23
23
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
24
24
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
25
25
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
26
|
-
|
|
27
|
-
class S extends p {
|
|
26
|
+
class O extends p {
|
|
28
27
|
constructor(t) {
|
|
29
28
|
var s, r;
|
|
30
29
|
super();
|
|
@@ -67,5 +66,5 @@ class S extends p {
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
export {
|
|
70
|
-
|
|
69
|
+
O as ModelMakerBaseItem
|
|
71
70
|
};
|
|
@@ -22,12 +22,11 @@ import "../utils/getFiveDomEvent.js";
|
|
|
22
22
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
23
23
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
24
24
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
25
|
-
|
|
26
|
-
class w extends r {
|
|
25
|
+
class v extends r {
|
|
27
26
|
constructor(...o) {
|
|
28
27
|
super(...o);
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
v as ModelMakerBoxItem
|
|
33
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var r = Object.defineProperty;
|
|
2
|
-
var s = (
|
|
3
|
-
var o = (
|
|
2
|
+
var s = (t, i, e) => i in t ? r(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
|
|
3
|
+
var o = (t, i, e) => (s(t, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
4
|
import { ModelMakerBaseItem as p } from "./baseItem.js";
|
|
5
5
|
import "three";
|
|
6
6
|
import "../../shared-utils/three/addIfNotExists.js";
|
|
@@ -24,10 +24,9 @@ import "../utils/getFiveDomEvent.js";
|
|
|
24
24
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
25
25
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
26
26
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
super(...t);
|
|
27
|
+
class j extends p {
|
|
28
|
+
constructor(...e) {
|
|
29
|
+
super(...e);
|
|
31
30
|
o(this, "hideTag", () => {
|
|
32
31
|
this.tag.hide();
|
|
33
32
|
});
|
|
@@ -47,5 +46,5 @@ class z extends p {
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
export {
|
|
50
|
-
|
|
49
|
+
j as ModelMakerPolygonItem
|
|
51
50
|
};
|
|
@@ -33,13 +33,12 @@ import "../utils/getFiveDomEvent.js";
|
|
|
33
33
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
34
34
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
35
35
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
36
|
-
|
|
37
|
-
class L extends f {
|
|
36
|
+
class K extends f {
|
|
38
37
|
constructor(...o) {
|
|
39
38
|
const r = o[0], m = M(r.model), a = new u.Vector3().lerpVectors(n(m, 0), n(m, 5), 0.5);
|
|
40
39
|
super(s(e({}, r), { position: a })), this.enable();
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
export {
|
|
44
|
-
|
|
43
|
+
K as ModelMakerPrismItem
|
|
45
44
|
};
|