@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
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var c = Object.getOwnPropertySymbols;
|
|
3
3
|
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var h = (
|
|
4
|
+
var h = (e, t, i) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, u = (e, t) => {
|
|
5
5
|
for (var i in t || (t = {}))
|
|
6
|
-
v.call(t, i) && h(
|
|
6
|
+
v.call(t, i) && h(e, i, t[i]);
|
|
7
7
|
if (c)
|
|
8
8
|
for (var i of c(t))
|
|
9
|
-
b.call(t, i) && h(
|
|
10
|
-
return
|
|
9
|
+
b.call(t, i) && h(e, i, t[i]);
|
|
10
|
+
return e;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var o = (e, t, i) => (h(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
13
|
+
var m = (e, t, i) => new Promise((p, s) => {
|
|
14
|
+
var a = (r) => {
|
|
15
15
|
try {
|
|
16
|
-
l(i.next(
|
|
16
|
+
l(i.next(r));
|
|
17
17
|
} catch (d) {
|
|
18
|
-
|
|
18
|
+
s(d);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, n = (r) => {
|
|
21
21
|
try {
|
|
22
|
-
l(i.throw(
|
|
22
|
+
l(i.throw(r));
|
|
23
23
|
} catch (d) {
|
|
24
|
-
|
|
24
|
+
s(d);
|
|
25
25
|
}
|
|
26
|
-
}, l = (
|
|
27
|
-
l((i = i.apply(
|
|
26
|
+
}, l = (r) => r.done ? p(r.value) : Promise.resolve(r.value).then(a, n);
|
|
27
|
+
l((i = i.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import I from "./RulerItems.js";
|
|
30
30
|
import "../vendor/svelte/internal/index.js";
|
|
@@ -59,81 +59,26 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
59
59
|
import "../shared-utils/three/centerPoint.js";
|
|
60
60
|
import "../shared-utils/three/getObjectVisible.js";
|
|
61
61
|
import "@realsee/five/line";
|
|
62
|
-
import "../
|
|
63
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
64
|
-
import "../vendor/three/build/three.module.js";
|
|
62
|
+
import "../shared-utils/isNil.js";
|
|
65
63
|
import "../shared-utils/three/core/Sphere.js";
|
|
66
64
|
import "animejs";
|
|
67
|
-
import "../shared-utils/
|
|
68
|
-
import "../
|
|
69
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
70
|
-
import "../shared-utils/three/earcut3D.js";
|
|
71
|
-
import "earcut";
|
|
72
|
-
import "../shared-utils/three/getNormal.js";
|
|
73
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
74
|
-
import "../Sculpt/typings/style.js";
|
|
75
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
76
|
-
import "../shared-utils/three/IObject3D.js";
|
|
77
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
78
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
79
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
80
|
-
import "../base/BasePlugin.js";
|
|
81
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
82
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
83
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
84
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
85
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
86
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
87
|
-
import "../shared-utils/three/boundingBox.js";
|
|
88
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
90
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
91
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
92
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
65
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
66
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
93
67
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
94
68
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
95
69
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
96
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
97
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
98
|
-
import "../shared-utils/util.js";
|
|
99
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
100
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
101
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
102
70
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
103
71
|
import "../Sculpt/Meshes/Line.js";
|
|
72
|
+
import "../Sculpt/typings/style.js";
|
|
104
73
|
import "../shared-utils/five/FiveLine.js";
|
|
74
|
+
import "../shared-utils/three/IObject3D.js";
|
|
105
75
|
import "../Sculpt/utils/removeAllTag.js";
|
|
106
76
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
107
77
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
78
|
+
import "../shared-utils/util.js";
|
|
79
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
108
80
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
109
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
110
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
111
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
112
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
113
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
114
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
115
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
116
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
117
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
118
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
119
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
120
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
121
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
122
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
123
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
124
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
125
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
126
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
127
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
128
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
129
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
130
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
131
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
132
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
133
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
134
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
135
81
|
import "../shared-utils/isTouchDevice.js";
|
|
136
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
137
82
|
import "../shared-utils/five/getPosition.js";
|
|
138
83
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
139
84
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -141,13 +86,13 @@ import "../shared-utils/equal.js";
|
|
|
141
86
|
import "../shared-utils/isTruelyObject.js";
|
|
142
87
|
import "../shared-utils/math/planimetry.js";
|
|
143
88
|
import "./RulerItem.js";
|
|
144
|
-
class
|
|
89
|
+
class xt {
|
|
145
90
|
constructor(t, i) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
91
|
+
o(this, "five");
|
|
92
|
+
o(this, "container", document.createElement("div"));
|
|
93
|
+
o(this, "panoRulerProData");
|
|
94
|
+
o(this, "rulerItems");
|
|
95
|
+
o(this, "state", {
|
|
151
96
|
enabled: !1,
|
|
152
97
|
loaded: !1,
|
|
153
98
|
options: {
|
|
@@ -155,17 +100,17 @@ class Ei {
|
|
|
155
100
|
distanceText: (t) => `${t.toFixed(1)}m`
|
|
156
101
|
}
|
|
157
102
|
});
|
|
158
|
-
var
|
|
103
|
+
var p, s;
|
|
159
104
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
160
105
|
"style",
|
|
161
106
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
162
|
-
), i && (i.data && this.load(i.data), this.state.options = u(u({}, this.state.options), i.options || {}), (
|
|
163
|
-
var
|
|
164
|
-
(
|
|
107
|
+
), i && (i.data && this.load(i.data), this.state.options = u(u({}, this.state.options), i.options || {}), (p = i.options) != null && p.className && this.container.classList.add((s = i.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => m(this, null, function* () {
|
|
108
|
+
var a, n;
|
|
109
|
+
(n = (a = this.five.getElement()) == null ? void 0 : a.parentNode) == null || n.append(this.container);
|
|
165
110
|
})), this.five.once("dispose", () => this.dispose());
|
|
166
111
|
}
|
|
167
112
|
load(t) {
|
|
168
|
-
return
|
|
113
|
+
return m(this, null, function* () {
|
|
169
114
|
if (!this.five.work)
|
|
170
115
|
return;
|
|
171
116
|
const i = t.data;
|
|
@@ -181,7 +126,7 @@ class Ei {
|
|
|
181
126
|
return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
|
|
182
127
|
}
|
|
183
128
|
render() {
|
|
184
|
-
return
|
|
129
|
+
return m(this, null, function* () {
|
|
185
130
|
var t;
|
|
186
131
|
if (this.state.enabled) {
|
|
187
132
|
if (!this.panoRulerProData || !this.container)
|
|
@@ -204,5 +149,5 @@ class Ei {
|
|
|
204
149
|
}
|
|
205
150
|
}
|
|
206
151
|
export {
|
|
207
|
-
|
|
152
|
+
xt as default
|
|
208
153
|
};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as
|
|
2
|
-
import { Five as
|
|
3
|
-
import { nextFrame as
|
|
1
|
+
import { SvelteComponent as Q, init as X, safe_not_equal as Z, element as $, insert as tt, transition_in as C, check_outros as et, transition_out as k, detach as ot, destroy_each as nt, onMount as rt, onDestroy as it, create_component as st, mount_component as at, destroy_component as ct, group_outros as mt } from "../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Five as lt } from "@realsee/five";
|
|
3
|
+
import { nextFrame as pt } from "../shared-utils/animationFrame/index.js";
|
|
4
4
|
import "../shared-utils/tag.js";
|
|
5
5
|
import { Vector3 as M } from "three";
|
|
6
6
|
import "hammerjs";
|
|
7
7
|
import "../shared-utils/three/PointSelector/index.js";
|
|
8
8
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
9
9
|
import "@realsee/five/line";
|
|
10
|
-
import "../vendor/three/examples/jsm/lines/LineGeometry.js";
|
|
11
10
|
import "../shared-utils/three/core/Sphere.js";
|
|
12
11
|
import "animejs";
|
|
13
12
|
import { equal as z } from "../shared-utils/equal.js";
|
|
14
|
-
import "../Sculpt/Meshes/Polygon.js";
|
|
15
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
16
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
17
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
18
13
|
import { intersectionOfLine as ft } from "../shared-utils/math/planimetry.js";
|
|
19
14
|
import { throttle as ut } from "../shared-utils/throttle.js";
|
|
20
15
|
import ht from "./RulerItem.js";
|
|
@@ -55,170 +50,120 @@ import "../Sculpt/utils/removeAllTag.js";
|
|
|
55
50
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
56
51
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
57
52
|
import "../shared-utils/util.js";
|
|
53
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
58
54
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
59
55
|
import "../shared-utils/isTouchDevice.js";
|
|
60
56
|
import "../shared-utils/five/getPosition.js";
|
|
61
57
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
62
58
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
63
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
64
|
-
import "../vendor/three/build/three.module.js";
|
|
65
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
66
|
-
import "../shared-utils/three/earcut3D.js";
|
|
67
|
-
import "earcut";
|
|
68
|
-
import "../shared-utils/three/getNormal.js";
|
|
69
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
70
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
71
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
72
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
73
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
74
|
-
import "../base/BasePlugin.js";
|
|
75
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
76
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
77
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
78
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
79
|
-
import "../shared-utils/three/boundingBox.js";
|
|
80
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
81
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
82
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
84
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
85
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
86
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
87
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
90
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
91
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
92
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
93
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
94
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
95
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
96
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
97
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
98
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
99
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
101
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
102
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
103
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
105
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
106
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
107
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
108
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
109
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
110
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
111
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
112
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
113
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
114
59
|
import "../shared-utils/isTruelyObject.js";
|
|
115
|
-
function J(d,
|
|
60
|
+
function J(d, r, c) {
|
|
116
61
|
const t = d.slice();
|
|
117
|
-
return t[12] =
|
|
62
|
+
return t[12] = r[c], t;
|
|
118
63
|
}
|
|
119
64
|
function K(d) {
|
|
120
|
-
let
|
|
121
|
-
return
|
|
65
|
+
let r, c;
|
|
66
|
+
return r = new ht({
|
|
122
67
|
props: { rulerItemProp: (
|
|
123
68
|
/*itemData*/
|
|
124
69
|
d[12]
|
|
125
70
|
) }
|
|
126
71
|
}), {
|
|
127
72
|
c() {
|
|
128
|
-
|
|
73
|
+
st(r.$$.fragment);
|
|
129
74
|
},
|
|
130
|
-
m(t,
|
|
131
|
-
|
|
75
|
+
m(t, e) {
|
|
76
|
+
at(r, t, e), c = !0;
|
|
132
77
|
},
|
|
133
|
-
p(t,
|
|
78
|
+
p(t, e) {
|
|
134
79
|
const w = {};
|
|
135
|
-
|
|
80
|
+
e & /*rulerItemProp*/
|
|
136
81
|
1 && (w.rulerItemProp = /*itemData*/
|
|
137
|
-
t[12]),
|
|
82
|
+
t[12]), r.$set(w);
|
|
138
83
|
},
|
|
139
84
|
i(t) {
|
|
140
|
-
|
|
85
|
+
c || (C(r.$$.fragment, t), c = !0);
|
|
141
86
|
},
|
|
142
87
|
o(t) {
|
|
143
|
-
k(
|
|
88
|
+
k(r.$$.fragment, t), c = !1;
|
|
144
89
|
},
|
|
145
90
|
d(t) {
|
|
146
|
-
|
|
91
|
+
ct(r, t);
|
|
147
92
|
}
|
|
148
93
|
};
|
|
149
94
|
}
|
|
150
95
|
function dt(d) {
|
|
151
|
-
let
|
|
96
|
+
let r, c, t = (
|
|
152
97
|
/*rulerItemProp*/
|
|
153
98
|
d[0]
|
|
154
|
-
),
|
|
155
|
-
for (let
|
|
156
|
-
|
|
157
|
-
const w = (
|
|
158
|
-
|
|
99
|
+
), e = [];
|
|
100
|
+
for (let n = 0; n < t.length; n += 1)
|
|
101
|
+
e[n] = K(J(d, t, n));
|
|
102
|
+
const w = (n) => k(e[n], 1, 1, () => {
|
|
103
|
+
e[n] = null;
|
|
159
104
|
});
|
|
160
105
|
return {
|
|
161
106
|
c() {
|
|
162
|
-
|
|
163
|
-
for (let
|
|
164
|
-
|
|
107
|
+
r = $("div");
|
|
108
|
+
for (let n = 0; n < e.length; n += 1)
|
|
109
|
+
e[n].c();
|
|
165
110
|
},
|
|
166
|
-
m(
|
|
167
|
-
tt(
|
|
168
|
-
for (let
|
|
169
|
-
o
|
|
170
|
-
|
|
111
|
+
m(n, s) {
|
|
112
|
+
tt(n, r, s);
|
|
113
|
+
for (let o = 0; o < e.length; o += 1)
|
|
114
|
+
e[o] && e[o].m(r, null);
|
|
115
|
+
c = !0;
|
|
171
116
|
},
|
|
172
|
-
p(
|
|
173
|
-
if (
|
|
117
|
+
p(n, [s]) {
|
|
118
|
+
if (s & /*rulerItemProp*/
|
|
174
119
|
1) {
|
|
175
120
|
t = /*rulerItemProp*/
|
|
176
|
-
|
|
177
|
-
let
|
|
178
|
-
for (
|
|
179
|
-
const A = J(
|
|
180
|
-
o
|
|
121
|
+
n[0];
|
|
122
|
+
let o;
|
|
123
|
+
for (o = 0; o < t.length; o += 1) {
|
|
124
|
+
const A = J(n, t, o);
|
|
125
|
+
e[o] ? (e[o].p(A, s), C(e[o], 1)) : (e[o] = K(A), e[o].c(), C(e[o], 1), e[o].m(r, null));
|
|
181
126
|
}
|
|
182
|
-
for (
|
|
183
|
-
w(
|
|
184
|
-
|
|
127
|
+
for (mt(), o = t.length; o < e.length; o += 1)
|
|
128
|
+
w(o);
|
|
129
|
+
et();
|
|
185
130
|
}
|
|
186
131
|
},
|
|
187
|
-
i(
|
|
188
|
-
if (!
|
|
189
|
-
for (let
|
|
190
|
-
C(
|
|
191
|
-
|
|
132
|
+
i(n) {
|
|
133
|
+
if (!c) {
|
|
134
|
+
for (let s = 0; s < t.length; s += 1)
|
|
135
|
+
C(e[s]);
|
|
136
|
+
c = !0;
|
|
192
137
|
}
|
|
193
138
|
},
|
|
194
|
-
o(
|
|
195
|
-
|
|
196
|
-
for (let
|
|
197
|
-
k(
|
|
198
|
-
|
|
139
|
+
o(n) {
|
|
140
|
+
e = e.filter(Boolean);
|
|
141
|
+
for (let s = 0; s < e.length; s += 1)
|
|
142
|
+
k(e[s]);
|
|
143
|
+
c = !1;
|
|
199
144
|
},
|
|
200
|
-
d(
|
|
201
|
-
|
|
145
|
+
d(n) {
|
|
146
|
+
n && ot(r), nt(e, n);
|
|
202
147
|
}
|
|
203
148
|
};
|
|
204
149
|
}
|
|
205
|
-
function gt(d,
|
|
150
|
+
function gt(d, r, c) {
|
|
206
151
|
var B, G, H, U;
|
|
207
|
-
let { five: t } =
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
[{ x: 0, y: 0 }, { x:
|
|
211
|
-
[{ x: 0, y: 0 }, { x: 0, y:
|
|
212
|
-
[{ x:
|
|
213
|
-
[{ x: 0, y:
|
|
152
|
+
let { five: t } = r, { rulerDatas: e } = r, { options: w } = r, n = [];
|
|
153
|
+
const s = ((G = (B = t.getElement()) == null ? void 0 : B.parentElement) == null ? void 0 : G.clientWidth) || 0, o = ((U = (H = t.getElement()) == null ? void 0 : H.parentElement) == null ? void 0 : U.clientHeight) || 0, A = (a, m) => {
|
|
154
|
+
const l = [
|
|
155
|
+
[{ x: 0, y: 0 }, { x: s, y: 0 }],
|
|
156
|
+
[{ x: 0, y: 0 }, { x: 0, y: o }],
|
|
157
|
+
[{ x: s, y: 0 }, { x: s, y: o }],
|
|
158
|
+
[{ x: 0, y: o }, { x: s, y: o }]
|
|
214
159
|
], f = [];
|
|
215
|
-
for (let u = 0; u <
|
|
216
|
-
const g = ft([
|
|
160
|
+
for (let u = 0; u < l.length; u++) {
|
|
161
|
+
const g = ft([a, m], [l[u][0], l[u][1]], !0);
|
|
217
162
|
g && f.push(g);
|
|
218
163
|
}
|
|
219
164
|
return f.length === 0 ? !1 : f;
|
|
220
|
-
}, j = (
|
|
221
|
-
const
|
|
165
|
+
}, j = (a, m) => {
|
|
166
|
+
const l = a.clone().project(t.camera), f = (l.x + 1) / 2 * s, u = (-l.y + 1) / 2 * o, g = m.clone().project(t.camera), L = (g.x + 1) / 2 * s, y = (-g.y + 1) / 2 * o, i = Math.sqrt(Math.pow(L - f, 2) + Math.pow(y - u, 2));
|
|
222
167
|
return {
|
|
223
168
|
startLeft: f,
|
|
224
169
|
startTop: u,
|
|
@@ -226,16 +171,16 @@ function gt(d, n, a) {
|
|
|
226
171
|
endTop: y,
|
|
227
172
|
distance: i
|
|
228
173
|
};
|
|
229
|
-
}, N = (
|
|
230
|
-
const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g =
|
|
174
|
+
}, N = (a, m, l) => {
|
|
175
|
+
const f = t.camera.position, u = t.camera.getWorldDirection(new M()), g = a.clone().sub(f).normalize().angleTo(u), L = m.clone().sub(f).normalize().angleTo(u), y = a.distanceTo(m), T = m.clone().sub(m.clone().sub(a).divide(new M(2, 2, 2))).distanceTo(f), { startLeft: h, startTop: x, endLeft: v, endTop: q, distance: D } = j(a, m), S = -((Math.PI / 2 - Math.atan2(v - h, x - q)) / Math.PI) * 180;
|
|
231
176
|
let P = !0;
|
|
232
|
-
|
|
177
|
+
l || (P = !1), !z(a, l) && !z(m, l) && (P = !1), y < 0.3 && (P = !1), g > Math.PI / 2 && (P = !1), L > Math.PI / 2 && (P = !1), T / y > 8 && (P = !1);
|
|
233
178
|
let I = 50, b = D;
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
179
|
+
const p = A({ x: ~~h, y: ~~x }, { x: ~~v, y: ~~q });
|
|
180
|
+
if (p && p.length === 1 && (z(a, l) ? (b = Math.sqrt(Math.pow(p[0].x - h, 2) + Math.pow(p[0].y - x, 2)), I = b / D * 50) : z(m, l) && (b = Math.sqrt(Math.pow(p[0].x - v, 2) + Math.pow(p[0].y - q, 2)), I = 100 - b / D * 50)), p && p.length === 2) {
|
|
236
181
|
const F = {
|
|
237
|
-
x: (
|
|
238
|
-
y: (
|
|
182
|
+
x: (p[0].x + p[1].x) / 2,
|
|
183
|
+
y: (p[0].y + p[1].y) / 2
|
|
239
184
|
};
|
|
240
185
|
I = Math.sqrt(Math.pow(F.x - h, 2) + Math.pow(F.y - x, 2)) / D * 100;
|
|
241
186
|
}
|
|
@@ -249,18 +194,18 @@ function gt(d, n, a) {
|
|
|
249
194
|
ruleLength: y
|
|
250
195
|
};
|
|
251
196
|
}, _ = () => {
|
|
252
|
-
const
|
|
253
|
-
if (!
|
|
254
|
-
return
|
|
255
|
-
if (t.currentMode !==
|
|
256
|
-
return
|
|
257
|
-
const
|
|
258
|
-
const h = i.clone().setY(0).sub(
|
|
197
|
+
const a = t.panoIndex, m = e.find((i) => i.panoIndex === a);
|
|
198
|
+
if (!m)
|
|
199
|
+
return c(0, n = []);
|
|
200
|
+
if (t.currentMode !== lt.Mode.Panorama)
|
|
201
|
+
return c(0, n = []);
|
|
202
|
+
const l = t.camera.position, f = t.camera.getWorldDirection(new M()), u = m.lines.map((i) => new M(i.start[0], -i.start[1], -i.start[2])), g = m.lines.map((i) => new M(i.end[0], -i.end[1], -i.end[2])), [L] = u.concat(g).sort((i, T) => {
|
|
203
|
+
const h = i.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0)), x = T.clone().setY(0).sub(l).normalize().angleTo(f.clone().setY(0));
|
|
259
204
|
return h - x;
|
|
260
|
-
}), y =
|
|
261
|
-
var b,
|
|
205
|
+
}), y = m.lines.map((i) => {
|
|
206
|
+
var b, p;
|
|
262
207
|
const T = i.start, h = i.end, { startLeft: x, startTop: v, distance: q, deg: D, visible: V, labelOffset: S, ruleLength: P } = N(new M(T[0], -T[1], -T[2]), new M(h[0], -h[1], -h[2]), L), I = [];
|
|
263
|
-
return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((
|
|
208
|
+
return i.children && ((b = i.children) == null ? void 0 : b.length) > 0 && ((p = i.children) == null || p.forEach((F) => {
|
|
264
209
|
const W = F.start, Y = F.end, { distance: O } = j(new M(W[0], -W[1], -W[2]), new M(Y[0], -Y[1], -Y[2]));
|
|
265
210
|
I.push({ width: O, state: F.state });
|
|
266
211
|
})), {
|
|
@@ -275,21 +220,21 @@ function gt(d, n, a) {
|
|
|
275
220
|
labelElement: w.distanceText(P)
|
|
276
221
|
};
|
|
277
222
|
});
|
|
278
|
-
|
|
279
|
-
}, E = () =>
|
|
280
|
-
return
|
|
223
|
+
c(0, n = y);
|
|
224
|
+
}, E = () => pt(_), R = ut(_, 80);
|
|
225
|
+
return rt(() => {
|
|
281
226
|
_(), t.on("panoArrived", _), t.on("modeChange", _), t.on("cameraDirectionUpdate", E), t.on("movingToPano", E), t.on("mouseWheel", () => R()), t.on("pinchGesture", () => R());
|
|
282
227
|
}), it(() => {
|
|
283
228
|
t.off("panoArrived", _), t.off("modeChange", _), t.off("cameraDirectionUpdate", E), t.off("movingToPano", E), t.off("mouseWheel", () => R()), t.off("pinchGesture", () => R());
|
|
284
|
-
}), d.$$set = (
|
|
285
|
-
"five" in
|
|
286
|
-
}, [
|
|
229
|
+
}), d.$$set = (a) => {
|
|
230
|
+
"five" in a && c(1, t = a.five), "rulerDatas" in a && c(2, e = a.rulerDatas), "options" in a && c(3, w = a.options);
|
|
231
|
+
}, [n, t, e, w];
|
|
287
232
|
}
|
|
288
|
-
class
|
|
289
|
-
constructor(
|
|
290
|
-
super(), X(this,
|
|
233
|
+
class _e extends Q {
|
|
234
|
+
constructor(r) {
|
|
235
|
+
super(), X(this, r, gt, dt, Z, { five: 1, rulerDatas: 2, options: 3 });
|
|
291
236
|
}
|
|
292
237
|
}
|
|
293
238
|
export {
|
|
294
|
-
|
|
239
|
+
_e as default
|
|
295
240
|
};
|
|
@@ -32,81 +32,26 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
|
32
32
|
import "../shared-utils/three/centerPoint.js";
|
|
33
33
|
import "../shared-utils/three/getObjectVisible.js";
|
|
34
34
|
import "@realsee/five/line";
|
|
35
|
-
import "../
|
|
36
|
-
import "../vendor/three/examples/jsm/lines/LineSegmentsGeometry.js";
|
|
37
|
-
import "../vendor/three/build/three.module.js";
|
|
35
|
+
import "../shared-utils/isNil.js";
|
|
38
36
|
import "../shared-utils/three/core/Sphere.js";
|
|
39
37
|
import "animejs";
|
|
40
|
-
import "../shared-utils/
|
|
41
|
-
import "../
|
|
42
|
-
import "../shared-utils/three/generatePolygonGeometry.js";
|
|
43
|
-
import "../shared-utils/three/earcut3D.js";
|
|
44
|
-
import "earcut";
|
|
45
|
-
import "../shared-utils/three/getNormal.js";
|
|
46
|
-
import "../PanoMeasurePlugin/utils/isIntersecting.js";
|
|
47
|
-
import "../Sculpt/typings/style.js";
|
|
48
|
-
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
49
|
-
import "../shared-utils/three/IObject3D.js";
|
|
50
|
-
import "../Sculpt/utils/Modules/Global.js";
|
|
51
|
-
import "../Sculpt/utils/Modules/Cursor.js";
|
|
52
|
-
import "../Object3DHelperPlugin/Controller.js";
|
|
53
|
-
import "../base/BasePlugin.js";
|
|
54
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
55
|
-
import "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
56
|
-
import "../Sculpt/utils/three/rayOnLine.js";
|
|
57
|
-
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
58
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
59
|
-
import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
60
|
-
import "../shared-utils/three/boundingBox.js";
|
|
61
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
62
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
63
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
64
|
-
import "../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
65
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
38
|
+
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
39
|
+
import "../shared-utils/five/initialCSS3DRender.js";
|
|
66
40
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
67
41
|
import "../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
68
42
|
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
69
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
70
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
71
|
-
import "../shared-utils/util.js";
|
|
72
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
73
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
74
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
75
43
|
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
76
44
|
import "../Sculpt/Meshes/Line.js";
|
|
45
|
+
import "../Sculpt/typings/style.js";
|
|
77
46
|
import "../shared-utils/five/FiveLine.js";
|
|
47
|
+
import "../shared-utils/three/IObject3D.js";
|
|
78
48
|
import "../Sculpt/utils/removeAllTag.js";
|
|
79
49
|
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
80
50
|
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
51
|
+
import "../shared-utils/util.js";
|
|
52
|
+
import "../shared-utils/three/core/LineGeometry.js";
|
|
81
53
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
82
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
83
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
84
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
85
|
-
import "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
86
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
87
|
-
import "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
88
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
89
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
90
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
91
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
92
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
93
|
-
import "../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
94
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
95
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
96
|
-
import "../shared-utils/math/rad2Deg.js";
|
|
97
|
-
import "../shared-utils/math/deg2Rad.js";
|
|
98
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
99
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
100
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
101
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
102
|
-
import "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
103
|
-
import "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
104
|
-
import "../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
105
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
106
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
107
|
-
import "../shared-utils/five/calculateThreeMouse.js";
|
|
108
54
|
import "../shared-utils/isTouchDevice.js";
|
|
109
|
-
import "../shared-utils/three/geometryUtil.js";
|
|
110
55
|
import "../shared-utils/five/getPosition.js";
|
|
111
56
|
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
112
57
|
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
@@ -114,8 +59,8 @@ import "../shared-utils/equal.js";
|
|
|
114
59
|
import "../shared-utils/isTruelyObject.js";
|
|
115
60
|
import "../shared-utils/math/planimetry.js";
|
|
116
61
|
import "./RulerItem.js";
|
|
117
|
-
const
|
|
62
|
+
const ar = (r, o) => new t(r, o);
|
|
118
63
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
64
|
+
ar as PanoRulerProPlugin,
|
|
65
|
+
ar as default
|
|
121
66
|
};
|