@realsee/dnalogel 3.51.0 → 3.52.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 +15 -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 -5
- package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
- 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 +13 -2
- package/dist/Sculpt/index.d.ts +10 -19
- 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 +35141 -54254
- 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 -5
- package/libs/Sculpt/Meshes/Rectangle.js +12 -22
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Base/index.js +20 -25
- 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 +41 -37
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
- 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 +13 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
- package/libs/Sculpt/index.d.ts +10 -19
- 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
|
@@ -2,30 +2,30 @@ var C = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var E = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var g = Object.getOwnPropertySymbols;
|
|
4
4
|
var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (
|
|
6
|
-
for (var t in
|
|
7
|
-
A.call(
|
|
5
|
+
var u = (d, n, t) => n in d ? C(d, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[n] = t, l = (d, n) => {
|
|
6
|
+
for (var t in n || (n = {}))
|
|
7
|
+
A.call(n, t) && u(d, t, n[t]);
|
|
8
8
|
if (g)
|
|
9
|
-
for (var t of g(
|
|
10
|
-
x.call(
|
|
11
|
-
return
|
|
12
|
-
}, f = (
|
|
13
|
-
var o = (
|
|
14
|
-
var c = (
|
|
15
|
-
var
|
|
9
|
+
for (var t of g(n))
|
|
10
|
+
x.call(n, t) && u(d, t, n[t]);
|
|
11
|
+
return d;
|
|
12
|
+
}, f = (d, n) => F(d, E(n));
|
|
13
|
+
var o = (d, n, t) => (u(d, typeof n != "symbol" ? n + "" : n, t), t);
|
|
14
|
+
var c = (d, n, t) => new Promise((i, e) => {
|
|
15
|
+
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(t.next(h));
|
|
18
|
-
} catch (
|
|
19
|
-
e(
|
|
18
|
+
} catch (p) {
|
|
19
|
+
e(p);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, r = (h) => {
|
|
22
22
|
try {
|
|
23
23
|
a(t.throw(h));
|
|
24
|
-
} catch (
|
|
25
|
-
e(
|
|
24
|
+
} catch (p) {
|
|
25
|
+
e(p);
|
|
26
26
|
}
|
|
27
|
-
}, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(
|
|
28
|
-
a((t = t.apply(
|
|
27
|
+
}, a = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(s, r);
|
|
28
|
+
a((t = t.apply(d, n)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as S from "three";
|
|
31
31
|
import { equal as y } from "../../shared-utils/equal.js";
|
|
@@ -43,15 +43,10 @@ import "hammerjs";
|
|
|
43
43
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
44
44
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
45
45
|
import "@realsee/five/line";
|
|
46
|
-
import "../../
|
|
46
|
+
import { isNil as k } from "../../shared-utils/isNil.js";
|
|
47
47
|
import "../../shared-utils/three/core/Sphere.js";
|
|
48
48
|
import "animejs";
|
|
49
|
-
import { isNil as k } from "../../shared-utils/isNil.js";
|
|
50
49
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
51
|
-
import "../../Sculpt/Meshes/Polygon.js";
|
|
52
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
53
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
54
|
-
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
55
50
|
import "../../shared-utils/isTruelyObject.js";
|
|
56
51
|
import "../../vendor/svelte/internal/index.js";
|
|
57
52
|
import "../../vendor/svelte/transition/index.js";
|
|
@@ -121,62 +116,15 @@ import "../../Sculpt/utils/removeAllTag.js";
|
|
|
121
116
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
122
117
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
123
118
|
import "../../shared-utils/util.js";
|
|
119
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
124
120
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
125
121
|
import "../../shared-utils/isTouchDevice.js";
|
|
126
122
|
import "../../shared-utils/five/getPosition.js";
|
|
127
123
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
128
124
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
129
|
-
|
|
130
|
-
import "../../vendor/three/build/three.module.js";
|
|
131
|
-
import "../../shared-utils/three/generatePolygonGeometry.js";
|
|
132
|
-
import "../../shared-utils/three/earcut3D.js";
|
|
133
|
-
import "earcut";
|
|
134
|
-
import "../../shared-utils/three/getNormal.js";
|
|
135
|
-
import "../../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
136
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
137
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
138
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
139
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
140
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
141
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
142
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
143
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
144
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
145
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
146
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
147
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
148
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
149
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
150
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
151
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
152
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
153
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
154
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
155
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
156
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
157
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
158
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
159
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
160
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
161
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
162
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
163
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
164
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
165
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
166
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
167
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
168
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
169
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
170
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
171
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
172
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
173
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
174
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
175
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
176
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
177
|
-
class Fe extends M {
|
|
125
|
+
class Ai extends M {
|
|
178
126
|
constructor(t, i) {
|
|
179
|
-
var h,
|
|
127
|
+
var h, p;
|
|
180
128
|
super(t);
|
|
181
129
|
// =============== public properties =================
|
|
182
130
|
o(this, "name", "topviewFloorplanPlugin");
|
|
@@ -206,8 +154,8 @@ class Fe extends M {
|
|
|
206
154
|
o(this, "updateSize", () => {
|
|
207
155
|
if (!this.data || !this.container || !this.wrapper || this.five.getCurrentState().mode !== "Topview")
|
|
208
156
|
return !1;
|
|
209
|
-
const { min: t, max: i } = this.data.bounding, e = i.x - t.x,
|
|
210
|
-
return this.size.width === h && this.size.height ===
|
|
157
|
+
const { min: t, max: i } = this.data.bounding, e = i.x - t.x, s = i.y - t.y, r = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, a = D(this.five, this.wrapper, this.floorIndex, r), h = Math.ceil(e * a), p = Math.ceil(s * a);
|
|
158
|
+
return this.size.width === h && this.size.height === p || (this.container.style.width = h + "px", this.container.style.height = p + "px", this.size = { width: h, height: p }), !0;
|
|
211
159
|
});
|
|
212
160
|
/** 销毁插件 */
|
|
213
161
|
o(this, "dispose", () => {
|
|
@@ -221,9 +169,9 @@ class Fe extends M {
|
|
|
221
169
|
this.highlightData = {}, this.render();
|
|
222
170
|
});
|
|
223
171
|
o(this, "_disable", (t) => {
|
|
224
|
-
var e,
|
|
172
|
+
var e, s;
|
|
225
173
|
const { userAction: i } = t;
|
|
226
|
-
(e = this.app) == null || e.$destroy(), this.app = void 0, (
|
|
174
|
+
(e = this.app) == null || e.$destroy(), this.app = void 0, (s = this.container) == null || s.remove(), this.removeEventListener(), this.hooks.emit("disable", { userAction: i });
|
|
227
175
|
});
|
|
228
176
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
229
177
|
o(this, "onFiveModelLoaded", () => {
|
|
@@ -272,7 +220,7 @@ class Fe extends M {
|
|
|
272
220
|
imageURL: this.staticPrefix + "/release/web/saas/missing-floorplan.e274c596.png",
|
|
273
221
|
imageWidth: 200,
|
|
274
222
|
imageHeight: 120,
|
|
275
|
-
text: (
|
|
223
|
+
text: (p = (h = i.i18n) == null ? void 0 : h.call(i, "暂无平面图")) != null ? p : "暂无平面图",
|
|
276
224
|
textFontSize: 14
|
|
277
225
|
};
|
|
278
226
|
const e = {
|
|
@@ -292,24 +240,24 @@ class Fe extends M {
|
|
|
292
240
|
cameraImageUrl: L,
|
|
293
241
|
attachedTo: _.BOUNDING_CENTER,
|
|
294
242
|
getLabelElement: void 0,
|
|
295
|
-
missingFloorConfig:
|
|
296
|
-
i18n: (
|
|
243
|
+
missingFloorConfig: l(l({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
244
|
+
i18n: (m) => m,
|
|
297
245
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
298
|
-
getRoomAreaText: (
|
|
299
|
-
getRoomDimensionText: (
|
|
300
|
-
getRuleDistanceText: (
|
|
301
|
-
},
|
|
246
|
+
getRoomAreaText: (m) => (m / 1e6).toFixed(1) + "㎡",
|
|
247
|
+
getRoomDimensionText: (m, w) => (m / 1e3).toFixed(1) + "m × " + (w / 1e3).toFixed(1) + "m",
|
|
248
|
+
getRuleDistanceText: (m) => m.toString()
|
|
249
|
+
}, s = i ? T(i, ["selector", "scale"]) : {}, r = l(l({}, e.missingFloorConfig), s.missingFloorConfig), a = f(l(l({}, e), s), { missingFloorConfig: r });
|
|
302
250
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), t.model.loaded ? this.onFiveModelLoaded() : t.once("modelLoaded", this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
303
251
|
}
|
|
304
252
|
load(t, i, e = !0) {
|
|
305
253
|
return c(this, null, function* () {
|
|
306
|
-
function
|
|
307
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
254
|
+
function s(m) {
|
|
255
|
+
return Object.prototype.hasOwnProperty.apply(m, ["version"]);
|
|
308
256
|
}
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
const a = JSON.parse(JSON.stringify(t)), h =
|
|
312
|
-
this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data,
|
|
257
|
+
const r = t;
|
|
258
|
+
r && k(r.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
259
|
+
const a = JSON.parse(JSON.stringify(t)), h = s(a) ? a.data : a, p = this.data;
|
|
260
|
+
this.data = yield v(h), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, p), i && this.updateState(i, e), this.render();
|
|
313
261
|
});
|
|
314
262
|
}
|
|
315
263
|
/** 更新户型图位置 */
|
|
@@ -318,8 +266,8 @@ class Fe extends M {
|
|
|
318
266
|
const t = O(this.five, this.floorIndex, this.state.config.attachedTo), i = (a = this.five.model) == null ? void 0 : a.bounding.getCenter(new S.Vector3()).setY(t);
|
|
319
267
|
if (!i)
|
|
320
268
|
return;
|
|
321
|
-
const e = i.clone().project(this.five.camera),
|
|
322
|
-
this.container.style.left =
|
|
269
|
+
const e = i.clone().project(this.five.camera), s = (e.x + 1) / 2, r = -(e.y - 1) / 2;
|
|
270
|
+
this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
|
|
323
271
|
}
|
|
324
272
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
325
273
|
appendTo(t) {
|
|
@@ -356,14 +304,14 @@ class Fe extends M {
|
|
|
356
304
|
}
|
|
357
305
|
/** 更改插件 State */
|
|
358
306
|
setState(t, i = {}) {
|
|
359
|
-
const e = this.state,
|
|
360
|
-
if (this.updateState(t,
|
|
361
|
-
const
|
|
362
|
-
t.enabled ? this._enable(
|
|
307
|
+
const e = this.state, s = i.userAction !== void 0 ? i.userAction : !0;
|
|
308
|
+
if (this.updateState(t, s), t.enabled !== void 0 && e.enabled !== t.enabled) {
|
|
309
|
+
const r = { userAction: s };
|
|
310
|
+
t.enabled ? this._enable(r) : this._disable(r);
|
|
363
311
|
}
|
|
364
312
|
if (t.visible !== void 0 && e.visible !== t.visible) {
|
|
365
|
-
const
|
|
366
|
-
t.visible ? this._show(
|
|
313
|
+
const r = { userAction: s };
|
|
314
|
+
t.visible ? this._show(r) : this._hide(r);
|
|
367
315
|
}
|
|
368
316
|
}
|
|
369
317
|
changeConfigs(t, i = !0) {
|
|
@@ -381,8 +329,8 @@ class Fe extends M {
|
|
|
381
329
|
this.isHiddenByHideFunc = !1;
|
|
382
330
|
const { userAction: i } = t;
|
|
383
331
|
this.hooks.emit("show", { userAction: i, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield P(this.five, ["Topview", void 0, void 0, i])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
|
|
384
|
-
const e = 500,
|
|
385
|
-
b(this.five,
|
|
332
|
+
const e = 500, s = this.state.config.modelOpacity;
|
|
333
|
+
b(this.five, s, e), this.hooks.emit("showAnimationEnded", { userAction: i, auto: !1 }), this.render();
|
|
386
334
|
});
|
|
387
335
|
}
|
|
388
336
|
_hide(t) {
|
|
@@ -391,8 +339,8 @@ class Fe extends M {
|
|
|
391
339
|
return;
|
|
392
340
|
const { userAction: i } = t;
|
|
393
341
|
this.hooks.emit("hide", { userAction: i, auto: !1 });
|
|
394
|
-
const e = 1,
|
|
395
|
-
b(this.five, e,
|
|
342
|
+
const e = 1, s = 0;
|
|
343
|
+
b(this.five, e, s), this.render();
|
|
396
344
|
});
|
|
397
345
|
}
|
|
398
346
|
_enable(t) {
|
|
@@ -401,8 +349,8 @@ class Fe extends M {
|
|
|
401
349
|
}
|
|
402
350
|
updateState(t, i) {
|
|
403
351
|
var a;
|
|
404
|
-
const e = this.state,
|
|
405
|
-
this.state = f(
|
|
352
|
+
const e = this.state, s = (a = t.config) != null && a.missingFloorConfig ? l(l({}, e.config.missingFloorConfig), t.config.missingFloorConfig) : e.config.missingFloorConfig, r = t.config ? f(l(l({}, e.config), t.config), { missingFloorConfig: s }) : e.config;
|
|
353
|
+
this.state = f(l(l({}, this.state), t), { config: r }), !y(this.state, e, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
|
|
406
354
|
}
|
|
407
355
|
addEventListener() {
|
|
408
356
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
@@ -432,7 +380,7 @@ class Fe extends M {
|
|
|
432
380
|
render(t) {
|
|
433
381
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
434
382
|
return;
|
|
435
|
-
const i = f(
|
|
383
|
+
const i = f(l({}, this.state.config), {
|
|
436
384
|
visible: this.state.visible,
|
|
437
385
|
duration: t != null ? t : 0,
|
|
438
386
|
panoIndex: this.panoIndex,
|
|
@@ -447,5 +395,5 @@ class Fe extends M {
|
|
|
447
395
|
}
|
|
448
396
|
}
|
|
449
397
|
export {
|
|
450
|
-
|
|
398
|
+
Ai as Controller
|
|
451
399
|
};
|
|
@@ -64,90 +64,38 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
64
64
|
import "../../shared-utils/three/centerPoint.js";
|
|
65
65
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
66
66
|
import "@realsee/five/line";
|
|
67
|
-
import "../../
|
|
68
|
-
import "../../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
69
|
-
import "../../vendor/three/build/three.module.js";
|
|
67
|
+
import "../../shared-utils/isNil.js";
|
|
70
68
|
import "../../shared-utils/three/core/Sphere.js";
|
|
71
69
|
import "animejs";
|
|
72
|
-
import "../../shared-utils/isNil.js";
|
|
73
70
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
74
|
-
import "../../
|
|
75
|
-
import "../../shared-utils/
|
|
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 "../../Sculpt/typings/style.js";
|
|
81
|
-
import "../../Sculpt/utils/three/ColoredMesh.js";
|
|
82
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
83
|
-
import "../../Sculpt/utils/Modules/Global.js";
|
|
84
|
-
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
85
|
-
import "../../Object3DHelperPlugin/Controller.js";
|
|
86
|
-
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
87
|
-
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
88
|
-
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
89
|
-
import "../../shared-utils/three/boundingBox.js";
|
|
90
|
-
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
91
|
-
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
92
|
-
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
93
|
-
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
94
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
71
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
72
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
95
73
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
96
74
|
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
97
75
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
98
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
99
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
100
|
-
import "../../shared-utils/util.js";
|
|
101
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
102
|
-
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
103
|
-
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
104
76
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
105
77
|
import "../../Sculpt/Meshes/Line.js";
|
|
78
|
+
import "../../Sculpt/typings/style.js";
|
|
106
79
|
import "../../shared-utils/five/FiveLine.js";
|
|
80
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
107
81
|
import "../../Sculpt/utils/removeAllTag.js";
|
|
108
82
|
import "../../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
109
83
|
import "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
110
|
-
import "../../
|
|
111
|
-
import "../../
|
|
84
|
+
import "../../shared-utils/util.js";
|
|
85
|
+
import "../../shared-utils/three/core/LineGeometry.js";
|
|
112
86
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
113
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
114
|
-
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
115
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
116
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
117
|
-
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
118
|
-
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
119
|
-
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
120
|
-
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
121
|
-
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
122
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
123
|
-
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
124
|
-
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
125
|
-
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
126
|
-
import "../../shared-utils/Object3DHelper/index.js";
|
|
127
|
-
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
128
|
-
import "../../shared-utils/math/deg2Rad.js";
|
|
129
|
-
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
130
|
-
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
131
|
-
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
132
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
133
|
-
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
134
|
-
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
135
|
-
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
136
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
137
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
138
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
139
87
|
import "../../shared-utils/isTouchDevice.js";
|
|
140
|
-
import "../../shared-utils/three/geometryUtil.js";
|
|
141
88
|
import "../../shared-utils/five/getPosition.js";
|
|
142
89
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
143
90
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
91
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
144
92
|
import "../../shared-utils/five/changeMode.js";
|
|
145
93
|
import "../../shared-utils/nearlyEqual.js";
|
|
146
94
|
import "../../shared-utils/to.js";
|
|
147
95
|
import "../../shared-utils/getPxmm.js";
|
|
148
96
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
149
|
-
const
|
|
97
|
+
const Uo = (o, r) => new t(o, r);
|
|
150
98
|
export {
|
|
151
|
-
|
|
152
|
-
|
|
99
|
+
Uo as TopviewFloorplanPlugin,
|
|
100
|
+
Uo as default
|
|
153
101
|
};
|
package/libs/floorplan/index.js
CHANGED
|
@@ -5,12 +5,7 @@ import "hammerjs";
|
|
|
5
5
|
import "../shared-utils/three/PointSelector/index.js";
|
|
6
6
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
7
7
|
import "@realsee/five/line";
|
|
8
|
-
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
9
8
|
import "../shared-utils/three/core/Sphere.js";
|
|
10
9
|
import "animejs";
|
|
11
10
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
12
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
13
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
14
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
15
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
16
11
|
import "../shared-utils/nearlyEqual.js";
|
package/libs/index.d.ts
CHANGED
|
@@ -26,4 +26,82 @@ export * from './AreaMakerPlugin';
|
|
|
26
26
|
export * from './CurrentPanoImagePlugin';
|
|
27
27
|
export * from './Sculpt';
|
|
28
28
|
export * from './ModelMakerPlugin';
|
|
29
|
-
|
|
29
|
+
import * as _Util from './shared-utils';
|
|
30
|
+
import * as sculpt from './Sculpt/utils/export';
|
|
31
|
+
declare const Util: {
|
|
32
|
+
sculpt: typeof sculpt;
|
|
33
|
+
Interval: typeof _Util.Interval;
|
|
34
|
+
Rectangle: typeof _Util.Rectangle;
|
|
35
|
+
convexHull(points: import("./typings/math.type").Vector2Position[]): import("./typings/math.type").Vector2Position[];
|
|
36
|
+
inside: typeof _Util.inside;
|
|
37
|
+
pointInPolygon: typeof _Util.inside;
|
|
38
|
+
tag(five: import("@realsee/five").Five, position?: import("./shared-utils/positionToVector3").AnyPosition, config?: {
|
|
39
|
+
wrapper?: HTMLElement;
|
|
40
|
+
positionsForRotate?: import("./shared-utils/positionToVector3").AnyPosition[];
|
|
41
|
+
namespace?: string;
|
|
42
|
+
}): _Util.LightTag;
|
|
43
|
+
LightTag: typeof _Util.LightTag;
|
|
44
|
+
checkFiveModelLoaded(five: import("@realsee/five").Five): {
|
|
45
|
+
result: boolean;
|
|
46
|
+
msg: string;
|
|
47
|
+
};
|
|
48
|
+
isPanoramaLike(mode: import("@realsee/five").Mode): boolean;
|
|
49
|
+
isModelLike(mode: import("@realsee/five").Mode): boolean;
|
|
50
|
+
lookObject(five: import("@realsee/five").Five, object: import("three").Object3D, config?: {
|
|
51
|
+
scale?: number;
|
|
52
|
+
}): Promise<void>;
|
|
53
|
+
lookPoint(five: import("@realsee/five").Five, point: import("three").Vector3, config?: {
|
|
54
|
+
distance?: number;
|
|
55
|
+
}): Promise<void>;
|
|
56
|
+
waitFiveModelLoaded(five: import("@realsee/five").Five): Promise<void>;
|
|
57
|
+
fiveModelIsLoaded(five: import("@realsee/five").Five): boolean;
|
|
58
|
+
FiveDomEvents: typeof _Util.FiveDomEvents;
|
|
59
|
+
Magnifier: typeof _Util.Magnifier;
|
|
60
|
+
getCoordsFromClient(position: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
}, element: HTMLElement): import("three").Vector2;
|
|
64
|
+
getCoordsFromElement(position: {
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
}, element: HTMLElement): import("three").Vector2;
|
|
68
|
+
PointSelector: typeof _Util.PointSelector;
|
|
69
|
+
PointHelper: typeof _Util.PointHelper;
|
|
70
|
+
PointSelectorHelper: typeof _Util.PointSelectorHelper;
|
|
71
|
+
Object3D: typeof _Util.Object3D;
|
|
72
|
+
LineSegments: typeof _Util.LineSegments;
|
|
73
|
+
boxVertexes(box: {
|
|
74
|
+
max: import("./typings/math.type").Vector3Position;
|
|
75
|
+
min: import("./typings/math.type").Vector3Position;
|
|
76
|
+
}): import("three").Vector3[];
|
|
77
|
+
boxVertex(box: {
|
|
78
|
+
max: import("./typings/math.type").Vector3Position;
|
|
79
|
+
min: import("./typings/math.type").Vector3Position;
|
|
80
|
+
}, index: number): import("three").Vector3;
|
|
81
|
+
boundingBox(object3D: import("three").Object3D): import("three").Box3;
|
|
82
|
+
boundingSphere(object3D: import("three").Object3D): import("three").Sphere;
|
|
83
|
+
worldBoundingBox(object3D: import("three").Object3D): import("three").Box3;
|
|
84
|
+
worldBoundingSphere(object3D: import("three").Object3D): import("three").Sphere;
|
|
85
|
+
worldBounding<T extends "sphere" | "box3">(object3D: import("three").Object3D, boxOrSphereType: T): T extends "box3" ? import("three").Box3 : import("three").Sphere;
|
|
86
|
+
bounding<T_1 extends "sphere" | "box3">(object3D: import("three").Object3D, boxOrSphereType: T_1): T_1 extends "box3" ? import("three").Box3 : import("three").Sphere;
|
|
87
|
+
blink: typeof _Util.blink;
|
|
88
|
+
reblink: typeof _Util.reblink;
|
|
89
|
+
animeMap: Map<(HTMLElement | import("three").Object3D) | (HTMLElement | import("three").Object3D)[], _Util.AnimeInstance>;
|
|
90
|
+
isNil<T_2>(value: T_2): value is Extract<T_2, null>;
|
|
91
|
+
notNil<T_3>(value: T_3): value is T_3;
|
|
92
|
+
uuid: typeof _Util.uuid;
|
|
93
|
+
isAbsoluteURL(url: string): boolean;
|
|
94
|
+
absoluteUrl(baseUrl: string, url: string): string;
|
|
95
|
+
nextFrame(fn: (time: number) => void, delay?: number): void;
|
|
96
|
+
awaitNextFrame(): Promise<void>;
|
|
97
|
+
requestAnimationFrameInterval(callback?: (time: number) => any, frame?: number): () => void;
|
|
98
|
+
getFrameTime(): Promise<unknown>;
|
|
99
|
+
tweenProgress(duration?: number, easing?: (amount: number) => number): _Util.BetterTween<{
|
|
100
|
+
progress: number;
|
|
101
|
+
}>;
|
|
102
|
+
BetterTween: typeof _Util.BetterTween;
|
|
103
|
+
equal(value: any, other: any, opt?: {
|
|
104
|
+
deep: boolean;
|
|
105
|
+
}): boolean;
|
|
106
|
+
};
|
|
107
|
+
export { Util };
|