@realsee/dnalogel 2.12.0-alpha.2 → 2.12.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 +1 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +1 -0
- package/dist/PanoMeasurePlugin/typings/index.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/{TagCache.d.ts → TagCacheController.d.ts} +7 -7
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +36 -3
- package/dist/PanoTagPlugin/controller/index.d.ts +72 -16
- package/dist/PanoTagPlugin/typings/controller.d.ts +16 -15
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -2
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -12
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -7
- package/dist/base/BasePlugin.d.ts +2 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.js +2551 -2609
- package/dist/index.umd.js +47 -47
- 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 +229 -112
- 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 +6 -8
- package/docs/functions/CameraMovementPlugin.html +6 -8
- package/docs/functions/CruisePlugin.html +6 -8
- package/docs/functions/GuideLinePlugin.html +6 -8
- package/docs/functions/ItemLabelPlugin.html +6 -8
- package/docs/functions/MapviewFloorplanPlugin.html +6 -8
- package/docs/functions/ModelChassisCompassPlugin.html +6 -8
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -8
- package/docs/functions/ModelFloorplanPlugin.html +6 -8
- package/docs/functions/ModelItemLabelPlugin.html +6 -8
- package/docs/functions/ModelRoomLabelPlugin.html +6 -8
- package/docs/functions/ModelTVVideoPlugin.html +6 -8
- package/docs/functions/ModelViewPlugin.html +6 -8
- package/docs/functions/Object3DHelperPlugin.html +6 -8
- package/docs/functions/PanoCompassPlugin.html +6 -8
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -8
- package/docs/functions/PanoDoorLabelPlugin.html +6 -8
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -8
- package/docs/functions/PanoMeasurePlugin.html +6 -8
- package/docs/functions/PanoRulerPlugin.html +6 -8
- package/docs/functions/PanoRulerProPlugin.html +6 -8
- package/docs/functions/PanoSpatialTagPlugin.html +6 -8
- package/docs/functions/PanoTagPlugin.html +14 -11
- package/docs/functions/PanoVideoPlugin.html +6 -8
- package/docs/functions/TopviewFloorplanPlugin.html +6 -8
- 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 +6 -8
- package/docs/index.html +5 -7
- 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/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 +6 -8
- package/docs/interfaces/PanoMeasureParameterType.html +46 -13
- 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 +6 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
- 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 +6 -8
- package/docs/interfaces/Rooms.html +6 -8
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/{TagCacheInterface.html → TagCache.html} +30 -30
- package/docs/interfaces/TagConfig.html +10 -19
- package/docs/interfaces/TagIconUrl.html +11 -11
- 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 +6 -10
- package/docs/types/ArrayPosition.html +6 -8
- package/docs/types/AudioAppearance.html +6 -8
- package/docs/types/AudioTagTypeConfigKey.html +6 -8
- package/docs/types/CSS3DRenderExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
- package/docs/types/ClassFunctionParameters.html +6 -8
- package/docs/types/Color.html +6 -8
- package/docs/types/ContentTypeConfigKey.html +6 -8
- package/docs/types/ContentTypeConfigKeySplit.html +6 -8
- package/docs/types/ContentTypeMap.html +6 -8
- package/docs/types/Create3DDomContainerReturnType.html +6 -8
- package/docs/types/Create3DElementReturnType.html +6 -8
- package/docs/types/CruisePluginExportType.html +6 -8
- package/docs/types/Direction-1.html +6 -8
- package/docs/types/Direction4.html +6 -8
- package/docs/types/FloorplanRuleLabels.html +6 -8
- package/docs/types/FloorplanServerRuleLabels.html +6 -8
- package/docs/types/GuideLinePluginExportType.html +6 -8
- package/docs/types/HelperEventMap.html +6 -8
- package/docs/types/LoadTagConfig.html +6 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/MediaData.html +6 -8
- package/docs/types/MediaStore.html +6 -8
- package/docs/types/ModelElement.html +6 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
- package/docs/types/MoveArgs.html +6 -8
- package/docs/types/MoveOpts.html +6 -8
- package/docs/types/Object3DHelperEventMap.html +6 -8
- package/docs/types/ObjectFit.html +6 -8
- package/docs/types/PaintBrushEventMap.html +6 -8
- package/docs/types/PanoCompassPluginData.html +6 -8
- package/docs/types/PanoCompassPluginExportType.html +6 -8
- package/docs/types/PanoCompassPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
- package/docs/types/PanoIndex.html +6 -8
- package/docs/types/PanoMeasurePluginEvent.html +6 -8
- package/docs/types/PanoMeasureReturnType.html +6 -8
- package/docs/types/PanoSpatialTagPluginId.html +6 -8
- package/docs/types/PanoTagPluginExportInterface.html +6 -8
- package/docs/types/PanoTagPluginParamsInterface.html +6 -8
- package/docs/types/PanoVideoPluginParameterType.html +6 -8
- package/docs/types/PanoVideoPluginReturnType.html +6 -8
- package/docs/types/PlaneTag.html +6 -8
- package/docs/types/PlaneTagElement.html +6 -8
- package/docs/types/Point2DElement.html +6 -8
- package/docs/types/Point2DTag.html +6 -8
- package/docs/types/Point3DElement.html +6 -8
- package/docs/types/Point3DTag.html +6 -8
- package/docs/types/PointTag.html +6 -8
- package/docs/types/PointTagElement.html +6 -8
- package/docs/types/Position.html +6 -8
- package/docs/types/RotateArgs.html +6 -8
- package/docs/types/RotateOpts.html +6 -8
- package/docs/types/RuleLabelsKey.html +6 -8
- package/docs/types/RuleLabelsValue.html +6 -8
- package/docs/types/StickType.html +6 -8
- package/docs/types/Tag.html +6 -8
- package/docs/types/Tag2D.html +6 -8
- package/docs/types/Tag3D.html +6 -8
- package/docs/types/TagContentType.html +6 -8
- package/docs/types/TagDimensionType.html +6 -8
- package/docs/types/TagElement.html +7 -9
- package/docs/types/TagEvents.html +6 -8
- package/docs/types/TagGLTFObject.html +6 -8
- package/docs/types/TagHooks.html +6 -8
- package/docs/types/TagIconSize.html +6 -8
- package/docs/types/TagId.html +6 -8
- package/docs/types/TagPointType.html +6 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/WorkCode.html +6 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
- package/docs/variables/PLUGIN.html +6 -8
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
- package/docs/variables/ROOM_TYPE_MAP.html +6 -8
- package/docs/variables/VERSION.html +6 -8
- package/docs/variables/itemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
- 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 +1 -0
- package/libs/CSS3DRenderPlugin/utils/index.js +10 -8
- 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/PanoMeasurePlugin/Controller/MixedController.js +1 -0
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +18 -17
- package/libs/PanoMeasurePlugin/typings/index.d.ts +2 -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/libs/PanoTagPlugin/controller/{TagCache.d.ts → TagCacheController.d.ts} +7 -7
- package/libs/PanoTagPlugin/controller/{TagCache.js → TagCacheController.js} +11 -11
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +36 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +289 -168
- package/libs/PanoTagPlugin/controller/index.d.ts +72 -16
- package/libs/PanoTagPlugin/controller/index.js +330 -170
- package/libs/PanoTagPlugin/index.js +46 -51
- package/libs/PanoTagPlugin/tag.config.js +1 -2
- package/libs/PanoTagPlugin/typings/controller.d.ts +16 -15
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -2
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -12
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
- package/libs/PanoTagPlugin/utils/index.js +33 -32
- 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.d.ts +2 -0
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +119 -123
- package/package.json +2 -2
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +0 -57
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +0 -56
- package/dist/PanoTagPlugin/utils/device.d.ts +0 -1
- package/dist/PanoTagPlugin/utils/model/imageModel.d.ts +0 -8
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -68
- package/docs/interfaces/TagObjectGroup.html +0 -68
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +0 -57
- package/libs/PanoTagPlugin/controller/TagRender.js +0 -310
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +0 -56
- package/libs/PanoTagPlugin/controller/TagUtil.js +0 -172
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -121
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
- package/libs/PanoTagPlugin/utils/device.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/device.js +0 -4
- package/libs/PanoTagPlugin/utils/model/imageModel.d.ts +0 -8
- package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
- /package/dist/{shared-utils/three → CSS3DRenderPlugin/utils}/centerPoint.d.ts +0 -0
- /package/libs/{shared-utils/three → CSS3DRenderPlugin/utils}/centerPoint.d.ts +0 -0
- /package/libs/{shared-utils/three → CSS3DRenderPlugin/utils}/centerPoint.js +0 -0
|
@@ -1,95 +1,77 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var I = Object.defineProperty, L = Object.defineProperties;
|
|
2
|
+
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
|
+
var B = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var P = (h, a, e) => a in h ? I(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, 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
|
+
B.call(a, e) && P(h, e, a[e]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var e of F(a))
|
|
10
|
+
x.call(a, e) && P(h, e, a[e]);
|
|
11
|
+
return h;
|
|
12
|
+
}, T = (h, a) => L(h, V(a));
|
|
13
|
+
var l = (h, a, e) => (P(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var c = (h, 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 (d) {
|
|
19
|
+
i(d);
|
|
20
20
|
}
|
|
21
21
|
}, o = (n) => {
|
|
22
22
|
try {
|
|
23
23
|
r(e.throw(n));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (d) {
|
|
25
|
+
i(d);
|
|
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(h, 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 "../utils/
|
|
45
|
-
import "
|
|
46
|
-
import "
|
|
47
|
-
import "
|
|
48
|
-
import "
|
|
49
|
-
import "../../
|
|
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";
|
|
30
|
+
import { Subscribe as G } from "@realsee/five";
|
|
31
|
+
import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as N } from "three";
|
|
32
|
+
import v from "object-assign-deep";
|
|
33
|
+
import { writable as W } from "../../vendor/svelte/store/index.js";
|
|
34
|
+
import z from "../Components/TagContainer.js";
|
|
35
|
+
import _ from "../Components/Tag/index.js";
|
|
36
|
+
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
37
|
+
import { addDebugPoints as $ } from "../utils/addDebugPoints.js";
|
|
38
|
+
import { planeNormal as k } from "../utils/planeNormal.js";
|
|
39
|
+
import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
|
|
40
|
+
import { waitFiveModelLoaded as q } from "../utils/actionAfterFiveModelLoad.js";
|
|
41
|
+
import { normalPositionToPositions as H } from "../utils/normalPositionToPositions.js";
|
|
42
|
+
import { debounce as j } from "../utils/debounce.js";
|
|
43
|
+
import { throttle as J } from "../utils/throttle.js";
|
|
44
|
+
import { resizeObserver as U } from "../utils/resizeObserver.js";
|
|
45
|
+
import { TagComputer as Q } from "./TagComputer.js";
|
|
46
|
+
import { CSS3DRenderPlugin as X } from "../../CSS3DRenderPlugin/index.js";
|
|
47
|
+
import K from "../utils/tag/format.js";
|
|
48
|
+
import { generateBlankAudio as Y, AudioNamespace as Z } from "../../shared-utils/audio.js";
|
|
49
|
+
import { loadGLTF as ee } from "../../shared-utils/three/GLTFLoader.js";
|
|
70
50
|
import "../../vendor/svelte/internal/index.js";
|
|
71
|
-
import "../utils/device.js";
|
|
72
|
-
import "../Components/TagContainer.js";
|
|
73
51
|
import "../Components/TagItem.js";
|
|
74
|
-
import "../
|
|
52
|
+
import "../utils/noTypecheck.js";
|
|
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";
|
|
75
61
|
import "../Components/Tag/TextTag/index.js";
|
|
76
62
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
77
63
|
import "../Components/Common/Line/Straight.js";
|
|
78
|
-
import "../../vendor/svelte/transition/index.js";
|
|
79
|
-
import "../../vendor/svelte/easing/index.js";
|
|
80
64
|
import "../../shared-utils/uuid.js";
|
|
81
|
-
import "../Components/Common/Shadow.js";
|
|
82
65
|
import "../Components/Common/Text/FlyMText.js";
|
|
83
66
|
import "../Components/Common/Text/FlyText.js";
|
|
84
67
|
import "animejs";
|
|
68
|
+
import "../../shared-utils/isNil.js";
|
|
85
69
|
import "../utils/search.js";
|
|
86
70
|
import "../utils/constants.js";
|
|
87
71
|
import "../Components/Common/Arrow.js";
|
|
88
|
-
import "../Assets/Icon.js";
|
|
89
72
|
import "../utils/doUtil.js";
|
|
90
73
|
import "../Components/Tag/TextTag/TextPlaneTag.js";
|
|
91
74
|
import "../Components/Common/Text/MText.js";
|
|
92
|
-
import "../utils/px2rem.js";
|
|
93
75
|
import "../Components/Tag/ImageTextTag.js";
|
|
94
76
|
import "../Components/Common/Line/Polyline.js";
|
|
95
77
|
import "../Components/Common/Media.js";
|
|
@@ -124,7 +106,23 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
124
106
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
125
107
|
import "../Components/Common/MediaItem.js";
|
|
126
108
|
import "../Components/Tag/MarketingTag.js";
|
|
127
|
-
import "
|
|
109
|
+
import "hammerjs";
|
|
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";
|
|
128
126
|
import "../Components/Tag/AudioTag/index.js";
|
|
129
127
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
130
128
|
import "../Components/Common/Audio.js";
|
|
@@ -133,56 +131,82 @@ import "../Components/Common/Icon/audioIcon.js";
|
|
|
133
131
|
import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
134
132
|
import "../Components/Tag/MediaPlane.js";
|
|
135
133
|
import "../Components/Tag/LinkTag.js";
|
|
136
|
-
import "../Components/Common/Icon/Icon.js";
|
|
137
|
-
import "../utils/getImageInfo.js";
|
|
138
134
|
import "../Components/Tag/CustomTag.js";
|
|
139
|
-
import "../
|
|
140
|
-
import "../utils/
|
|
141
|
-
import "
|
|
135
|
+
import "../tag.config.js";
|
|
136
|
+
import "../utils/tagPosition.js";
|
|
137
|
+
import "../utils/checkRange.js";
|
|
138
|
+
import "./TagCacheController.js";
|
|
139
|
+
import "../../base/BasePlugin.js";
|
|
142
140
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
143
141
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
144
|
-
import "../../shared-utils/three/GLTFLoader.js";
|
|
145
142
|
import "@realsee/five/gltf-loader";
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
const D = "Dnalogel-PanoTagPlugin", qt = (d) => `${D}--${d}`;
|
|
149
|
-
class Kt extends L {
|
|
143
|
+
const M = "DnalogelPlugin-PanoTagPlugin", te = !1, di = (h) => `${M}--${h}`;
|
|
144
|
+
class li extends Q {
|
|
150
145
|
constructor(e, t) {
|
|
151
146
|
super(e);
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
147
|
+
l(this, "state", { enabled: !0, visible: !0 });
|
|
148
|
+
l(this, "params");
|
|
149
|
+
l(this, "debug");
|
|
150
|
+
l(this, "css3DRenderPlugin");
|
|
151
|
+
l(this, "TagContainerSvelte");
|
|
152
|
+
l(this, "temporaryState", { visible: !0 });
|
|
153
|
+
l(this, "mediaStore", W({
|
|
154
|
+
currentMediaElement: null
|
|
157
155
|
}));
|
|
158
|
-
|
|
156
|
+
l(this, "group", new E());
|
|
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", () => {
|
|
159
173
|
const e = this.five.getCurrentState().mode;
|
|
160
174
|
this.tags.forEach((t) => {
|
|
161
|
-
|
|
175
|
+
m(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
|
|
162
176
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
163
177
|
});
|
|
164
|
-
|
|
178
|
+
l(this, "handleFiveModelShownFloorChange", () => {
|
|
165
179
|
this.tags.forEach((e) => {
|
|
166
|
-
!
|
|
180
|
+
!m(e) || (e.state.visible = this.getVisible(e));
|
|
167
181
|
}), this.updateRenderAllTags();
|
|
168
182
|
});
|
|
169
|
-
this
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
183
|
+
l(this, "loadModel", (e) => c(this, null, function* () {
|
|
184
|
+
var n;
|
|
185
|
+
const t = e.data.modelUrl;
|
|
186
|
+
if (!t)
|
|
187
|
+
return;
|
|
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);
|
|
174
198
|
}
|
|
175
199
|
load(e, t) {
|
|
176
|
-
return
|
|
200
|
+
return c(this, null, function* () {
|
|
177
201
|
var s, o;
|
|
178
|
-
this.clearTags(), console.info(
|
|
202
|
+
this.clearTags(), console.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = v({}, this.config, {
|
|
179
203
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
180
204
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
181
205
|
});
|
|
182
206
|
const i = yield this.addTag(e.tagList, t);
|
|
183
207
|
if (this.debug)
|
|
184
208
|
try {
|
|
185
|
-
|
|
209
|
+
$(this.five, this.tags);
|
|
186
210
|
} catch (r) {
|
|
187
211
|
console.error(r);
|
|
188
212
|
}
|
|
@@ -190,107 +214,97 @@ class Kt extends L {
|
|
|
190
214
|
});
|
|
191
215
|
}
|
|
192
216
|
addTag(e, t) {
|
|
193
|
-
return
|
|
217
|
+
return c(this, null, function* () {
|
|
194
218
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
195
219
|
const r = this.getTagConfig(o);
|
|
196
|
-
return
|
|
197
|
-
state:
|
|
198
|
-
hooks: new
|
|
199
|
-
|
|
200
|
-
|
|
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)
|
|
220
|
+
return T(p({}, o), {
|
|
221
|
+
state: p({ visible: void 0, unfolded: te }, r.initialState),
|
|
222
|
+
hooks: new G(),
|
|
223
|
+
clickable: r.clickable,
|
|
224
|
+
mergedConfig: r
|
|
205
225
|
});
|
|
206
226
|
}).filter((o) => o.position);
|
|
207
|
-
return s.forEach(
|
|
227
|
+
return s.forEach(K), this.tags.push(...s), q(this.five).then(() => {
|
|
208
228
|
var o, r, n;
|
|
209
|
-
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.
|
|
210
|
-
})
|
|
229
|
+
return this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), this.addMediaModelTag(s);
|
|
230
|
+
});
|
|
211
231
|
});
|
|
212
232
|
}
|
|
213
233
|
changeConfig(e, t = !0) {
|
|
214
|
-
t ? this.config =
|
|
234
|
+
t ? this.config = v({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
215
235
|
}
|
|
216
236
|
changeGlobalConfig(e, t = !0) {
|
|
217
|
-
t ? this.config.globalConfig =
|
|
237
|
+
t ? this.config.globalConfig = v({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
218
238
|
}
|
|
219
|
-
|
|
220
|
-
this.
|
|
239
|
+
clearTags() {
|
|
240
|
+
this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
221
241
|
}
|
|
222
242
|
show(e) {
|
|
223
|
-
return
|
|
224
|
-
if (this.checkDisposed())
|
|
225
|
-
return;
|
|
243
|
+
return c(this, null, function* () {
|
|
226
244
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
245
|
+
if (this.store.disposed)
|
|
246
|
+
return this.disposedErrorLog();
|
|
227
247
|
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("show", { userAction: t, withAnimation: i });
|
|
228
248
|
});
|
|
229
249
|
}
|
|
230
250
|
hide(e) {
|
|
231
|
-
return
|
|
232
|
-
if (this.checkDisposed())
|
|
233
|
-
return;
|
|
251
|
+
return c(this, null, function* () {
|
|
234
252
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
253
|
+
if (this.store.disposed)
|
|
254
|
+
return this.disposedErrorLog();
|
|
235
255
|
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("hide", { userAction: t, withAnimation: i });
|
|
236
256
|
});
|
|
237
257
|
}
|
|
238
258
|
enable(e) {
|
|
239
|
-
if (this.checkDisposed())
|
|
240
|
-
return;
|
|
241
259
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
242
|
-
|
|
260
|
+
if (this.store.disposed)
|
|
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;
|
|
243
263
|
}
|
|
244
264
|
disable(e) {
|
|
245
|
-
if (this.checkDisposed())
|
|
246
|
-
return;
|
|
247
265
|
const { userAction: t = !0 } = e != null ? e : {};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
if (this.checkDisposed())
|
|
252
|
-
return;
|
|
253
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = h({}, this.state);
|
|
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 });
|
|
266
|
+
if (this.store.disposed)
|
|
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;
|
|
255
269
|
}
|
|
256
270
|
dispose() {
|
|
257
271
|
var e, t, i, s, o, r;
|
|
258
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag.forEach((n) => {
|
|
259
|
-
var
|
|
260
|
-
return (
|
|
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.
|
|
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");
|
|
276
|
+
}
|
|
277
|
+
setState(e, t) {
|
|
278
|
+
if (this.store.disposed)
|
|
279
|
+
return this.disposedErrorLog();
|
|
280
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
|
|
281
|
+
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 });
|
|
262
282
|
}
|
|
263
283
|
changeUnfoldedById(e, t) {
|
|
264
|
-
var
|
|
284
|
+
var o;
|
|
265
285
|
const i = this.getTagById(e);
|
|
266
286
|
if (!i)
|
|
267
287
|
return;
|
|
268
|
-
|
|
269
|
-
if (s &&
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
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());
|
|
288
|
+
let s = !1;
|
|
289
|
+
if (t && this.can("unfold", i) && (i.state.unfolded = !0, s = !0), t && (this.can("unfold", i) ? (i.state.unfolded = !0, s = !0) : console.warn(`tag ${e} cannot be unfolded`)), t || (this.can("fold", i) ? (i.state.unfolded = !1, s = !0) : console.warn(`tag ${e} cannot be folded`)), s) {
|
|
290
|
+
const r = this.filterPointTag();
|
|
291
|
+
(o = this.TagContainerSvelte) == null || o.$set({ tags: r });
|
|
292
|
+
}
|
|
279
293
|
}
|
|
280
294
|
changeTagNormalById(e, t) {
|
|
281
295
|
const i = this.getTagById(e);
|
|
282
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
296
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = C(t), this.updateRenderPlaneTag());
|
|
283
297
|
}
|
|
284
298
|
changeDataById(e, t, i = !0) {
|
|
285
299
|
const s = this.getTagById(e);
|
|
286
|
-
!s || (i ? s.data =
|
|
300
|
+
!s || (i ? s.data = v({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
287
301
|
}
|
|
288
302
|
changeStickTypeById(e, t, i = !0) {
|
|
289
303
|
this.changeTagById(e, t, i);
|
|
290
304
|
}
|
|
291
305
|
changeTagById(e, t, i = !0) {
|
|
292
306
|
const s = this.getTagById(e);
|
|
293
|
-
!t || (i ?
|
|
307
|
+
!t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = C(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
|
|
294
308
|
}
|
|
295
309
|
destroyTagById(e) {
|
|
296
310
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -298,10 +312,29 @@ class Kt extends L {
|
|
|
298
312
|
s !== -1 && this.tags.splice(s, 1);
|
|
299
313
|
}), this.updateRenderAllTags();
|
|
300
314
|
}
|
|
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
|
+
}
|
|
301
334
|
setVisibleAndUnfolded() {
|
|
302
|
-
return
|
|
335
|
+
return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
303
336
|
if (!!this.isPanorama)
|
|
304
|
-
return this.setVisibleByPanoIndex(), e ? new Promise((t) => {
|
|
337
|
+
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
305
338
|
setTimeout(() => {
|
|
306
339
|
this.setUnfoldedByPanoIndex(), t();
|
|
307
340
|
}, 10);
|
|
@@ -309,27 +342,30 @@ class Kt extends L {
|
|
|
309
342
|
});
|
|
310
343
|
}
|
|
311
344
|
handleShow() {
|
|
312
|
-
this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.
|
|
345
|
+
this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.five.needsRender = !0;
|
|
313
346
|
}
|
|
314
347
|
handleHide() {
|
|
315
|
-
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.
|
|
348
|
+
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.five.needsRender = !0;
|
|
316
349
|
}
|
|
317
350
|
handleEnable() {
|
|
318
|
-
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.
|
|
351
|
+
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
|
|
319
352
|
}
|
|
320
353
|
handleDisable() {
|
|
321
354
|
var e, t, i;
|
|
322
|
-
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e),
|
|
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().forEach((s) => {
|
|
323
356
|
var o;
|
|
324
357
|
(o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
|
|
325
|
-
})
|
|
358
|
+
});
|
|
326
359
|
}
|
|
327
360
|
addEventListener() {
|
|
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),
|
|
329
|
-
return
|
|
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",
|
|
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), d = this.loadVideoFirstFrame.bind(this), f = this.clickhandler.bind(this), g = this.five.currentMode;
|
|
362
|
+
return this.handleFiveModeChange(g), 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", d), t.on("click", f), () => {
|
|
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", d), t.off("click", f), this.store.eventListenerDisposer = void 0;
|
|
331
364
|
};
|
|
332
365
|
}
|
|
366
|
+
loadVideoFirstFrame() {
|
|
367
|
+
this.isIOSWX && this.hooks.emit("loadVideoFirstFrame");
|
|
368
|
+
}
|
|
333
369
|
addResizeListener() {
|
|
334
370
|
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
335
371
|
const e = this.addResizeObserver();
|
|
@@ -345,13 +381,13 @@ class Kt extends L {
|
|
|
345
381
|
!this.state.enabled || (this.show(), this.updateRenderAllTags());
|
|
346
382
|
}, i = () => {
|
|
347
383
|
!this.state.enabled || this.hide();
|
|
348
|
-
}, { observe: s, unobserve: o } =
|
|
349
|
-
|
|
384
|
+
}, { observe: s, unobserve: o } = U(
|
|
385
|
+
J(() => {
|
|
350
386
|
!this.store.resizeObserverDisposer || i();
|
|
351
387
|
}, 500),
|
|
352
388
|
e
|
|
353
|
-
), { observe: r, unobserve: n } =
|
|
354
|
-
|
|
389
|
+
), { observe: r, unobserve: n } = U(
|
|
390
|
+
j(() => t(), 400),
|
|
355
391
|
e
|
|
356
392
|
);
|
|
357
393
|
return s(), r(), () => {
|
|
@@ -360,15 +396,21 @@ class Kt extends L {
|
|
|
360
396
|
}
|
|
361
397
|
handleFiveModeChange(e) {
|
|
362
398
|
this.setModelMedialVisible(), this.tags.forEach((t) => {
|
|
363
|
-
|
|
399
|
+
m(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
|
|
364
400
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
365
401
|
}
|
|
366
402
|
handleFiveWantsMoveToPano() {
|
|
367
403
|
this.tags.forEach((e) => {
|
|
368
404
|
const t = this.getTagConfig(e);
|
|
369
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
405
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = T(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = T(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
370
406
|
}), this.updateTagContainerVisible();
|
|
371
407
|
}
|
|
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
|
+
}
|
|
372
414
|
clickhandler(e) {
|
|
373
415
|
if (e.target !== "TagPoint")
|
|
374
416
|
return;
|
|
@@ -379,8 +421,26 @@ class Kt extends L {
|
|
|
379
421
|
s.id !== e.tag.id && s.state && this.can("fold", s) && (s.state.unfolded = !1);
|
|
380
422
|
}), this.updateRenderAllTags());
|
|
381
423
|
}
|
|
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
|
+
}
|
|
382
442
|
handleFiveCameraUpdateDebounce() {
|
|
383
|
-
return
|
|
443
|
+
return j(() => {
|
|
384
444
|
this.setUnfoldedByCamera(), this.updateRenderAllTags();
|
|
385
445
|
}, 100);
|
|
386
446
|
}
|
|
@@ -388,9 +448,9 @@ class Kt extends L {
|
|
|
388
448
|
this.updateRenderPointTag();
|
|
389
449
|
}
|
|
390
450
|
handleFivePanoArrived() {
|
|
391
|
-
return
|
|
451
|
+
return c(this, null, function* () {
|
|
392
452
|
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
393
|
-
e.temporaryState =
|
|
453
|
+
e.temporaryState = T(p({}, e.temporaryState), { visible: !0 });
|
|
394
454
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
395
455
|
});
|
|
396
456
|
}
|
|
@@ -404,13 +464,113 @@ class Kt extends L {
|
|
|
404
464
|
typeof i == "object" && (i.autoUnfold || i.keep) || t.state && (t.state.unfolded = !1);
|
|
405
465
|
});
|
|
406
466
|
}
|
|
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
|
+
}
|
|
407
567
|
changeTagMode(e, t) {
|
|
408
568
|
var i, s, o, r, n;
|
|
409
569
|
((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);
|
|
410
570
|
}
|
|
411
571
|
}
|
|
412
572
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
573
|
+
li as PanoTagPluginController,
|
|
574
|
+
li as default,
|
|
575
|
+
di as pluginFlag
|
|
416
576
|
};
|