@realsee/dnalogel 2.3.5-dev.3 → 2.3.5-dev.5
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/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/index.cjs.js +13 -13
- package/dist/index.js +1325 -1326
- package/dist/index.umd.js +14 -14
- 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 +46 -43
- 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 +17 -13
- 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.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +40 -34
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +158 -89
- 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 +4 -4
- 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,31 +2,37 @@ var U = Object.defineProperty, j = Object.defineProperties;
|
|
|
2
2
|
var w = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var T = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, x = (u, c) => {
|
|
6
6
|
for (var e in c || (c = {}))
|
|
7
|
-
B.call(c, e) &&
|
|
7
|
+
B.call(c, e) && T(u, e, c[e]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var e of k(c))
|
|
10
|
-
A.call(c, e) &&
|
|
10
|
+
A.call(c, e) && T(u, e, c[e]);
|
|
11
11
|
return u;
|
|
12
12
|
}, D = (u, c) => j(u, w(c));
|
|
13
|
-
var y = (u, c, e) => (
|
|
14
|
-
import
|
|
13
|
+
var y = (u, c, e) => (T(u, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
import P from "object-assign-deep";
|
|
15
15
|
import * as I from "three";
|
|
16
16
|
import { DefaultConfig as E } from "../tag.config.js";
|
|
17
|
-
import { is3DTag as
|
|
17
|
+
import { is3DTag as R, isPointTag as V } from "../utils/tag/tagCheck.js";
|
|
18
18
|
import { arrayPositionToVector3 as M, anyPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as $ } from "../utils/planeNormal.js";
|
|
20
|
-
import { tagPosition as
|
|
20
|
+
import { tagPosition as C } from "../utils/tagPosition.js";
|
|
21
21
|
import { checkRange as v } from "../utils/checkRange.js";
|
|
22
22
|
import { TagCacheController as z } from "./TagCacheController.js";
|
|
23
|
-
|
|
23
|
+
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
24
|
+
import "../../base/BasePlugin.js";
|
|
25
|
+
import "../../shared-utils/Subscribe.js";
|
|
26
|
+
class Y extends z {
|
|
24
27
|
constructor(e) {
|
|
25
28
|
super(e);
|
|
26
29
|
y(this, "tags", []);
|
|
27
30
|
y(this, "config", E);
|
|
28
31
|
y(this, "raycaster", new I.Raycaster());
|
|
29
32
|
}
|
|
33
|
+
get isPanorama() {
|
|
34
|
+
return this.five.currentMode === "Panorama";
|
|
35
|
+
}
|
|
30
36
|
getTagById(e) {
|
|
31
37
|
const t = this.tags.find((i) => i.id === e);
|
|
32
38
|
if (!t) {
|
|
@@ -36,13 +42,13 @@ class q extends z {
|
|
|
36
42
|
return t;
|
|
37
43
|
}
|
|
38
44
|
changeConfig(e, t = !0) {
|
|
39
|
-
t ? this.config =
|
|
45
|
+
t ? this.config = P({}, this.config, e) : this.config = e, this.clearCache();
|
|
40
46
|
}
|
|
41
47
|
changeGlobalConfig(e, t = !0) {
|
|
42
|
-
t ? this.config.globalConfig =
|
|
48
|
+
t ? this.config.globalConfig = P({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
|
|
43
49
|
}
|
|
44
50
|
changeContentTypeConfig(e, t, i = !0) {
|
|
45
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
51
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = P({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
|
|
46
52
|
}
|
|
47
53
|
getVisibleByPanoIndex(e, t) {
|
|
48
54
|
var n;
|
|
@@ -51,7 +57,7 @@ class q extends z {
|
|
|
51
57
|
return i.visible;
|
|
52
58
|
{
|
|
53
59
|
const l = (() => {
|
|
54
|
-
var d, p,
|
|
60
|
+
var d, p, f;
|
|
55
61
|
const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, a = this.getDistance(e);
|
|
56
62
|
if (typeof o == "function")
|
|
57
63
|
return o(this.five, { tag: e, distance: a });
|
|
@@ -61,14 +67,14 @@ class q extends z {
|
|
|
61
67
|
return !0;
|
|
62
68
|
if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0 && (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s) || o.visiblePanoIndex === "current" && s !== ((p = e.fiveState) == null ? void 0 : p.panoIndex)) || o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && v(a, o.visibleDistance) === !1)
|
|
63
69
|
return !1;
|
|
64
|
-
if (o.intersectRaycaster !== !1 && o.intersectRaycaster) {
|
|
70
|
+
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
65
71
|
if (s === void 0)
|
|
66
72
|
return !1;
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
70
|
-
const h =
|
|
71
|
-
this.raycaster.set(
|
|
73
|
+
const r = (f = this.five.work.observers[s]) == null ? void 0 : f.position;
|
|
74
|
+
if (r === void 0)
|
|
75
|
+
throw new Error(`getVisible(): observerPosition is ${r}`);
|
|
76
|
+
const h = C(e.position).sub(r).normalize();
|
|
77
|
+
this.raycaster.set(r, h);
|
|
72
78
|
const [g] = this.five.model.intersectRaycaster(this.raycaster), b = (() => {
|
|
73
79
|
var m;
|
|
74
80
|
return typeof o.intersectRaycaster == "object" && (m = o.intersectRaycaster.distanceAccuracy) != null ? m : 0.01;
|
|
@@ -76,7 +82,7 @@ class q extends z {
|
|
|
76
82
|
if (g && g.distance + b < a)
|
|
77
83
|
return !1;
|
|
78
84
|
}
|
|
79
|
-
return !(o.angleRange &&
|
|
85
|
+
return !(o.angleRange && R(e) && v(this.getAngle(e), o.angleRange) === !1);
|
|
80
86
|
})();
|
|
81
87
|
return i.visible = l, i.visible;
|
|
82
88
|
}
|
|
@@ -126,19 +132,19 @@ class q extends z {
|
|
|
126
132
|
return !1;
|
|
127
133
|
}
|
|
128
134
|
if (n.autoUnfold.strategy === "MinimumDistance") {
|
|
129
|
-
const d = this.filterPointTag().filter((
|
|
130
|
-
const
|
|
131
|
-
if (!
|
|
135
|
+
const d = this.filterPointTag().filter((f) => this.getVisibleByPanoIndex(f)).filter((f) => {
|
|
136
|
+
const r = this.getTagProject(f);
|
|
137
|
+
if (!r)
|
|
132
138
|
return !1;
|
|
133
|
-
const { x: h, y: g, z: b } =
|
|
139
|
+
const { x: h, y: g, z: b } = r;
|
|
134
140
|
return !(Math.abs(b) > 1 || Math.abs(h) > 1 || Math.abs(g) > 1);
|
|
135
|
-
}).map((
|
|
141
|
+
}).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
|
|
136
142
|
var h, g;
|
|
137
|
-
return !(typeof
|
|
138
|
-
}).map((
|
|
143
|
+
return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
|
|
144
|
+
}).map((f) => D(x({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
|
|
139
145
|
var h, g;
|
|
140
|
-
return !(
|
|
141
|
-
}).sort((
|
|
146
|
+
return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || r.autoUnfold.distance && v(f, r.autoUnfold.distance) === !1);
|
|
147
|
+
}).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
|
|
142
148
|
if (d === -1 || d <= ((l = n.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
|
|
143
149
|
return !1;
|
|
144
150
|
}
|
|
@@ -158,7 +164,7 @@ class q extends z {
|
|
|
158
164
|
const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
|
|
159
165
|
if (a === void 0)
|
|
160
166
|
throw new Error(`getDistance(): observerPosition is ${a}`);
|
|
161
|
-
const d = (() =>
|
|
167
|
+
const d = (() => V(e) ? M(e == null ? void 0 : e.position) : C(e.position))(), p = a.distanceTo(d);
|
|
162
168
|
return s.distance = p, p;
|
|
163
169
|
}
|
|
164
170
|
}
|
|
@@ -177,8 +183,8 @@ class q extends z {
|
|
|
177
183
|
const d = (() => e.stickType === "3DPoint" ? S(e.normal) : $(e.position))();
|
|
178
184
|
if (!d)
|
|
179
185
|
return;
|
|
180
|
-
const p = new I.Vector3().copy(a).sub(
|
|
181
|
-
return s.angle =
|
|
186
|
+
const p = new I.Vector3().copy(a).sub(C(e.position)), f = d.angleTo(p) * 180 / Math.PI;
|
|
187
|
+
return s.angle = f, s.angle;
|
|
182
188
|
}
|
|
183
189
|
}
|
|
184
190
|
getTagConfig(e) {
|
|
@@ -195,7 +201,7 @@ class q extends z {
|
|
|
195
201
|
const [a = "Any", d = "Any"] = o || [];
|
|
196
202
|
(e.stickType === a || a === "Any") && (e.contentType === d || d === "Any") && (t[l] = this.config.contentTypeConfig[l]);
|
|
197
203
|
});
|
|
198
|
-
const i =
|
|
204
|
+
const i = P({}, this.config.globalConfig, ...Object.values(t), e.config);
|
|
199
205
|
return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep }), i;
|
|
200
206
|
}
|
|
201
207
|
can(e, t) {
|
|
@@ -256,7 +262,7 @@ class q extends z {
|
|
|
256
262
|
getTagProject(e) {
|
|
257
263
|
if (!this.getVisibleByPanoIndex(e))
|
|
258
264
|
return;
|
|
259
|
-
const i =
|
|
265
|
+
const i = C(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
|
|
260
266
|
if (!(l > 1))
|
|
261
267
|
return { x: s, y: n, z: l };
|
|
262
268
|
}
|
|
@@ -277,5 +283,5 @@ class q extends z {
|
|
|
277
283
|
}
|
|
278
284
|
}
|
|
279
285
|
export {
|
|
280
|
-
|
|
286
|
+
Y as TagComputer
|
|
281
287
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Tag, PartialDeep, TagId, Tags, State, AddTagConfig } from '../typings';
|
|
1
|
+
import type { Tag, PartialDeep, TagId, Tags, State, AddTagConfig, LoadTagConfig } from '../typings';
|
|
2
2
|
import type { TagContentType } from '..';
|
|
3
3
|
import type { ArrayPosition } from '../typings';
|
|
4
4
|
import { Five } from '@realsee/five';
|
|
@@ -35,7 +35,7 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
35
35
|
/**
|
|
36
36
|
* @description: 加载数据
|
|
37
37
|
*/
|
|
38
|
-
load(data: Tags, config?:
|
|
38
|
+
load(data: Tags, config?: LoadTagConfig): void;
|
|
39
39
|
/**
|
|
40
40
|
* @description: 添加标签
|
|
41
41
|
*/
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
1
|
+
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
|
|
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
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
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
|
-
i(
|
|
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
|
|
30
|
+
import { Subscribe as F } from "@realsee/five";
|
|
31
|
+
import { Quaternion as k } from "three";
|
|
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,64 +43,131 @@ 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.10", v = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, Pt = (h) => `${v}--${h}`;
|
|
120
|
+
class wt extends z {
|
|
49
121
|
constructor(e, t) {
|
|
50
122
|
super(e);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
123
|
+
d(this, "version", A);
|
|
124
|
+
d(this, "state", { enabled: !0, visible: !0 });
|
|
125
|
+
d(this, "params");
|
|
126
|
+
d(this, "debug");
|
|
127
|
+
d(this, "css3DRenderPlugin");
|
|
128
|
+
d(this, "TagContainerSvelte");
|
|
129
|
+
d(this, "temporaryState", { visible: !0 });
|
|
130
|
+
d(this, "mediaStore", R({
|
|
59
131
|
currentMediaElement: null
|
|
60
132
|
}));
|
|
61
|
-
|
|
62
|
-
|
|
133
|
+
d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
|
|
134
|
+
d(this, "store", {
|
|
63
135
|
disposers: [],
|
|
64
136
|
disposed: !1,
|
|
65
137
|
resizeObserverDisposerAdding: !1,
|
|
66
138
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
67
139
|
});
|
|
68
|
-
|
|
69
|
-
console.error(`${
|
|
140
|
+
d(this, "disposedErrorLog", () => {
|
|
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:
|
|
88
|
-
hooks: new
|
|
89
|
-
clickable:
|
|
154
|
+
const n = this.getTagConfig(o);
|
|
155
|
+
return m(p({}, o), {
|
|
156
|
+
state: p({ visible: void 0, unfolded: $ }, n.initialState),
|
|
157
|
+
hooks: new F(),
|
|
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
|
|
94
|
-
this.store.eventListenerDisposer && ((n = (
|
|
95
|
-
const o = this.five.getCurrentState().mode;
|
|
96
|
-
o && o !== "Panorama" && this.temporaryHide(), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (d = t == null ? void 0 : t.withAnimation) != null ? d : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
|
|
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();
|
|
97
164
|
});
|
|
98
165
|
}
|
|
99
166
|
clearTags() {
|
|
100
167
|
this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
101
168
|
}
|
|
102
169
|
show(e) {
|
|
103
|
-
return
|
|
170
|
+
return f(this, null, function* () {
|
|
104
171
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
105
172
|
if (this.store.disposed)
|
|
106
173
|
return this.disposedErrorLog();
|
|
@@ -108,7 +175,7 @@ class ae extends z {
|
|
|
108
175
|
});
|
|
109
176
|
}
|
|
110
177
|
hide(e) {
|
|
111
|
-
return
|
|
178
|
+
return f(this, null, function* () {
|
|
112
179
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
113
180
|
if (this.store.disposed)
|
|
114
181
|
return this.disposedErrorLog();
|
|
@@ -128,16 +195,16 @@ class ae extends z {
|
|
|
128
195
|
this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
|
|
129
196
|
}
|
|
130
197
|
dispose() {
|
|
131
|
-
var e, t, i, s, o,
|
|
132
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((
|
|
133
|
-
var
|
|
134
|
-
return (
|
|
135
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((
|
|
198
|
+
var e, t, i, s, o, n;
|
|
199
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
|
|
200
|
+
var l;
|
|
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");
|
|
136
203
|
}
|
|
137
204
|
setState(e, t) {
|
|
138
205
|
if (this.store.disposed)
|
|
139
206
|
return this.disposedErrorLog();
|
|
140
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o =
|
|
207
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
|
|
141
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 });
|
|
142
209
|
}
|
|
143
210
|
changeUnfoldedById(e, t) {
|
|
@@ -151,18 +218,18 @@ class ae extends z {
|
|
|
151
218
|
}
|
|
152
219
|
changeTagNormalById(e, t) {
|
|
153
220
|
const i = this.getTagById(e);
|
|
154
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
221
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = c(t), this.updateRenderPlaneTag());
|
|
155
222
|
}
|
|
156
223
|
changeDataById(e, t, i = !0) {
|
|
157
224
|
const s = this.getTagById(e);
|
|
158
|
-
!s || (i ? s.data =
|
|
225
|
+
!s || (i ? s.data = u({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
159
226
|
}
|
|
160
227
|
changeStickTypeById(e, t, i = !0) {
|
|
161
228
|
this.changeTagById(e, t, i);
|
|
162
229
|
}
|
|
163
230
|
changeTagById(e, t, i = !0) {
|
|
164
231
|
const s = this.getTagById(e);
|
|
165
|
-
!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());
|
|
166
233
|
}
|
|
167
234
|
destroyTagById(e) {
|
|
168
235
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -174,12 +241,13 @@ class ae extends z {
|
|
|
174
241
|
this.mediaStore.set({ currentMediaElement: null });
|
|
175
242
|
}
|
|
176
243
|
setVisibleAndUnfolded() {
|
|
177
|
-
return
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
244
|
+
return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
245
|
+
if (!!this.isPanorama)
|
|
246
|
+
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
247
|
+
setTimeout(() => {
|
|
248
|
+
this.setUnfoldedByPanoIndex(), t();
|
|
249
|
+
}, 10);
|
|
250
|
+
}) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
|
|
183
251
|
});
|
|
184
252
|
}
|
|
185
253
|
handleShow() {
|
|
@@ -199,9 +267,9 @@ class ae extends z {
|
|
|
199
267
|
});
|
|
200
268
|
}
|
|
201
269
|
addEventListener() {
|
|
202
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this),
|
|
203
|
-
return e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate",
|
|
204
|
-
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;
|
|
205
273
|
};
|
|
206
274
|
}
|
|
207
275
|
loadVideoFirstFrame() {
|
|
@@ -227,12 +295,12 @@ class ae extends z {
|
|
|
227
295
|
!this.store.resizeObserverDisposer || i();
|
|
228
296
|
}, 500),
|
|
229
297
|
e
|
|
230
|
-
), { observe:
|
|
298
|
+
), { observe: n, unobserve: r } = D(
|
|
231
299
|
C(() => t(), 400),
|
|
232
300
|
e
|
|
233
301
|
);
|
|
234
|
-
return s(),
|
|
235
|
-
o(),
|
|
302
|
+
return s(), n(), () => {
|
|
303
|
+
o(), r();
|
|
236
304
|
};
|
|
237
305
|
}
|
|
238
306
|
handleFiveModeChange(e) {
|
|
@@ -241,7 +309,7 @@ class ae extends z {
|
|
|
241
309
|
handleFiveWantsMoveToPano() {
|
|
242
310
|
this.tags.forEach((e) => {
|
|
243
311
|
const t = this.getTagConfig(e);
|
|
244
|
-
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) }));
|
|
245
313
|
}), this.updateTagContainerVisible();
|
|
246
314
|
}
|
|
247
315
|
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -287,9 +355,9 @@ class ae extends z {
|
|
|
287
355
|
this.updateRenderPointTag();
|
|
288
356
|
}
|
|
289
357
|
handleFivePanoArrived() {
|
|
290
|
-
return
|
|
358
|
+
return f(this, null, function* () {
|
|
291
359
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
292
|
-
e.temporaryState =
|
|
360
|
+
e.temporaryState = m(p({}, e.temporaryState), { visible: !0 });
|
|
293
361
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
294
362
|
});
|
|
295
363
|
}
|
|
@@ -322,27 +390,27 @@ class ae extends z {
|
|
|
322
390
|
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag()]).forEach((t) => {
|
|
323
391
|
var i;
|
|
324
392
|
if (t.tag3DContentSvelte) {
|
|
325
|
-
const { svelteApp: s, domContainer: o, initialNormal:
|
|
393
|
+
const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
|
|
326
394
|
if (s.$set({
|
|
327
395
|
tag: t,
|
|
328
396
|
hooks: this.hooks,
|
|
329
397
|
state: this.state,
|
|
330
398
|
temporaryState: this.temporaryState
|
|
331
|
-
}), !
|
|
332
|
-
const
|
|
333
|
-
o.css3DObject.setRotationFromQuaternion(
|
|
399
|
+
}), !n.equals(r)) {
|
|
400
|
+
const l = new k().setFromUnitVectors(n, r);
|
|
401
|
+
o.css3DObject.setRotationFromQuaternion(l);
|
|
334
402
|
}
|
|
335
403
|
} else {
|
|
336
404
|
if (((i = t.state) == null ? void 0 : i.visible) === !1)
|
|
337
405
|
return;
|
|
338
406
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = N(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
339
407
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
340
|
-
const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position,
|
|
341
|
-
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)
|
|
342
410
|
return;
|
|
343
|
-
this.store.css3DRenderDisposer.set(t.id,
|
|
411
|
+
this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
344
412
|
svelteApp: new L({
|
|
345
|
-
target:
|
|
413
|
+
target: r.container,
|
|
346
414
|
props: {
|
|
347
415
|
tag: t,
|
|
348
416
|
hooks: this.hooks,
|
|
@@ -351,7 +419,7 @@ class ae extends z {
|
|
|
351
419
|
temporaryState: this.temporaryState
|
|
352
420
|
}
|
|
353
421
|
}),
|
|
354
|
-
domContainer:
|
|
422
|
+
domContainer: r,
|
|
355
423
|
initialNormal: o,
|
|
356
424
|
currentNormal: o
|
|
357
425
|
};
|
|
@@ -375,6 +443,7 @@ class ae extends z {
|
|
|
375
443
|
}
|
|
376
444
|
}
|
|
377
445
|
export {
|
|
378
|
-
|
|
379
|
-
|
|
446
|
+
wt as PanoTagPluginController,
|
|
447
|
+
wt as default,
|
|
448
|
+
Pt as pluginFlag
|
|
380
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";
|