@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,86 +1,59 @@
|
|
|
1
|
-
var
|
|
1
|
+
var w = Object.defineProperty;
|
|
2
2
|
var b = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var e in
|
|
6
|
-
|
|
3
|
+
var D = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var u = (r, o, e) => o in r ? w(r, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[o] = e, g = (r, o) => {
|
|
5
|
+
for (var e in o || (o = {}))
|
|
6
|
+
D.call(o, e) && u(r, e, o[e]);
|
|
7
7
|
if (b)
|
|
8
|
-
for (var e of b(
|
|
9
|
-
|
|
8
|
+
for (var e of b(o))
|
|
9
|
+
T.call(o, e) && u(r, e, o[e]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
|
-
var h = (r,
|
|
13
|
-
import * as
|
|
14
|
-
import { DEFAULT_LINE_COLOR as L, DEFAULT_LINE_WIDTH as
|
|
15
|
-
import { LineMaterial as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { LightTag as R } from "../../shared-utils/tag.js";
|
|
12
|
+
var h = (r, o, e) => (u(r, typeof o != "symbol" ? o + "" : o, e), e);
|
|
13
|
+
import * as m from "three";
|
|
14
|
+
import { DEFAULT_LINE_COLOR as L, DEFAULT_LINE_WIDTH as _, DEFAULT_HIGHLIGHT_OPACITY as C } from "../typings/style.js";
|
|
15
|
+
import { LineMaterial as S, THREE_Line2 as k } from "../../shared-utils/five/FiveLine.js";
|
|
16
|
+
import { anyPositionToVector3 as E } from "../../shared-utils/positionToVector3.js";
|
|
17
|
+
import { IObject3D as v } from "../../shared-utils/three/IObject3D.js";
|
|
18
|
+
import { LightTag as I } from "../../shared-utils/tag.js";
|
|
20
19
|
import "hammerjs";
|
|
21
20
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
22
21
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
23
|
-
import { centerPoint as
|
|
24
|
-
import { removeAllTag as
|
|
25
|
-
import { getLengthHTML as
|
|
26
|
-
import { applyObjectMatrixWorld as
|
|
22
|
+
import { centerPoint as H } from "../../shared-utils/three/centerPoint.js";
|
|
23
|
+
import { removeAllTag as R } from "../utils/removeAllTag.js";
|
|
24
|
+
import { getLengthHTML as x } from "../utils/Meshes/getLengthHTML.js";
|
|
25
|
+
import { applyObjectMatrixWorld as M } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
26
|
+
import { LineGeometry as p } from "../../shared-utils/three/core/LineGeometry.js";
|
|
27
27
|
import "../../shared-utils/three/core/Sphere.js";
|
|
28
28
|
import "animejs";
|
|
29
29
|
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
30
30
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
31
|
-
|
|
32
|
-
import "../utils/Modules/Global.js";
|
|
33
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
34
|
-
import "../utils/three/rayOnLine.js";
|
|
35
|
-
class D extends v {
|
|
31
|
+
class X extends v {
|
|
36
32
|
constructor(e) {
|
|
37
|
-
var
|
|
38
|
-
super(e);
|
|
39
|
-
h(this, "_three_color");
|
|
40
|
-
c(e == null ? void 0 : e.color) && (this.three_color = (i = e == null ? void 0 : e.color) != null ? i : 16777215), Object.keys(e).forEach((o) => {
|
|
41
|
-
["color", "dashed", "dashScale", "dashSize", "gapSize", "resolution"].includes(o) || o in this && (this[o] = e[o]);
|
|
42
|
-
}), this.setDashed((t = e == null ? void 0 : e.dashed) != null ? t : !1);
|
|
43
|
-
}
|
|
44
|
-
get three_color() {
|
|
45
|
-
return this._three_color;
|
|
46
|
-
}
|
|
47
|
-
set three_color(e) {
|
|
48
|
-
this._three_color = e, this.color = e;
|
|
49
|
-
}
|
|
50
|
-
setDashed(e) {
|
|
51
|
-
this.dashed = e, e ? this.defines.USE_DASH = "" : delete this.defines.USE_DASH, this.needsUpdate = !0;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
class E extends H {
|
|
55
|
-
constructor(e, i) {
|
|
56
|
-
super(e, i);
|
|
57
|
-
h(this, "name", "Line3");
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
class ne extends x {
|
|
61
|
-
constructor(e) {
|
|
62
|
-
var l, d, a, u, n;
|
|
33
|
+
var s, l, a, d, y;
|
|
63
34
|
super();
|
|
64
35
|
h(this, "name", "LineMesh");
|
|
65
|
-
h(this, "
|
|
36
|
+
h(this, "type", "Line2");
|
|
37
|
+
h(this, "points", []);
|
|
66
38
|
h(this, "doms", []);
|
|
67
39
|
h(this, "highlighted", !1);
|
|
40
|
+
h(this, "_geometry");
|
|
68
41
|
h(this, "line");
|
|
69
42
|
h(this, "backLine");
|
|
70
43
|
h(this, "opacityBeforeHighlight");
|
|
71
44
|
h(this, "paramsStyle", {});
|
|
72
45
|
h(this, "lastRenderDomItem");
|
|
73
46
|
h(this, "_visible", !0);
|
|
74
|
-
this.paramsStyle = e != null ? e : {};
|
|
75
|
-
const
|
|
76
|
-
color: new
|
|
77
|
-
linewidth: (
|
|
47
|
+
this.paramsStyle = e != null ? e : {}, this.geometry = new p();
|
|
48
|
+
const t = new S({
|
|
49
|
+
color: new m.Color((s = e == null ? void 0 : e.lineColor) != null ? s : L),
|
|
50
|
+
linewidth: (l = e == null ? void 0 : e.lineWidth) != null ? l : _,
|
|
78
51
|
dashScale: 40,
|
|
79
52
|
opacity: (a = e == null ? void 0 : e.opacity) != null ? a : 1,
|
|
80
53
|
transparent: !0,
|
|
81
|
-
dashed: (
|
|
82
|
-
}),
|
|
83
|
-
color: new
|
|
54
|
+
dashed: (d = e == null ? void 0 : e.dashed) != null ? d : !1
|
|
55
|
+
}), i = new S({
|
|
56
|
+
color: new m.Color((y = e == null ? void 0 : e.lineColor) != null ? y : L),
|
|
84
57
|
linewidth: t.linewidth * 0.9,
|
|
85
58
|
dashScale: t.dashScale,
|
|
86
59
|
opacity: t.opacity * 0.7,
|
|
@@ -89,11 +62,11 @@ class ne extends x {
|
|
|
89
62
|
transparent: !0,
|
|
90
63
|
resolution: t.resolution
|
|
91
64
|
});
|
|
92
|
-
this.line = new
|
|
93
|
-
|
|
65
|
+
this.line = new k(this.geometry, t), this.backLine = new k(this.geometry, i), this.line.renderOrder = 1, this.backLine.renderOrder = 0, this.line.name = "lineFrontMaterial", this.backLine.name = "lineBackMaterial", this.add(this.line, this.backLine), e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
|
|
66
|
+
R(this);
|
|
94
67
|
}), Object.defineProperty(this, "visible", {
|
|
95
|
-
set: (
|
|
96
|
-
this.doms && this.doms.forEach((
|
|
68
|
+
set: (n) => {
|
|
69
|
+
this.doms && this.doms.forEach((f) => f.container.style.display = n ? "block" : "none"), this._visible = n;
|
|
97
70
|
},
|
|
98
71
|
get: () => this._visible
|
|
99
72
|
});
|
|
@@ -120,7 +93,7 @@ class ne extends x {
|
|
|
120
93
|
}
|
|
121
94
|
get color() {
|
|
122
95
|
var e;
|
|
123
|
-
return new
|
|
96
|
+
return new m.Color((e = this.line.material.three_color) != null ? e : this.paramsStyle.lineColor);
|
|
124
97
|
}
|
|
125
98
|
get dashed() {
|
|
126
99
|
var e;
|
|
@@ -133,79 +106,87 @@ class ne extends x {
|
|
|
133
106
|
return this.paramsStyle.occlusionMode;
|
|
134
107
|
}
|
|
135
108
|
get five() {
|
|
136
|
-
var
|
|
137
|
-
const e = (
|
|
109
|
+
var t, i;
|
|
110
|
+
const e = (i = (t = window.globalModules) == null ? void 0 : t.five) != null ? i : window.$five;
|
|
138
111
|
return e || console.error("请先调用 Sculpt.modules.init(five) "), e;
|
|
139
112
|
}
|
|
113
|
+
set geometry(e) {
|
|
114
|
+
var t;
|
|
115
|
+
this._geometry = e, this.line && (this.line.geometry = e), this.backLine && (this.backLine.geometry = e), (t = this.line) == null || t.computeLineDistances();
|
|
116
|
+
}
|
|
117
|
+
get geometry() {
|
|
118
|
+
return this._geometry;
|
|
119
|
+
}
|
|
140
120
|
updateMatrixWorld(e) {
|
|
141
|
-
var
|
|
121
|
+
var t;
|
|
142
122
|
if (super.updateMatrixWorld(e), this.points) {
|
|
143
|
-
const
|
|
144
|
-
|
|
123
|
+
const i = (t = M(this, this.points)) == null ? void 0 : t.map((s) => s.toArray().join(",")).join(",");
|
|
124
|
+
i !== this.lastRenderDomItem && (this.updateDomItems(), this.lastRenderDomItem = i);
|
|
145
125
|
}
|
|
146
126
|
}
|
|
147
127
|
setPoints(e) {
|
|
148
|
-
|
|
149
|
-
|
|
128
|
+
if (this.points.length === 0 && e.length === 0)
|
|
129
|
+
return;
|
|
130
|
+
const t = e.map(E).filter(c);
|
|
131
|
+
if (this.points = t, t.length < 2) {
|
|
150
132
|
this.line.geometry = new p(), this.backLine.geometry = this.line.geometry, this.updateDomItems();
|
|
151
133
|
return;
|
|
152
134
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
t.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new p(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(t), this.line.computeLineDistances(), this.updateDomItems(), this.needsRender = !0;
|
|
135
|
+
const i = t.flatMap((s) => [s.x, s.y, s.z]);
|
|
136
|
+
i.length > 2 && (this.line.geometry.dispose(), this.line.geometry = new p(), this.backLine.geometry = this.line.geometry), this.line.geometry.setPositions(i), this.line.computeLineDistances(), this.updateDomItems(), this.needsRender = !0;
|
|
156
137
|
}
|
|
157
|
-
setResolution(e,
|
|
158
|
-
const
|
|
159
|
-
(
|
|
160
|
-
const
|
|
161
|
-
(
|
|
138
|
+
setResolution(e, t) {
|
|
139
|
+
const i = this.line.material.resolution;
|
|
140
|
+
(i.x !== e || i.y !== t) && (i.set(e, t), this.needsRender = !0);
|
|
141
|
+
const s = this.backLine.material.resolution;
|
|
142
|
+
(s.x !== e || s.y !== t) && (s.set(e, t), this.needsRender = !0);
|
|
162
143
|
}
|
|
163
144
|
setStyle(e) {
|
|
164
|
-
var
|
|
165
|
-
this.paramsStyle = g(g({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new
|
|
166
|
-
const
|
|
167
|
-
|
|
145
|
+
var s, l, a;
|
|
146
|
+
this.paramsStyle = g(g({}, this.paramsStyle), e), c(e.lineColor) && (this.line.material.three_color = new m.Color(e.lineColor), this.backLine.material.three_color = new m.Color(e.lineColor)), c(e.lineWidth) && (this.line.material.linewidth = e.lineWidth), c(e.dashed) && this.line.material.setDashed(e.dashed), c(e.opacity) && (this.line.material.opacity = e.opacity, this.backLine.material.opacity = this.line.material.opacity * 0.7), this.updateDomItems();
|
|
147
|
+
const t = (s = e.occlusionVisibility) != null ? s : this.paramsStyle.occlusionVisibility, i = (a = (l = e.occlusionMode) != null ? l : this.paramsStyle.occlusionMode) != null ? a : "translucence";
|
|
148
|
+
t ? i === "depthTest" ? (this.line.material.depthTest = !1, this.backLine.visible = !1) : i === "translucence" && (this.line.material.depthTest = !0, this.backLine.visible = !0, this.line.material.opacity === 1 ? this.backLine.material.setDashed(!0) : this.backLine.material.setDashed(this.line.material.dashed)) : (this.line.material.depthTest = !0, this.backLine.visible = !1), this.needsRender = !0;
|
|
168
149
|
}
|
|
169
150
|
highlight() {
|
|
170
|
-
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight *
|
|
151
|
+
this.highlighted || (this.highlighted = !0, this.opacityBeforeHighlight = this.line.material.opacity, this.line.material.opacity = this.opacityBeforeHighlight * C, this.backLine.material.opacity = this.line.material.opacity * 0.7, this.needsRender = !0);
|
|
171
152
|
}
|
|
172
153
|
unhighlight() {
|
|
173
|
-
this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = 0.
|
|
154
|
+
this.highlighted && (this.highlighted = !1, this.line.material.opacity = this.opacityBeforeHighlight, this.backLine.material.opacity = this.line.material.opacity * 0.7, this.needsRender = !0);
|
|
174
155
|
}
|
|
175
156
|
updateDomItems() {
|
|
176
157
|
const e = () => {
|
|
177
|
-
this.doms.forEach((
|
|
158
|
+
this.doms.forEach((i) => i.destroy()), this.doms = [];
|
|
178
159
|
};
|
|
179
160
|
if (!this.points || this.points.length < 2 || !this.paramsStyle.lengthEnable && !this.paramsStyle.tip)
|
|
180
161
|
return e();
|
|
181
162
|
if (!this.five)
|
|
182
163
|
return console.error("Five not found");
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
185
|
-
return [this.points[
|
|
186
|
-
}).filter(c).map((
|
|
187
|
-
|
|
188
|
-
var
|
|
189
|
-
const
|
|
190
|
-
this.doms[l] = (
|
|
191
|
-
const n = new
|
|
164
|
+
const t = this.points.map((i, s) => {
|
|
165
|
+
if (s !== 0)
|
|
166
|
+
return [this.points[s - 1], i];
|
|
167
|
+
}).filter(c).map((i) => M(this, i));
|
|
168
|
+
t.forEach(([i, s], l) => {
|
|
169
|
+
var y;
|
|
170
|
+
const a = H(i, s);
|
|
171
|
+
this.doms[l] = (y = this.doms[l]) != null ? y : (() => {
|
|
172
|
+
const n = new I(this.five);
|
|
192
173
|
return n.intersectCheck = !1, n.simulate3D = !0, n;
|
|
193
|
-
})(), this.doms[l].setPosition(
|
|
194
|
-
const
|
|
195
|
-
var
|
|
196
|
-
this.doms[l].__text !== n && (this.doms[l].__text = n, n ? this.doms[l].container.innerHTML =
|
|
197
|
-
style: `color: #${c((
|
|
174
|
+
})(), this.doms[l].setPosition(a, [i, s]);
|
|
175
|
+
const d = (n) => {
|
|
176
|
+
var f;
|
|
177
|
+
this.doms[l].__text !== n && (this.doms[l].__text = n, n ? this.doms[l].container.innerHTML = x(n, {
|
|
178
|
+
style: `color: #${c((f = this.style) == null ? void 0 : f.lineColor) ? new m.Color(this.style.lineColor).getHexString() : "ffffff"}`
|
|
198
179
|
}) : this.doms[l].container.innerHTML = "");
|
|
199
180
|
};
|
|
200
181
|
if (this.paramsStyle.tip)
|
|
201
|
-
|
|
182
|
+
d(this.paramsStyle.tip);
|
|
202
183
|
else {
|
|
203
|
-
const n =
|
|
204
|
-
|
|
184
|
+
const n = i.distanceTo(s).toFixed(2);
|
|
185
|
+
d(n === "0.00" ? null : n + "m");
|
|
205
186
|
}
|
|
206
|
-
}), this.doms.length >
|
|
187
|
+
}), this.doms.length > t.length && (this.doms.slice(t.length).forEach((i) => i.destroy()), this.doms.length = t.length);
|
|
207
188
|
}
|
|
208
189
|
}
|
|
209
190
|
export {
|
|
210
|
-
|
|
191
|
+
X as LineMesh
|
|
211
192
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var u = Object.defineProperty, d = Object.defineProperties;
|
|
2
2
|
var f = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var a = Object.getOwnPropertySymbols;
|
|
4
4
|
var g = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var n = (s, i, t) => i in s ? u(s, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[i] = t, o = (s, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
7
|
g.call(i, t) && n(s, t, i[t]);
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
8
|
+
if (a)
|
|
9
|
+
for (var t of a(i))
|
|
10
10
|
c.call(i, t) && n(s, t, i[t]);
|
|
11
11
|
return s;
|
|
12
12
|
}, r = (s, i) => d(s, f(i));
|
|
@@ -21,14 +21,10 @@ import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
|
21
21
|
import { LineMesh as S } from "./Line.js";
|
|
22
22
|
import "../../shared-utils/three/core/Sphere.js";
|
|
23
23
|
import "animejs";
|
|
24
|
-
import { notNil as
|
|
24
|
+
import { notNil as y } from "../../shared-utils/isNil.js";
|
|
25
25
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
26
26
|
import { IObject3D as M } from "../../shared-utils/three/IObject3D.js";
|
|
27
|
-
|
|
28
|
-
import "../utils/Modules/Global.js";
|
|
29
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
30
|
-
import "../utils/three/rayOnLine.js";
|
|
31
|
-
class q extends S {
|
|
27
|
+
class W extends S {
|
|
32
28
|
constructor(t) {
|
|
33
29
|
super();
|
|
34
30
|
e(this, "name", "LineWithDotsMesh");
|
|
@@ -45,7 +41,7 @@ class q extends S {
|
|
|
45
41
|
});
|
|
46
42
|
e(this, "updateEdgePointsVisibility", () => {
|
|
47
43
|
var t;
|
|
48
|
-
|
|
44
|
+
y((t = this._paramsStyle) == null ? void 0 : t.pointVisibility) && (this.startPoint && (this.startPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.startPoint : this._paramsStyle.pointVisibility), this.endPoint && (this.endPoint.visible = typeof this._paramsStyle.pointVisibility == "object" ? this._paramsStyle.pointVisibility.endPoint : this._paramsStyle.pointVisibility));
|
|
49
45
|
});
|
|
50
46
|
this.add(this.pointGroup), t && this.setStyle(t), t != null && t.points && this.setPoints(t.points);
|
|
51
47
|
}
|
|
@@ -63,14 +59,14 @@ class q extends S {
|
|
|
63
59
|
}
|
|
64
60
|
setPoints(t) {
|
|
65
61
|
super.setPoints(t);
|
|
66
|
-
const h = t.map(b).filter(
|
|
67
|
-
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), h.forEach((
|
|
62
|
+
const h = t.map(b).filter(y);
|
|
63
|
+
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), h.forEach((m) => {
|
|
68
64
|
var l;
|
|
69
65
|
const p = new P(r(o({}, this.style), { color: (l = this._paramsStyle) == null ? void 0 : l.lineColor, tip: void 0 }));
|
|
70
|
-
p.position.copy(
|
|
66
|
+
p.position.copy(m), this.pointGroup.add(p);
|
|
71
67
|
}), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
72
68
|
}
|
|
73
69
|
}
|
|
74
70
|
export {
|
|
75
|
-
|
|
71
|
+
W as LineWithDotsMesh
|
|
76
72
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var k = Object.defineProperty, N = Object.defineProperties;
|
|
2
2
|
var D = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var d = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var f = (e, i, t) => i in e ?
|
|
4
|
+
var V = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var f = (e, i, t) => i in e ? k(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, g = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
V.call(i, t) && f(e, t, i[t]);
|
|
8
8
|
if (d)
|
|
9
9
|
for (var t of d(i))
|
|
10
|
-
|
|
10
|
+
v.call(i, t) && f(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, a = (e, i) => N(e, D(i));
|
|
13
13
|
var y = (e, i) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
16
|
+
V.call(e, o) && i.indexOf(o) < 0 && (t[o] = e[o]);
|
|
17
17
|
if (e != null && d)
|
|
18
18
|
for (var o of d(e))
|
|
19
|
-
i.indexOf(o) < 0 &&
|
|
19
|
+
i.indexOf(o) < 0 && v.call(e, o) && (t[o] = e[o]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
var s = (e, i, t) => (f(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
23
|
-
import * as
|
|
23
|
+
import * as h from "three";
|
|
24
24
|
import { DEFAULT_HIGHLIGHT_OPACITY as I } from "../typings/style.js";
|
|
25
25
|
import { IObject3D as W } from "../../shared-utils/three/IObject3D.js";
|
|
26
26
|
import { anyPositionToVector3 as x } from "../../shared-utils/positionToVector3.js";
|
|
@@ -29,23 +29,18 @@ import "hammerjs";
|
|
|
29
29
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
30
30
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
31
31
|
import "@realsee/five/line";
|
|
32
|
-
import "../../
|
|
32
|
+
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
33
33
|
import { removeAllTag as E } from "../utils/removeAllTag.js";
|
|
34
34
|
import { getLengthHTML as S } from "../utils/Meshes/getLengthHTML.js";
|
|
35
35
|
import { applyObjectMatrixWorld as T } from "../../shared-utils/three/applyObjectMatrixWorld.js";
|
|
36
36
|
import "../../shared-utils/three/core/Sphere.js";
|
|
37
37
|
import "animejs";
|
|
38
|
-
import { notNil as c } from "../../shared-utils/isNil.js";
|
|
39
38
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
|
-
import "./Polygon.js";
|
|
41
|
-
import "../utils/Modules/Global.js";
|
|
42
|
-
import "../../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
43
|
-
import "../utils/three/rayOnLine.js";
|
|
44
39
|
const H = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
|
|
45
40
|
let C = null;
|
|
46
|
-
class
|
|
41
|
+
class $ extends W {
|
|
47
42
|
constructor(t) {
|
|
48
|
-
var
|
|
43
|
+
var w, p;
|
|
49
44
|
super();
|
|
50
45
|
s(this, "name", "PointMesh");
|
|
51
46
|
s(this, "dom");
|
|
@@ -56,32 +51,32 @@ class st extends W {
|
|
|
56
51
|
s(this, "lastRenderDomItem");
|
|
57
52
|
s(this, "paramsStyle");
|
|
58
53
|
s(this, "_visible", !0);
|
|
59
|
-
const M = t != null ? t : {}, { point: o } = M,
|
|
60
|
-
this.paramsStyle =
|
|
61
|
-
const l = new
|
|
62
|
-
l.setAttribute("position", new
|
|
63
|
-
const
|
|
54
|
+
const M = t != null ? t : {}, { point: o } = M, r = y(M, ["point"]);
|
|
55
|
+
this.paramsStyle = r != null ? r : {};
|
|
56
|
+
const l = new h.BufferGeometry();
|
|
57
|
+
l.setAttribute("position", new h.Float32BufferAttribute([0, 0, 0], 3));
|
|
58
|
+
const m = {
|
|
64
59
|
transparent: !0,
|
|
65
|
-
side:
|
|
66
|
-
size: (
|
|
67
|
-
map: C || (C = new
|
|
60
|
+
side: h.DoubleSide,
|
|
61
|
+
size: (w = t == null ? void 0 : t.size) != null ? w : 8,
|
|
62
|
+
map: C || (C = new h.TextureLoader().load(H)),
|
|
68
63
|
sizeAttenuation: !1
|
|
69
|
-
}, u = new
|
|
70
|
-
color: (
|
|
64
|
+
}, u = new h.PointsMaterial(a(g({}, m), {
|
|
65
|
+
color: (p = t == null ? void 0 : t.color) != null ? p : 16777215,
|
|
71
66
|
depthTest: !0,
|
|
72
67
|
opacity: 1
|
|
73
|
-
})), P = new
|
|
68
|
+
})), P = new h.PointsMaterial(a(g({}, m), {
|
|
74
69
|
size: u.size,
|
|
75
70
|
color: u.color,
|
|
76
71
|
depthWrite: !1,
|
|
77
72
|
depthTest: !1,
|
|
78
73
|
opacity: 0.5
|
|
79
|
-
})), n = new
|
|
74
|
+
})), n = new h.Points(l, u), A = new h.Points(l, P);
|
|
80
75
|
this.fontMesh = n, this.backgroundMesh = A, n.name = "FontMesh", A.name = "BackgroundMesh", n.renderOrder = 10, A.renderOrder = 0, this.add(n, A), t != null && t.point && this.position.copy(x(t.point)), t && this.setStyle(t), this.addEventListener("removed", () => {
|
|
81
76
|
E(this);
|
|
82
77
|
}), Object.defineProperty(this, "visible", {
|
|
83
78
|
set: (b) => {
|
|
84
|
-
this.dom && (this.dom.container.style.
|
|
79
|
+
this.dom && (this.dom.container.style.display = b ? "block" : "none"), this._visible = b;
|
|
85
80
|
},
|
|
86
81
|
get: () => this._visible
|
|
87
82
|
});
|
|
@@ -121,15 +116,15 @@ class st extends W {
|
|
|
121
116
|
updateDom() {
|
|
122
117
|
const t = this.paramsStyle.tip;
|
|
123
118
|
t && !this.dom && (this.dom = new B(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0, this.dom.container.style.visibility = "hidden");
|
|
124
|
-
const o = (
|
|
119
|
+
const o = (r) => {
|
|
125
120
|
var l;
|
|
126
|
-
this.dom && this.dom.__text !==
|
|
127
|
-
style: `color: #${c((l = this.style) == null ? void 0 : l.color) ? new
|
|
121
|
+
this.dom && this.dom.__text !== r && (this.dom.__text = r, r ? this.dom.container.innerHTML = S(r, {
|
|
122
|
+
style: `color: #${c((l = this.style) == null ? void 0 : l.color) ? new h.Color(this.style.color).getHexString() : "ffffff"}`
|
|
128
123
|
}) : this.dom.container.innerHTML = "");
|
|
129
124
|
};
|
|
130
125
|
t ? (o(t), this.dom.setPosition(this.position.clone())) : o(null);
|
|
131
126
|
}
|
|
132
127
|
}
|
|
133
128
|
export {
|
|
134
|
-
|
|
129
|
+
$ as PointMesh
|
|
135
130
|
};
|
|
@@ -9,7 +9,7 @@ export type PolygonStyle = ColoredMeshStyle & {
|
|
|
9
9
|
lengthEnable: boolean;
|
|
10
10
|
};
|
|
11
11
|
export type PolygonData = PointsData;
|
|
12
|
-
export
|
|
12
|
+
export declare class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
|
|
13
13
|
name: string;
|
|
14
14
|
get style(): {
|
|
15
15
|
lengthEnable: boolean;
|
|
@@ -31,8 +31,6 @@ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
|
|
|
31
31
|
private get five();
|
|
32
32
|
private planeHelper;
|
|
33
33
|
private _geometryInfo;
|
|
34
|
-
private opacityBeforeHighlight;
|
|
35
|
-
private highlighted;
|
|
36
34
|
private lastRenderAreaItem;
|
|
37
35
|
private areaDom?;
|
|
38
36
|
constructor(params?: Partial<PolygonStyle & PolygonData>);
|
|
@@ -43,8 +41,6 @@ export default class PolygonMesh extends ColoredMesh<THREE.BufferGeometry> {
|
|
|
43
41
|
* @description: 获取一个点投影在当前平面上的点
|
|
44
42
|
*/
|
|
45
43
|
projectPoint(point: THREE.Vector3): THREE.Vector3;
|
|
46
|
-
highlight(): void;
|
|
47
|
-
unhighlight(): void;
|
|
48
44
|
private updatePlaneHelper;
|
|
49
45
|
private updateAreaItems;
|
|
50
46
|
}
|