@realsee/dnalogel 2.3.5-dev.7 → 2.3.6-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/dist/CruisePlugin/typing.d.ts +4 -0
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +2 -3
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +14 -16
- package/dist/PanoTagPlugin/controller/index.d.ts +13 -16
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +11 -13
- package/dist/PanoTagPlugin/typings/index.d.ts +1 -5
- package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +6419 -7315
- package/dist/index.umd.js +49 -49
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +26 -26
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +164 -213
- 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 +35 -75
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +15 -19
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/{interfaces/AddTagConfig.html → enums/LinkType.html} +23 -20
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +15 -19
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +13 -36
- package/docs/functions/CameraMovementPlugin.html +13 -36
- package/docs/functions/CruisePlugin.html +13 -36
- package/docs/functions/GuideLinePlugin.html +14 -37
- package/docs/functions/ItemLabelPlugin.html +13 -36
- package/docs/functions/MapviewFloorplanPlugin.html +13 -36
- package/docs/functions/ModelChassisCompassPlugin.html +13 -36
- package/docs/functions/ModelEntryDoorGuidePlugin.html +13 -36
- package/docs/functions/ModelFloorplanPlugin.html +13 -36
- package/docs/functions/ModelItemLabelPlugin.html +13 -36
- package/docs/functions/ModelRoomLabelPlugin.html +13 -36
- package/docs/functions/ModelTVVideoPlugin.html +13 -36
- package/docs/functions/ModelViewPlugin.html +13 -36
- package/docs/functions/Object3DHelperPlugin.html +13 -36
- package/docs/functions/PanoCompassPlugin.html +13 -36
- package/docs/functions/PanoCursorRaycasterPlugin.html +13 -36
- package/docs/functions/PanoDoorLabelPlugin.html +13 -36
- package/docs/functions/PanoFloorplanRadarPlugin.html +13 -36
- package/docs/functions/PanoMeasurePlugin.html +13 -36
- package/docs/functions/PanoRulerPlugin.html +13 -36
- package/docs/functions/PanoRulerProPlugin.html +13 -36
- package/docs/functions/PanoSpatialTagPlugin.html +13 -36
- package/docs/functions/PanoTagPlugin.html +23 -42
- package/docs/functions/TopviewFloorplanPlugin.html +13 -36
- 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 +14 -37
- package/docs/index.html +13 -36
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +212 -0
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +14 -37
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +14 -37
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +14 -37
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +14 -37
- package/docs/interfaces/Rooms.html +14 -37
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +19 -15
- package/docs/interfaces/Tags.html +12 -14
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +21 -67
- package/docs/types/ArrayPosition.html +15 -38
- package/docs/types/CSS3DRenderExportType.html +14 -37
- package/docs/types/CSS3DRenderPluginExportType.html +14 -37
- package/docs/types/CSS3DRenderPluginParameterType.html +14 -37
- package/docs/types/Color.html +14 -37
- package/docs/types/ContentTypeConfigKey.html +15 -38
- package/docs/types/{WorkCode.html → ContentTypeConfigKeyArray.html} +17 -40
- package/docs/types/Create3DDomContainerReturnType.html +14 -37
- package/docs/types/Create3DElementReturnType.html +14 -37
- package/docs/types/CruisePluginExportType.html +14 -37
- package/docs/types/Direction-1.html +14 -37
- package/docs/types/Direction4.html +14 -37
- package/docs/types/FloorplanRuleLabels.html +14 -37
- package/docs/types/FloorplanServerRuleLabels.html +14 -37
- package/docs/types/GuideLinePluginExportType.html +14 -37
- package/docs/types/HelperEventMap.html +14 -37
- package/docs/types/MapviewFloorplanPluginParameterType.html +14 -37
- package/docs/types/MapviewFloorplanPluginReturnType.html +14 -37
- package/docs/types/MediaData.html +14 -37
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +14 -37
- package/docs/types/ModelFloorplanPluginParameterType.html +14 -37
- package/docs/types/ModelFloorplanPluginReturnType.html +14 -37
- package/docs/types/ModelRoomLabelPluginParameters.html +14 -37
- package/docs/types/ModelRoomLabelPluginReturnType.html +14 -37
- package/docs/types/MoveArgs.html +14 -37
- package/docs/types/MoveOpts.html +14 -37
- package/docs/types/Object3DHelperEventMap.html +14 -37
- package/docs/types/ObjectFit.html +14 -37
- package/docs/types/PaintBrushEventMap.html +14 -37
- package/docs/types/PanoCompassPluginData.html +14 -37
- package/docs/types/PanoCompassPluginExportType.html +14 -37
- package/docs/types/PanoCompassPluginParameterType.html +14 -37
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +14 -37
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +14 -37
- package/docs/types/PanoMeasurePluginEvent.html +14 -37
- package/docs/types/PanoMeasureReturnType.html +14 -37
- package/docs/types/PanoSpatialTagPluginId.html +14 -37
- package/docs/types/PanoTagPluginExportInterface.html +14 -37
- package/docs/types/PanoTagPluginParamsInterface.html +14 -37
- package/docs/types/PlaneTag.html +19 -40
- package/docs/types/PointTag.html +23 -40
- package/docs/types/Position.html +14 -37
- package/docs/types/RotateArgs.html +14 -37
- package/docs/types/RotateOpts.html +14 -37
- package/docs/types/RuleLabelsKey.html +14 -37
- package/docs/types/RuleLabelsValue.html +14 -37
- package/docs/types/Tag.html +22 -41
- package/docs/types/Tag2D.html +20 -42
- package/docs/types/Tag3D.html +20 -42
- package/docs/types/TagId.html +14 -37
- package/docs/types/TopviewFloorplanPluginParameterType.html +14 -37
- package/docs/types/TopviewFloorplanPluginReturnType.html +14 -37
- package/docs/variables/FLOOR_TYPE_MAP.html +14 -37
- package/docs/variables/PLUGIN.html +14 -37
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +14 -37
- package/docs/variables/ROOM_TYPE_MAP.html +14 -37
- package/docs/variables/VERSION.html +14 -37
- package/docs/variables/itemLabelPluginServerParams.html +14 -37
- package/docs/variables/modelItemLabelPluginServerParams.html +14 -37
- package/docs/variables/modelRoomLabelPluginServerParams.html +14 -37
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +2 -2
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
- package/libs/CSS3DRenderPlugin/utils/index.js +0 -12
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +3 -4
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +2 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
- package/libs/CruisePlugin/Controller.js +146 -143
- package/libs/CruisePlugin/typing.d.ts +4 -0
- package/libs/CruisePlugin/utils/coordinatesAngle.js +2 -3
- package/libs/CruisePlugin/utils/linerValue.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +36 -38
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +15 -25
- package/libs/PanoMeasurePlugin/Controller/EditController.js +9 -21
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -23
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +14 -25
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +29 -44
- package/libs/PanoMeasurePlugin/Controller/index.js +21 -58
- package/libs/PanoMeasurePlugin/Model/index.js +40 -47
- package/libs/PanoMeasurePlugin/Model/line.js +11 -15
- package/libs/PanoMeasurePlugin/Model/point.js +5 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +30 -30
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -8
- package/libs/PanoMeasurePlugin/index.js +2 -2
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/constants.js +16 -15
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +6 -7
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +0 -1
- package/libs/PanoMeasurePlugin/utils/math.js +1 -2
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -3
- package/libs/PanoTagPlugin/Assets/Icon.js +3 -4
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +132 -137
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +59 -95
- package/libs/PanoTagPlugin/Components/Common/Media.js +205 -231
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +80 -109
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +50 -0
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +50 -0
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +130 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +131 -0
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +130 -122
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +96 -58
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -75
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +145 -182
- package/libs/PanoTagPlugin/Components/TagContainer.js +109 -144
- package/libs/PanoTagPlugin/Components/TagWrapper.js +152 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagCacheController.js +2 -3
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +14 -16
- package/libs/PanoTagPlugin/controller/TagComputer.js +150 -173
- package/libs/PanoTagPlugin/controller/index.d.ts +13 -16
- package/libs/PanoTagPlugin/controller/index.js +165 -238
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +21 -32
- package/libs/PanoTagPlugin/tag.config.js +16 -23
- package/libs/PanoTagPlugin/typings/controller.d.ts +11 -13
- package/libs/PanoTagPlugin/typings/index.d.ts +1 -5
- package/libs/PanoTagPlugin/typings/index.js +1 -7
- package/libs/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/libs/PanoTagPlugin/typings/tag.js +7 -0
- package/libs/PanoTagPlugin/utils/constants.js +1 -2
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/index.js +0 -35
- package/libs/PanoTagPlugin/utils/search.js +9 -27
- package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -10
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/index.js +101 -112
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +20 -17
- package/libs/vendor/svelte/internal/index.js +341 -381
- package/package.json +3 -3
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -50
- package/dist/PanoTagPlugin/utils/color.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +0 -1
- package/dist/PanoTagPlugin/utils/tag/format.d.ts +0 -2
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +0 -1
- package/docs/interfaces/EventMap.html +0 -298
- package/docs/interfaces/MinMax.html +0 -71
- package/docs/interfaces/State.html +0 -89
- package/docs/interfaces/TagCache.html +0 -92
- package/docs/interfaces/TagIconUrl.html +0 -91
- package/docs/interfaces/TemporaryState.html +0 -64
- package/docs/types/ContentTypeMap.html +0 -248
- package/docs/types/LoadTagConfig.html +0 -248
- package/docs/types/MediaStore.html +0 -248
- package/docs/types/PanoIndex.html +0 -248
- package/docs/types/PlaneTagElement.html +0 -253
- package/docs/types/Point2DElement.html +0 -253
- package/docs/types/Point2DTag.html +0 -255
- package/docs/types/Point3DElement.html +0 -253
- package/docs/types/Point3DTag.html +0 -255
- package/docs/types/PointTagElement.html +0 -253
- package/docs/types/StickType.html +0 -248
- package/docs/types/TagContentType.html +0 -248
- package/docs/types/TagDimensionType.html +0 -248
- package/docs/types/TagElement.html +0 -255
- package/docs/types/TagEvents.html +0 -283
- package/docs/types/TagHooks.html +0 -248
- package/docs/types/TagIconSize.html +0 -251
- package/docs/types/TagPointType.html +0 -251
- package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
- package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
- package/libs/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/PanoMeasurePlugin/typings/index.js +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +0 -175
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +0 -110
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +0 -81
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -145
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -147
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +0 -166
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +0 -213
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -215
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +0 -120
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -102
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -134
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -115
- package/libs/PanoTagPlugin/Components/TagItem.js +0 -187
- 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 -122
- 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/mocks/v2/mock1.d.ts +0 -128
- package/libs/PanoTagPlugin/mocks/v2/mock1.js +0 -114
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
- package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +0 -1
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
- package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -50
- package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -5
- package/libs/PanoTagPlugin/utils/color.d.ts +0 -7
- package/libs/PanoTagPlugin/utils/color.js +0 -17
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
- package/libs/PanoTagPlugin/utils/getImageInfo.js +0 -51
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/px2rem.js +0 -6
- package/libs/PanoTagPlugin/utils/tag/format.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +0 -18
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +0 -26
- package/libs/PanoTagPlugin/utils/timeToString.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/timeToString.js +0 -7
|
@@ -1,185 +1,129 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var A = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
+
var R = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var T = Object.getOwnPropertySymbols;
|
|
4
4
|
var w = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var v = (l, a, e) => a in l ? A(l, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[a] = e, f = (l, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
w.call(a, e) &&
|
|
7
|
+
w.call(a, e) && v(l, e, a[e]);
|
|
8
8
|
if (T)
|
|
9
9
|
for (var e of T(a))
|
|
10
|
-
E.call(a, e) &&
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
10
|
+
E.call(a, e) && v(l, e, a[e]);
|
|
11
|
+
return l;
|
|
12
|
+
}, c = (l, a) => P(l, R(a));
|
|
13
|
+
var h = (l, a, e) => (v(l, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var p = (l, a, e) => new Promise((t, s) => {
|
|
15
|
+
var i = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
r(e.next(n));
|
|
18
|
+
} catch (d) {
|
|
19
|
+
s(d);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
r(e.throw(n));
|
|
24
|
+
} catch (d) {
|
|
25
|
+
s(d);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(i, o);
|
|
28
|
+
r((e = e.apply(l, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
30
|
+
import { Subscribe as U } from "@realsee/five";
|
|
31
31
|
import { Quaternion as k } from "three";
|
|
32
|
-
import
|
|
33
|
-
import { writable as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { arrayPositionToVector3 as
|
|
32
|
+
import m from "object-assign-deep";
|
|
33
|
+
import { writable as F } from "../../vendor/svelte/store/index.js";
|
|
34
|
+
import { TagContainer as L } from "../Components/TagContainer.js";
|
|
35
|
+
import { Tag as B } from "../Components/Tag/index.js";
|
|
36
|
+
import { arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
37
37
|
import { addDebugPoints as O } from "../utils/addDebugPoints.js";
|
|
38
38
|
import { planeNormal as I } from "../utils/planeNormal.js";
|
|
39
|
-
import { actionAfterFiveModelLoad as
|
|
39
|
+
import { actionAfterFiveModelLoad as z } from "../utils/actionAfterFiveModelLoad.js";
|
|
40
40
|
import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
|
|
41
41
|
import { debounce as C } from "../utils/debounce.js";
|
|
42
|
-
import { throttle as
|
|
42
|
+
import { throttle as N } from "../utils/throttle.js";
|
|
43
43
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
44
|
-
import { TagComputer as
|
|
45
|
-
import { CSS3DRenderPlugin as
|
|
46
|
-
import
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
import "../utils/noTypecheck.js";
|
|
50
|
-
import "../Components/Common/TagPoint.js";
|
|
51
|
-
import "../Components/Common/Shadow.js";
|
|
52
|
-
import "../../vendor/svelte/transition/index.js";
|
|
53
|
-
import "../../vendor/svelte/easing/index.js";
|
|
54
|
-
import "../Components/Common/Icon/Icon.js";
|
|
55
|
-
import "../utils/getImageInfo.js";
|
|
56
|
-
import "../utils/px2rem.js";
|
|
57
|
-
import "../Assets/Icon.js";
|
|
58
|
-
import "../Components/Tag/TextTag/index.js";
|
|
59
|
-
import "../Components/Tag/TextTag/TextTag.js";
|
|
60
|
-
import "../Components/Common/Line/Straight.js";
|
|
61
|
-
import "../../shared-utils/uuid.js";
|
|
62
|
-
import "../Components/Common/Text/FlyMText.js";
|
|
63
|
-
import "../Components/Common/Text/FlyText.js";
|
|
64
|
-
import "animejs";
|
|
65
|
-
import "../../shared-utils/isNil.js";
|
|
66
|
-
import "../utils/search.js";
|
|
67
|
-
import "../utils/constants.js";
|
|
68
|
-
import "../Components/Common/Arrow.js";
|
|
69
|
-
import "../utils/doUtil.js";
|
|
70
|
-
import "../Components/Tag/TextTag/TextPlaneTag.js";
|
|
71
|
-
import "../Components/Common/Text/MText.js";
|
|
72
|
-
import "../Components/Tag/ImageTextTag.js";
|
|
73
|
-
import "../Components/Common/Line/Polyline.js";
|
|
74
|
-
import "../Components/Common/Media.js";
|
|
75
|
-
import "../../vendor/swiper/svelte/swiper.js";
|
|
76
|
-
import "swiper";
|
|
77
|
-
import "../../vendor/swiper/components-shared/get-params.js";
|
|
78
|
-
import "../../vendor/swiper/components-shared/utils.js";
|
|
79
|
-
import "../../vendor/swiper/components-shared/params-list.js";
|
|
80
|
-
import "../../vendor/swiper/components-shared/mount-swiper.js";
|
|
81
|
-
import "../../vendor/swiper/components-shared/get-changed-params.js";
|
|
82
|
-
import "../../vendor/swiper/components-shared/update-swiper.js";
|
|
83
|
-
import "../../vendor/swiper/svelte/swiper-slide.js";
|
|
84
|
-
import "swiper/css";
|
|
85
|
-
import "swiper/css/autoplay";
|
|
86
|
-
import "../Components/Common/MediaItem.js";
|
|
87
|
-
import "../Components/Tag/MarketingTag.js";
|
|
88
|
-
import "../Components/Tag/AudioTag/index.js";
|
|
89
|
-
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
90
|
-
import "../Components/Common/Audio.js";
|
|
91
|
-
import "../Components/Common/Icon/audioIcon.js";
|
|
92
|
-
import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
93
|
-
import "../utils/timeToString.js";
|
|
94
|
-
import "../utils/color.js";
|
|
95
|
-
import "../Components/Tag/MediaPlane.js";
|
|
96
|
-
import "../Components/Tag/LinkTag.js";
|
|
97
|
-
import "../Components/Tag/CustomTag.js";
|
|
98
|
-
import "../tag.config.js";
|
|
99
|
-
import "../utils/tag/tagCheck.js";
|
|
100
|
-
import "../utils/tagPosition.js";
|
|
101
|
-
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
102
|
-
import "../utils/checkRange.js";
|
|
103
|
-
import "./TagCacheController.js";
|
|
104
|
-
import "../../base/BasePlugin.js";
|
|
105
|
-
import "../../shared-utils/Subscribe.js";
|
|
106
|
-
import "../../CSS3DRenderPlugin/Controller.js";
|
|
107
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
108
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
109
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
110
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
111
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
112
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
113
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
114
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
115
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
116
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
117
|
-
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
118
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
119
|
-
const A = "2.0.0-dev.12", v = `DnalogelPlugin-PanoTagPlugin@${A}`, _ = !1, Pt = (h) => `${v}--${h}`;
|
|
120
|
-
class wt extends N {
|
|
44
|
+
import { TagComputer as $ } from "./TagComputer.js";
|
|
45
|
+
import { CSS3DRenderPlugin as j } from "../../CSS3DRenderPlugin/index.js";
|
|
46
|
+
import { PointType as u, DimensionType as y } from "../typings/tag.js";
|
|
47
|
+
const S = "1.2.6", b = `DnalogelPlugin-PanoTagPlugin@${S}`, V = !1, re = (l) => `${b}--${l}`;
|
|
48
|
+
class ae extends $ {
|
|
121
49
|
constructor(e, t) {
|
|
122
50
|
super(e);
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
51
|
+
h(this, "version", S);
|
|
52
|
+
h(this, "state", { enabled: !0, visible: !0 });
|
|
53
|
+
h(this, "params");
|
|
54
|
+
h(this, "debug");
|
|
55
|
+
h(this, "css3DRenderPlugin");
|
|
56
|
+
h(this, "TagContainerSvelte");
|
|
57
|
+
h(this, "temporaryState", { visible: !0 });
|
|
58
|
+
h(this, "mediaStore", F({
|
|
59
|
+
currentMediaUrl: ""
|
|
132
60
|
}));
|
|
133
|
-
|
|
134
|
-
d(this, "store", {
|
|
61
|
+
h(this, "store", {
|
|
135
62
|
disposers: [],
|
|
136
63
|
disposed: !1,
|
|
137
64
|
resizeObserverDisposerAdding: !1,
|
|
138
65
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
139
66
|
});
|
|
140
|
-
|
|
141
|
-
|
|
67
|
+
h(this, "staticUrl");
|
|
68
|
+
h(this, "disposedErrorLog", () => {
|
|
69
|
+
console.error(`${b} is disposed`);
|
|
142
70
|
});
|
|
143
|
-
this.params =
|
|
71
|
+
this.params = f({
|
|
72
|
+
debug: !1,
|
|
73
|
+
mergePluginDefaultConfigToLoadDataConfig: !1,
|
|
74
|
+
config: this.config,
|
|
75
|
+
staticConfig: {
|
|
76
|
+
host: "vrlab-static.ljcdn.com"
|
|
77
|
+
}
|
|
78
|
+
}, t), this.debug = this.params.debug, this.config = this.params.config, this.staticUrl = (() => {
|
|
79
|
+
var i;
|
|
80
|
+
const s = this.params.staticConfig;
|
|
81
|
+
if (typeof s == "string")
|
|
82
|
+
return s;
|
|
83
|
+
{
|
|
84
|
+
const o = s.protocol ? s.protocol + ":" : "", r = (i = s.host) != null ? i : "vrlab-static.ljcdn.com", n = s.port ? ":" + s.port : "";
|
|
85
|
+
return `${o}//${r}${n}`;
|
|
86
|
+
}
|
|
87
|
+
})(), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
144
88
|
}
|
|
145
89
|
load(e, t) {
|
|
146
|
-
var
|
|
147
|
-
this.clearTags(), console.log(
|
|
148
|
-
globalConfig: (
|
|
149
|
-
contentTypeConfig: (
|
|
150
|
-
}), this.addTag(e.tagList, t), this.debug && O(this.five, this.tags);
|
|
90
|
+
var s, i;
|
|
91
|
+
this.clearTags(), console.log(b, "load:", { data: e }), this.params.mergePluginDefaultConfigToLoadDataConfig ? this.config = m({}, this.config, {
|
|
92
|
+
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
93
|
+
contentTypeConfig: (i = e.contentTypeConfig) != null ? i : {}
|
|
94
|
+
}) : (e.globalConfig && (this.config.globalConfig = e.globalConfig), e.contentTypeConfig && (this.config.contentTypeConfig = e.contentTypeConfig)), this.addTag(e.tagList, t), this.debug && O(this.five, this.tags);
|
|
151
95
|
}
|
|
152
96
|
addTag(e, t) {
|
|
153
|
-
const
|
|
154
|
-
const
|
|
155
|
-
return
|
|
156
|
-
state:
|
|
157
|
-
hooks: new
|
|
158
|
-
clickable:
|
|
97
|
+
const i = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
98
|
+
const r = this.getTagConfig(o);
|
|
99
|
+
return c(f({}, o), {
|
|
100
|
+
state: f({ visible: void 0, unfolded: V }, r.initialState),
|
|
101
|
+
hooks: new U(),
|
|
102
|
+
clickable: r.clickable
|
|
159
103
|
});
|
|
160
104
|
}).filter((o) => o.position);
|
|
161
|
-
|
|
162
|
-
var o,
|
|
163
|
-
this.store.eventListenerDisposer && ((
|
|
105
|
+
this.tags.push(...i), z(this.five, () => {
|
|
106
|
+
var o, r, n;
|
|
107
|
+
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();
|
|
164
108
|
});
|
|
165
109
|
}
|
|
166
110
|
clearTags() {
|
|
167
111
|
this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
168
112
|
}
|
|
169
113
|
show(e) {
|
|
170
|
-
return
|
|
171
|
-
const { userAction: t = !0, withAnimation:
|
|
114
|
+
return p(this, null, function* () {
|
|
115
|
+
const { userAction: t = !0, withAnimation: s = !1 } = e != null ? e : {};
|
|
172
116
|
if (this.store.disposed)
|
|
173
117
|
return this.disposedErrorLog();
|
|
174
|
-
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation:
|
|
118
|
+
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: s }), this.hooks.emit("show", { userAction: t, withAnimation: s });
|
|
175
119
|
});
|
|
176
120
|
}
|
|
177
121
|
hide(e) {
|
|
178
|
-
return
|
|
179
|
-
const { userAction: t = !0, withAnimation:
|
|
122
|
+
return p(this, null, function* () {
|
|
123
|
+
const { userAction: t = !0, withAnimation: s = !1 } = e != null ? e : {};
|
|
180
124
|
if (this.store.disposed)
|
|
181
125
|
return this.disposedErrorLog();
|
|
182
|
-
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation:
|
|
126
|
+
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: s }), this.hooks.emit("hide", { userAction: t, withAnimation: s });
|
|
183
127
|
});
|
|
184
128
|
}
|
|
185
129
|
enable(e) {
|
|
@@ -195,86 +139,70 @@ class wt extends N {
|
|
|
195
139
|
this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
|
|
196
140
|
}
|
|
197
141
|
dispose() {
|
|
198
|
-
var e, t,
|
|
199
|
-
this.
|
|
200
|
-
var
|
|
201
|
-
return (
|
|
202
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((
|
|
142
|
+
var e, t, s, i, o, r;
|
|
143
|
+
this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
|
|
144
|
+
var d;
|
|
145
|
+
return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
|
|
146
|
+
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (i = (s = this.store).eventListenerDisposer) == null || i.call(s), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
|
|
203
147
|
}
|
|
204
148
|
setState(e, t) {
|
|
205
149
|
if (this.store.disposed)
|
|
206
150
|
return this.disposedErrorLog();
|
|
207
|
-
const { userAction:
|
|
208
|
-
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation =
|
|
209
|
-
}
|
|
210
|
-
changeUnfoldedById(e, t) {
|
|
211
|
-
var o;
|
|
212
|
-
const i = this.getTagById(e);
|
|
213
|
-
if (!i)
|
|
214
|
-
return;
|
|
215
|
-
i.state.unfolded = t;
|
|
216
|
-
const s = this.filterPointTag();
|
|
217
|
-
(o = this.TagContainerSvelte) == null || o.$set({ tags: s });
|
|
151
|
+
const { userAction: s = !0, visibleWithAnimation: i = !1 } = t, o = f({}, this.state);
|
|
152
|
+
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = i, 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: s });
|
|
218
153
|
}
|
|
219
154
|
changeTagNormalById(e, t) {
|
|
220
|
-
const i = this.getTagById(e);
|
|
221
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = c(t), this.updateRenderPlaneTag());
|
|
222
|
-
}
|
|
223
|
-
changeDataById(e, t, i = !0) {
|
|
224
155
|
const s = this.getTagById(e);
|
|
225
|
-
!s ||
|
|
156
|
+
!s || !s.tag3DContentSvelte || (s.tag3DContentSvelte.currentNormal = g(t), this.updateRenderPlaneTag());
|
|
226
157
|
}
|
|
227
|
-
|
|
228
|
-
this.
|
|
158
|
+
changeDataById(e, t, s = !0) {
|
|
159
|
+
const i = this.getTagById(e);
|
|
160
|
+
!i || (s ? i.data = m({}, i.data, t) : Object.assign(i.data, t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
229
161
|
}
|
|
230
|
-
changeTagById(e, t,
|
|
231
|
-
const
|
|
232
|
-
!t || (
|
|
162
|
+
changeTagById(e, t, s = !0) {
|
|
163
|
+
const i = this.getTagById(e);
|
|
164
|
+
!t || (s ? m(i, t) : Object.assign(i, t), (i == null ? void 0 : i.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (i.tag3DContentSvelte.currentNormal = g(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
|
|
233
165
|
}
|
|
234
166
|
destroyTagById(e) {
|
|
235
|
-
(Array.isArray(e) ? e : [e]).forEach((
|
|
236
|
-
const
|
|
237
|
-
|
|
167
|
+
(Array.isArray(e) ? e : [e]).forEach((s) => {
|
|
168
|
+
const i = this.tags.findIndex((o) => o.id === s);
|
|
169
|
+
i !== -1 && this.tags.splice(i, 1);
|
|
238
170
|
}), this.updateRenderAllTags();
|
|
239
171
|
}
|
|
240
172
|
pauseCurrentMedia() {
|
|
241
|
-
this.mediaStore.set({
|
|
173
|
+
this.mediaStore.set({ currentMediaUrl: "" });
|
|
242
174
|
}
|
|
243
175
|
setVisibleAndUnfolded() {
|
|
244
|
-
return
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
|
|
176
|
+
return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
177
|
+
return this.setVisibleByPanoIndex(), e ? new Promise((t, s) => {
|
|
178
|
+
setTimeout(() => {
|
|
179
|
+
this.setUnfoldedByPanoIndex(), t();
|
|
180
|
+
}, 10);
|
|
181
|
+
}) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
|
|
251
182
|
});
|
|
252
183
|
}
|
|
253
184
|
handleShow() {
|
|
254
185
|
this.state.visible = !0, this.updateTagContainerVisible();
|
|
255
186
|
}
|
|
256
187
|
handleHide() {
|
|
257
|
-
this.
|
|
188
|
+
this.state.visible = !1, this.updateTagContainerVisible();
|
|
258
189
|
}
|
|
259
190
|
handleEnable() {
|
|
260
191
|
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
|
|
261
192
|
}
|
|
262
193
|
handleDisable() {
|
|
263
|
-
var e, t,
|
|
264
|
-
this.
|
|
194
|
+
var e, t, s;
|
|
195
|
+
this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (s = this.TagContainerSvelte) == null || s.$set({ tags: [] }), this.filter3DTag().forEach((i) => {
|
|
265
196
|
var o;
|
|
266
|
-
(o =
|
|
197
|
+
(o = i.tag3DContentSvelte) == null || o.svelteApp.$destroy(), i.tag3DContentSvelte = void 0;
|
|
267
198
|
});
|
|
268
199
|
}
|
|
269
200
|
addEventListener() {
|
|
270
|
-
const { five: e, hooks: t } = this,
|
|
271
|
-
return
|
|
272
|
-
e.off("wantsMoveToPano",
|
|
201
|
+
const { five: e, hooks: t } = this, s = this.handleFiveWantsMoveToPano.bind(this), i = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), d = this.clickhandler.bind(this);
|
|
202
|
+
return e.on("wantsMoveToPano", s), e.on("modeChange", i), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), t.on("click", d), () => {
|
|
203
|
+
e.off("wantsMoveToPano", s), e.off("modeChange", i), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), t.off("click", d), this.store.eventListenerDisposer = void 0;
|
|
273
204
|
};
|
|
274
205
|
}
|
|
275
|
-
loadVideoFirstFrame() {
|
|
276
|
-
this.isIOSWX && this.hooks.emit("loadVideoFirstFrame");
|
|
277
|
-
}
|
|
278
206
|
addResizeListener() {
|
|
279
207
|
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
280
208
|
const e = this.addResizeObserver();
|
|
@@ -288,44 +216,44 @@ class wt extends N {
|
|
|
288
216
|
return;
|
|
289
217
|
const e = this.five.getElement(), t = () => {
|
|
290
218
|
!this.state.enabled || (this.show(), this.updateRenderAllTags());
|
|
291
|
-
},
|
|
219
|
+
}, s = () => {
|
|
292
220
|
!this.state.enabled || this.hide();
|
|
293
|
-
}, { observe:
|
|
294
|
-
|
|
295
|
-
!this.store.resizeObserverDisposer ||
|
|
221
|
+
}, { observe: i, unobserve: o } = D(
|
|
222
|
+
N(() => {
|
|
223
|
+
!this.store.resizeObserverDisposer || s();
|
|
296
224
|
}, 500),
|
|
297
225
|
e
|
|
298
|
-
), { observe:
|
|
226
|
+
), { observe: r, unobserve: n } = D(
|
|
299
227
|
C(() => t(), 400),
|
|
300
228
|
e
|
|
301
229
|
);
|
|
302
|
-
return
|
|
303
|
-
o(),
|
|
230
|
+
return i(), r(), () => {
|
|
231
|
+
o(), n();
|
|
304
232
|
};
|
|
305
233
|
}
|
|
306
234
|
handleFiveModeChange(e) {
|
|
307
|
-
e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow(
|
|
235
|
+
e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow()) : this.temporaryHide();
|
|
308
236
|
}
|
|
309
237
|
handleFiveWantsMoveToPano() {
|
|
310
238
|
this.tags.forEach((e) => {
|
|
311
239
|
const t = this.getTagConfig(e);
|
|
312
|
-
typeof t.visibleConfig == "object" &&
|
|
313
|
-
}), this.
|
|
240
|
+
typeof t.visibleConfig == "object" && t.visibleConfig.keep ? e.temporaryState = c(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : typeof t.visibleConfig == "object" && t.visibleConfig.alwaysShowWhenMovePano ? e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }) : e.temporaryState = c(f({}, e.temporaryState), { visible: !1 });
|
|
241
|
+
}), this.updateRenderAllTags();
|
|
314
242
|
}
|
|
315
|
-
temporaryShow(
|
|
316
|
-
this.
|
|
243
|
+
temporaryShow() {
|
|
244
|
+
this.temporaryState.visible = !0;
|
|
317
245
|
}
|
|
318
|
-
temporaryHide(
|
|
319
|
-
this.
|
|
246
|
+
temporaryHide() {
|
|
247
|
+
this.temporaryState.visible = !1;
|
|
320
248
|
}
|
|
321
249
|
clickhandler(e) {
|
|
322
250
|
if (e.target !== "TagPoint")
|
|
323
251
|
return;
|
|
324
252
|
if (!e.tag.state)
|
|
325
253
|
return console.warn("Clickhandler: params.tag.state is undefined");
|
|
326
|
-
const t = this.
|
|
327
|
-
t &&
|
|
328
|
-
|
|
254
|
+
const t = this.canBe("fold", e.tag), s = this.canBe("unfold", e.tag);
|
|
255
|
+
t && s && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((i) => {
|
|
256
|
+
i.id !== e.tag.id && i.state && this.canBe("fold", i) && (i.state.unfolded = !1);
|
|
329
257
|
}), this.updateRenderAllTags());
|
|
330
258
|
}
|
|
331
259
|
updateRenderAllTags() {
|
|
@@ -338,8 +266,8 @@ class wt extends N {
|
|
|
338
266
|
temporaryState: this.temporaryState,
|
|
339
267
|
withAnimation: this.store.visibleWithAnimation
|
|
340
268
|
}), this.filter3DTag().forEach((t) => {
|
|
341
|
-
var
|
|
342
|
-
(
|
|
269
|
+
var s;
|
|
270
|
+
(s = t.tag3DContentSvelte) == null || s.svelteApp.$set({
|
|
343
271
|
state: this.state,
|
|
344
272
|
temporaryState: this.temporaryState,
|
|
345
273
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -355,62 +283,62 @@ class wt extends N {
|
|
|
355
283
|
this.updateRenderPointTag();
|
|
356
284
|
}
|
|
357
285
|
handleFivePanoArrived() {
|
|
358
|
-
return
|
|
286
|
+
return p(this, null, function* () {
|
|
359
287
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
360
|
-
e.temporaryState =
|
|
361
|
-
}), this.
|
|
288
|
+
e.temporaryState = c(f({}, e.temporaryState), { visible: !0 });
|
|
289
|
+
}), this.updateRenderAllTags();
|
|
362
290
|
});
|
|
363
291
|
}
|
|
364
292
|
setUnfoldedByCamera() {
|
|
365
293
|
let e = !1;
|
|
366
294
|
this.tags.forEach((t) => {
|
|
367
|
-
const
|
|
368
|
-
!t.state ||
|
|
295
|
+
const s = this.getUnfoldedByCamera(t);
|
|
296
|
+
!t.state || s !== void 0 && (s === !0 && (e = !0), t.state.unfolded = s);
|
|
369
297
|
}), e && this.tags.forEach((t) => {
|
|
370
|
-
const
|
|
371
|
-
typeof
|
|
298
|
+
const s = this.getTagConfig(t).unfoldedConfig;
|
|
299
|
+
typeof s == "object" && (s.autoUnfold || s.disableFold || s.keep) || t.state && (t.state.unfolded = !1);
|
|
372
300
|
});
|
|
373
301
|
}
|
|
374
302
|
updateRenderPointTag() {
|
|
375
303
|
var t;
|
|
376
|
-
const e = this.
|
|
304
|
+
const e = this.filterPointTag();
|
|
377
305
|
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
378
306
|
this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
|
|
379
307
|
else {
|
|
380
|
-
const
|
|
381
|
-
if (!
|
|
308
|
+
const s = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
309
|
+
if (!s)
|
|
382
310
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
383
|
-
this.TagContainerSvelte = new
|
|
384
|
-
target:
|
|
311
|
+
this.TagContainerSvelte = new L({
|
|
312
|
+
target: s,
|
|
385
313
|
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
386
314
|
});
|
|
387
315
|
}
|
|
388
316
|
}
|
|
389
317
|
updateRenderPlaneTag() {
|
|
390
|
-
|
|
391
|
-
var
|
|
318
|
+
[...this.filterPlaneTag(), ...this.filter3DPointTag()].forEach((t) => {
|
|
319
|
+
var s;
|
|
392
320
|
if (t.tag3DContentSvelte) {
|
|
393
|
-
const { svelteApp:
|
|
394
|
-
if (
|
|
321
|
+
const { svelteApp: i, domContainer: o, initialNormal: r, currentNormal: n } = t.tag3DContentSvelte;
|
|
322
|
+
if (i.$set({
|
|
395
323
|
tag: t,
|
|
396
324
|
hooks: this.hooks,
|
|
397
325
|
state: this.state,
|
|
398
326
|
temporaryState: this.temporaryState
|
|
399
|
-
}), !
|
|
400
|
-
const
|
|
401
|
-
o.css3DObject.setRotationFromQuaternion(
|
|
327
|
+
}), !r.equals(n)) {
|
|
328
|
+
const d = new k().setFromUnitVectors(r, n);
|
|
329
|
+
o.css3DObject.setRotationFromQuaternion(d);
|
|
402
330
|
}
|
|
403
331
|
} else {
|
|
404
|
-
if (((
|
|
332
|
+
if (((s = t.state) == null ? void 0 : s.visible) === !1)
|
|
405
333
|
return;
|
|
406
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
334
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = j(this.five)), t.pointType === u.PointTag && !t.normal)
|
|
407
335
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
408
|
-
const
|
|
409
|
-
if (!
|
|
336
|
+
const i = t.pointType === u.PlaneTag ? t.position : M(this.five.camera.position, g(t.position), g(t.normal)), o = t.pointType === u.PlaneTag ? I(t.position) : g(t.normal), r = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(i, r);
|
|
337
|
+
if (!n)
|
|
410
338
|
return;
|
|
411
|
-
this.store.css3DRenderDisposer.set(t.id,
|
|
412
|
-
svelteApp: new
|
|
413
|
-
target:
|
|
339
|
+
this.store.css3DRenderDisposer.set(t.id, n.dispose), t.tag3DContentSvelte = {
|
|
340
|
+
svelteApp: new B({
|
|
341
|
+
target: n.container,
|
|
414
342
|
props: {
|
|
415
343
|
tag: t,
|
|
416
344
|
hooks: this.hooks,
|
|
@@ -419,7 +347,7 @@ class wt extends N {
|
|
|
419
347
|
temporaryState: this.temporaryState
|
|
420
348
|
}
|
|
421
349
|
}),
|
|
422
|
-
domContainer:
|
|
350
|
+
domContainer: n,
|
|
423
351
|
initialNormal: o,
|
|
424
352
|
currentNormal: o
|
|
425
353
|
};
|
|
@@ -432,18 +360,17 @@ class wt extends N {
|
|
|
432
360
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
433
361
|
}
|
|
434
362
|
checkPanelTag() {
|
|
435
|
-
this.
|
|
363
|
+
this.tags.forEach((e) => {
|
|
436
364
|
var t;
|
|
437
|
-
(t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0;
|
|
365
|
+
e.dimensionType === y.Two && e.pointType === u.PointTag && ((t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0);
|
|
438
366
|
});
|
|
439
367
|
for (const [e, t] of this.store.css3DRenderDisposer) {
|
|
440
|
-
const
|
|
441
|
-
(!
|
|
368
|
+
const s = this.getTagById(e);
|
|
369
|
+
(!s || s.dimensionType !== y.Three) && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
|
|
442
370
|
}
|
|
443
371
|
}
|
|
444
372
|
}
|
|
445
373
|
export {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
Pt as pluginFlag
|
|
374
|
+
ae as PanoTagPluginController,
|
|
375
|
+
re as pluginFlag
|
|
449
376
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import PanoTagPluginController from './controller';
|
|
3
3
|
export * from './controller';
|
|
4
|
-
export * from './typings';
|
|
4
|
+
export * from './typings/tag';
|
|
5
5
|
export declare type PanoTagPluginExportInterface = InstanceType<typeof PanoTagPluginController>;
|
|
6
6
|
export declare type PanoTagPluginParamsInterface = ConstructorParameters<typeof PanoTagPluginController>[1];
|
|
7
7
|
export declare const PanoTagPlugin: FivePlugin<PanoTagPluginParamsInterface, PanoTagPluginExportInterface>;
|