@realsee/dnalogel 2.2.4 → 2.2.5-alpha.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/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +5021 -4928
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +533 -0
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +7 -6
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +7 -6
- package/docs/index.html +6 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -6
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +7 -6
- package/docs/interfaces/Rooms.html +7 -6
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +7 -5
- package/docs/types/ArrayPosition.html +7 -6
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +7 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
- package/docs/types/Color.html +7 -6
- package/docs/types/ContentTypeConfigKey.html +7 -6
- package/docs/types/ContentTypeConfigKeyArray.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +7 -6
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +7 -6
- package/docs/types/Direction-1.html +7 -6
- package/docs/types/Direction4.html +7 -6
- package/docs/types/FloorplanRuleLabels.html +7 -6
- package/docs/types/FloorplanServerRuleLabels.html +7 -6
- package/docs/types/GuideLinePluginExportType.html +7 -6
- package/docs/types/HelperEventMap.html +7 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
- package/docs/types/MediaData.html +7 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
- package/docs/types/MoveArgs.html +7 -6
- package/docs/types/MoveOpts.html +7 -6
- package/docs/types/Object3DHelperEventMap.html +7 -6
- package/docs/types/ObjectFit.html +7 -6
- package/docs/types/PaintBrushEventMap.html +7 -6
- package/docs/types/PanoCompassPluginData.html +7 -6
- package/docs/types/PanoCompassPluginExportType.html +7 -6
- package/docs/types/PanoCompassPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
- package/docs/types/PanoMeasurePluginEvent.html +7 -6
- package/docs/types/PanoMeasureReturnType.html +7 -6
- package/docs/types/PanoSpatialTagPluginId.html +7 -6
- package/docs/types/PanoTagPluginExportInterface.html +7 -6
- package/docs/types/PanoTagPluginParamsInterface.html +7 -6
- package/docs/types/PlaneTag.html +7 -6
- package/docs/types/PointTag.html +7 -6
- package/docs/types/Position.html +7 -6
- package/docs/types/RotateArgs.html +7 -6
- package/docs/types/RotateOpts.html +7 -6
- package/docs/types/RuleLabelsKey.html +7 -6
- package/docs/types/RuleLabelsValue.html +7 -6
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +7 -6
- package/docs/types/Tag3D.html +7 -6
- package/docs/types/TagId.html +7 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
- package/docs/variables/PLUGIN.html +7 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
- package/docs/variables/ROOM_TYPE_MAP.html +7 -6
- package/docs/variables/VERSION.html +7 -6
- package/docs/variables/itemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +47 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +187 -251
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +48 -57
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +25 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +93 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
- package/libs/CruisePlugin/Controller.js +16 -16
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ItemLabelPlugin/ItemLabelItem.js +11 -11
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +12 -12
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +13 -13
- package/libs/ModelTVVideoPlugin/index.js +2 -1
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +89 -74
- package/libs/PanoRulerProPlugin/RulerItem.js +59 -69
- package/libs/PanoSpatialTagPlugin/Components/origins.js +39 -39
- package/libs/PanoSpatialTagPlugin/index.js +2 -1
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +53 -53
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +8 -8
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +13 -13
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +5 -5
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +12 -12
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +48 -78
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +25 -25
- package/libs/PanoTagPlugin/Components/Tag/index.js +35 -35
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -2
- package/libs/PanoTagPlugin/Components/TagWrapper.js +2 -2
- package/libs/floorplan/Components/Camera.js +23 -23
- package/libs/floorplan/Components/Compass.js +2 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +31 -31
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +51 -51
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +26 -26
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +16 -16
- package/libs/index.js +106 -97
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/three/index.js +2 -1
- package/libs/vendor/svelte/internal/index.js +151 -152
- package/package.json +14 -14
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
|
@@ -2,7 +2,7 @@ var G = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var E = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e,
|
|
5
|
+
var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e, P = (g, c) => {
|
|
6
6
|
for (var e in c || (c = {}))
|
|
7
7
|
T.call(c, e) && x(g, e, c[e]);
|
|
8
8
|
if (E)
|
|
@@ -10,7 +10,7 @@ var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
A.call(c, e) && x(g, e, c[e]);
|
|
11
11
|
return g;
|
|
12
12
|
}, L = (g, c) => K(g, U(c));
|
|
13
|
-
var
|
|
13
|
+
var S = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
14
|
var y = (g, c, e) => new Promise((t, i) => {
|
|
15
15
|
var a = (s) => {
|
|
16
16
|
try {
|
|
@@ -47,7 +47,7 @@ const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
|
|
|
47
47
|
class B extends O {
|
|
48
48
|
constructor(e, t) {
|
|
49
49
|
super(e, t);
|
|
50
|
-
|
|
50
|
+
S(this, "state", {
|
|
51
51
|
visible: !0,
|
|
52
52
|
enabled: !0,
|
|
53
53
|
disposed: !1,
|
|
@@ -62,9 +62,9 @@ class B extends O {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
S(this, "data");
|
|
66
|
+
S(this, "config");
|
|
67
|
+
S(this, "privateState", {
|
|
68
68
|
playing: !1,
|
|
69
69
|
currentPlayQueue: [],
|
|
70
70
|
currentPlayKeyframe: null,
|
|
@@ -72,7 +72,7 @@ class B extends O {
|
|
|
72
72
|
disposers: [],
|
|
73
73
|
modeChanging: !1
|
|
74
74
|
});
|
|
75
|
-
|
|
75
|
+
S(this, "GuideLine");
|
|
76
76
|
this.config = t, Object.assign(window, { [`__${D}_DEBUG__`]: this });
|
|
77
77
|
const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
|
|
78
78
|
this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
|
|
@@ -115,7 +115,7 @@ class B extends O {
|
|
|
115
115
|
this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
|
|
116
116
|
}
|
|
117
117
|
playFromStart(e) {
|
|
118
|
-
return this.playFrom(L(
|
|
118
|
+
return this.playFrom(L(P({}, e), { index: 0 }));
|
|
119
119
|
}
|
|
120
120
|
pause(e) {
|
|
121
121
|
this.setState({ playing: !1 }, e);
|
|
@@ -145,8 +145,8 @@ class B extends O {
|
|
|
145
145
|
return F();
|
|
146
146
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
147
147
|
return q();
|
|
148
|
-
const i =
|
|
149
|
-
this.state =
|
|
148
|
+
const i = P({}, this.state);
|
|
149
|
+
this.state = P(P({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), $(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
|
|
150
150
|
}
|
|
151
151
|
formatData(e) {
|
|
152
152
|
return y(this, null, function* () {
|
|
@@ -161,7 +161,7 @@ class B extends O {
|
|
|
161
161
|
keyframes: i.keyframes.map((a, o) => {
|
|
162
162
|
var r;
|
|
163
163
|
const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
|
|
164
|
-
return
|
|
164
|
+
return P({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
|
|
165
165
|
})
|
|
166
166
|
};
|
|
167
167
|
if (i.panoIndexList) {
|
|
@@ -182,9 +182,9 @@ class B extends O {
|
|
|
182
182
|
i.moveType === void 0 || i.moveType === "justMove" ? a.push({
|
|
183
183
|
moveIndex: r,
|
|
184
184
|
stay: i.stay,
|
|
185
|
-
data:
|
|
186
|
-
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data:
|
|
187
|
-
}), { keyframesId: k(), keyframes: a.map((s, r) =>
|
|
185
|
+
data: P({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
|
|
186
|
+
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: P({ effect: "Rotate", panoIndex: s }, d) }));
|
|
187
|
+
}), { keyframesId: k(), keyframes: a.map((s, r) => P({ id: k(), index: r }, s)) };
|
|
188
188
|
} else
|
|
189
189
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
190
190
|
});
|
|
@@ -417,7 +417,7 @@ class B extends O {
|
|
|
417
417
|
}
|
|
418
418
|
changeMode(e, t) {
|
|
419
419
|
return y(this, null, function* () {
|
|
420
|
-
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0,
|
|
420
|
+
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
forceInteruptUpdateCamera() {
|
|
@@ -478,7 +478,7 @@ class B extends O {
|
|
|
478
478
|
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
|
|
481
|
+
S(B, "PluginVersion", M);
|
|
482
482
|
export {
|
|
483
483
|
B as CruisePluginController
|
|
484
484
|
};
|
|
@@ -98,7 +98,7 @@ function Te(i) {
|
|
|
98
98
|
t = _e("div");
|
|
99
99
|
for (let c = 0; c < e.length; c += 1)
|
|
100
100
|
e[c].c();
|
|
101
|
-
be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => i[12].call(t)), W(t, "opacity", i[5] ? 1 : 0
|
|
101
|
+
be(t, "class", "item-labels-container svelte-gk8s47"), Ie(() => i[12].call(t)), W(t, "opacity", i[5] ? 1 : 0);
|
|
102
102
|
},
|
|
103
103
|
m(c, a) {
|
|
104
104
|
v(c, t, a);
|
|
@@ -107,7 +107,7 @@ function Te(i) {
|
|
|
107
107
|
f = ge(t, i[12].bind(t)), o = !0;
|
|
108
108
|
},
|
|
109
109
|
p(c, a) {
|
|
110
|
-
a[0] & 71 && (d = c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & 32 && W(t, "opacity", c[5] ? 1 : 0
|
|
110
|
+
a[0] & 71 && (d = c[1], G(), e = ke(e, a, h, 1, c, d, r, t, Le, Y, null, q), Z()), a[0] & 32 && W(t, "opacity", c[5] ? 1 : 0);
|
|
111
111
|
},
|
|
112
112
|
i(c) {
|
|
113
113
|
if (!o) {
|
|
@@ -11,11 +11,11 @@ function D(l) {
|
|
|
11
11
|
c() {
|
|
12
12
|
a && a.c(), e = z(), t = w("div"), n = w("span"), h = L(s), o = z(), m = w("span"), g = L(r), c(n, "class", "item-model svelte-gduhqw"), c(m, "class", "item-name svelte-gduhqw"), c(t, "class", "item-label-text svelte-gduhqw");
|
|
13
13
|
},
|
|
14
|
-
m(i,
|
|
15
|
-
a && a.m(i,
|
|
14
|
+
m(i, b) {
|
|
15
|
+
a && a.m(i, b), q(i, e, b), q(i, t, b), v(t, n), v(n, h), v(t, o), v(t, m), v(m, g);
|
|
16
16
|
},
|
|
17
|
-
p(i,
|
|
18
|
-
i[0].icon ? a ? a.p(i,
|
|
17
|
+
p(i, b) {
|
|
18
|
+
i[0].icon ? a ? a.p(i, b) : (a = E(i), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), b & 1 && s !== (s = (i[0].code || i[0].id) + "") && C(h, s), b & 1 && r !== (r = i[0].name + "") && C(g, r);
|
|
19
19
|
},
|
|
20
20
|
d(i) {
|
|
21
21
|
a && a.d(i), i && y(e), i && y(t);
|
|
@@ -59,25 +59,25 @@ function H(l) {
|
|
|
59
59
|
function i(d, u) {
|
|
60
60
|
return u & 1 && (n = null), n == null && (n = !!Boolean(typeof d[0].render == "function")), n ? G : D;
|
|
61
61
|
}
|
|
62
|
-
let
|
|
62
|
+
let b = i(l, -1), f = b(l);
|
|
63
63
|
return {
|
|
64
64
|
c() {
|
|
65
|
-
e = w("div"), t = w("div"),
|
|
65
|
+
e = w("div"), t = w("div"), f.c(), h = z(), o = w("div"), c(t, "class", s = p(k("item-label-item__text-wrap", {
|
|
66
66
|
"item-label-item__custom": Boolean(typeof l[0].render == "function")
|
|
67
|
-
})) + " svelte-gduhqw"), _(t, "bottom", `${l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: l[1] })) + " svelte-gduhqw"), _(o, "height", `${l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: l[0].isFold })) + " svelte-gduhqw"), _(e, "z-index", l[0].zIndex
|
|
67
|
+
})) + " svelte-gduhqw"), _(t, "bottom", `${l[0].strokeLength}px`), c(o, "class", m = p(k("item-label-item__bar", { anchor: l[1] })) + " svelte-gduhqw"), _(o, "height", `${l[0].strokeLength}px`), c(e, "class", r = p(k("item-label-item", { fold: l[0].isFold })) + " svelte-gduhqw"), _(e, "z-index", l[0].zIndex), _(e, "transform", l[0].transform);
|
|
68
68
|
},
|
|
69
69
|
m(d, u) {
|
|
70
|
-
q(d, e, u), v(e, t),
|
|
70
|
+
q(d, e, u), v(e, t), f.m(t, null), v(e, h), v(e, o), g || (a = j(t, "click", l[4]), g = !0);
|
|
71
71
|
},
|
|
72
72
|
p(d, [u]) {
|
|
73
|
-
|
|
73
|
+
b === (b = i(d, u)) && f ? f.p(d, u) : (f.d(1), f = b(d), f && (f.c(), f.m(t, null))), u & 1 && s !== (s = p(k("item-label-item__text-wrap", {
|
|
74
74
|
"item-label-item__custom": Boolean(typeof d[0].render == "function")
|
|
75
|
-
})) + " svelte-gduhqw") && c(t, "class", s), u & 1 && _(t, "bottom", `${d[0].strokeLength}px`), u & 2 && m !== (m = p(k("item-label-item__bar", { anchor: d[1] })) + " svelte-gduhqw") && c(o, "class", m), u & 1 && _(o, "height", `${d[0].strokeLength}px`), u & 1 && r !== (r = p(k("item-label-item", { fold: d[0].isFold })) + " svelte-gduhqw") && c(e, "class", r), u & 1 && _(e, "z-index", d[0].zIndex
|
|
75
|
+
})) + " svelte-gduhqw") && c(t, "class", s), u & 1 && _(t, "bottom", `${d[0].strokeLength}px`), u & 2 && m !== (m = p(k("item-label-item__bar", { anchor: d[1] })) + " svelte-gduhqw") && c(o, "class", m), u & 1 && _(o, "height", `${d[0].strokeLength}px`), u & 1 && r !== (r = p(k("item-label-item", { fold: d[0].isFold })) + " svelte-gduhqw") && c(e, "class", r), u & 1 && _(e, "z-index", d[0].zIndex), u & 1 && _(e, "transform", d[0].transform);
|
|
76
76
|
},
|
|
77
77
|
i: I,
|
|
78
78
|
o: I,
|
|
79
79
|
d(d) {
|
|
80
|
-
d && y(e),
|
|
80
|
+
d && y(e), f.d(), g = !1, a();
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -67,7 +67,7 @@ function Te(o) {
|
|
|
67
67
|
t = le("div");
|
|
68
68
|
for (let l = 0; l < e.length; l += 1)
|
|
69
69
|
e[l].c();
|
|
70
|
-
ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0
|
|
70
|
+
ae(t, "class", "item-labels-container svelte-gk8s47"), ce(() => o[9].call(t)), U(t, "opacity", o[4] ? 1 : 0);
|
|
71
71
|
},
|
|
72
72
|
m(l, s) {
|
|
73
73
|
V(l, t, s);
|
|
@@ -76,7 +76,7 @@ function Te(o) {
|
|
|
76
76
|
h = me(t, o[9].bind(t)), r = !0;
|
|
77
77
|
},
|
|
78
78
|
p(l, [s]) {
|
|
79
|
-
s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0
|
|
79
|
+
s & 3 && (m = l[1], pe(), e = de(e, s, d, 1, l, m, c, t, ke, S, null, C), ue()), s & 16 && U(t, "opacity", l[4] ? 1 : 0);
|
|
80
80
|
},
|
|
81
81
|
i(l) {
|
|
82
82
|
if (!r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as
|
|
1
|
+
import { SvelteComponent as y, init as k, safe_not_equal as L, append_styles as w, element as f, text as z, space as I, attr as b, set_style as r, null_to_empty as v, insert as x, append as c, listen as C, set_data as F, noop as h, detach as j } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
function q(t) {
|
|
4
4
|
w(t, "svelte-1ir3cyd", `.item-label-item.svelte-1ir3cyd{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1ir3cyd{opacity:1;animation:svelte-1ir3cyd-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1ir3cyd::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(1rem);z-index:-1}.item-label-item__text-wrap.svelte-1ir3cyd{padding:0.375rem 0.375rem 0;position:absolute;height:1.25rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.625rem;font-size:0.6875rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1ir3cyd{padding-bottom:0.25rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:0.0625rem solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1ir3cyd{position:absolute;bottom:0;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@keyframes svelte-1ir3cyd-fadeIn{from{opacity:0
|
|
@@ -6,16 +6,16 @@ function q(t) {
|
|
|
6
6
|
}}`);
|
|
7
7
|
}
|
|
8
8
|
function A(t) {
|
|
9
|
-
let e,
|
|
9
|
+
let e, o, l, n = (t[0].name.length > 6 ? `${t[0].name.slice(0, 6)}...` : t[0].name) + "", m, s, d, g, p, _;
|
|
10
10
|
return {
|
|
11
11
|
c() {
|
|
12
|
-
e =
|
|
12
|
+
e = f("div"), o = f("div"), l = f("span"), m = z(n), s = I(), d = f("div"), b(l, "class", "item-label-item__text svelte-1ir3cyd"), b(o, "class", "item-label-item__text-wrap svelte-1ir3cyd"), r(o, "top", `-${t[0].strokeLength + 26}px`), b(d, "class", "item-label-item__bar svelte-1ir3cyd"), r(d, "height", `${t[0].strokeLength}px`), b(e, "class", g = v(u("item-label-item", { visible: t[0].visible })) + " svelte-1ir3cyd"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform);
|
|
13
13
|
},
|
|
14
|
-
m(i,
|
|
15
|
-
x(i, e,
|
|
14
|
+
m(i, a) {
|
|
15
|
+
x(i, e, a), c(e, o), c(o, l), c(l, m), c(e, s), c(e, d), p || (_ = C(l, "click", t[1]), p = !0);
|
|
16
16
|
},
|
|
17
|
-
p(i, [
|
|
18
|
-
|
|
17
|
+
p(i, [a]) {
|
|
18
|
+
a & 1 && n !== (n = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "") && F(m, n), a & 1 && r(o, "top", `-${i[0].strokeLength + 26}px`), a & 1 && r(d, "height", `${i[0].strokeLength}px`), a & 1 && g !== (g = v(u("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd") && b(e, "class", g), a & 1 && r(e, "z-index", i[0].zIndex), a & 1 && r(e, "transform", i[0].transform);
|
|
19
19
|
},
|
|
20
20
|
i: h,
|
|
21
21
|
o: h,
|
|
@@ -24,14 +24,14 @@ function A(t) {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
function E(t, e,
|
|
28
|
-
let { itemLabel: l } = e, { hooks:
|
|
27
|
+
function E(t, e, o) {
|
|
28
|
+
let { itemLabel: l } = e, { hooks: n } = e;
|
|
29
29
|
function m() {
|
|
30
|
-
console.log("__onclick___: ", l),
|
|
30
|
+
console.log("__onclick___: ", l), n.emit("onLabelClick", l);
|
|
31
31
|
}
|
|
32
32
|
return t.$$set = (s) => {
|
|
33
|
-
"itemLabel" in s &&
|
|
34
|
-
}, [l, m,
|
|
33
|
+
"itemLabel" in s && o(0, l = s.itemLabel), "hooks" in s && o(2, n = s.hooks);
|
|
34
|
+
}, [l, m, n];
|
|
35
35
|
}
|
|
36
36
|
class B extends y {
|
|
37
37
|
constructor(e) {
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as
|
|
1
|
+
import { SvelteComponent as g, init as h, safe_not_equal as _, append_styles as z, element as f, text as w, space as k, attr as b, set_style as r, toggle_class as p, insert as L, append as d, listen as I, set_data as x, noop as v, detach as y } from "../vendor/svelte/internal/index.js";
|
|
2
2
|
import { ROOM_LABEL_BG as B } from "./Assets/roomLabelBg.js";
|
|
3
3
|
function C(t) {
|
|
4
4
|
z(t, "svelte-1d7uzh5", ".room-label-item.svelte-1d7uzh5{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.room-label-item__text.svelte-1d7uzh5{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1d7uzh5{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1d7uzh5{font-size:0.625rem}");
|
|
5
5
|
}
|
|
6
6
|
function O(t) {
|
|
7
|
-
let e, n,
|
|
7
|
+
let e, n, i = t[0].name + "", a, m, l, u, c;
|
|
8
8
|
return {
|
|
9
9
|
c() {
|
|
10
|
-
e =
|
|
10
|
+
e = f("div"), n = f("span"), a = w(i), m = k(), l = f("div"), b(n, "class", "room-label-item__text svelte-1d7uzh5"), r(n, "background-image", "url(" + B + ")"), p(n, "wide", t[0].name.length > 3), b(l, "class", "room-label-item__bar svelte-1d7uzh5"), b(e, "class", "room-label-item svelte-1d7uzh5"), r(e, "z-index", t[0].zIndex), r(e, "transform", t[0].transform), r(e, "opacity", t[0].visible ? 1 : 0);
|
|
11
11
|
},
|
|
12
12
|
m(o, s) {
|
|
13
|
-
L(o, e, s), d(e, n), d(n,
|
|
13
|
+
L(o, e, s), d(e, n), d(n, a), d(e, m), d(e, l), u || (c = I(n, "click", t[1]), u = !0);
|
|
14
14
|
},
|
|
15
15
|
p(o, [s]) {
|
|
16
|
-
s & 1 &&
|
|
16
|
+
s & 1 && i !== (i = o[0].name + "") && x(a, i), s & 1 && p(n, "wide", o[0].name.length > 3), s & 1 && r(e, "z-index", o[0].zIndex), s & 1 && r(e, "transform", o[0].transform), s & 1 && r(e, "opacity", o[0].visible ? 1 : 0);
|
|
17
17
|
},
|
|
18
18
|
i: v,
|
|
19
19
|
o: v,
|
|
20
20
|
d(o) {
|
|
21
|
-
o && y(e),
|
|
21
|
+
o && y(e), u = !1, c();
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
function R(t, e, n) {
|
|
26
|
-
let { five:
|
|
26
|
+
let { five: i } = e, { roomLabel: a } = e;
|
|
27
27
|
function m() {
|
|
28
|
-
|
|
29
|
-
panoIndex:
|
|
28
|
+
i.setState({
|
|
29
|
+
panoIndex: a.panoIndex,
|
|
30
30
|
mode: "Panorama",
|
|
31
|
-
longitude:
|
|
31
|
+
longitude: a.longitude
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
return t.$$set = (
|
|
35
|
-
"five" in
|
|
36
|
-
}, [
|
|
34
|
+
return t.$$set = (l) => {
|
|
35
|
+
"five" in l && n(2, i = l.five), "roomLabel" in l && n(0, a = l.roomLabel);
|
|
36
|
+
}, [a, m, i];
|
|
37
37
|
}
|
|
38
38
|
class q extends g {
|
|
39
39
|
constructor(e) {
|
|
@@ -11,6 +11,8 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
|
|
|
11
11
|
name: string;
|
|
12
12
|
state: Object3DHelperState;
|
|
13
13
|
objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
|
|
14
|
+
private css3DObjectParentMap;
|
|
15
|
+
private css3DRender;
|
|
14
16
|
constructor(five: Five);
|
|
15
17
|
/**
|
|
16
18
|
* @description Show guide line
|
|
@@ -1,61 +1,66 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var w = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var m = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, b = (i, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
|
-
M.call(s, e) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
M.call(s, e) && m(i, e, s[e]);
|
|
7
|
+
if (w)
|
|
8
|
+
for (var e of w(s))
|
|
9
|
+
E.call(s, e) && m(i, e, s[e]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var u = (i, s, e) => new Promise((
|
|
14
|
-
var l = (
|
|
12
|
+
var d = (i, s, e) => (m(i, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var u = (i, s, e) => new Promise((r, t) => {
|
|
14
|
+
var l = (n) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
p(e.next(n));
|
|
17
|
+
} catch (h) {
|
|
18
|
+
t(h);
|
|
19
19
|
}
|
|
20
|
-
}, c = (
|
|
20
|
+
}, c = (n) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
p(e.throw(n));
|
|
23
|
+
} catch (h) {
|
|
24
|
+
t(h);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, p = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
|
|
27
|
+
p((e = e.apply(i, s)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
29
|
+
import { Controller as R } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
31
|
-
import { MoveHelper as
|
|
32
|
-
import { RotateHelper as
|
|
33
|
-
import { RectangleScaleHelper as
|
|
31
|
+
import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
|
+
import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
35
35
|
import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
36
|
-
import { ControllerWrapper as
|
|
37
|
-
import { Object3DHelper as
|
|
38
|
-
import { RotateController as
|
|
39
|
-
import { CSS3DScaleController as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
36
|
+
import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
|
|
37
|
+
import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
|
|
38
|
+
import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
39
|
+
import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
40
|
+
import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
41
|
+
import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
|
+
import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
|
+
const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
|
|
44
|
+
console.error(`${C} is disposed`);
|
|
45
|
+
}, G = () => {
|
|
46
|
+
console.warn(`${C} is disabled`);
|
|
47
|
+
}, N = () => {
|
|
48
|
+
console.error(`${C} is disabled`);
|
|
46
49
|
};
|
|
47
|
-
class
|
|
50
|
+
class re extends R {
|
|
48
51
|
constructor(e) {
|
|
49
52
|
super(e);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
d(this, "version", g);
|
|
54
|
+
d(this, "name", H);
|
|
55
|
+
d(this, "state", {
|
|
53
56
|
visible: !0,
|
|
54
57
|
enabled: !0,
|
|
55
58
|
disposed: !1
|
|
56
59
|
});
|
|
57
|
-
|
|
58
|
-
this
|
|
60
|
+
d(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
61
|
+
d(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
62
|
+
d(this, "css3DRender");
|
|
63
|
+
this.five = e, this.css3DRender = new L(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${H.toUpperCase()}_DEBUG__`]: this });
|
|
59
64
|
}
|
|
60
65
|
show(e) {
|
|
61
66
|
return u(this, null, function* () {
|
|
@@ -76,70 +81,80 @@ class K extends D {
|
|
|
76
81
|
dispose() {
|
|
77
82
|
this.setState({ disposed: !0 });
|
|
78
83
|
}
|
|
79
|
-
setState(e,
|
|
84
|
+
setState(e, r) {
|
|
80
85
|
if (this.state.disposed)
|
|
81
|
-
return
|
|
86
|
+
return _();
|
|
82
87
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
83
|
-
return
|
|
84
|
-
const
|
|
85
|
-
this.state =
|
|
88
|
+
return N();
|
|
89
|
+
const t = b({}, this.state);
|
|
90
|
+
this.state = b(b({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
|
|
86
91
|
}
|
|
87
92
|
getObject3DHelper(e) {
|
|
88
93
|
return this.objectHelperMap.get(e);
|
|
89
94
|
}
|
|
90
|
-
addObject3DHelper(e,
|
|
91
|
-
var
|
|
95
|
+
addObject3DHelper(e, r = {}) {
|
|
96
|
+
var S;
|
|
92
97
|
if (!e)
|
|
93
98
|
return console.error("Object3D is undefined");
|
|
94
99
|
if (this.objectHelperMap.has(e)) {
|
|
95
100
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
96
101
|
return;
|
|
97
102
|
}
|
|
98
|
-
const
|
|
99
|
-
this.objectHelperMap.set(e,
|
|
100
|
-
const l = (
|
|
101
|
-
if (
|
|
102
|
-
const
|
|
103
|
-
|
|
103
|
+
const t = new I();
|
|
104
|
+
this.objectHelperMap.set(e, t);
|
|
105
|
+
const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: p = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
|
|
106
|
+
if (p) {
|
|
107
|
+
const o = new j(e), a = new v(this.five, F, e, o);
|
|
108
|
+
t.addControllers({ moveController: a.helperController });
|
|
104
109
|
}
|
|
105
|
-
if (
|
|
106
|
-
let
|
|
107
|
-
l && c && (
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
+
if (n) {
|
|
111
|
+
let o;
|
|
112
|
+
l && c && (o = { container: l });
|
|
113
|
+
const a = new P(e, o), f = new v(this.five, k, e, a);
|
|
114
|
+
t.addControllers({ rotateController: f.helperController });
|
|
110
115
|
}
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
|
|
116
|
+
if (h && l) {
|
|
117
|
+
const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
|
|
118
|
+
t.addControllers({ scaleController: a.helperController });
|
|
114
119
|
}
|
|
115
|
-
e.isCSS3DObjectPlus &&
|
|
120
|
+
e.isCSS3DObjectPlus && $(this.five).then(() => {
|
|
121
|
+
var f, D;
|
|
122
|
+
const o = e, a = (f = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? f : W(this.five);
|
|
123
|
+
a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
|
|
124
|
+
});
|
|
116
125
|
}
|
|
117
126
|
removeObject3DHelper(e) {
|
|
118
|
-
const
|
|
119
|
-
|
|
127
|
+
const r = this.objectHelperMap.get(e);
|
|
128
|
+
if (!!r) {
|
|
129
|
+
if (e.isCSS3DObjectPlus) {
|
|
130
|
+
const t = e, l = this.css3DObjectParentMap.get(t);
|
|
131
|
+
l == null || l.add(t), this.css3DRender.render(this.five.camera);
|
|
132
|
+
}
|
|
133
|
+
this.objectHelperMap.delete(e), r.dispose();
|
|
134
|
+
}
|
|
120
135
|
}
|
|
121
|
-
handleEnable(e,
|
|
122
|
-
e ? (this.everyHelperDo((
|
|
136
|
+
handleEnable(e, r = !0) {
|
|
137
|
+
e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: r })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: r })), this.state.enabled = e;
|
|
123
138
|
}
|
|
124
|
-
handleVisible(e,
|
|
125
|
-
e ? (this.everyHelperDo((
|
|
139
|
+
handleVisible(e, r = !0) {
|
|
140
|
+
e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: r }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: r }))), this.state.visible = e;
|
|
126
141
|
}
|
|
127
142
|
handleDispose() {
|
|
128
143
|
this.everyHelperDo((e) => e.dispose());
|
|
129
144
|
}
|
|
130
145
|
everyHelperDo(e) {
|
|
131
|
-
this.objectHelperMap.forEach((
|
|
132
|
-
|
|
146
|
+
this.objectHelperMap.forEach((r) => {
|
|
147
|
+
r && e(r);
|
|
133
148
|
});
|
|
134
149
|
}
|
|
135
|
-
actionIfStateIsEnabled(e,
|
|
150
|
+
actionIfStateIsEnabled(e, r) {
|
|
136
151
|
if (this.state.enabled)
|
|
137
152
|
return e();
|
|
138
|
-
|
|
153
|
+
r != null && r.warnLog && G();
|
|
139
154
|
}
|
|
140
155
|
}
|
|
141
156
|
export {
|
|
142
|
-
|
|
143
|
-
|
|
157
|
+
re as Object3DHelperController,
|
|
158
|
+
C as PLUGIN,
|
|
144
159
|
g as VERSION
|
|
145
160
|
};
|