@realsee/dnalogel 2.12.0 → 2.13.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/utils/index.d.ts +0 -1
- package/{libs/PanoTagPlugin/controller/TagCacheController.d.ts → dist/PanoTagPlugin/controller/TagCache.d.ts} +7 -7
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -36
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +58 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +56 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +16 -72
- package/dist/PanoTagPlugin/typings/controller.d.ts +15 -16
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/device.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/model/imageModel.d.ts +8 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -7
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +3854 -3790
- package/dist/index.umd.js +46 -46
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +112 -229
- 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 +19 -19
- 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/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +9 -6
- package/docs/functions/CameraMovementPlugin.html +9 -6
- package/docs/functions/CruisePlugin.html +9 -6
- package/docs/functions/GuideLinePlugin.html +9 -6
- package/docs/functions/ItemLabelPlugin.html +9 -6
- package/docs/functions/MapviewFloorplanPlugin.html +9 -6
- package/docs/functions/ModelChassisCompassPlugin.html +9 -6
- package/docs/functions/ModelEntryDoorGuidePlugin.html +9 -6
- package/docs/functions/ModelFloorplanPlugin.html +9 -6
- package/docs/functions/ModelItemLabelPlugin.html +9 -6
- package/docs/functions/ModelRoomLabelPlugin.html +9 -6
- package/docs/functions/ModelTVVideoPlugin.html +9 -6
- package/docs/functions/ModelViewPlugin.html +9 -6
- package/docs/functions/Object3DHelperPlugin.html +9 -6
- package/docs/functions/PanoCompassPlugin.html +9 -6
- package/docs/functions/PanoCursorRaycasterPlugin.html +9 -6
- package/docs/functions/PanoDoorLabelPlugin.html +9 -6
- package/docs/functions/PanoFloorplanRadarPlugin.html +9 -6
- package/docs/functions/PanoMeasurePlugin.html +9 -6
- package/docs/functions/PanoRulerPlugin.html +9 -6
- package/docs/functions/PanoRulerProPlugin.html +9 -6
- package/docs/functions/PanoSpatialTagPlugin.html +9 -6
- package/docs/functions/PanoTagPlugin.html +12 -14
- package/docs/functions/PanoVideoPlugin.html +9 -6
- package/docs/functions/TopviewFloorplanPlugin.html +9 -6
- 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 +9 -6
- package/docs/index.html +8 -5
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- 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/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +68 -0
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.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 +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- 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 +9 -6
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- 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 +9 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +9 -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/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.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 +9 -6
- package/docs/interfaces/Rooms.html +9 -6
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/{TagCache.html → TagCacheInterface.html} +30 -30
- package/docs/interfaces/TagConfig.html +19 -10
- package/docs/interfaces/TagGLTFObjectGroup.html +68 -0
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +68 -0
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +12 -6
- package/docs/types/ArrayPosition.html +9 -6
- package/docs/types/AudioAppearance.html +9 -6
- package/docs/types/AudioTagTypeConfigKey.html +9 -6
- package/docs/types/CSS3DRenderExportType.html +9 -6
- package/docs/types/CSS3DRenderPluginExportType.html +9 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +9 -6
- package/docs/types/ClassFunctionParameters.html +9 -6
- package/docs/types/Color.html +9 -6
- package/docs/types/ContentTypeConfigKey.html +9 -6
- package/docs/types/ContentTypeConfigKeySplit.html +9 -6
- package/docs/types/ContentTypeMap.html +9 -6
- package/docs/types/Create3DDomContainerReturnType.html +9 -6
- package/docs/types/Create3DElementReturnType.html +9 -6
- package/docs/types/CruisePluginExportType.html +9 -6
- package/docs/types/Direction-1.html +9 -6
- package/docs/types/Direction4.html +9 -6
- package/docs/types/FloorplanRuleLabels.html +9 -6
- package/docs/types/FloorplanServerRuleLabels.html +9 -6
- package/docs/types/GuideLinePluginExportType.html +9 -6
- package/docs/types/HelperEventMap.html +9 -6
- package/docs/types/LoadTagConfig.html +9 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +9 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +9 -6
- package/docs/types/MediaData.html +9 -6
- package/docs/types/MediaStore.html +9 -6
- package/docs/types/ModelElement.html +9 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +9 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +9 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +9 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +9 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +9 -6
- package/docs/types/MoveArgs.html +9 -6
- package/docs/types/MoveOpts.html +9 -6
- package/docs/types/Object3DHelperEventMap.html +9 -6
- package/docs/types/ObjectFit.html +9 -6
- package/docs/types/PaintBrushEventMap.html +9 -6
- package/docs/types/PanoCompassPluginData.html +9 -6
- package/docs/types/PanoCompassPluginExportType.html +9 -6
- package/docs/types/PanoCompassPluginParameterType.html +9 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +9 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +9 -6
- package/docs/types/PanoIndex.html +9 -6
- package/docs/types/PanoMeasurePluginEvent.html +9 -6
- package/docs/types/PanoMeasureReturnType.html +9 -6
- package/docs/types/PanoSpatialTagPluginId.html +9 -6
- package/docs/types/PanoTagPluginExportInterface.html +9 -6
- package/docs/types/PanoTagPluginParamsInterface.html +9 -6
- package/docs/types/PanoVideoPluginParameterType.html +9 -6
- package/docs/types/PanoVideoPluginReturnType.html +9 -6
- package/docs/types/PlaneTag.html +9 -6
- package/docs/types/PlaneTagElement.html +9 -6
- package/docs/types/Point2DElement.html +9 -6
- package/docs/types/Point2DTag.html +9 -6
- package/docs/types/Point3DElement.html +9 -6
- package/docs/types/Point3DTag.html +9 -6
- package/docs/types/PointTag.html +9 -6
- package/docs/types/PointTagElement.html +9 -6
- package/docs/types/Position.html +9 -6
- package/docs/types/RotateArgs.html +9 -6
- package/docs/types/RotateOpts.html +9 -6
- package/docs/types/RuleLabelsKey.html +9 -6
- package/docs/types/RuleLabelsValue.html +9 -6
- package/docs/types/StickType.html +9 -6
- package/docs/types/Tag.html +9 -6
- package/docs/types/Tag2D.html +9 -6
- package/docs/types/Tag3D.html +9 -6
- package/docs/types/TagContentType.html +9 -6
- package/docs/types/TagDimensionType.html +9 -6
- package/docs/types/TagElement.html +10 -7
- package/docs/types/TagEvents.html +9 -6
- package/docs/types/TagGLTFObject.html +9 -6
- package/docs/types/TagHooks.html +9 -6
- package/docs/types/TagIconSize.html +9 -6
- package/docs/types/TagId.html +9 -6
- package/docs/types/TagPointType.html +9 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +9 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +9 -6
- package/docs/types/WorkCode.html +9 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +9 -6
- package/docs/variables/PLUGIN.html +9 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +9 -6
- package/docs/variables/ROOM_TYPE_MAP.html +9 -6
- package/docs/variables/VERSION.html +9 -6
- package/docs/variables/itemLabelPluginServerParams.html +9 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +9 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +9 -6
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +2 -2
- package/libs/CSS3DRenderPlugin/Controller.js +2 -2
- package/libs/CSS3DRenderPlugin/index.js +2 -2
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +0 -1
- package/libs/CSS3DRenderPlugin/utils/index.js +8 -10
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +6 -6
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +16 -16
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +20 -20
- package/{dist/PanoTagPlugin/controller/TagCacheController.d.ts → libs/PanoTagPlugin/controller/TagCache.d.ts} +7 -7
- package/libs/PanoTagPlugin/controller/{TagCacheController.js → TagCache.js} +11 -11
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -36
- package/libs/PanoTagPlugin/controller/TagComputer.js +168 -289
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +58 -0
- package/libs/PanoTagPlugin/controller/TagRender.js +314 -0
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +56 -0
- package/libs/PanoTagPlugin/controller/TagUtil.js +172 -0
- package/libs/PanoTagPlugin/controller/index.d.ts +16 -72
- package/libs/PanoTagPlugin/controller/index.js +170 -330
- package/libs/PanoTagPlugin/index.js +51 -46
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +121 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +15 -16
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
- package/libs/PanoTagPlugin/utils/device.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/device.js +4 -0
- package/libs/PanoTagPlugin/utils/index.js +32 -33
- package/libs/PanoTagPlugin/utils/model/imageModel.d.ts +8 -0
- package/libs/PanoTagPlugin/utils/model/imageModel.js +31 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -7
- package/libs/PanoTagPlugin/utils/tagPosition.js +1 -1
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +123 -119
- package/libs/shared-utils/three/loadTexture.js +19 -19
- package/package.json +1 -1
- /package/dist/{CSS3DRenderPlugin/utils → shared-utils/three}/centerPoint.d.ts +0 -0
- /package/libs/{CSS3DRenderPlugin/utils → shared-utils/three}/centerPoint.d.ts +0 -0
- /package/libs/{CSS3DRenderPlugin/utils → shared-utils/three}/centerPoint.js +0 -0
|
@@ -1,77 +1,95 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var S = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
+
var w = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var T = Object.getOwnPropertySymbols;
|
|
4
|
+
var U = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, h = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
7
|
+
U.call(a, e) && m(d, e, a[e]);
|
|
8
|
+
if (T)
|
|
9
|
+
for (var e of T(a))
|
|
10
|
+
F.call(a, e) && m(d, e, a[e]);
|
|
11
|
+
return d;
|
|
12
|
+
}, g = (d, a) => P(d, w(a));
|
|
13
|
+
var p = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var f = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (n) => {
|
|
16
16
|
try {
|
|
17
17
|
r(e.next(n));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
21
|
}, o = (n) => {
|
|
22
22
|
try {
|
|
23
23
|
r(e.throw(n));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
|
-
r((e = e.apply(
|
|
28
|
+
r((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
30
|
+
import { Subscribe as E } from "@realsee/five";
|
|
31
|
+
import c from "object-assign-deep";
|
|
32
|
+
import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
|
+
import { addDebugPoints as M } from "../utils/addDebugPoints.js";
|
|
34
|
+
import "three";
|
|
35
|
+
import { isMediaModelTag as u } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
|
|
37
|
+
import { debounce as C } from "../utils/debounce.js";
|
|
38
|
+
import { throttle as R } from "../utils/throttle.js";
|
|
39
|
+
import { resizeObserver as y } from "../utils/resizeObserver.js";
|
|
40
|
+
import B from "../utils/tag/format.js";
|
|
41
|
+
import { generateBlankAudio as O, AudioNamespace as _ } from "../../shared-utils/audio.js";
|
|
42
|
+
import { TagRender as k } from "./TagRender.js";
|
|
43
|
+
import "./TagComputer.js";
|
|
44
|
+
import "../utils/tagPosition.js";
|
|
45
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
46
|
+
import "../utils/checkRange.js";
|
|
47
|
+
import "hammerjs";
|
|
48
|
+
import "@tweenjs/tween.js";
|
|
49
|
+
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
51
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
52
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
55
|
+
import "../../shared-utils/Subscribe.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
57
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
58
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
59
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
60
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
61
|
+
import "../../shared-utils/isNil.js";
|
|
62
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
63
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
64
|
+
import "./TagUtil.js";
|
|
65
|
+
import "../tag.config.js";
|
|
66
|
+
import "../utils/planeNormal.js";
|
|
67
|
+
import "./TagCache.js";
|
|
68
|
+
import "../../base/BasePlugin.js";
|
|
69
|
+
import "../../vendor/svelte/store/index.js";
|
|
50
70
|
import "../../vendor/svelte/internal/index.js";
|
|
71
|
+
import "../utils/device.js";
|
|
72
|
+
import "../Components/TagContainer.js";
|
|
51
73
|
import "../Components/TagItem.js";
|
|
52
|
-
import "../
|
|
53
|
-
import "../Components/Common/TagPoint.js";
|
|
54
|
-
import "../Components/Common/Shadow.js";
|
|
55
|
-
import "../../vendor/svelte/transition/index.js";
|
|
56
|
-
import "../../vendor/svelte/easing/index.js";
|
|
57
|
-
import "../Components/Common/Icon/Icon.js";
|
|
58
|
-
import "../utils/getImageInfo.js";
|
|
59
|
-
import "../utils/px2rem.js";
|
|
60
|
-
import "../Assets/Icon.js";
|
|
74
|
+
import "../Components/Tag/index.js";
|
|
61
75
|
import "../Components/Tag/TextTag/index.js";
|
|
62
76
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
63
77
|
import "../Components/Common/Line/Straight.js";
|
|
78
|
+
import "../../vendor/svelte/transition/index.js";
|
|
79
|
+
import "../../vendor/svelte/easing/index.js";
|
|
64
80
|
import "../../shared-utils/uuid.js";
|
|
81
|
+
import "../Components/Common/Shadow.js";
|
|
65
82
|
import "../Components/Common/Text/FlyMText.js";
|
|
66
83
|
import "../Components/Common/Text/FlyText.js";
|
|
67
84
|
import "animejs";
|
|
68
|
-
import "../../shared-utils/isNil.js";
|
|
69
85
|
import "../utils/search.js";
|
|
70
86
|
import "../utils/constants.js";
|
|
71
87
|
import "../Components/Common/Arrow.js";
|
|
88
|
+
import "../Assets/Icon.js";
|
|
72
89
|
import "../utils/doUtil.js";
|
|
73
90
|
import "../Components/Tag/TextTag/TextPlaneTag.js";
|
|
74
91
|
import "../Components/Common/Text/MText.js";
|
|
92
|
+
import "../utils/px2rem.js";
|
|
75
93
|
import "../Components/Tag/ImageTextTag.js";
|
|
76
94
|
import "../Components/Common/Line/Polyline.js";
|
|
77
95
|
import "../Components/Common/Media.js";
|
|
@@ -106,23 +124,7 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
106
124
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
107
125
|
import "../Components/Common/MediaItem.js";
|
|
108
126
|
import "../Components/Tag/MarketingTag.js";
|
|
109
|
-
import "
|
|
110
|
-
import "@tweenjs/tween.js";
|
|
111
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
112
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
113
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
114
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
115
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
116
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
117
|
-
import "../../shared-utils/Subscribe.js";
|
|
118
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
119
|
-
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
120
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
121
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
122
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
123
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
124
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
125
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
127
|
+
import "../utils/noTypecheck.js";
|
|
126
128
|
import "../Components/Tag/AudioTag/index.js";
|
|
127
129
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
128
130
|
import "../Components/Common/Audio.js";
|
|
@@ -131,82 +133,56 @@ import "../Components/Common/Icon/audioIcon.js";
|
|
|
131
133
|
import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
132
134
|
import "../Components/Tag/MediaPlane.js";
|
|
133
135
|
import "../Components/Tag/LinkTag.js";
|
|
136
|
+
import "../Components/Common/Icon/Icon.js";
|
|
137
|
+
import "../utils/getImageInfo.js";
|
|
134
138
|
import "../Components/Tag/CustomTag.js";
|
|
135
|
-
import "../
|
|
136
|
-
import "../utils/
|
|
137
|
-
import "
|
|
138
|
-
import "./TagCacheController.js";
|
|
139
|
-
import "../../base/BasePlugin.js";
|
|
139
|
+
import "../Components/Common/TagPoint.js";
|
|
140
|
+
import "../utils/normalPositionToPositions.js";
|
|
141
|
+
import "../../CSS3DRenderPlugin/index.js";
|
|
140
142
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
141
143
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
144
|
+
import "../../shared-utils/three/GLTFLoader.js";
|
|
142
145
|
import "@realsee/five/gltf-loader";
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
import "../utils/model/imageModel.js";
|
|
147
|
+
import "../../shared-utils/three/loadTexture.js";
|
|
148
|
+
const D = "Dnalogel-PanoTagPlugin", qt = (d) => `${D}--${d}`;
|
|
149
|
+
class Kt extends k {
|
|
145
150
|
constructor(e, t) {
|
|
146
151
|
super(e);
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
l(this, "temporaryState", { visible: !0 });
|
|
153
|
-
l(this, "mediaStore", W({
|
|
154
|
-
currentMediaElement: null
|
|
152
|
+
p(this, "state", { enabled: !0, visible: !0 });
|
|
153
|
+
p(this, "params");
|
|
154
|
+
p(this, "debug");
|
|
155
|
+
p(this, "changeTagModel", (e, t) => f(this, null, function* () {
|
|
156
|
+
e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
155
157
|
}));
|
|
156
|
-
|
|
157
|
-
l(this, "gltfObjectGroup", new E());
|
|
158
|
-
l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
|
|
159
|
-
l(this, "store", {
|
|
160
|
-
disposers: [],
|
|
161
|
-
disposed: !1,
|
|
162
|
-
resizeObserverDisposerAdding: !1,
|
|
163
|
-
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
164
|
-
});
|
|
165
|
-
l(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
166
|
-
l(this, "changeTagModel", (e, t) => c(this, null, function* () {
|
|
167
|
-
e.data = v({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
168
|
-
}));
|
|
169
|
-
l(this, "disposedErrorLog", () => {
|
|
170
|
-
console.error(`${M} is disposed`);
|
|
171
|
-
});
|
|
172
|
-
l(this, "handleFiveInitAnimationEnded", () => {
|
|
158
|
+
p(this, "handleFiveInitAnimationEnded", () => {
|
|
173
159
|
const e = this.five.getCurrentState().mode;
|
|
174
160
|
this.tags.forEach((t) => {
|
|
175
|
-
|
|
161
|
+
u(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
|
|
176
162
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
177
163
|
});
|
|
178
|
-
|
|
164
|
+
p(this, "handleFiveModelShownFloorChange", () => {
|
|
179
165
|
this.tags.forEach((e) => {
|
|
180
|
-
!
|
|
166
|
+
!u(e) || (e.state.visible = this.getVisible(e));
|
|
181
167
|
}), this.updateRenderAllTags();
|
|
182
168
|
});
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
const i = ee(t).then((d) => Object.assign(d.scene, { customID: e.id, isTagModel: !0 }));
|
|
189
|
-
e.model = { promise: i };
|
|
190
|
-
const s = yield i;
|
|
191
|
-
if (((n = e.model) == null ? void 0 : n.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
|
|
192
|
-
return;
|
|
193
|
-
s.visible = e.state.visible, new S().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (s.visible = !1);
|
|
194
|
-
const r = this.gltfObjectGroup.children.find((d) => d.customID === e.id);
|
|
195
|
-
return r && this.gltfObjectGroup.remove(r), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
|
|
196
|
-
}));
|
|
197
|
-
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Y(1, { namespace: Z.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
|
|
169
|
+
this.params = h({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
|
|
170
|
+
try {
|
|
171
|
+
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
172
|
+
} catch (i) {
|
|
173
|
+
}
|
|
198
174
|
}
|
|
199
175
|
load(e, t) {
|
|
200
|
-
return
|
|
176
|
+
return f(this, null, function* () {
|
|
201
177
|
var s, o;
|
|
202
|
-
this.clearTags(), console.info(
|
|
178
|
+
this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
|
|
203
179
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
204
180
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
205
181
|
});
|
|
206
182
|
const i = yield this.addTag(e.tagList, t);
|
|
207
183
|
if (this.debug)
|
|
208
184
|
try {
|
|
209
|
-
|
|
185
|
+
M(this.five, this.tags);
|
|
210
186
|
} catch (r) {
|
|
211
187
|
console.error(r);
|
|
212
188
|
}
|
|
@@ -214,97 +190,107 @@ class li extends Q {
|
|
|
214
190
|
});
|
|
215
191
|
}
|
|
216
192
|
addTag(e, t) {
|
|
217
|
-
return
|
|
193
|
+
return f(this, null, function* () {
|
|
218
194
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
219
195
|
const r = this.getTagConfig(o);
|
|
220
|
-
return
|
|
221
|
-
state:
|
|
222
|
-
hooks: new
|
|
223
|
-
|
|
224
|
-
|
|
196
|
+
return g(h({}, o), {
|
|
197
|
+
state: h({ visible: void 0, unfolded: this.can("fold", o) ? !1 : void 0 }, r.initialState),
|
|
198
|
+
hooks: new E(),
|
|
199
|
+
mergedConfig: r,
|
|
200
|
+
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
201
|
+
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
202
|
+
enable: () => this.changeEnabledById(o.id, !0),
|
|
203
|
+
disable: () => this.changeEnabledById(o.id, !1),
|
|
204
|
+
destroy: () => this.destroyTagById(o.id)
|
|
225
205
|
});
|
|
226
206
|
}).filter((o) => o.position);
|
|
227
|
-
return s.forEach(
|
|
207
|
+
return s.forEach(B), this.tags.push(...s), I(this.five).then(() => f(this, null, function* () {
|
|
228
208
|
var o, r, n;
|
|
229
|
-
|
|
230
|
-
});
|
|
209
|
+
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
|
|
210
|
+
}));
|
|
231
211
|
});
|
|
232
212
|
}
|
|
233
213
|
changeConfig(e, t = !0) {
|
|
234
|
-
t ? this.config =
|
|
214
|
+
t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
235
215
|
}
|
|
236
216
|
changeGlobalConfig(e, t = !0) {
|
|
237
|
-
t ? this.config.globalConfig =
|
|
217
|
+
t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
238
218
|
}
|
|
239
|
-
|
|
240
|
-
this.
|
|
219
|
+
changeContentTypeConfig(e, t, i = !0) {
|
|
220
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache(), this.updateRenderAllTags();
|
|
241
221
|
}
|
|
242
222
|
show(e) {
|
|
243
|
-
return
|
|
223
|
+
return f(this, null, function* () {
|
|
224
|
+
if (this.checkDisposed())
|
|
225
|
+
return;
|
|
244
226
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
245
|
-
if (this.store.disposed)
|
|
246
|
-
return this.disposedErrorLog();
|
|
247
227
|
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("show", { userAction: t, withAnimation: i });
|
|
248
228
|
});
|
|
249
229
|
}
|
|
250
230
|
hide(e) {
|
|
251
|
-
return
|
|
231
|
+
return f(this, null, function* () {
|
|
232
|
+
if (this.checkDisposed())
|
|
233
|
+
return;
|
|
252
234
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
253
|
-
if (this.store.disposed)
|
|
254
|
-
return this.disposedErrorLog();
|
|
255
235
|
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("hide", { userAction: t, withAnimation: i });
|
|
256
236
|
});
|
|
257
237
|
}
|
|
258
238
|
enable(e) {
|
|
239
|
+
if (this.checkDisposed())
|
|
240
|
+
return;
|
|
259
241
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
260
|
-
|
|
261
|
-
return this.disposedErrorLog();
|
|
262
|
-
this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.setState({ enabled: !0 }, { userAction: t }), this.hooks.emit("enable", { userAction: t }), this.five.needsRender = !0;
|
|
242
|
+
this.setState({ enabled: !0 }, { userAction: t }), this.hooks.emit("enable", { userAction: t });
|
|
263
243
|
}
|
|
264
244
|
disable(e) {
|
|
245
|
+
if (this.checkDisposed())
|
|
246
|
+
return;
|
|
265
247
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
266
|
-
|
|
267
|
-
return this.disposedErrorLog();
|
|
268
|
-
this.setState({ enabled: !1 }, { userAction: t }), this.five.scene.remove(this.group), this.hooks.emit("disable", { userAction: t }), this.five.needsRender = !0;
|
|
269
|
-
}
|
|
270
|
-
dispose() {
|
|
271
|
-
var e, t, i, s, o, r;
|
|
272
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
|
|
273
|
-
var d;
|
|
274
|
-
return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
|
|
275
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.hooks.emit("dispose");
|
|
248
|
+
this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
|
|
276
249
|
}
|
|
277
250
|
setState(e, t) {
|
|
278
|
-
if (this.
|
|
279
|
-
return
|
|
280
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o =
|
|
251
|
+
if (this.checkDisposed())
|
|
252
|
+
return;
|
|
253
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = h({}, this.state);
|
|
281
254
|
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
282
255
|
}
|
|
256
|
+
dispose() {
|
|
257
|
+
var e, t, i, s, o, r;
|
|
258
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag.forEach((n) => {
|
|
259
|
+
var l;
|
|
260
|
+
return (l = n.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
|
|
261
|
+
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
262
|
+
}
|
|
283
263
|
changeUnfoldedById(e, t) {
|
|
284
|
-
var
|
|
264
|
+
var r;
|
|
285
265
|
const i = this.getTagById(e);
|
|
286
266
|
if (!i)
|
|
287
267
|
return;
|
|
288
|
-
|
|
289
|
-
if (
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
268
|
+
const s = this.can("fold", i), o = this.can("unfold", i);
|
|
269
|
+
if (s && o) {
|
|
270
|
+
i.state.unfolded = t;
|
|
271
|
+
const n = this.filterPointTag;
|
|
272
|
+
(r = this.TagContainerSvelte) == null || r.$set({ tags: n });
|
|
273
|
+
} else
|
|
274
|
+
console.warn(`tag ${e} cannot be ${t ? "unfolded" : "folded"}}`);
|
|
275
|
+
}
|
|
276
|
+
changeEnabledById(e, t) {
|
|
277
|
+
const i = this.getTagById(e);
|
|
278
|
+
!i || (i.enabled = t, this.updateRenderAllTags());
|
|
293
279
|
}
|
|
294
280
|
changeTagNormalById(e, t) {
|
|
295
281
|
const i = this.getTagById(e);
|
|
296
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
282
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = A(t), this.updateRenderPlaneTag());
|
|
297
283
|
}
|
|
298
284
|
changeDataById(e, t, i = !0) {
|
|
299
285
|
const s = this.getTagById(e);
|
|
300
|
-
!s || (i ? s.data =
|
|
286
|
+
!s || (i ? s.data = c({}, s.data, t) : s.data = h(h({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
|
|
301
287
|
}
|
|
302
288
|
changeStickTypeById(e, t, i = !0) {
|
|
303
289
|
this.changeTagById(e, t, i);
|
|
304
290
|
}
|
|
305
291
|
changeTagById(e, t, i = !0) {
|
|
306
292
|
const s = this.getTagById(e);
|
|
307
|
-
!t || (i ?
|
|
293
|
+
!t || (i ? c(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
|
|
308
294
|
}
|
|
309
295
|
destroyTagById(e) {
|
|
310
296
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -312,29 +298,10 @@ class li extends Q {
|
|
|
312
298
|
s !== -1 && this.tags.splice(s, 1);
|
|
313
299
|
}), this.updateRenderAllTags();
|
|
314
300
|
}
|
|
315
|
-
pauseCurrentMedia() {
|
|
316
|
-
this.mediaStore.set({ currentMediaElement: null });
|
|
317
|
-
}
|
|
318
|
-
updateTagCss3DObjectMatrix(e, t) {
|
|
319
|
-
var D, w, R, O;
|
|
320
|
-
const i = (R = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? R : 216e-5, s = (O = e.tag3DContentSvelte) == null ? void 0 : O.domContainer.css3DObject;
|
|
321
|
-
if (!s)
|
|
322
|
-
return;
|
|
323
|
-
const o = m(e) ? e.data.mediaPosition : e.position;
|
|
324
|
-
t.updateWorldMatrix(!1, !1);
|
|
325
|
-
const r = t.matrixWorld, n = new A().fromArray(o[0]), d = new A().fromArray(o[2]), f = new A().lerpVectors(n, d, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(f), y = new S().makeScale(i, i, i), b = new S().multiply(r).multiply(g).multiply(y);
|
|
326
|
-
b.decompose(s.position, s.quaternion, s.scale);
|
|
327
|
-
const u = s.opacityMesh;
|
|
328
|
-
!u || b.decompose(u.position, u.quaternion, u.scale);
|
|
329
|
-
}
|
|
330
|
-
updateTagCss3DObjectVisible(e) {
|
|
331
|
-
var t, i, s, o, r;
|
|
332
|
-
(r = (i = (t = e.tag3DContentSvelte) == null ? void 0 : t.domContainer) == null ? void 0 : i.css3DObject) == null || r.setVisible(this.state.visible && ((o = (s = e.state) == null ? void 0 : s.visible) != null ? o : !0)), this.five.needsRender = !0;
|
|
333
|
-
}
|
|
334
301
|
setVisibleAndUnfolded() {
|
|
335
|
-
return
|
|
302
|
+
return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
336
303
|
if (!!this.isPanorama)
|
|
337
|
-
return this.setVisibleByPanoIndex(), e ? new Promise((t
|
|
304
|
+
return this.setVisibleByPanoIndex(), e ? new Promise((t) => {
|
|
338
305
|
setTimeout(() => {
|
|
339
306
|
this.setUnfoldedByPanoIndex(), t();
|
|
340
307
|
}, 10);
|
|
@@ -342,30 +309,27 @@ class li extends Q {
|
|
|
342
309
|
});
|
|
343
310
|
}
|
|
344
311
|
handleShow() {
|
|
345
|
-
this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.five.needsRender = !0;
|
|
312
|
+
this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
|
|
346
313
|
}
|
|
347
314
|
handleHide() {
|
|
348
|
-
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.five.needsRender = !0;
|
|
315
|
+
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
|
|
349
316
|
}
|
|
350
317
|
handleEnable() {
|
|
351
|
-
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
|
|
318
|
+
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.updateRenderAllTags(), this.five.needsRender = !0;
|
|
352
319
|
}
|
|
353
320
|
handleDisable() {
|
|
354
321
|
var e, t, i;
|
|
355
|
-
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filter3DTag
|
|
322
|
+
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filter3DTag.forEach((s) => {
|
|
356
323
|
var o;
|
|
357
324
|
(o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
|
|
358
|
-
});
|
|
325
|
+
}), this.five.needsRender = !0;
|
|
359
326
|
}
|
|
360
327
|
addEventListener() {
|
|
361
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this),
|
|
362
|
-
return this.handleFiveModeChange(
|
|
363
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived",
|
|
328
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), v = this.clickhandler.bind(this), b = this.five.currentMode;
|
|
329
|
+
return b && this.handleFiveModeChange(b), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", l), t.on("click", v), () => {
|
|
330
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", l), t.off("click", v), this.store.eventListenerDisposer = void 0;
|
|
364
331
|
};
|
|
365
332
|
}
|
|
366
|
-
loadVideoFirstFrame() {
|
|
367
|
-
this.isIOSWX && this.hooks.emit("loadVideoFirstFrame");
|
|
368
|
-
}
|
|
369
333
|
addResizeListener() {
|
|
370
334
|
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
371
335
|
const e = this.addResizeObserver();
|
|
@@ -381,13 +345,13 @@ class li extends Q {
|
|
|
381
345
|
!this.state.enabled || (this.show(), this.updateRenderAllTags());
|
|
382
346
|
}, i = () => {
|
|
383
347
|
!this.state.enabled || this.hide();
|
|
384
|
-
}, { observe: s, unobserve: o } =
|
|
385
|
-
|
|
348
|
+
}, { observe: s, unobserve: o } = y(
|
|
349
|
+
R(() => {
|
|
386
350
|
!this.store.resizeObserverDisposer || i();
|
|
387
351
|
}, 500),
|
|
388
352
|
e
|
|
389
|
-
), { observe: r, unobserve: n } =
|
|
390
|
-
|
|
353
|
+
), { observe: r, unobserve: n } = y(
|
|
354
|
+
C(() => t(), 400),
|
|
391
355
|
e
|
|
392
356
|
);
|
|
393
357
|
return s(), r(), () => {
|
|
@@ -396,21 +360,15 @@ class li extends Q {
|
|
|
396
360
|
}
|
|
397
361
|
handleFiveModeChange(e) {
|
|
398
362
|
this.setModelMedialVisible(), this.tags.forEach((t) => {
|
|
399
|
-
|
|
363
|
+
u(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
|
|
400
364
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
401
365
|
}
|
|
402
366
|
handleFiveWantsMoveToPano() {
|
|
403
367
|
this.tags.forEach((e) => {
|
|
404
368
|
const t = this.getTagConfig(e);
|
|
405
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
369
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = g(h({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = g(h({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
406
370
|
}), this.updateTagContainerVisible();
|
|
407
371
|
}
|
|
408
|
-
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
409
|
-
this.store.visibleWithAnimation = e, this.temporaryState.visible = !0, this.updateTagContainerVisible();
|
|
410
|
-
}
|
|
411
|
-
temporaryHide({ withAnimation: e } = { withAnimation: !1 }) {
|
|
412
|
-
this.store.visibleWithAnimation = e, this.temporaryState.visible = !1, this.updateTagContainerVisible();
|
|
413
|
-
}
|
|
414
372
|
clickhandler(e) {
|
|
415
373
|
if (e.target !== "TagPoint")
|
|
416
374
|
return;
|
|
@@ -421,26 +379,8 @@ class li extends Q {
|
|
|
421
379
|
s.id !== e.tag.id && s.state && this.can("fold", s) && (s.state.unfolded = !1);
|
|
422
380
|
}), this.updateRenderAllTags());
|
|
423
381
|
}
|
|
424
|
-
updateRenderAllTags() {
|
|
425
|
-
this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderPointTag(), this.updateRenderPlaneTag(), this.updateRenderModelTag();
|
|
426
|
-
}
|
|
427
|
-
updateTagContainerVisible() {
|
|
428
|
-
var e;
|
|
429
|
-
(e = this.TagContainerSvelte) == null || e.$set({
|
|
430
|
-
state: this.state,
|
|
431
|
-
temporaryState: this.temporaryState,
|
|
432
|
-
withAnimation: this.store.visibleWithAnimation
|
|
433
|
-
}), this.filter3DTag().forEach((t) => {
|
|
434
|
-
var i, s, o, r;
|
|
435
|
-
(o = (s = (i = t.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null || o.setVisible(this.state.visible), (r = t.tag3DContentSvelte) == null || r.svelteApp.$set({
|
|
436
|
-
state: this.state,
|
|
437
|
-
temporaryState: this.temporaryState,
|
|
438
|
-
withAnimation: this.store.visibleWithAnimation
|
|
439
|
-
});
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
382
|
handleFiveCameraUpdateDebounce() {
|
|
443
|
-
return
|
|
383
|
+
return C(() => {
|
|
444
384
|
this.setUnfoldedByCamera(), this.updateRenderAllTags();
|
|
445
385
|
}, 100);
|
|
446
386
|
}
|
|
@@ -448,9 +388,9 @@ class li extends Q {
|
|
|
448
388
|
this.updateRenderPointTag();
|
|
449
389
|
}
|
|
450
390
|
handleFivePanoArrived() {
|
|
451
|
-
return
|
|
391
|
+
return f(this, null, function* () {
|
|
452
392
|
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
453
|
-
e.temporaryState =
|
|
393
|
+
e.temporaryState = g(h({}, e.temporaryState), { visible: !0 });
|
|
454
394
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
455
395
|
});
|
|
456
396
|
}
|
|
@@ -464,113 +404,13 @@ class li extends Q {
|
|
|
464
404
|
typeof i == "object" && (i.autoUnfold || i.keep) || t.state && (t.state.unfolded = !1);
|
|
465
405
|
});
|
|
466
406
|
}
|
|
467
|
-
updateRenderPointTag() {
|
|
468
|
-
var t;
|
|
469
|
-
const e = this.sort(this.filterPointTag());
|
|
470
|
-
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
471
|
-
this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
|
|
472
|
-
else {
|
|
473
|
-
const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
474
|
-
if (!i)
|
|
475
|
-
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
476
|
-
this.TagContainerSvelte = new z({
|
|
477
|
-
target: i,
|
|
478
|
-
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
updateRenderPlaneTag() {
|
|
483
|
-
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
|
|
484
|
-
var n, d, f;
|
|
485
|
-
if (m(t) && ((n = t.model) == null ? void 0 : n.object) && this.updateTagCss3DObjectMatrix(t, (d = t.model) == null ? void 0 : d.object), t.tag3DContentSvelte) {
|
|
486
|
-
const { svelteApp: g, domContainer: y, initialNormal: b, currentNormal: u } = t.tag3DContentSvelte;
|
|
487
|
-
if (this.updateTagCss3DObjectVisible(t), g.$set({
|
|
488
|
-
tag: t,
|
|
489
|
-
hooks: this.hooks,
|
|
490
|
-
state: this.state,
|
|
491
|
-
temporaryState: this.temporaryState
|
|
492
|
-
}), !b.equals(u)) {
|
|
493
|
-
const D = new N().setFromUnitVectors(b, u);
|
|
494
|
-
y.css3DObject.setRotationFromQuaternion(D);
|
|
495
|
-
}
|
|
496
|
-
return;
|
|
497
|
-
}
|
|
498
|
-
if (((f = t.state) == null ? void 0 : f.visible) === !1)
|
|
499
|
-
return;
|
|
500
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = X(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
501
|
-
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
502
|
-
const i = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : H(
|
|
503
|
-
this.five.camera.position,
|
|
504
|
-
C(t.position),
|
|
505
|
-
C(t.normal)
|
|
506
|
-
))();
|
|
507
|
-
if (!i)
|
|
508
|
-
return;
|
|
509
|
-
const s = function() {
|
|
510
|
-
if (t.normal)
|
|
511
|
-
return C(t.normal);
|
|
512
|
-
if (t.stickType === "Plane")
|
|
513
|
-
return k(t.position);
|
|
514
|
-
if (t.contentType === "MediaModel")
|
|
515
|
-
return k(i);
|
|
516
|
-
}();
|
|
517
|
-
if (!s)
|
|
518
|
-
return;
|
|
519
|
-
const o = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, o);
|
|
520
|
-
!r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
521
|
-
svelteApp: new _({
|
|
522
|
-
target: r.container,
|
|
523
|
-
props: {
|
|
524
|
-
tag: t,
|
|
525
|
-
hooks: this.hooks,
|
|
526
|
-
state: this.state,
|
|
527
|
-
mediaStore: this.mediaStore,
|
|
528
|
-
temporaryState: this.temporaryState
|
|
529
|
-
}
|
|
530
|
-
}),
|
|
531
|
-
domContainer: r,
|
|
532
|
-
initialNormal: s,
|
|
533
|
-
currentNormal: s
|
|
534
|
-
});
|
|
535
|
-
}), this.checkPanelTag();
|
|
536
|
-
}
|
|
537
|
-
updateRenderModelTag() {
|
|
538
|
-
const e = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
539
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
|
|
540
|
-
var s;
|
|
541
|
-
(s = i.model) == null || s.promise.then((o) => {
|
|
542
|
-
o.visible = i.state.visible;
|
|
543
|
-
});
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
disposeAllCSS3DContainer() {
|
|
547
|
-
for (const [e, t] of this.store.css3DRenderDisposer)
|
|
548
|
-
t == null || t();
|
|
549
|
-
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
550
|
-
}
|
|
551
|
-
checkPanelTag() {
|
|
552
|
-
this.filter2DPointTag().forEach((e) => {
|
|
553
|
-
var t;
|
|
554
|
-
(t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0;
|
|
555
|
-
});
|
|
556
|
-
for (const [e, t] of this.store.css3DRenderDisposer) {
|
|
557
|
-
const i = this.getTagById(e);
|
|
558
|
-
(!i || i.stickType === "2DPoint") && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
addMediaModelTag(e) {
|
|
562
|
-
return c(this, null, function* () {
|
|
563
|
-
const t = e.filter(m).map(this.loadModel);
|
|
564
|
-
yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
407
|
changeTagMode(e, t) {
|
|
568
408
|
var i, s, o, r, n;
|
|
569
409
|
((o = (s = (i = e.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null ? void 0 : o.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (n = this.store.css3DRenderDisposer.get(e.id)) == null || n(), e.tag3DContentSvelte = void 0);
|
|
570
410
|
}
|
|
571
411
|
}
|
|
572
412
|
export {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
413
|
+
Kt as PanoTagPluginController,
|
|
414
|
+
Kt as default,
|
|
415
|
+
qt as pluginFlag
|
|
576
416
|
};
|