@realsee/dnalogel 3.44.5 → 3.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/Sculpt/Meshes/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -83
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var f = (s, r, t) => r in s ? h(s, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[r] = t;
|
|
3
|
+
var p = (s, r, t) => (f(s, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
4
|
import { BaseTag as g } from "./BaseTag.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as d from "three";
|
|
6
6
|
import { cancelIdleCallback as b, requestIdleCallback as y } from "../../utils/requestIdleCallback.js";
|
|
7
7
|
import "../../../shared-utils/Subscribe.js";
|
|
8
8
|
import "../../utils/tag/calculateTagConfig.js";
|
|
@@ -15,23 +15,93 @@ import "../../../shared-utils/five/mode.js";
|
|
|
15
15
|
import "hammerjs";
|
|
16
16
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
17
17
|
import "@realsee/five/line";
|
|
18
|
+
import "../../../Sculpt/utils/Modules/Global.js";
|
|
19
|
+
import "../../../Sculpt/utils/Modules/Cursor.js";
|
|
20
|
+
import "../../../Object3DHelperPlugin/Controller.js";
|
|
21
|
+
import "../../../base/BasePlugin.js";
|
|
18
22
|
import "../../../shared-utils/three/THREESphere.js";
|
|
19
23
|
import "animejs";
|
|
24
|
+
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
25
|
+
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
26
|
+
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
27
|
+
import "../../../shared-utils/five/transformPosition.js";
|
|
28
|
+
import "../../../shared-utils/five/getFiveModel.js";
|
|
29
|
+
import "../../../shared-utils/url/absoluteUrl.js";
|
|
20
30
|
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
|
-
import "
|
|
22
|
-
import "../../../shared-utils/
|
|
31
|
+
import "../../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
33
|
+
import "../../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
34
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
35
|
+
import "../../../shared-utils/three/boundingBox.js";
|
|
36
|
+
import "../../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
37
|
+
import "../../../shared-utils/Object3DHelper/utils/direction.js";
|
|
38
|
+
import "../../../shared-utils/Object3DHelper/Constants/color.js";
|
|
39
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
40
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
23
41
|
import "../../../shared-utils/positionToVector3.js";
|
|
24
|
-
import "../../../
|
|
42
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
43
|
+
import "../../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
44
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
45
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
46
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
47
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
48
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
49
|
+
import "../../../shared-utils/three/getObjectVisible.js";
|
|
50
|
+
import "../../../shared-utils/isNil.js";
|
|
51
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
52
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
25
53
|
import "../../../shared-utils/util.js";
|
|
54
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
55
|
+
import "../../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
56
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
57
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
58
|
+
import "../../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
59
|
+
import "../../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
60
|
+
import "../../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
61
|
+
import "../../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
62
|
+
import "../../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
63
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
64
|
+
import "../../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
65
|
+
import "../../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
66
|
+
import "../../../Sculpt/utils/three/rayOnLine.js";
|
|
67
|
+
import "../../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
68
|
+
import "../../../shared-utils/Object3DHelper/index.js";
|
|
69
|
+
import "../../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
70
|
+
import "../../../shared-utils/math/rad2Deg.js";
|
|
71
|
+
import "../../../shared-utils/math/deg2Rad.js";
|
|
72
|
+
import "../../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
73
|
+
import "../../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
74
|
+
import "../../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
75
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
76
|
+
import "../../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
77
|
+
import "../../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
78
|
+
import "../../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
79
|
+
import "../../../shared-utils/five/fiveModelLoad.js";
|
|
80
|
+
import "../../../shared-utils/five/FiveDomEvents.js";
|
|
81
|
+
import "../../../shared-utils/five/calculateThreeMouse.js";
|
|
82
|
+
import "../../../shared-utils/three/THREERaycaster.js";
|
|
83
|
+
import "../../../shared-utils/three/PointSelector/index.js";
|
|
84
|
+
import "../../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
85
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
86
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
87
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
88
|
+
import "../../../shared-utils/three/PointSelector/utils/html.js";
|
|
89
|
+
import "../../../shared-utils/five/initialCSS3DRender.js";
|
|
90
|
+
import "../../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
91
|
+
import "../../../Sculpt/Meshes/Line.js";
|
|
92
|
+
import "../../../Sculpt/typings/style.js";
|
|
93
|
+
import "../../../shared-utils/five/FiveLine.js";
|
|
94
|
+
import "../../../shared-utils/tag.js";
|
|
95
|
+
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
96
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
97
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
98
|
+
import "../../../shared-utils/five/getPosition.js";
|
|
99
|
+
import "../../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
100
|
+
import "../../utils/tag/format.js";
|
|
101
|
+
import "../../../shared-utils/three/blink.js";
|
|
26
102
|
import "../../../shared-utils/vectorToCoordinate.js";
|
|
27
103
|
import "../../../shared-utils/formatRad.js";
|
|
28
|
-
import "../../../shared-utils/five/transformPosition.js";
|
|
29
|
-
import "../../../shared-utils/isNil.js";
|
|
30
104
|
import "../../../shared-utils/five/lookPoint.js";
|
|
31
|
-
import "../../../shared-utils/Utils/FiveUtil.js";
|
|
32
|
-
import "../../../shared-utils/Utils/BaseUtil.js";
|
|
33
|
-
import "../../../shared-utils/Utils/WorkUtil.js";
|
|
34
|
-
import "../../../shared-utils/five/getFiveModel.js";
|
|
35
105
|
import "../../../shared-utils/uuid.js";
|
|
36
106
|
import "../../utils/tagPosition.js";
|
|
37
107
|
import "../../utils/tag/tagCheck.js";
|
|
@@ -41,19 +111,19 @@ import "../../../shared-utils/five/getFloorIndex.js";
|
|
|
41
111
|
import "../../../shared-utils/safeObj.js";
|
|
42
112
|
import "../../utils/Cache.js";
|
|
43
113
|
import "../../../CruisePlugin/utils/sleep.js";
|
|
44
|
-
const v = new
|
|
45
|
-
class
|
|
46
|
-
constructor(t,
|
|
47
|
-
super(t,
|
|
48
|
-
|
|
49
|
-
|
|
114
|
+
const v = new d.Vector2();
|
|
115
|
+
class Pi extends g {
|
|
116
|
+
constructor(t, i) {
|
|
117
|
+
super(t, i);
|
|
118
|
+
p(this, "__Object__");
|
|
119
|
+
p(this, "requestIdleCallbackId");
|
|
50
120
|
}
|
|
51
121
|
/**
|
|
52
122
|
* @description 展开自己,收起其他标签
|
|
53
123
|
*/
|
|
54
124
|
unfoldAndFoldOthers() {
|
|
55
|
-
const t = this.can("fold"),
|
|
56
|
-
t &&
|
|
125
|
+
const t = this.can("fold"), i = this.can("unfold");
|
|
126
|
+
t && i && (this.state.unfolded = !this.state.unfolded, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }), this.state.unfolded && this.plugin.tags.forEach((o) => {
|
|
57
127
|
o.id !== this.id && o.fold();
|
|
58
128
|
}));
|
|
59
129
|
}
|
|
@@ -66,8 +136,8 @@ class rt extends g {
|
|
|
66
136
|
});
|
|
67
137
|
}
|
|
68
138
|
applyVisible() {
|
|
69
|
-
var t,
|
|
70
|
-
this.currentVisible && this.updateScreenPosition(), (o = (
|
|
139
|
+
var t, i, o, e;
|
|
140
|
+
this.currentVisible && this.updateScreenPosition(), (o = (i = (t = this.tag3DContentSvelte) == null ? void 0 : t.css3DInstance) == null ? void 0 : i.css3DObject) == null || o.setVisible(this.currentVisible), (e = this.tag3DContentSvelte) == null || e.svelteApp.$set({
|
|
71
141
|
state: this.plugin.state,
|
|
72
142
|
temporaryState: this.temporaryState
|
|
73
143
|
}), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
@@ -83,38 +153,38 @@ class rt extends g {
|
|
|
83
153
|
* @param {boolean} unfolded
|
|
84
154
|
*/
|
|
85
155
|
setUnfold(t) {
|
|
86
|
-
const
|
|
87
|
-
|
|
156
|
+
const i = this.can("fold"), o = this.can("unfold");
|
|
157
|
+
i && o && (this.state.unfolded = t, this.hooks.emit(t ? "unfolded" : "folded"), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
88
158
|
}
|
|
89
159
|
setPosition(t) {
|
|
90
160
|
this.originPosition = t, this.position = t, this.cache.clear(), this.updateVisible(), this.updateScreenPosition(), this.updateZIndex(), this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
91
161
|
}
|
|
92
162
|
updateScreenPosition(t) {
|
|
93
|
-
var
|
|
163
|
+
var m;
|
|
94
164
|
if (this.stickType !== "2DPoint" && this.stickType !== "3DPoint")
|
|
95
165
|
return;
|
|
96
|
-
const { force:
|
|
166
|
+
const { force: i = !1 } = t != null ? t : {}, o = i ? this.state.visible : this.currentVisible, e = (m = this.__Object__) != null ? m : {
|
|
97
167
|
timeoutId: void 0,
|
|
98
168
|
inAnimation: !1
|
|
99
169
|
};
|
|
100
|
-
if (this.__Object__ =
|
|
170
|
+
if (this.__Object__ = e, !o && this.screenPosition ? (e.inAnimation = !0, e.timeoutId = setTimeout(() => {
|
|
101
171
|
requestAnimationFrame(() => {
|
|
102
|
-
this.currentVisible || (
|
|
172
|
+
this.currentVisible || (e.inAnimation = !1, this.screenPosition = null, this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] }));
|
|
103
173
|
});
|
|
104
|
-
}, 1e3)) :
|
|
174
|
+
}, 1e3)) : e.timeoutId && (clearTimeout(e.timeoutId), e.inAnimation = !1, e.timeoutId = void 0), !o && !e.inAnimation)
|
|
105
175
|
return;
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
176
|
+
const n = this.computeTagProject();
|
|
177
|
+
if (n) {
|
|
178
|
+
const a = (() => {
|
|
109
179
|
if (!this.currentConfig.simulate3D)
|
|
110
180
|
return 1;
|
|
111
|
-
const
|
|
112
|
-
return Math.max(Math.min(1 -
|
|
113
|
-
})(),
|
|
181
|
+
const u = 2 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), c = this.getDistance(void 0, 1);
|
|
182
|
+
return Math.max(Math.min(1 - u * c / 40, 1), 0.5);
|
|
183
|
+
})(), l = this.five.renderer.getSize(v);
|
|
114
184
|
this.screenPosition = {
|
|
115
|
-
leftPx: (
|
|
116
|
-
topPx: (-
|
|
117
|
-
scale:
|
|
185
|
+
leftPx: (n.x + 1) / 2 * l.x,
|
|
186
|
+
topPx: (-n.y + 1) / 2 * l.y,
|
|
187
|
+
scale: a
|
|
118
188
|
};
|
|
119
189
|
} else
|
|
120
190
|
this.screenPosition = null;
|
|
@@ -123,17 +193,17 @@ class rt extends g {
|
|
|
123
193
|
updateUnfoldedByPanoIndex() {
|
|
124
194
|
const t = this.getUnfoldedByPanoIndex();
|
|
125
195
|
if (this.state && (t !== void 0 && (this.state.unfolded = t), t && !this.state.visible)) {
|
|
126
|
-
const
|
|
127
|
-
typeof
|
|
196
|
+
const i = this.getConfig();
|
|
197
|
+
typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoFoldWhenHide !== !1 && (this.state.unfolded = !1);
|
|
128
198
|
}
|
|
129
199
|
}
|
|
130
200
|
computeNormal() {
|
|
131
|
-
return new
|
|
201
|
+
return new d.Vector3().fromArray(this.normal);
|
|
132
202
|
}
|
|
133
203
|
destroy() {
|
|
134
204
|
this.plugin.addRenderQueue({ type: "TagContainerSvelte", keys: ["tags"] });
|
|
135
205
|
}
|
|
136
206
|
}
|
|
137
207
|
export {
|
|
138
|
-
|
|
208
|
+
Pi as PointTag
|
|
139
209
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var x = Object.defineProperty;
|
|
2
2
|
var v = Object.getOwnPropertySymbols;
|
|
3
3
|
var O = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var T = (
|
|
5
|
-
for (var t in
|
|
6
|
-
O.call(
|
|
4
|
+
var T = (s, e, t) => e in s ? x(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, w = (s, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
O.call(e, t) && T(s, t, e[t]);
|
|
7
7
|
if (v)
|
|
8
|
-
for (var t of v(
|
|
9
|
-
A.call(
|
|
10
|
-
return
|
|
8
|
+
for (var t of v(e))
|
|
9
|
+
A.call(e, t) && T(s, t, e[t]);
|
|
10
|
+
return s;
|
|
11
11
|
};
|
|
12
|
-
var c = (
|
|
13
|
-
var R = (
|
|
14
|
-
var
|
|
12
|
+
var c = (s, e, t) => (T(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var R = (s, e, t) => new Promise((i, o) => {
|
|
14
|
+
var r = (n) => {
|
|
15
15
|
try {
|
|
16
16
|
d(t.next(n));
|
|
17
17
|
} catch (h) {
|
|
@@ -23,8 +23,8 @@ var R = (m, r, t) => new Promise((e, o) => {
|
|
|
23
23
|
} catch (h) {
|
|
24
24
|
o(h);
|
|
25
25
|
}
|
|
26
|
-
}, d = (n) => n.done ?
|
|
27
|
-
d((t = t.apply(
|
|
26
|
+
}, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(r, a);
|
|
27
|
+
d((t = t.apply(s, e)).next());
|
|
28
28
|
});
|
|
29
29
|
import { Group as y, Quaternion as G, Vector3 as C, Matrix4 as M } from "three";
|
|
30
30
|
import E from "../Components/Tag/index.js";
|
|
@@ -92,8 +92,85 @@ import "../Components/Tag/MarketingTag.js";
|
|
|
92
92
|
import "hammerjs";
|
|
93
93
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
94
94
|
import "@realsee/five/line";
|
|
95
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
96
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
97
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
98
|
+
import "../../base/BasePlugin.js";
|
|
99
|
+
import "../../shared-utils/Subscribe.js";
|
|
95
100
|
import "../../shared-utils/three/THREESphere.js";
|
|
101
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
102
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
103
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
104
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
105
|
+
import "../../shared-utils/five/getFiveModel.js";
|
|
106
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
96
107
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
108
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
109
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
110
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
111
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
112
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
113
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
114
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
115
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
116
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
117
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
118
|
+
import "../../shared-utils/positionToVector3.js";
|
|
119
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
120
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
121
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
122
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
123
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
124
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
125
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
126
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
127
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
128
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
129
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
130
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
131
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
132
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
133
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
134
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
135
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
136
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
137
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
138
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
139
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
140
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
141
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
142
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
143
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
144
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
145
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
146
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
147
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
148
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
149
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
150
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
151
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
152
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
153
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
154
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
155
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
156
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
157
|
+
import "../../shared-utils/three/PointSelector/index.js";
|
|
158
|
+
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
159
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
160
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
161
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
162
|
+
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
163
|
+
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
164
|
+
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
165
|
+
import "../../Sculpt/Meshes/Line.js";
|
|
166
|
+
import "../../Sculpt/typings/style.js";
|
|
167
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
168
|
+
import "../../shared-utils/tag.js";
|
|
169
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
170
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
171
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
172
|
+
import "../../shared-utils/five/getPosition.js";
|
|
173
|
+
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
97
174
|
import "../utils/noTypecheck.js";
|
|
98
175
|
import "../Components/Tag/AudioTag/index.js";
|
|
99
176
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
@@ -110,7 +187,6 @@ import "../Components/Tag/PanoramaTag.js";
|
|
|
110
187
|
import "../Components/Tag/CustomTag.js";
|
|
111
188
|
import "../../vendor/classnames/index.js";
|
|
112
189
|
import "./Tag/ModelTag.js";
|
|
113
|
-
import "../../shared-utils/positionToVector3.js";
|
|
114
190
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
115
191
|
import "@realsee/five/gltf-loader";
|
|
116
192
|
import "../utils/planeNormal.js";
|
|
@@ -124,7 +200,6 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
124
200
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
125
201
|
import "../../shared-utils/three/getNormal.js";
|
|
126
202
|
import "./Tag/BaseTag.js";
|
|
127
|
-
import "../../shared-utils/Subscribe.js";
|
|
128
203
|
import "../utils/tag/calculateTagConfig.js";
|
|
129
204
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
130
205
|
import "../../shared-utils/typescript/entries.js";
|
|
@@ -136,12 +211,7 @@ import "../utils/tag/format.js";
|
|
|
136
211
|
import "../../shared-utils/three/blink.js";
|
|
137
212
|
import "../../shared-utils/vectorToCoordinate.js";
|
|
138
213
|
import "../../shared-utils/formatRad.js";
|
|
139
|
-
import "../../shared-utils/five/transformPosition.js";
|
|
140
214
|
import "../../shared-utils/five/lookPoint.js";
|
|
141
|
-
import "../../shared-utils/Utils/FiveUtil.js";
|
|
142
|
-
import "../../shared-utils/Utils/BaseUtil.js";
|
|
143
|
-
import "../../shared-utils/Utils/WorkUtil.js";
|
|
144
|
-
import "../../shared-utils/five/getFiveModel.js";
|
|
145
215
|
import "../utils/tagPosition.js";
|
|
146
216
|
import "../utils/checkRange.js";
|
|
147
217
|
import "../../shared-utils/url/getUrl.js";
|
|
@@ -154,25 +224,7 @@ import "../utils/normalPositionToPositions.js";
|
|
|
154
224
|
import "../../vendor/svelte/store/index.js";
|
|
155
225
|
import "../../CSS3DRenderPlugin/index.js";
|
|
156
226
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
157
|
-
|
|
158
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
159
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
160
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
161
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
162
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
163
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
164
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
165
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
166
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
167
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
168
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
169
|
-
import "../../shared-utils/url/absoluteUrl.js";
|
|
170
|
-
import "../../shared-utils/five/fiveModelLoad.js";
|
|
171
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
172
|
-
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
173
|
-
import "../../shared-utils/three/THREERaycaster.js";
|
|
174
|
-
import "../../base/BasePlugin.js";
|
|
175
|
-
class Se extends U {
|
|
227
|
+
class Mr extends U {
|
|
176
228
|
constructor(t) {
|
|
177
229
|
super(t);
|
|
178
230
|
c(this, "rendererMap", /* @__PURE__ */ new Map());
|
|
@@ -196,18 +248,18 @@ class Se extends U {
|
|
|
196
248
|
* @param config.usePoint 是否需要标签点, 默认为 false
|
|
197
249
|
* @note 优先级低于 tag.element
|
|
198
250
|
*/
|
|
199
|
-
registerRenderer(t,
|
|
200
|
-
var
|
|
201
|
-
this.rendererMap.set(t, { renderer:
|
|
251
|
+
registerRenderer(t, i, o) {
|
|
252
|
+
var r;
|
|
253
|
+
this.rendererMap.set(t, { renderer: i, usePoint: (r = o == null ? void 0 : o.usePoint) != null ? r : !1 });
|
|
202
254
|
}
|
|
203
|
-
bindRenderer(t,
|
|
204
|
-
this.contentTypeMap.set(t,
|
|
255
|
+
bindRenderer(t, i) {
|
|
256
|
+
this.contentTypeMap.set(t, i);
|
|
205
257
|
}
|
|
206
258
|
clearTags() {
|
|
207
259
|
var t;
|
|
208
|
-
this.tags.length && (this.tags.forEach((
|
|
209
|
-
var o,
|
|
210
|
-
(
|
|
260
|
+
this.tags.length && (this.tags.forEach((i) => {
|
|
261
|
+
var o, r;
|
|
262
|
+
(r = (o = i.mediaPlane) == null ? void 0 : o.parent) == null || r.remove(i.mediaPlane);
|
|
211
263
|
}), this.tags = [], this.tagsLengthWillUpdate = !0, this.hooks.emit("tagsLengthChange"), (t = this.TagContainerSvelte) == null || t.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer()), this.enabledModelTagSet.clear(), this.cache.clear();
|
|
212
264
|
}
|
|
213
265
|
/**
|
|
@@ -215,12 +267,12 @@ class Se extends U {
|
|
|
215
267
|
*/
|
|
216
268
|
updateRender3DDomTag(t) {
|
|
217
269
|
(t ? N(t) : this.filterCSS3DTag).forEach((o) => {
|
|
218
|
-
var
|
|
270
|
+
var r, a, d, n, h, b;
|
|
219
271
|
if (o.tag3DContentSvelte) {
|
|
220
|
-
const { svelteApp: f, css3DInstance: l, initialNormal: u, currentNormal:
|
|
221
|
-
if ((a = l == null ? void 0 : l.css3DObject) == null || a.setVisible((this.state.visible && ((
|
|
222
|
-
const
|
|
223
|
-
l.css3DObject.setRotationFromQuaternion(
|
|
272
|
+
const { svelteApp: f, css3DInstance: l, initialNormal: u, currentNormal: p } = o.tag3DContentSvelte;
|
|
273
|
+
if ((a = l == null ? void 0 : l.css3DObject) == null || a.setVisible((this.state.visible && ((r = o.state) == null ? void 0 : r.visible)) !== !1), f.$set({ tag: o, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(p)) {
|
|
274
|
+
const m = new G().setFromUnitVectors(u, p);
|
|
275
|
+
l.css3DObject.setRotationFromQuaternion(m);
|
|
224
276
|
}
|
|
225
277
|
return;
|
|
226
278
|
} else {
|
|
@@ -234,28 +286,28 @@ class Se extends U {
|
|
|
234
286
|
const l = o.computeNormal();
|
|
235
287
|
if (!l)
|
|
236
288
|
return;
|
|
237
|
-
const u = o.getConfig(),
|
|
289
|
+
const u = o.getConfig(), p = w({
|
|
238
290
|
wrapperStyle: { zIndex: `${Math.round((1e4 - ((h = o.getDistance()) != null ? h : 0)) * 100)}` }
|
|
239
291
|
}, u.tag3DConfig);
|
|
240
|
-
if (o.computeRenderType() === "BehindDom" ||
|
|
241
|
-
|
|
292
|
+
if (o.computeRenderType() === "BehindDom" || p.mode === "behind") {
|
|
293
|
+
p.mode = "behind", p.container = document.createElement("div");
|
|
242
294
|
const D = "black";
|
|
243
|
-
|
|
295
|
+
p.container.style.backgroundColor = D, p.container.style.border = `3px solid ${D}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
244
296
|
var S;
|
|
245
|
-
if (
|
|
246
|
-
const j = this.addObjectClickHandler(o,
|
|
297
|
+
if (m.css3DObject.opacityMesh && u.clickable !== !1) {
|
|
298
|
+
const j = this.addObjectClickHandler(o, m.css3DObject.opacityMesh, (k) => {
|
|
247
299
|
this.hooks.emit("click", { event: k, target: "TagContent", tag: o });
|
|
248
300
|
});
|
|
249
301
|
(S = this.store.css3DRenderDisposer.get(o.id)) == null || S.push(j);
|
|
250
302
|
}
|
|
251
303
|
});
|
|
252
304
|
}
|
|
253
|
-
const
|
|
254
|
-
if (!
|
|
305
|
+
const m = this.css3DRenderPlugin.create3DDomContainer(f, p);
|
|
306
|
+
if (!m)
|
|
255
307
|
return;
|
|
256
|
-
this.store.css3DRenderDisposer.set(o.id, [
|
|
308
|
+
this.store.css3DRenderDisposer.set(o.id, [m.dispose]);
|
|
257
309
|
const g = new E({
|
|
258
|
-
target:
|
|
310
|
+
target: m.container,
|
|
259
311
|
props: {
|
|
260
312
|
tag: o,
|
|
261
313
|
hooks: this.hooks,
|
|
@@ -267,12 +319,12 @@ class Se extends U {
|
|
|
267
319
|
});
|
|
268
320
|
o.tag3DContentSvelte = {
|
|
269
321
|
svelteApp: g,
|
|
270
|
-
domContainer:
|
|
271
|
-
css3DInstance:
|
|
322
|
+
domContainer: m,
|
|
323
|
+
css3DInstance: m,
|
|
272
324
|
initialNormal: l,
|
|
273
325
|
currentNormal: l,
|
|
274
326
|
dispose: () => {
|
|
275
|
-
g.$destroy(),
|
|
327
|
+
g.$destroy(), m.dispose();
|
|
276
328
|
}
|
|
277
329
|
}, P(o) && ((b = o.model) != null && b.object) && this.updateTagCss3DObjectMatrix(o, o.model.object);
|
|
278
330
|
}
|
|
@@ -282,30 +334,30 @@ class Se extends U {
|
|
|
282
334
|
* @param tag 标签
|
|
283
335
|
* @param model 模型
|
|
284
336
|
*/
|
|
285
|
-
updateTagCss3DObjectMatrix(t,
|
|
286
|
-
var
|
|
287
|
-
const o = (g = (
|
|
288
|
-
if (!
|
|
337
|
+
updateTagCss3DObjectMatrix(t, i) {
|
|
338
|
+
var m, g, D;
|
|
339
|
+
const o = (g = (m = t.getConfig().tag3DConfig) == null ? void 0 : m.ratio) != null ? g : 216e-5, r = (D = t.tag3DContentSvelte) == null ? void 0 : D.css3DInstance.css3DObject;
|
|
340
|
+
if (!r)
|
|
289
341
|
return;
|
|
290
342
|
const a = P(t) ? t.data.mediaPosition : t.position;
|
|
291
343
|
if (!a || a.length !== 4 || !Array.isArray(a[0]) || !Array.isArray(a[2]))
|
|
292
344
|
return;
|
|
293
|
-
|
|
294
|
-
const d =
|
|
295
|
-
u.decompose(
|
|
296
|
-
const
|
|
297
|
-
|
|
345
|
+
i.updateWorldMatrix(!1, !1);
|
|
346
|
+
const d = i.matrixWorld, n = new C().fromArray(a[0]), h = new C().fromArray(a[2]), b = I(n, h).add(new C(0, 0, 5e-4)), f = new M().setPosition(b), l = new M().makeScale(o, o, o), u = new M().multiply(d).multiply(f).multiply(l);
|
|
347
|
+
u.decompose(r.position, r.quaternion, r.scale);
|
|
348
|
+
const p = r.opacityMesh;
|
|
349
|
+
p && u.decompose(p.position, p.quaternion, p.scale);
|
|
298
350
|
}
|
|
299
351
|
/** 添加模型标签 */
|
|
300
352
|
addMediaModelTag(t) {
|
|
301
353
|
return R(this, null, function* () {
|
|
302
|
-
const
|
|
303
|
-
yield Promise.all(
|
|
354
|
+
const i = t.filter((o) => o.stickType === "Model").map((o) => o.loadModel());
|
|
355
|
+
yield Promise.all(i), t.forEach((o) => o.updateVisible());
|
|
304
356
|
});
|
|
305
357
|
}
|
|
306
358
|
disposeAllCSS3DContainer() {
|
|
307
359
|
for (const [, t] of this.store.css3DRenderDisposer)
|
|
308
|
-
t == null || t.forEach((
|
|
360
|
+
t == null || t.forEach((i) => i == null ? void 0 : i());
|
|
309
361
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
310
362
|
}
|
|
311
363
|
/**
|
|
@@ -313,15 +365,15 @@ class Se extends U {
|
|
|
313
365
|
*/
|
|
314
366
|
clearUnusedPanelTag() {
|
|
315
367
|
this.filter2DPointTag.forEach((t) => {
|
|
316
|
-
var
|
|
317
|
-
(
|
|
368
|
+
var i;
|
|
369
|
+
(i = t.tag3DContentSvelte) == null || i.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
|
|
318
370
|
});
|
|
319
|
-
for (const [t,
|
|
371
|
+
for (const [t, i] of this.store.css3DRenderDisposer) {
|
|
320
372
|
const o = this.getTagById(t);
|
|
321
|
-
(!o || o.stickType === "2DPoint") && (
|
|
373
|
+
(!o || o.stickType === "2DPoint") && (i == null || i.forEach((r) => r == null ? void 0 : r()), this.store.css3DRenderDisposer.delete(t));
|
|
322
374
|
}
|
|
323
375
|
}
|
|
324
376
|
}
|
|
325
377
|
export {
|
|
326
|
-
|
|
378
|
+
Mr as TagRender
|
|
327
379
|
};
|