@realsee/dnalogel 2.4.0 → 2.5.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/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
- package/dist/PanoTagPlugin/controller/index.d.ts +25 -14
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +23 -17
- package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/dist/index.cjs.js +52 -54
- package/dist/index.js +7771 -6537
- package/dist/index.umd.js +44 -46
- package/dist/shared-utils/audio.d.ts +31 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- 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 +223 -176
- 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 +75 -35
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +19 -15
- 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 +19 -15
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +39 -13
- package/docs/functions/CameraMovementPlugin.html +39 -13
- package/docs/functions/CruisePlugin.html +39 -13
- package/docs/functions/GuideLinePlugin.html +40 -14
- package/docs/functions/ItemLabelPlugin.html +39 -13
- package/docs/functions/MapviewFloorplanPlugin.html +39 -13
- package/docs/functions/ModelChassisCompassPlugin.html +39 -13
- package/docs/functions/ModelEntryDoorGuidePlugin.html +39 -13
- package/docs/functions/ModelFloorplanPlugin.html +39 -13
- package/docs/functions/ModelItemLabelPlugin.html +39 -13
- package/docs/functions/ModelRoomLabelPlugin.html +39 -13
- package/docs/functions/ModelTVVideoPlugin.html +39 -13
- package/docs/functions/ModelViewPlugin.html +39 -13
- package/docs/functions/Object3DHelperPlugin.html +39 -13
- package/docs/functions/PanoCompassPlugin.html +39 -13
- package/docs/functions/PanoCursorRaycasterPlugin.html +39 -13
- package/docs/functions/PanoDoorLabelPlugin.html +39 -13
- package/docs/functions/PanoFloorplanRadarPlugin.html +39 -13
- package/docs/functions/PanoMeasurePlugin.html +39 -13
- package/docs/functions/PanoRulerPlugin.html +39 -13
- package/docs/functions/PanoRulerProPlugin.html +39 -13
- package/docs/functions/PanoSpatialTagPlugin.html +39 -13
- package/docs/functions/PanoTagPlugin.html +45 -23
- package/docs/functions/TopviewFloorplanPlugin.html +39 -13
- 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 +40 -14
- package/docs/index.html +39 -13
- package/docs/interfaces/AddTagConfig.html +64 -0
- 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 +298 -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/MinMax.html +71 -0
- 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/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 +40 -14
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- 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 +40 -14
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +40 -14
- 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/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +40 -14
- package/docs/interfaces/Rooms.html +40 -14
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +89 -0
- package/docs/interfaces/TagCache.html +92 -0
- package/docs/interfaces/TagConfig.html +15 -19
- package/docs/interfaces/TagIconUrl.html +91 -0
- package/docs/interfaces/Tags.html +14 -12
- package/docs/interfaces/TemporaryState.html +64 -0
- 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 +73 -21
- package/docs/types/ArrayPosition.html +41 -15
- package/docs/types/AudioAppearance.html +256 -0
- package/docs/types/AudioTagTypeConfigKey.html +256 -0
- package/docs/types/CSS3DRenderExportType.html +40 -14
- package/docs/types/CSS3DRenderPluginExportType.html +40 -14
- package/docs/types/CSS3DRenderPluginParameterType.html +40 -14
- package/docs/types/Color.html +40 -14
- package/docs/types/ContentTypeConfigKey.html +41 -15
- package/docs/types/ContentTypeConfigKeySplit.html +256 -0
- package/docs/types/ContentTypeMap.html +256 -0
- package/docs/types/Create3DDomContainerReturnType.html +40 -14
- package/docs/types/Create3DElementReturnType.html +40 -14
- package/docs/types/CruisePluginExportType.html +40 -14
- package/docs/types/Direction-1.html +40 -14
- package/docs/types/Direction4.html +40 -14
- package/docs/types/FloorplanRuleLabels.html +40 -14
- package/docs/types/FloorplanServerRuleLabels.html +40 -14
- package/docs/types/GuideLinePluginExportType.html +40 -14
- package/docs/types/HelperEventMap.html +40 -14
- package/docs/types/LoadTagConfig.html +256 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +40 -14
- package/docs/types/MapviewFloorplanPluginReturnType.html +40 -14
- package/docs/types/MediaData.html +40 -14
- package/docs/types/MediaStore.html +256 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +40 -14
- package/docs/types/ModelFloorplanPluginParameterType.html +40 -14
- package/docs/types/ModelFloorplanPluginReturnType.html +40 -14
- package/docs/types/ModelRoomLabelPluginParameters.html +40 -14
- package/docs/types/ModelRoomLabelPluginReturnType.html +40 -14
- package/docs/types/MoveArgs.html +40 -14
- package/docs/types/MoveOpts.html +40 -14
- package/docs/types/Object3DHelperEventMap.html +40 -14
- package/docs/types/ObjectFit.html +40 -14
- package/docs/types/PaintBrushEventMap.html +40 -14
- package/docs/types/PanoCompassPluginData.html +40 -14
- package/docs/types/PanoCompassPluginExportType.html +40 -14
- package/docs/types/PanoCompassPluginParameterType.html +40 -14
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +40 -14
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +40 -14
- package/docs/types/PanoIndex.html +256 -0
- package/docs/types/PanoMeasurePluginEvent.html +40 -14
- package/docs/types/PanoMeasureReturnType.html +40 -14
- package/docs/types/PanoSpatialTagPluginId.html +40 -14
- package/docs/types/PanoTagPluginExportInterface.html +40 -14
- package/docs/types/PanoTagPluginParamsInterface.html +40 -14
- package/docs/types/PlaneTag.html +43 -19
- package/docs/types/PlaneTagElement.html +261 -0
- package/docs/types/Point2DElement.html +261 -0
- package/docs/types/Point2DTag.html +263 -0
- package/docs/types/Point3DElement.html +261 -0
- package/docs/types/Point3DTag.html +263 -0
- package/docs/types/PointTag.html +43 -23
- package/docs/types/PointTagElement.html +261 -0
- package/docs/types/Position.html +40 -14
- package/docs/types/RotateArgs.html +40 -14
- package/docs/types/RotateOpts.html +40 -14
- package/docs/types/RuleLabelsKey.html +40 -14
- package/docs/types/RuleLabelsValue.html +40 -14
- package/docs/types/StickType.html +256 -0
- package/docs/types/Tag.html +44 -22
- package/docs/types/Tag2D.html +45 -20
- package/docs/types/Tag3D.html +45 -20
- package/docs/types/TagContentType.html +256 -0
- package/docs/types/TagDimensionType.html +256 -0
- package/docs/types/TagElement.html +263 -0
- package/docs/types/TagEvents.html +291 -0
- package/docs/types/TagHooks.html +256 -0
- package/docs/types/TagIconSize.html +259 -0
- package/docs/types/TagId.html +40 -14
- package/docs/types/TagPointType.html +259 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +40 -14
- package/docs/types/TopviewFloorplanPluginReturnType.html +40 -14
- package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +43 -17
- package/docs/variables/FLOOR_TYPE_MAP.html +40 -14
- package/docs/variables/PLUGIN.html +40 -14
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +40 -14
- package/docs/variables/ROOM_TYPE_MAP.html +40 -14
- package/docs/variables/VERSION.html +40 -14
- package/docs/variables/itemLabelPluginServerParams.html +40 -14
- package/docs/variables/modelItemLabelPluginServerParams.html +40 -14
- package/docs/variables/modelRoomLabelPluginServerParams.html +40 -14
- 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 +12 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -3
- package/libs/CSS3DRenderPlugin/utils/random.js +6 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +6 -4
- 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 +2 -2
- package/libs/CruisePlugin/utils/coordinatesAngle.js +3 -2
- 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/GuideLinePlugin/utils/getPoint.d.ts +3 -0
- package/libs/GuideLinePlugin/utils/getPoint.js +18 -0
- package/libs/Object3DHelperPlugin/Controller.js +38 -36
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +18 -9
- package/libs/PanoMeasurePlugin/Controller/EditController.js +16 -5
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +38 -19
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +13 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +31 -20
- package/libs/PanoMeasurePlugin/Controller/index.js +54 -18
- package/libs/PanoMeasurePlugin/Model/index.js +41 -34
- package/libs/PanoMeasurePlugin/Model/line.js +9 -6
- package/libs/PanoMeasurePlugin/Model/point.js +3 -3
- package/libs/PanoMeasurePlugin/Model/polyline.js +19 -12
- 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 +24 -24
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +24 -16
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +4 -3
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +8 -5
- package/libs/PanoMeasurePlugin/index.js +16 -16
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +4 -0
- package/libs/PanoMeasurePlugin/typings/index.js +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +6 -0
- package/libs/PanoMeasurePlugin/utils/constants.js +15 -16
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +7 -6
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +1 -0
- package/libs/PanoMeasurePlugin/utils/math.js +2 -1
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +103 -140
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +198 -0
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +95 -59
- package/libs/PanoTagPlugin/Components/Common/Media.js +275 -249
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +143 -79
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +11 -10
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +81 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +145 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +195 -0
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +172 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +223 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +123 -0
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +126 -131
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +75 -97
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +166 -143
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +75 -45
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +130 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +134 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +115 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +264 -157
- package/libs/PanoTagPlugin/Components/TagContainer.js +164 -109
- package/libs/PanoTagPlugin/Components/TagItem.js +253 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/TagCacheController.js +3 -2
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
- package/libs/PanoTagPlugin/controller/TagComputer.js +186 -151
- package/libs/PanoTagPlugin/controller/index.d.ts +25 -14
- package/libs/PanoTagPlugin/controller/index.js +265 -170
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +51 -35
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/tag.config.js +31 -16
- package/libs/PanoTagPlugin/typings/controller.d.ts +23 -17
- package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
- package/libs/PanoTagPlugin/typings/index.js +7 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +7 -1
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +107 -0
- package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/color.js +17 -0
- package/libs/PanoTagPlugin/utils/constants.js +2 -1
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/getImageInfo.js +51 -0
- package/libs/PanoTagPlugin/utils/index.js +36 -0
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
- package/libs/PanoTagPlugin/utils/search.js +27 -9
- package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/format.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -0
- package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
- package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +10 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +83 -74
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/index.js +126 -114
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +29 -39
- package/libs/shared-utils/audio.d.ts +31 -0
- package/libs/shared-utils/audio.js +81 -0
- package/libs/vendor/svelte/internal/index.js +382 -338
- package/package.json +3 -3
- package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/docs/enums/LinkType.html +0 -67
- package/docs/interfaces/ContentTypeMap.html +0 -212
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
- package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
- package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
- package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/libs/PanoTagPlugin/typings/tag.js +0 -7
|
@@ -1,129 +1,207 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var P = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var E = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var T = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var u = (h, a, e) => a in h ? P(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
|
-
|
|
7
|
+
R.call(a, e) && u(h, e, a[e]);
|
|
8
8
|
if (T)
|
|
9
9
|
for (var e of T(a))
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
10
|
+
k.call(a, e) && u(h, e, a[e]);
|
|
11
|
+
return h;
|
|
12
|
+
}, f = (h, a) => w(h, E(a));
|
|
13
|
+
var d = (h, a, e) => (u(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var m = (h, a, e) => new Promise((t, i) => {
|
|
15
|
+
var s = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
n(e.next(r));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
n(e.throw(r));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
|
+
n((e = e.apply(h, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
31
|
-
import { Quaternion as
|
|
32
|
-
import
|
|
33
|
-
import { writable as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
30
|
+
import { Subscribe as F } from "@realsee/five";
|
|
31
|
+
import { Quaternion as U } from "three";
|
|
32
|
+
import c from "object-assign-deep";
|
|
33
|
+
import { writable as L } from "../../vendor/svelte/store/index.js";
|
|
34
|
+
import O from "../Components/TagContainer.js";
|
|
35
|
+
import I from "../Components/Tag/index.js";
|
|
36
36
|
import { arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
37
|
-
import { addDebugPoints as
|
|
38
|
-
import { planeNormal as
|
|
39
|
-
import {
|
|
40
|
-
import { normalPositionToPositions as
|
|
37
|
+
import { addDebugPoints as B } from "../utils/addDebugPoints.js";
|
|
38
|
+
import { planeNormal as M } from "../utils/planeNormal.js";
|
|
39
|
+
import { waitFiveModelLoaded as N } from "../utils/actionAfterFiveModelLoad.js";
|
|
40
|
+
import { normalPositionToPositions as V } from "../utils/normalPositionToPositions.js";
|
|
41
41
|
import { debounce as C } from "../utils/debounce.js";
|
|
42
|
-
import { throttle as
|
|
42
|
+
import { throttle as z } 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
|
-
|
|
44
|
+
import { TagComputer as W } from "./TagComputer.js";
|
|
45
|
+
import { CSS3DRenderPlugin as _ } from "../../CSS3DRenderPlugin/index.js";
|
|
46
|
+
import $ from "../utils/tag/format.js";
|
|
47
|
+
import { generateBlankAudio as A, AudioNamespace as S } from "../../shared-utils/audio.js";
|
|
48
|
+
import "../../vendor/svelte/internal/index.js";
|
|
49
|
+
import "../Components/TagItem.js";
|
|
50
|
+
import "../utils/noTypecheck.js";
|
|
51
|
+
import "../Components/Common/TagPoint.js";
|
|
52
|
+
import "../Components/Common/Shadow.js";
|
|
53
|
+
import "../../vendor/svelte/transition/index.js";
|
|
54
|
+
import "../../vendor/svelte/easing/index.js";
|
|
55
|
+
import "../Components/Common/Icon/Icon.js";
|
|
56
|
+
import "../utils/getImageInfo.js";
|
|
57
|
+
import "../utils/px2rem.js";
|
|
58
|
+
import "../Assets/Icon.js";
|
|
59
|
+
import "../Components/Tag/TextTag/index.js";
|
|
60
|
+
import "../Components/Tag/TextTag/TextTag.js";
|
|
61
|
+
import "../Components/Common/Line/Straight.js";
|
|
62
|
+
import "../../shared-utils/uuid.js";
|
|
63
|
+
import "../Components/Common/Text/FlyMText.js";
|
|
64
|
+
import "../Components/Common/Text/FlyText.js";
|
|
65
|
+
import "animejs";
|
|
66
|
+
import "../../shared-utils/isNil.js";
|
|
67
|
+
import "../utils/search.js";
|
|
68
|
+
import "../utils/constants.js";
|
|
69
|
+
import "../Components/Common/Arrow.js";
|
|
70
|
+
import "../utils/doUtil.js";
|
|
71
|
+
import "../Components/Tag/TextTag/TextPlaneTag.js";
|
|
72
|
+
import "../Components/Common/Text/MText.js";
|
|
73
|
+
import "../Components/Tag/ImageTextTag.js";
|
|
74
|
+
import "../Components/Common/Line/Polyline.js";
|
|
75
|
+
import "../Components/Common/Media.js";
|
|
76
|
+
import "../../vendor/swiper/svelte/swiper.js";
|
|
77
|
+
import "swiper";
|
|
78
|
+
import "../../vendor/swiper/components-shared/get-params.js";
|
|
79
|
+
import "../../vendor/swiper/components-shared/utils.js";
|
|
80
|
+
import "../../vendor/swiper/components-shared/params-list.js";
|
|
81
|
+
import "../../vendor/swiper/components-shared/mount-swiper.js";
|
|
82
|
+
import "../../vendor/swiper/components-shared/get-changed-params.js";
|
|
83
|
+
import "../../vendor/swiper/components-shared/update-swiper.js";
|
|
84
|
+
import "../../vendor/swiper/svelte/swiper-slide.js";
|
|
85
|
+
import "swiper/css";
|
|
86
|
+
import "swiper/css/autoplay";
|
|
87
|
+
import "../Components/Common/MediaItem.js";
|
|
88
|
+
import "../Components/Tag/MarketingTag.js";
|
|
89
|
+
import "hammerjs";
|
|
90
|
+
import "@tweenjs/tween.js";
|
|
91
|
+
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
92
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
93
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
94
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
95
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
96
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
97
|
+
import "../../shared-utils/Subscribe.js";
|
|
98
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
99
|
+
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
100
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
101
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
102
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
103
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
104
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
105
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
106
|
+
import "../Components/Tag/AudioTag/index.js";
|
|
107
|
+
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
108
|
+
import "../Components/Common/Audio.js";
|
|
109
|
+
import "../utils/audio/SharedAudio.js";
|
|
110
|
+
import "../Components/Common/Icon/audioIcon.js";
|
|
111
|
+
import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
112
|
+
import "../utils/color.js";
|
|
113
|
+
import "../Components/Tag/MediaPlane.js";
|
|
114
|
+
import "../Components/Tag/LinkTag.js";
|
|
115
|
+
import "../Components/Tag/CustomTag.js";
|
|
116
|
+
import "../tag.config.js";
|
|
117
|
+
import "../utils/tag/tagCheck.js";
|
|
118
|
+
import "../utils/tagPosition.js";
|
|
119
|
+
import "../utils/checkRange.js";
|
|
120
|
+
import "./TagCacheController.js";
|
|
121
|
+
import "../../base/BasePlugin.js";
|
|
122
|
+
import "../../CSS3DRenderPlugin/Controller.js";
|
|
123
|
+
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
124
|
+
const y = "2.0.5", v = `DnalogelPlugin-PanoTagPlugin@${y}`, G = !1, Lt = (h) => `${v}--${h}`;
|
|
125
|
+
class Ot extends W {
|
|
49
126
|
constructor(e, t) {
|
|
50
127
|
super(e);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
128
|
+
d(this, "version", y);
|
|
129
|
+
d(this, "state", { enabled: !0, visible: !0 });
|
|
130
|
+
d(this, "params");
|
|
131
|
+
d(this, "debug");
|
|
132
|
+
d(this, "css3DRenderPlugin");
|
|
133
|
+
d(this, "TagContainerSvelte");
|
|
134
|
+
d(this, "temporaryState", { visible: !0 });
|
|
135
|
+
d(this, "mediaStore", L({
|
|
136
|
+
currentMediaElement: null
|
|
60
137
|
}));
|
|
61
|
-
|
|
138
|
+
d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
|
|
139
|
+
d(this, "store", {
|
|
62
140
|
disposers: [],
|
|
63
141
|
disposed: !1,
|
|
64
142
|
resizeObserverDisposerAdding: !1,
|
|
65
143
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
66
144
|
});
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
console.error(`${b} is disposed`);
|
|
145
|
+
d(this, "disposedErrorLog", () => {
|
|
146
|
+
console.error(`${v} is disposed`);
|
|
70
147
|
});
|
|
71
|
-
this.params =
|
|
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 });
|
|
148
|
+
this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, A(1, { namespace: S.GetAudioDuration }), A(1, { namespace: S.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
88
149
|
}
|
|
89
150
|
load(e, t) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
151
|
+
return m(this, null, function* () {
|
|
152
|
+
var i, s;
|
|
153
|
+
if (this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
|
|
154
|
+
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
155
|
+
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
156
|
+
}), this.debug)
|
|
157
|
+
try {
|
|
158
|
+
B(this.five, this.tags);
|
|
159
|
+
} catch (o) {
|
|
160
|
+
console.error(o);
|
|
161
|
+
}
|
|
162
|
+
return this.addTag(e.tagList, t);
|
|
163
|
+
});
|
|
95
164
|
}
|
|
96
165
|
addTag(e, t) {
|
|
97
|
-
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
166
|
+
return m(this, null, function* () {
|
|
167
|
+
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
168
|
+
const n = this.getTagConfig(o);
|
|
169
|
+
return f(p({}, o), {
|
|
170
|
+
state: p({ visible: void 0, unfolded: G }, n.initialState),
|
|
171
|
+
hooks: new F(),
|
|
172
|
+
clickable: n.clickable,
|
|
173
|
+
mergedConfig: n
|
|
174
|
+
});
|
|
175
|
+
}).filter((o) => o.position);
|
|
176
|
+
return s.forEach($), this.tags.push(...s), N(this.five).then(() => {
|
|
177
|
+
var o, n, r;
|
|
178
|
+
return this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), !0;
|
|
103
179
|
});
|
|
104
|
-
}).filter((o) => o.position);
|
|
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();
|
|
108
180
|
});
|
|
109
181
|
}
|
|
182
|
+
changeConfig(e, t = !0) {
|
|
183
|
+
t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
184
|
+
}
|
|
185
|
+
changeGlobalConfig(e, t = !0) {
|
|
186
|
+
t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
187
|
+
}
|
|
110
188
|
clearTags() {
|
|
111
189
|
this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
112
190
|
}
|
|
113
191
|
show(e) {
|
|
114
|
-
return
|
|
115
|
-
const { userAction: t = !0, withAnimation:
|
|
192
|
+
return m(this, null, function* () {
|
|
193
|
+
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
116
194
|
if (this.store.disposed)
|
|
117
195
|
return this.disposedErrorLog();
|
|
118
|
-
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation:
|
|
196
|
+
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("show", { userAction: t, withAnimation: i });
|
|
119
197
|
});
|
|
120
198
|
}
|
|
121
199
|
hide(e) {
|
|
122
|
-
return
|
|
123
|
-
const { userAction: t = !0, withAnimation:
|
|
200
|
+
return m(this, null, function* () {
|
|
201
|
+
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
124
202
|
if (this.store.disposed)
|
|
125
203
|
return this.disposedErrorLog();
|
|
126
|
-
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation:
|
|
204
|
+
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("hide", { userAction: t, withAnimation: i });
|
|
127
205
|
});
|
|
128
206
|
}
|
|
129
207
|
enable(e) {
|
|
@@ -139,70 +217,86 @@ class ae extends $ {
|
|
|
139
217
|
this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
|
|
140
218
|
}
|
|
141
219
|
dispose() {
|
|
142
|
-
var e, t,
|
|
143
|
-
this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((
|
|
144
|
-
var
|
|
145
|
-
return (
|
|
146
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((
|
|
220
|
+
var e, t, i, s, o, n;
|
|
221
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
|
|
222
|
+
var l;
|
|
223
|
+
return (l = r.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
|
|
224
|
+
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
|
|
147
225
|
}
|
|
148
226
|
setState(e, t) {
|
|
149
227
|
if (this.store.disposed)
|
|
150
228
|
return this.disposedErrorLog();
|
|
151
|
-
const { userAction:
|
|
152
|
-
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation =
|
|
229
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
|
|
230
|
+
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 });
|
|
231
|
+
}
|
|
232
|
+
changeUnfoldedById(e, t) {
|
|
233
|
+
var o;
|
|
234
|
+
const i = this.getTagById(e);
|
|
235
|
+
if (!i)
|
|
236
|
+
return;
|
|
237
|
+
i.state.unfolded = t;
|
|
238
|
+
const s = this.filterPointTag();
|
|
239
|
+
(o = this.TagContainerSvelte) == null || o.$set({ tags: s });
|
|
153
240
|
}
|
|
154
241
|
changeTagNormalById(e, t) {
|
|
242
|
+
const i = this.getTagById(e);
|
|
243
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = g(t), this.updateRenderPlaneTag());
|
|
244
|
+
}
|
|
245
|
+
changeDataById(e, t, i = !0) {
|
|
155
246
|
const s = this.getTagById(e);
|
|
156
|
-
!s ||
|
|
247
|
+
!s || (i ? s.data = c({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
157
248
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
!i || (s ? i.data = m({}, i.data, t) : Object.assign(i.data, t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
249
|
+
changeStickTypeById(e, t, i = !0) {
|
|
250
|
+
this.changeTagById(e, t, i);
|
|
161
251
|
}
|
|
162
|
-
changeTagById(e, t,
|
|
163
|
-
const
|
|
164
|
-
!t || (
|
|
252
|
+
changeTagById(e, t, i = !0) {
|
|
253
|
+
const s = this.getTagById(e);
|
|
254
|
+
!t || (i ? c(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = g(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
|
|
165
255
|
}
|
|
166
256
|
destroyTagById(e) {
|
|
167
|
-
(Array.isArray(e) ? e : [e]).forEach((
|
|
168
|
-
const
|
|
169
|
-
|
|
257
|
+
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
258
|
+
const s = this.tags.findIndex((o) => o.id === i);
|
|
259
|
+
s !== -1 && this.tags.splice(s, 1);
|
|
170
260
|
}), this.updateRenderAllTags();
|
|
171
261
|
}
|
|
172
262
|
pauseCurrentMedia() {
|
|
173
|
-
this.mediaStore.set({
|
|
263
|
+
this.mediaStore.set({ currentMediaElement: null });
|
|
174
264
|
}
|
|
175
265
|
setVisibleAndUnfolded() {
|
|
176
|
-
return
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
266
|
+
return m(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
267
|
+
if (!!this.isPanorama)
|
|
268
|
+
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
269
|
+
setTimeout(() => {
|
|
270
|
+
this.setUnfoldedByPanoIndex(), t();
|
|
271
|
+
}, 10);
|
|
272
|
+
}) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
|
|
182
273
|
});
|
|
183
274
|
}
|
|
184
275
|
handleShow() {
|
|
185
276
|
this.state.visible = !0, this.updateTagContainerVisible();
|
|
186
277
|
}
|
|
187
278
|
handleHide() {
|
|
188
|
-
this.state.visible = !1, this.updateTagContainerVisible();
|
|
279
|
+
this.pauseCurrentMedia(), this.state.visible = !1, this.updateTagContainerVisible();
|
|
189
280
|
}
|
|
190
281
|
handleEnable() {
|
|
191
282
|
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
|
|
192
283
|
}
|
|
193
284
|
handleDisable() {
|
|
194
|
-
var e, t,
|
|
195
|
-
this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (
|
|
285
|
+
var e, t, i;
|
|
286
|
+
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) => {
|
|
196
287
|
var o;
|
|
197
|
-
(o =
|
|
288
|
+
(o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
|
|
198
289
|
});
|
|
199
290
|
}
|
|
200
291
|
addEventListener() {
|
|
201
|
-
const { five: e, hooks: t } = this,
|
|
202
|
-
return e.on("wantsMoveToPano",
|
|
203
|
-
e.off("wantsMoveToPano",
|
|
292
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), b = this.clickhandler.bind(this);
|
|
293
|
+
return this.five.currentMode && (this.isPanorama ? (this.handleFivePanoArrived(), this.temporaryShow({ withAnimation: !0 })) : this.temporaryHide()), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", l), t.on("click", b), () => {
|
|
294
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", l), t.off("click", b), this.store.eventListenerDisposer = void 0;
|
|
204
295
|
};
|
|
205
296
|
}
|
|
297
|
+
loadVideoFirstFrame() {
|
|
298
|
+
this.isIOSWX && this.hooks.emit("loadVideoFirstFrame");
|
|
299
|
+
}
|
|
206
300
|
addResizeListener() {
|
|
207
301
|
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
208
302
|
const e = this.addResizeObserver();
|
|
@@ -216,44 +310,44 @@ class ae extends $ {
|
|
|
216
310
|
return;
|
|
217
311
|
const e = this.five.getElement(), t = () => {
|
|
218
312
|
!this.state.enabled || (this.show(), this.updateRenderAllTags());
|
|
219
|
-
},
|
|
313
|
+
}, i = () => {
|
|
220
314
|
!this.state.enabled || this.hide();
|
|
221
|
-
}, { observe:
|
|
222
|
-
|
|
223
|
-
!this.store.resizeObserverDisposer ||
|
|
315
|
+
}, { observe: s, unobserve: o } = D(
|
|
316
|
+
z(() => {
|
|
317
|
+
!this.store.resizeObserverDisposer || i();
|
|
224
318
|
}, 500),
|
|
225
319
|
e
|
|
226
|
-
), { observe:
|
|
320
|
+
), { observe: n, unobserve: r } = D(
|
|
227
321
|
C(() => t(), 400),
|
|
228
322
|
e
|
|
229
323
|
);
|
|
230
|
-
return
|
|
231
|
-
o(),
|
|
324
|
+
return s(), n(), () => {
|
|
325
|
+
o(), r();
|
|
232
326
|
};
|
|
233
327
|
}
|
|
234
328
|
handleFiveModeChange(e) {
|
|
235
|
-
e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow()) : this.temporaryHide();
|
|
329
|
+
e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow({ withAnimation: !0 })) : this.temporaryHide();
|
|
236
330
|
}
|
|
237
331
|
handleFiveWantsMoveToPano() {
|
|
238
332
|
this.tags.forEach((e) => {
|
|
239
333
|
const t = this.getTagConfig(e);
|
|
240
|
-
typeof t.visibleConfig == "object" && t.visibleConfig.keep ? e.temporaryState =
|
|
241
|
-
}), this.
|
|
334
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = f(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = f(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
335
|
+
}), this.updateTagContainerVisible();
|
|
242
336
|
}
|
|
243
|
-
temporaryShow() {
|
|
244
|
-
this.temporaryState.visible = !0;
|
|
337
|
+
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
338
|
+
this.store.visibleWithAnimation = e, this.temporaryState.visible = !0, this.updateTagContainerVisible();
|
|
245
339
|
}
|
|
246
|
-
temporaryHide() {
|
|
247
|
-
this.temporaryState.visible = !1;
|
|
340
|
+
temporaryHide({ withAnimation: e } = { withAnimation: !1 }) {
|
|
341
|
+
this.store.visibleWithAnimation = e, this.temporaryState.visible = !1, this.updateTagContainerVisible();
|
|
248
342
|
}
|
|
249
343
|
clickhandler(e) {
|
|
250
344
|
if (e.target !== "TagPoint")
|
|
251
345
|
return;
|
|
252
346
|
if (!e.tag.state)
|
|
253
347
|
return console.warn("Clickhandler: params.tag.state is undefined");
|
|
254
|
-
const t = this.
|
|
255
|
-
t &&
|
|
256
|
-
|
|
348
|
+
const t = this.can("fold", e.tag), i = this.can("unfold", e.tag);
|
|
349
|
+
t && i && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((s) => {
|
|
350
|
+
s.id !== e.tag.id && s.state && this.can("fold", s) && (s.state.unfolded = !1);
|
|
257
351
|
}), this.updateRenderAllTags());
|
|
258
352
|
}
|
|
259
353
|
updateRenderAllTags() {
|
|
@@ -266,8 +360,8 @@ class ae extends $ {
|
|
|
266
360
|
temporaryState: this.temporaryState,
|
|
267
361
|
withAnimation: this.store.visibleWithAnimation
|
|
268
362
|
}), this.filter3DTag().forEach((t) => {
|
|
269
|
-
var
|
|
270
|
-
(
|
|
363
|
+
var i;
|
|
364
|
+
(i = t.tag3DContentSvelte) == null || i.svelteApp.$set({
|
|
271
365
|
state: this.state,
|
|
272
366
|
temporaryState: this.temporaryState,
|
|
273
367
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -283,62 +377,62 @@ class ae extends $ {
|
|
|
283
377
|
this.updateRenderPointTag();
|
|
284
378
|
}
|
|
285
379
|
handleFivePanoArrived() {
|
|
286
|
-
return
|
|
380
|
+
return m(this, null, function* () {
|
|
287
381
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
288
|
-
e.temporaryState =
|
|
289
|
-
}), this.
|
|
382
|
+
e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
|
|
383
|
+
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
290
384
|
});
|
|
291
385
|
}
|
|
292
386
|
setUnfoldedByCamera() {
|
|
293
387
|
let e = !1;
|
|
294
388
|
this.tags.forEach((t) => {
|
|
295
|
-
const
|
|
296
|
-
!t.state ||
|
|
389
|
+
const i = this.getUnfoldedByCamera(t);
|
|
390
|
+
!t.state || i !== void 0 && (i === !0 && (e = !0), t.state.unfolded = i);
|
|
297
391
|
}), e && this.tags.forEach((t) => {
|
|
298
|
-
const
|
|
299
|
-
typeof
|
|
392
|
+
const i = this.getTagConfig(t).unfoldedConfig;
|
|
393
|
+
typeof i == "object" && (i.autoUnfold || i.keep) || t.state && (t.state.unfolded = !1);
|
|
300
394
|
});
|
|
301
395
|
}
|
|
302
396
|
updateRenderPointTag() {
|
|
303
397
|
var t;
|
|
304
|
-
const e = this.filterPointTag();
|
|
398
|
+
const e = this.sort(this.filterPointTag());
|
|
305
399
|
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
306
400
|
this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
|
|
307
401
|
else {
|
|
308
|
-
const
|
|
309
|
-
if (!
|
|
402
|
+
const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
403
|
+
if (!i)
|
|
310
404
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
311
|
-
this.TagContainerSvelte = new
|
|
312
|
-
target:
|
|
405
|
+
this.TagContainerSvelte = new O({
|
|
406
|
+
target: i,
|
|
313
407
|
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
314
408
|
});
|
|
315
409
|
}
|
|
316
410
|
}
|
|
317
411
|
updateRenderPlaneTag() {
|
|
318
|
-
[...this.filterPlaneTag(), ...this.filter3DPointTag()].forEach((t) => {
|
|
319
|
-
var
|
|
412
|
+
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag()]).forEach((t) => {
|
|
413
|
+
var i;
|
|
320
414
|
if (t.tag3DContentSvelte) {
|
|
321
|
-
const { svelteApp:
|
|
322
|
-
if (
|
|
415
|
+
const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
|
|
416
|
+
if (s.$set({
|
|
323
417
|
tag: t,
|
|
324
418
|
hooks: this.hooks,
|
|
325
419
|
state: this.state,
|
|
326
420
|
temporaryState: this.temporaryState
|
|
327
|
-
}), !
|
|
328
|
-
const
|
|
329
|
-
o.css3DObject.setRotationFromQuaternion(
|
|
421
|
+
}), !n.equals(r)) {
|
|
422
|
+
const l = new U().setFromUnitVectors(n, r);
|
|
423
|
+
o.css3DObject.setRotationFromQuaternion(l);
|
|
330
424
|
}
|
|
331
425
|
} else {
|
|
332
|
-
if (((
|
|
426
|
+
if (((i = t.state) == null ? void 0 : i.visible) === !1)
|
|
333
427
|
return;
|
|
334
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
428
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = _(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
335
429
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
336
|
-
const
|
|
337
|
-
if (!
|
|
430
|
+
const s = t.stickType === "Plane" ? t.position : V(this.five.camera.position, g(t.position), g(t.normal)), o = t.stickType === "Plane" ? M(t.position) : g(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
|
|
431
|
+
if (!r)
|
|
338
432
|
return;
|
|
339
|
-
this.store.css3DRenderDisposer.set(t.id,
|
|
340
|
-
svelteApp: new
|
|
341
|
-
target:
|
|
433
|
+
this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
434
|
+
svelteApp: new I({
|
|
435
|
+
target: r.container,
|
|
342
436
|
props: {
|
|
343
437
|
tag: t,
|
|
344
438
|
hooks: this.hooks,
|
|
@@ -347,7 +441,7 @@ class ae extends $ {
|
|
|
347
441
|
temporaryState: this.temporaryState
|
|
348
442
|
}
|
|
349
443
|
}),
|
|
350
|
-
domContainer:
|
|
444
|
+
domContainer: r,
|
|
351
445
|
initialNormal: o,
|
|
352
446
|
currentNormal: o
|
|
353
447
|
};
|
|
@@ -360,17 +454,18 @@ class ae extends $ {
|
|
|
360
454
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
361
455
|
}
|
|
362
456
|
checkPanelTag() {
|
|
363
|
-
this.
|
|
457
|
+
this.filter2DPointTag().forEach((e) => {
|
|
364
458
|
var t;
|
|
365
|
-
|
|
459
|
+
(t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0;
|
|
366
460
|
});
|
|
367
461
|
for (const [e, t] of this.store.css3DRenderDisposer) {
|
|
368
|
-
const
|
|
369
|
-
(!
|
|
462
|
+
const i = this.getTagById(e);
|
|
463
|
+
(!i || i.stickType === "2DPoint") && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
|
|
370
464
|
}
|
|
371
465
|
}
|
|
372
466
|
}
|
|
373
467
|
export {
|
|
374
|
-
|
|
375
|
-
|
|
468
|
+
Ot as PanoTagPluginController,
|
|
469
|
+
Ot as default,
|
|
470
|
+
Lt as pluginFlag
|
|
376
471
|
};
|
|
@@ -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';
|
|
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>;
|