@realsee/dnalogel 2.3.5-dev.4 → 2.3.5-dev.6
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/PanoTagPlugin/controller/index.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/index.cjs.js +36 -36
- package/dist/index.js +1399 -1395
- package/dist/index.umd.js +24 -24
- 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 +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 +41 -41
- 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 +16 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/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/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/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 +6 -5
- 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 +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- 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 +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +10 -10
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +6 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +248 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TagPointType.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/VERSION.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- 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.js +2 -1
- 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 +1 -1
- 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 +2 -2
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +25 -15
- package/libs/PanoMeasurePlugin/Controller/EditController.js +21 -9
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +23 -10
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +25 -14
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +44 -29
- package/libs/PanoMeasurePlugin/Controller/index.js +58 -21
- package/libs/PanoMeasurePlugin/Model/index.js +47 -40
- package/libs/PanoMeasurePlugin/Model/line.js +15 -11
- 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 +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 +2 -2
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +1 -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/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +24 -24
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +20 -18
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +31 -29
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +19 -19
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +25 -24
- package/libs/PanoTagPlugin/Components/Common/Media.js +47 -39
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +10 -9
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +24 -21
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +37 -27
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +25 -25
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +26 -26
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +22 -18
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +54 -43
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +83 -61
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +103 -81
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +54 -43
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -3
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +74 -56
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +27 -23
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +51 -39
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +69 -52
- package/libs/PanoTagPlugin/Components/Tag/index.js +119 -79
- package/libs/PanoTagPlugin/Components/TagContainer.js +132 -81
- package/libs/PanoTagPlugin/Components/TagItem.js +110 -63
- package/libs/PanoTagPlugin/controller/TagCacheController.js +3 -2
- package/libs/PanoTagPlugin/controller/TagComputer.js +9 -6
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +131 -61
- package/libs/PanoTagPlugin/index.js +2 -2
- 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/mocks/v2/mock1.d.ts +128 -0
- package/libs/PanoTagPlugin/mocks/v2/mock1.js +114 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/libs/PanoTagPlugin/typings/index.js +7 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.js +4 -1
- package/libs/PanoTagPlugin/utils/constants.js +2 -1
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/getImageInfo.js +16 -15
- package/libs/PanoTagPlugin/utils/index.js +35 -0
- package/libs/PanoTagPlugin/utils/px2rem.js +3 -3
- package/libs/PanoTagPlugin/utils/search.js +27 -9
- package/libs/PanoTagPlugin/utils/tag/format.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +22 -6
- package/libs/PanoTagPlugin/utils/timeToString.js +4 -4
- 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 +7 -7
- package/package.json +1 -1
|
@@ -2,38 +2,38 @@ var S = Object.defineProperty, y = Object.defineProperties;
|
|
|
2
2
|
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var T = Object.getOwnPropertySymbols;
|
|
4
4
|
var w = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var g = (h, a, e) => a in h ? S(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
|
-
w.call(a, e) &&
|
|
7
|
+
w.call(a, e) && g(h, e, a[e]);
|
|
8
8
|
if (T)
|
|
9
9
|
for (var e of T(a))
|
|
10
|
-
E.call(a, e) &&
|
|
10
|
+
E.call(a, e) && g(h, e, a[e]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
13
|
-
var d = (h, a, e) => (
|
|
14
|
-
var
|
|
15
|
-
var s = (
|
|
12
|
+
}, m = (h, a) => y(h, P(a));
|
|
13
|
+
var d = (h, a, e) => (g(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var f = (h, a, e) => new Promise((t, i) => {
|
|
15
|
+
var s = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
n(e.next(r));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
n(e.throw(r));
|
|
24
24
|
} catch (l) {
|
|
25
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
30
|
import { Subscribe as F } from "@realsee/five";
|
|
31
31
|
import { Quaternion as k } from "three";
|
|
32
|
-
import
|
|
32
|
+
import u from "object-assign-deep";
|
|
33
33
|
import { writable as R } from "../../vendor/svelte/store/index.js";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { arrayPositionToVector3 as
|
|
34
|
+
import U from "../Components/TagContainer.js";
|
|
35
|
+
import L from "../Components/Tag/index.js";
|
|
36
|
+
import { arrayPositionToVector3 as c } 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
39
|
import { actionAfterFiveModelLoad as B } from "../utils/actionAfterFiveModelLoad.js";
|
|
@@ -43,9 +43,81 @@ import { throttle as V } from "../utils/throttle.js";
|
|
|
43
43
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
44
44
|
import { TagComputer as z } from "./TagComputer.js";
|
|
45
45
|
import { CSS3DRenderPlugin as N } from "../../CSS3DRenderPlugin/index.js";
|
|
46
|
-
import
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
import W from "../utils/tag/format.js";
|
|
47
|
+
import "../../vendor/svelte/internal/index.js";
|
|
48
|
+
import "../Components/TagItem.js";
|
|
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.11", v = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, Pt = (h) => `${v}--${h}`;
|
|
120
|
+
class wt extends z {
|
|
49
121
|
constructor(e, t) {
|
|
50
122
|
super(e);
|
|
51
123
|
d(this, "version", A);
|
|
@@ -66,39 +138,36 @@ class he extends z {
|
|
|
66
138
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
67
139
|
});
|
|
68
140
|
d(this, "disposedErrorLog", () => {
|
|
69
|
-
console.error(`${
|
|
141
|
+
console.error(`${v} is disposed`);
|
|
70
142
|
});
|
|
71
|
-
this.params =
|
|
72
|
-
debug: !1,
|
|
73
|
-
config: this.config
|
|
74
|
-
}, t), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
143
|
+
this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this });
|
|
75
144
|
}
|
|
76
145
|
load(e, t) {
|
|
77
146
|
var i, s;
|
|
78
|
-
this.clearTags(), console.log(
|
|
147
|
+
this.clearTags(), console.log(v, " load:", { data: e }), this.config = u({}, this.config, {
|
|
79
148
|
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
80
149
|
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
81
150
|
}), this.addTag(e.tagList, t), this.debug && O(this.five, this.tags);
|
|
82
151
|
}
|
|
83
152
|
addTag(e, t) {
|
|
84
153
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
85
|
-
const
|
|
86
|
-
return
|
|
87
|
-
state:
|
|
154
|
+
const n = this.getTagConfig(o);
|
|
155
|
+
return m(p({}, o), {
|
|
156
|
+
state: p({ visible: void 0, unfolded: $ }, n.initialState),
|
|
88
157
|
hooks: new F(),
|
|
89
|
-
clickable:
|
|
158
|
+
clickable: n.clickable
|
|
90
159
|
});
|
|
91
160
|
}).filter((o) => o.position);
|
|
92
161
|
s.forEach(W), this.tags.push(...s), B(this.five, () => {
|
|
93
|
-
var o,
|
|
94
|
-
this.store.eventListenerDisposer && ((
|
|
162
|
+
var o, n, r;
|
|
163
|
+
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();
|
|
95
164
|
});
|
|
96
165
|
}
|
|
97
166
|
clearTags() {
|
|
98
167
|
this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
99
168
|
}
|
|
100
169
|
show(e) {
|
|
101
|
-
return
|
|
170
|
+
return f(this, null, function* () {
|
|
102
171
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
103
172
|
if (this.store.disposed)
|
|
104
173
|
return this.disposedErrorLog();
|
|
@@ -106,7 +175,7 @@ class he extends z {
|
|
|
106
175
|
});
|
|
107
176
|
}
|
|
108
177
|
hide(e) {
|
|
109
|
-
return
|
|
178
|
+
return f(this, null, function* () {
|
|
110
179
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
111
180
|
if (this.store.disposed)
|
|
112
181
|
return this.disposedErrorLog();
|
|
@@ -126,16 +195,16 @@ class he extends z {
|
|
|
126
195
|
this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
|
|
127
196
|
}
|
|
128
197
|
dispose() {
|
|
129
|
-
var e, t, i, s, o,
|
|
130
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((
|
|
198
|
+
var e, t, i, s, o, n;
|
|
199
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
|
|
131
200
|
var l;
|
|
132
|
-
return (l =
|
|
133
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((
|
|
201
|
+
return (l = r.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
|
|
202
|
+
}), 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");
|
|
134
203
|
}
|
|
135
204
|
setState(e, t) {
|
|
136
205
|
if (this.store.disposed)
|
|
137
206
|
return this.disposedErrorLog();
|
|
138
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o =
|
|
207
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
|
|
139
208
|
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 });
|
|
140
209
|
}
|
|
141
210
|
changeUnfoldedById(e, t) {
|
|
@@ -149,18 +218,18 @@ class he extends z {
|
|
|
149
218
|
}
|
|
150
219
|
changeTagNormalById(e, t) {
|
|
151
220
|
const i = this.getTagById(e);
|
|
152
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
221
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = c(t), this.updateRenderPlaneTag());
|
|
153
222
|
}
|
|
154
223
|
changeDataById(e, t, i = !0) {
|
|
155
224
|
const s = this.getTagById(e);
|
|
156
|
-
!s || (i ? s.data =
|
|
225
|
+
!s || (i ? s.data = u({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
157
226
|
}
|
|
158
227
|
changeStickTypeById(e, t, i = !0) {
|
|
159
228
|
this.changeTagById(e, t, i);
|
|
160
229
|
}
|
|
161
230
|
changeTagById(e, t, i = !0) {
|
|
162
231
|
const s = this.getTagById(e);
|
|
163
|
-
!t || (i ?
|
|
232
|
+
!t || (i ? u(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = c(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
|
|
164
233
|
}
|
|
165
234
|
destroyTagById(e) {
|
|
166
235
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -172,7 +241,7 @@ class he extends z {
|
|
|
172
241
|
this.mediaStore.set({ currentMediaElement: null });
|
|
173
242
|
}
|
|
174
243
|
setVisibleAndUnfolded() {
|
|
175
|
-
return
|
|
244
|
+
return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
176
245
|
if (!!this.isPanorama)
|
|
177
246
|
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
178
247
|
setTimeout(() => {
|
|
@@ -198,9 +267,9 @@ class he extends z {
|
|
|
198
267
|
});
|
|
199
268
|
}
|
|
200
269
|
addEventListener() {
|
|
201
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this),
|
|
202
|
-
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",
|
|
203
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate",
|
|
270
|
+
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);
|
|
271
|
+
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), () => {
|
|
272
|
+
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
273
|
};
|
|
205
274
|
}
|
|
206
275
|
loadVideoFirstFrame() {
|
|
@@ -226,12 +295,12 @@ class he extends z {
|
|
|
226
295
|
!this.store.resizeObserverDisposer || i();
|
|
227
296
|
}, 500),
|
|
228
297
|
e
|
|
229
|
-
), { observe:
|
|
298
|
+
), { observe: n, unobserve: r } = D(
|
|
230
299
|
C(() => t(), 400),
|
|
231
300
|
e
|
|
232
301
|
);
|
|
233
|
-
return s(),
|
|
234
|
-
o(),
|
|
302
|
+
return s(), n(), () => {
|
|
303
|
+
o(), r();
|
|
235
304
|
};
|
|
236
305
|
}
|
|
237
306
|
handleFiveModeChange(e) {
|
|
@@ -240,7 +309,7 @@ class he extends z {
|
|
|
240
309
|
handleFiveWantsMoveToPano() {
|
|
241
310
|
this.tags.forEach((e) => {
|
|
242
311
|
const t = this.getTagConfig(e);
|
|
243
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
312
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
244
313
|
}), this.updateTagContainerVisible();
|
|
245
314
|
}
|
|
246
315
|
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -286,9 +355,9 @@ class he extends z {
|
|
|
286
355
|
this.updateRenderPointTag();
|
|
287
356
|
}
|
|
288
357
|
handleFivePanoArrived() {
|
|
289
|
-
return
|
|
358
|
+
return f(this, null, function* () {
|
|
290
359
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
291
|
-
e.temporaryState =
|
|
360
|
+
e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
|
|
292
361
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
293
362
|
});
|
|
294
363
|
}
|
|
@@ -321,14 +390,14 @@ class he extends z {
|
|
|
321
390
|
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag()]).forEach((t) => {
|
|
322
391
|
var i;
|
|
323
392
|
if (t.tag3DContentSvelte) {
|
|
324
|
-
const { svelteApp: s, domContainer: o, initialNormal:
|
|
393
|
+
const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
|
|
325
394
|
if (s.$set({
|
|
326
395
|
tag: t,
|
|
327
396
|
hooks: this.hooks,
|
|
328
397
|
state: this.state,
|
|
329
398
|
temporaryState: this.temporaryState
|
|
330
|
-
}), !
|
|
331
|
-
const l = new k().setFromUnitVectors(
|
|
399
|
+
}), !n.equals(r)) {
|
|
400
|
+
const l = new k().setFromUnitVectors(n, r);
|
|
332
401
|
o.css3DObject.setRotationFromQuaternion(l);
|
|
333
402
|
}
|
|
334
403
|
} else {
|
|
@@ -336,12 +405,12 @@ class he extends z {
|
|
|
336
405
|
return;
|
|
337
406
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = N(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
338
407
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
339
|
-
const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position,
|
|
340
|
-
if (!
|
|
408
|
+
const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position, c(t.position), c(t.normal)), o = t.stickType === "Plane" ? I(t.position) : c(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
|
|
409
|
+
if (!r)
|
|
341
410
|
return;
|
|
342
|
-
this.store.css3DRenderDisposer.set(t.id,
|
|
411
|
+
this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
343
412
|
svelteApp: new L({
|
|
344
|
-
target:
|
|
413
|
+
target: r.container,
|
|
345
414
|
props: {
|
|
346
415
|
tag: t,
|
|
347
416
|
hooks: this.hooks,
|
|
@@ -350,7 +419,7 @@ class he extends z {
|
|
|
350
419
|
temporaryState: this.temporaryState
|
|
351
420
|
}
|
|
352
421
|
}),
|
|
353
|
-
domContainer:
|
|
422
|
+
domContainer: r,
|
|
354
423
|
initialNormal: o,
|
|
355
424
|
currentNormal: o
|
|
356
425
|
};
|
|
@@ -374,6 +443,7 @@ class he extends z {
|
|
|
374
443
|
}
|
|
375
444
|
}
|
|
376
445
|
export {
|
|
377
|
-
|
|
378
|
-
|
|
446
|
+
wt as PanoTagPluginController,
|
|
447
|
+
wt as default,
|
|
448
|
+
Pt as pluginFlag
|
|
379
449
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import t from "./controller/index.js";
|
|
2
|
+
import { default as Qo, pluginFlag as Ro } from "./controller/index.js";
|
|
3
3
|
import { ContentType as Uo } from "./typings/tag/TagData.js";
|
|
4
4
|
import { DimensionType as Wo, PointType as Xo } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
id: number;
|
|
3
|
+
pointType: string;
|
|
4
|
+
dimensionType: string;
|
|
5
|
+
position: number[];
|
|
6
|
+
normal: number[];
|
|
7
|
+
style: {
|
|
8
|
+
point: {
|
|
9
|
+
iconUrl: string;
|
|
10
|
+
style: string;
|
|
11
|
+
};
|
|
12
|
+
style: string;
|
|
13
|
+
};
|
|
14
|
+
contentType: string;
|
|
15
|
+
data: {
|
|
16
|
+
text: string;
|
|
17
|
+
extraData: {
|
|
18
|
+
baseNormal: number[];
|
|
19
|
+
fiveState: {
|
|
20
|
+
distance: number;
|
|
21
|
+
fov: number;
|
|
22
|
+
latitude: number;
|
|
23
|
+
longitude: number;
|
|
24
|
+
mode: string;
|
|
25
|
+
offset: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
z: number;
|
|
29
|
+
};
|
|
30
|
+
panoIndex: number;
|
|
31
|
+
};
|
|
32
|
+
style: {
|
|
33
|
+
point: {
|
|
34
|
+
iconUrl: string;
|
|
35
|
+
style: string;
|
|
36
|
+
};
|
|
37
|
+
style: string;
|
|
38
|
+
};
|
|
39
|
+
tagClosedStyle: string;
|
|
40
|
+
tagIconUrl: string;
|
|
41
|
+
};
|
|
42
|
+
mediaData?: undefined;
|
|
43
|
+
};
|
|
44
|
+
} | {
|
|
45
|
+
id: number;
|
|
46
|
+
pointType: string;
|
|
47
|
+
dimensionType: string;
|
|
48
|
+
position: number[];
|
|
49
|
+
normal: number[];
|
|
50
|
+
style: {
|
|
51
|
+
point: {
|
|
52
|
+
iconUrl: string;
|
|
53
|
+
style: string;
|
|
54
|
+
};
|
|
55
|
+
style?: undefined;
|
|
56
|
+
};
|
|
57
|
+
contentType: string;
|
|
58
|
+
data: {
|
|
59
|
+
text: string;
|
|
60
|
+
mediaData: {
|
|
61
|
+
type: string;
|
|
62
|
+
url: string;
|
|
63
|
+
videoCoverUrl: string;
|
|
64
|
+
name: string;
|
|
65
|
+
}[];
|
|
66
|
+
extraData: {
|
|
67
|
+
baseNormal: number[];
|
|
68
|
+
fiveState: {
|
|
69
|
+
distance: number;
|
|
70
|
+
fov: number;
|
|
71
|
+
latitude: number;
|
|
72
|
+
longitude: number;
|
|
73
|
+
mode: string;
|
|
74
|
+
offset: {
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
z: number;
|
|
78
|
+
};
|
|
79
|
+
panoIndex: number;
|
|
80
|
+
};
|
|
81
|
+
style: {
|
|
82
|
+
point: {
|
|
83
|
+
iconUrl: string;
|
|
84
|
+
style: string;
|
|
85
|
+
};
|
|
86
|
+
style?: undefined;
|
|
87
|
+
};
|
|
88
|
+
tagClosedStyle: string;
|
|
89
|
+
tagIconUrl: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
})[];
|
|
93
|
+
export default _default;
|