@realsee/dnalogel 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
- package/dist/PanoTagPlugin/controller/index.d.ts +25 -14
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +23 -17
- package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/dist/index.cjs.js +52 -54
- package/dist/index.js +7771 -6537
- package/dist/index.umd.js +44 -46
- package/dist/shared-utils/audio.d.ts +31 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +223 -176
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +75 -35
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +19 -15
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +19 -15
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +39 -13
- package/docs/functions/CameraMovementPlugin.html +39 -13
- package/docs/functions/CruisePlugin.html +39 -13
- package/docs/functions/GuideLinePlugin.html +40 -14
- package/docs/functions/ItemLabelPlugin.html +39 -13
- package/docs/functions/MapviewFloorplanPlugin.html +39 -13
- package/docs/functions/ModelChassisCompassPlugin.html +39 -13
- package/docs/functions/ModelEntryDoorGuidePlugin.html +39 -13
- package/docs/functions/ModelFloorplanPlugin.html +39 -13
- package/docs/functions/ModelItemLabelPlugin.html +39 -13
- package/docs/functions/ModelRoomLabelPlugin.html +39 -13
- package/docs/functions/ModelTVVideoPlugin.html +39 -13
- package/docs/functions/ModelViewPlugin.html +39 -13
- package/docs/functions/Object3DHelperPlugin.html +39 -13
- package/docs/functions/PanoCompassPlugin.html +39 -13
- package/docs/functions/PanoCursorRaycasterPlugin.html +39 -13
- package/docs/functions/PanoDoorLabelPlugin.html +39 -13
- package/docs/functions/PanoFloorplanRadarPlugin.html +39 -13
- package/docs/functions/PanoMeasurePlugin.html +39 -13
- package/docs/functions/PanoRulerPlugin.html +39 -13
- package/docs/functions/PanoRulerProPlugin.html +39 -13
- package/docs/functions/PanoSpatialTagPlugin.html +39 -13
- package/docs/functions/PanoTagPlugin.html +45 -23
- package/docs/functions/TopviewFloorplanPlugin.html +39 -13
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +40 -14
- package/docs/index.html +39 -13
- package/docs/interfaces/AddTagConfig.html +64 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +298 -0
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +71 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +40 -14
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +40 -14
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +40 -14
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +40 -14
- package/docs/interfaces/Rooms.html +40 -14
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +89 -0
- package/docs/interfaces/TagCache.html +92 -0
- package/docs/interfaces/TagConfig.html +15 -19
- package/docs/interfaces/TagIconUrl.html +91 -0
- package/docs/interfaces/Tags.html +14 -12
- package/docs/interfaces/TemporaryState.html +64 -0
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +73 -21
- package/docs/types/ArrayPosition.html +41 -15
- package/docs/types/AudioAppearance.html +256 -0
- package/docs/types/AudioTagTypeConfigKey.html +256 -0
- package/docs/types/CSS3DRenderExportType.html +40 -14
- package/docs/types/CSS3DRenderPluginExportType.html +40 -14
- package/docs/types/CSS3DRenderPluginParameterType.html +40 -14
- package/docs/types/Color.html +40 -14
- package/docs/types/ContentTypeConfigKey.html +41 -15
- package/docs/types/ContentTypeConfigKeySplit.html +256 -0
- package/docs/types/ContentTypeMap.html +256 -0
- package/docs/types/Create3DDomContainerReturnType.html +40 -14
- package/docs/types/Create3DElementReturnType.html +40 -14
- package/docs/types/CruisePluginExportType.html +40 -14
- package/docs/types/Direction-1.html +40 -14
- package/docs/types/Direction4.html +40 -14
- package/docs/types/FloorplanRuleLabels.html +40 -14
- package/docs/types/FloorplanServerRuleLabels.html +40 -14
- package/docs/types/GuideLinePluginExportType.html +40 -14
- package/docs/types/HelperEventMap.html +40 -14
- package/docs/types/LoadTagConfig.html +256 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +40 -14
- package/docs/types/MapviewFloorplanPluginReturnType.html +40 -14
- package/docs/types/MediaData.html +40 -14
- package/docs/types/MediaStore.html +256 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +40 -14
- package/docs/types/ModelFloorplanPluginParameterType.html +40 -14
- package/docs/types/ModelFloorplanPluginReturnType.html +40 -14
- package/docs/types/ModelRoomLabelPluginParameters.html +40 -14
- package/docs/types/ModelRoomLabelPluginReturnType.html +40 -14
- package/docs/types/MoveArgs.html +40 -14
- package/docs/types/MoveOpts.html +40 -14
- package/docs/types/Object3DHelperEventMap.html +40 -14
- package/docs/types/ObjectFit.html +40 -14
- package/docs/types/PaintBrushEventMap.html +40 -14
- package/docs/types/PanoCompassPluginData.html +40 -14
- package/docs/types/PanoCompassPluginExportType.html +40 -14
- package/docs/types/PanoCompassPluginParameterType.html +40 -14
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +40 -14
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +40 -14
- package/docs/types/PanoIndex.html +256 -0
- package/docs/types/PanoMeasurePluginEvent.html +40 -14
- package/docs/types/PanoMeasureReturnType.html +40 -14
- package/docs/types/PanoSpatialTagPluginId.html +40 -14
- package/docs/types/PanoTagPluginExportInterface.html +40 -14
- package/docs/types/PanoTagPluginParamsInterface.html +40 -14
- package/docs/types/PlaneTag.html +43 -19
- package/docs/types/PlaneTagElement.html +261 -0
- package/docs/types/Point2DElement.html +261 -0
- package/docs/types/Point2DTag.html +263 -0
- package/docs/types/Point3DElement.html +261 -0
- package/docs/types/Point3DTag.html +263 -0
- package/docs/types/PointTag.html +43 -23
- package/docs/types/PointTagElement.html +261 -0
- package/docs/types/Position.html +40 -14
- package/docs/types/RotateArgs.html +40 -14
- package/docs/types/RotateOpts.html +40 -14
- package/docs/types/RuleLabelsKey.html +40 -14
- package/docs/types/RuleLabelsValue.html +40 -14
- package/docs/types/StickType.html +256 -0
- package/docs/types/Tag.html +44 -22
- package/docs/types/Tag2D.html +45 -20
- package/docs/types/Tag3D.html +45 -20
- package/docs/types/TagContentType.html +256 -0
- package/docs/types/TagDimensionType.html +256 -0
- package/docs/types/TagElement.html +263 -0
- package/docs/types/TagEvents.html +291 -0
- package/docs/types/TagHooks.html +256 -0
- package/docs/types/TagIconSize.html +259 -0
- package/docs/types/TagId.html +40 -14
- package/docs/types/TagPointType.html +259 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +40 -14
- package/docs/types/TopviewFloorplanPluginReturnType.html +40 -14
- package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +43 -17
- package/docs/variables/FLOOR_TYPE_MAP.html +40 -14
- package/docs/variables/PLUGIN.html +40 -14
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +40 -14
- package/docs/variables/ROOM_TYPE_MAP.html +40 -14
- package/docs/variables/VERSION.html +40 -14
- package/docs/variables/itemLabelPluginServerParams.html +40 -14
- package/docs/variables/modelItemLabelPluginServerParams.html +40 -14
- package/docs/variables/modelRoomLabelPluginServerParams.html +40 -14
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +2 -2
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
- package/libs/CSS3DRenderPlugin/utils/index.js +12 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +4 -3
- package/libs/CSS3DRenderPlugin/utils/random.js +6 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +3 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +6 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
- package/libs/CruisePlugin/Controller.js +2 -2
- package/libs/CruisePlugin/utils/coordinatesAngle.js +3 -2
- package/libs/CruisePlugin/utils/linerValue.js +4 -4
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
- package/libs/GuideLinePlugin/utils/getPoint.d.ts +3 -0
- package/libs/GuideLinePlugin/utils/getPoint.js +18 -0
- package/libs/Object3DHelperPlugin/Controller.js +38 -36
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +18 -9
- package/libs/PanoMeasurePlugin/Controller/EditController.js +16 -5
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +38 -19
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +13 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +31 -20
- package/libs/PanoMeasurePlugin/Controller/index.js +54 -18
- package/libs/PanoMeasurePlugin/Model/index.js +41 -34
- package/libs/PanoMeasurePlugin/Model/line.js +9 -6
- package/libs/PanoMeasurePlugin/Model/point.js +3 -3
- package/libs/PanoMeasurePlugin/Model/polyline.js +19 -12
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +4 -4
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +24 -24
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +24 -16
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +4 -3
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +8 -5
- package/libs/PanoMeasurePlugin/index.js +16 -16
- package/libs/PanoMeasurePlugin/typings/data.js +1 -0
- package/libs/PanoMeasurePlugin/typings/event.type.js +4 -0
- package/libs/PanoMeasurePlugin/typings/index.js +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/libs/PanoMeasurePlugin/typings/utils.type.js +1 -0
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +6 -0
- package/libs/PanoMeasurePlugin/utils/constants.js +15 -16
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +7 -6
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
- package/libs/PanoMeasurePlugin/utils/line.js +1 -0
- package/libs/PanoMeasurePlugin/utils/math.js +2 -1
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/origins.js +3 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +3 -2
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +103 -140
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +198 -0
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +95 -59
- package/libs/PanoTagPlugin/Components/Common/Media.js +275 -249
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +143 -79
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +11 -10
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +81 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +145 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +195 -0
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +172 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +223 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +123 -0
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +126 -131
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +75 -97
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +166 -143
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +75 -45
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +130 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +134 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +115 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +264 -157
- package/libs/PanoTagPlugin/Components/TagContainer.js +164 -109
- package/libs/PanoTagPlugin/Components/TagItem.js +253 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/TagCacheController.js +3 -2
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +19 -22
- package/libs/PanoTagPlugin/controller/TagComputer.js +186 -151
- package/libs/PanoTagPlugin/controller/index.d.ts +25 -14
- package/libs/PanoTagPlugin/controller/index.js +265 -170
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +51 -35
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/tag.config.js +31 -16
- package/libs/PanoTagPlugin/typings/controller.d.ts +23 -17
- package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
- package/libs/PanoTagPlugin/typings/index.js +7 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +7 -1
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +107 -0
- package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/color.js +17 -0
- package/libs/PanoTagPlugin/utils/constants.js +2 -1
- package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/getImageInfo.js +51 -0
- package/libs/PanoTagPlugin/utils/index.js +36 -0
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
- package/libs/PanoTagPlugin/utils/search.js +27 -9
- package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/format.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -0
- package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
- package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +10 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +83 -74
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/index.js +126 -114
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +29 -39
- package/libs/shared-utils/audio.d.ts +31 -0
- package/libs/shared-utils/audio.js +81 -0
- package/libs/vendor/svelte/internal/index.js +382 -338
- package/package.json +3 -3
- package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/docs/enums/LinkType.html +0 -67
- package/docs/interfaces/ContentTypeMap.html +0 -212
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
- package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
- package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
- package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/libs/PanoTagPlugin/typings/tag.js +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
-
import { Tag, Tags, TagConfig,
|
|
2
|
+
import type { Tag, Tags, TagConfig, ContentTypeConfigKey, PlaneTag, TagElement, Point2DElement, Point3DElement, PlaneTagElement, PointTagElement, Point3DTag, TagId, StickType, TagContentType } from '../typings';
|
|
3
3
|
import { TagCacheController } from './TagCacheController';
|
|
4
4
|
export declare abstract class TagComputer extends TagCacheController {
|
|
5
5
|
tags: TagElement[];
|
|
@@ -7,17 +7,10 @@ export declare abstract class TagComputer extends TagCacheController {
|
|
|
7
7
|
globalConfig?: Tags['globalConfig'];
|
|
8
8
|
contentTypeConfig?: Tags['contentTypeConfig'];
|
|
9
9
|
};
|
|
10
|
+
protected get isPanorama(): boolean;
|
|
10
11
|
private raycaster;
|
|
11
12
|
protected constructor(five: Five);
|
|
12
|
-
getTagById(id: TagId): TagElement<
|
|
13
|
-
/**
|
|
14
|
-
* @description: 改变配置
|
|
15
|
-
*/
|
|
16
|
-
changeConfig(config: TagComputer['config'], merge?: boolean): void;
|
|
17
|
-
/**
|
|
18
|
-
* @description: 改变全局配置
|
|
19
|
-
*/
|
|
20
|
-
changeGlobalConfig(globalConfig: TagComputer['config']['globalConfig'], merge?: boolean): void;
|
|
13
|
+
getTagById(id: TagId): TagElement<TagContentType, StickType>;
|
|
21
14
|
/**
|
|
22
15
|
* @description: 改变类型配置
|
|
23
16
|
*/
|
|
@@ -25,28 +18,29 @@ export declare abstract class TagComputer extends TagCacheController {
|
|
|
25
18
|
/**
|
|
26
19
|
* @description: 获取是否可见
|
|
27
20
|
*/
|
|
28
|
-
getVisibleByPanoIndex(tag: Tag, panoIndex?: number): boolean;
|
|
21
|
+
getVisibleByPanoIndex(tag: Tag<any, any>, panoIndex?: number): boolean;
|
|
29
22
|
/**
|
|
30
23
|
* @description: 获取是否展开
|
|
31
24
|
*/
|
|
32
|
-
getUnfoldedByPanoIndex(tag: Tag
|
|
25
|
+
getUnfoldedByPanoIndex(tag: Tag<any>, panoIndex?: number): boolean;
|
|
33
26
|
/**
|
|
34
27
|
* @description: 获取是否展开
|
|
35
28
|
*/
|
|
36
|
-
getUnfoldedByCamera(tag: Tag): boolean;
|
|
29
|
+
getUnfoldedByCamera(tag: Tag<any, any>): boolean;
|
|
37
30
|
/**
|
|
38
31
|
* @description: 获取距离
|
|
39
32
|
*/
|
|
40
|
-
getDistance(tag: Tag, panoIndex?: number): number;
|
|
33
|
+
getDistance(tag: Tag<any, any>, panoIndex?: number): number;
|
|
41
34
|
/**
|
|
42
35
|
* @description: 获取角度
|
|
43
36
|
*/
|
|
44
|
-
getAngle(tag:
|
|
37
|
+
getAngle(tag: Point3DTag | PlaneTag, panoIndex?: number): number;
|
|
45
38
|
/**
|
|
46
39
|
* @description: 获取merge后的配置
|
|
47
40
|
*/
|
|
48
|
-
getTagConfig(tag: Tag): TagConfig<
|
|
49
|
-
protected
|
|
41
|
+
getTagConfig(tag: Tag<any, any>): TagConfig<TagContentType, StickType>;
|
|
42
|
+
protected can(action: 'show' | 'hide' | 'fold' | 'unfold', tag: Tag<any, any>): boolean;
|
|
43
|
+
protected sort<T extends Tag<any, any>>(tags: T[]): T[];
|
|
50
44
|
/**
|
|
51
45
|
* @description: 一个点的标签
|
|
52
46
|
*/
|
|
@@ -56,14 +50,17 @@ export declare abstract class TagComputer extends TagCacheController {
|
|
|
56
50
|
/**
|
|
57
51
|
* @description: 一个点的标签
|
|
58
52
|
*/
|
|
59
|
-
protected getTagProject(tag: Tag): {
|
|
53
|
+
protected getTagProject(tag: Tag<any, any>): {
|
|
60
54
|
x: number;
|
|
61
55
|
y: number;
|
|
62
56
|
z: number;
|
|
63
57
|
};
|
|
64
|
-
protected filterPointTag(): PointTagElement[];
|
|
65
|
-
protected
|
|
66
|
-
protected filter3DPointTag():
|
|
67
|
-
protected filter3DTag(): TagElement<any,
|
|
58
|
+
protected filterPointTag(): PointTagElement<TagContentType>[];
|
|
59
|
+
protected filter2DPointTag(): Point2DElement<TagContentType>[];
|
|
60
|
+
protected filter3DPointTag(): Point3DElement<TagContentType>[];
|
|
61
|
+
protected filter3DTag(): TagElement<any, "3DPoint" | "Plane">[];
|
|
68
62
|
protected filterPlaneTag(): PlaneTagElement[];
|
|
63
|
+
protected updateTagConfig(params?: {
|
|
64
|
+
force?: boolean;
|
|
65
|
+
}): void;
|
|
69
66
|
}
|
|
@@ -1,194 +1,217 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
var U = Object.defineProperty, j = Object.defineProperties;
|
|
2
|
+
var w = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var m = Object.getOwnPropertySymbols;
|
|
4
|
+
var A = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var P = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, k = (u, c) => {
|
|
6
|
+
for (var e in c || (c = {}))
|
|
7
|
+
A.call(c, e) && P(u, e, c[e]);
|
|
8
|
+
if (m)
|
|
9
|
+
for (var e of m(c))
|
|
10
|
+
B.call(c, e) && P(u, e, c[e]);
|
|
11
|
+
return u;
|
|
12
|
+
}, x = (u, c) => j(u, w(c));
|
|
13
|
+
var b = (u, c, e) => (P(u, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
import D from "object-assign-deep";
|
|
5
15
|
import * as I from "three";
|
|
6
|
-
import { DefaultConfig as
|
|
7
|
-
import {
|
|
8
|
-
import { arrayPositionToVector3 as
|
|
9
|
-
import { planeNormal as
|
|
10
|
-
import { tagPosition as
|
|
11
|
-
import { checkRange as
|
|
12
|
-
import { TagCacheController as
|
|
13
|
-
|
|
16
|
+
import { DefaultConfig as E } from "../tag.config.js";
|
|
17
|
+
import { is3DTag as R, isPointTag as V } from "../utils/tag/tagCheck.js";
|
|
18
|
+
import { arrayPositionToVector3 as M, anyPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as $ } from "../utils/planeNormal.js";
|
|
20
|
+
import { tagPosition as T } from "../utils/tagPosition.js";
|
|
21
|
+
import { checkRange as y } from "../utils/checkRange.js";
|
|
22
|
+
import { TagCacheController as z } from "./TagCacheController.js";
|
|
23
|
+
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
24
|
+
import "../../base/BasePlugin.js";
|
|
25
|
+
import "../../shared-utils/Subscribe.js";
|
|
26
|
+
class Y extends z {
|
|
14
27
|
constructor(e) {
|
|
15
28
|
super(e);
|
|
16
29
|
b(this, "tags", []);
|
|
17
|
-
b(this, "config",
|
|
30
|
+
b(this, "config", E);
|
|
18
31
|
b(this, "raycaster", new I.Raycaster());
|
|
19
32
|
}
|
|
33
|
+
get isPanorama() {
|
|
34
|
+
return this.five.currentMode === "Panorama";
|
|
35
|
+
}
|
|
20
36
|
getTagById(e) {
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
23
|
-
console.error(`getTagById(): tag is ${
|
|
37
|
+
const t = this.tags.find((i) => i.id === e);
|
|
38
|
+
if (!t) {
|
|
39
|
+
console.error(`getTagById(): tag is ${t}, id is ${e}`);
|
|
24
40
|
return;
|
|
25
41
|
}
|
|
26
|
-
return
|
|
27
|
-
}
|
|
28
|
-
changeConfig(e, n = !0) {
|
|
29
|
-
n ? this.config = T({}, this.config, e) : this.config = e, this.clearCache();
|
|
30
|
-
}
|
|
31
|
-
changeGlobalConfig(e, n = !0) {
|
|
32
|
-
n ? this.config.globalConfig = T({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
|
|
42
|
+
return t;
|
|
33
43
|
}
|
|
34
|
-
changeContentTypeConfig(e,
|
|
35
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
44
|
+
changeContentTypeConfig(e, t, i = !0) {
|
|
45
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = D({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
|
|
36
46
|
}
|
|
37
|
-
getVisibleByPanoIndex(e,
|
|
38
|
-
var
|
|
39
|
-
const i = this.getCaches({ panoIndex:
|
|
47
|
+
getVisibleByPanoIndex(e, t) {
|
|
48
|
+
var o;
|
|
49
|
+
const i = this.getCaches({ panoIndex: t, id: e.id }), s = (o = this.five.panoIndex) != null ? o : t;
|
|
40
50
|
if (i.visible !== void 0)
|
|
41
51
|
return i.visible;
|
|
42
52
|
{
|
|
43
|
-
const
|
|
44
|
-
var
|
|
45
|
-
const
|
|
46
|
-
if (typeof
|
|
47
|
-
return
|
|
48
|
-
if (
|
|
53
|
+
const f = (() => {
|
|
54
|
+
var d, g, r;
|
|
55
|
+
const n = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, l = this.getDistance(e);
|
|
56
|
+
if (typeof n == "function")
|
|
57
|
+
return n(this.five, { tag: e, distance: l });
|
|
58
|
+
if (n.keep === "hidden")
|
|
49
59
|
return !1;
|
|
50
|
-
if (
|
|
60
|
+
if (n.keep === "visible")
|
|
51
61
|
return !0;
|
|
52
|
-
if (
|
|
62
|
+
if (n.visiblePanoIndex !== void 0 && n.visiblePanoIndex !== "all" && s !== void 0 && (Array.isArray(n.visiblePanoIndex) && !n.visiblePanoIndex.includes(s) || n.visiblePanoIndex === "current" && s !== ((g = e.fiveState) == null ? void 0 : g.panoIndex)) || n.visibleDistance !== void 0 && n.visibleDistance !== "unLimited" && y(l, n.visibleDistance) === !1)
|
|
53
63
|
return !1;
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
64
|
+
if (n.intersectRaycaster !== !1 && (typeof n.intersectRaycaster != "object" || n.intersectRaycaster.enabled !== !1)) {
|
|
65
|
+
if (s === void 0)
|
|
56
66
|
return !1;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
60
|
-
const
|
|
61
|
-
this.raycaster.set(
|
|
62
|
-
const [
|
|
63
|
-
|
|
67
|
+
const a = (r = this.five.work.observers[s]) == null ? void 0 : r.position;
|
|
68
|
+
if (a === void 0)
|
|
69
|
+
throw new Error(`getVisible(): observerPosition is ${a}`);
|
|
70
|
+
const p = T(e.position).sub(a).normalize();
|
|
71
|
+
this.raycaster.set(a, p);
|
|
72
|
+
const [h] = this.five.model.intersectRaycaster(this.raycaster), v = (() => {
|
|
73
|
+
var C;
|
|
74
|
+
return typeof n.intersectRaycaster == "object" && (C = n.intersectRaycaster.distanceAccuracy) != null ? C : 0.01;
|
|
75
|
+
})();
|
|
76
|
+
if (h && h.distance + v < l)
|
|
64
77
|
return !1;
|
|
65
78
|
}
|
|
66
|
-
return !(
|
|
79
|
+
return !(n.angleRange && R(e) && y(this.getAngle(e), n.angleRange) === !1);
|
|
67
80
|
})();
|
|
68
|
-
return i.visible =
|
|
81
|
+
return i.visible = f, i.visible;
|
|
69
82
|
}
|
|
70
83
|
}
|
|
71
|
-
getUnfoldedByPanoIndex(e,
|
|
84
|
+
getUnfoldedByPanoIndex(e, t) {
|
|
72
85
|
if (!this.getVisibleByPanoIndex(e))
|
|
73
86
|
return;
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
87
|
+
const s = this.getCaches({ panoIndex: t, id: e.id });
|
|
88
|
+
if (s.unfolded !== void 0)
|
|
89
|
+
return s.unfolded;
|
|
77
90
|
{
|
|
78
|
-
const
|
|
79
|
-
if (!
|
|
91
|
+
const o = this.getTagConfig(e).unfoldedConfig;
|
|
92
|
+
if (!o)
|
|
80
93
|
return;
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
if (typeof
|
|
84
|
-
return
|
|
85
|
-
if (
|
|
94
|
+
const f = (() => {
|
|
95
|
+
const l = this.getDistance(e);
|
|
96
|
+
if (typeof o == "function")
|
|
97
|
+
return o(this.five, { tag: e, distance: l });
|
|
98
|
+
if (o.keep === "folded")
|
|
86
99
|
return !1;
|
|
87
|
-
if (
|
|
100
|
+
if (o.keep === "unfolded")
|
|
88
101
|
return !0;
|
|
89
|
-
if (
|
|
90
|
-
return !1;
|
|
91
|
-
if (t.disableFold === !0)
|
|
92
|
-
return !0;
|
|
93
|
-
if (t.unfoldDistance && P(f, t.unfoldDistance) === !1)
|
|
102
|
+
if (o.unfoldDistance && y(l, o.unfoldDistance) === !1)
|
|
94
103
|
return !1;
|
|
95
104
|
})();
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
return
|
|
105
|
+
s.unfolded = f;
|
|
106
|
+
const n = this.getUnfoldedByCamera(e);
|
|
107
|
+
return n !== void 0 ? n : s.unfolded;
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
getUnfoldedByCamera(e) {
|
|
102
111
|
return this.getVisibleByPanoIndex(e) ? (() => {
|
|
103
|
-
var
|
|
104
|
-
const
|
|
105
|
-
if (!!
|
|
106
|
-
if (typeof
|
|
107
|
-
return
|
|
108
|
-
if (
|
|
109
|
-
return !1;
|
|
110
|
-
if (t.keep === "unfolded")
|
|
111
|
-
return !0;
|
|
112
|
-
if (t.disableUnfold === !0)
|
|
112
|
+
var f;
|
|
113
|
+
const s = this.getDistance(e), o = this.getTagConfig(e).unfoldedConfig;
|
|
114
|
+
if (!!o) {
|
|
115
|
+
if (typeof o == "function")
|
|
116
|
+
return o(this.five, { tag: e, distance: s });
|
|
117
|
+
if (o.keep === "folded")
|
|
113
118
|
return !1;
|
|
114
|
-
if (
|
|
119
|
+
if (o.keep === "unfolded")
|
|
115
120
|
return !0;
|
|
116
|
-
if (
|
|
121
|
+
if (o.autoUnfold === void 0 || o.autoUnfold === !1 || o.autoUnfold.enable === !1)
|
|
117
122
|
return;
|
|
118
|
-
if (
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
123
|
+
if (o.autoUnfold.strategy === "ScreenPostion") {
|
|
124
|
+
const n = this.getTagProject(e);
|
|
125
|
+
if (n && y(n.x, o.autoUnfold.autoUnfoldProjectX) === !1)
|
|
121
126
|
return !1;
|
|
122
127
|
}
|
|
123
|
-
if (
|
|
124
|
-
const
|
|
125
|
-
const
|
|
126
|
-
if (!
|
|
128
|
+
if (o.autoUnfold.strategy === "MinimumDistance") {
|
|
129
|
+
const d = this.filterPointTag().filter((r) => this.getVisibleByPanoIndex(r)).filter((r) => {
|
|
130
|
+
const a = this.getTagProject(r);
|
|
131
|
+
if (!a)
|
|
127
132
|
return !1;
|
|
128
|
-
const { x:
|
|
129
|
-
return !(Math.abs(
|
|
130
|
-
}).filter((
|
|
131
|
-
var h;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
const { x: p, y: h, z: v } = a;
|
|
134
|
+
return !(Math.abs(v) > 1 || Math.abs(p) > 1 || Math.abs(h) > 1);
|
|
135
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: a }) => {
|
|
136
|
+
var p, h;
|
|
137
|
+
return !(typeof a != "object" || a.keep || a.autoUnfold === !1 || ((p = a.autoUnfold) == null ? void 0 : p.enable) === !1 || ((h = a.autoUnfold) == null ? void 0 : h.strategy) !== "MinimumDistance");
|
|
138
|
+
}).map((r) => x(k({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: a }) => {
|
|
139
|
+
var p, h;
|
|
140
|
+
return !(r === void 0 || typeof a != "object" || a.autoUnfold === !1 || ((p = a.autoUnfold) == null ? void 0 : p.enable) === !1 || ((h = a.autoUnfold) == null ? void 0 : h.strategy) !== "MinimumDistance" || a.autoUnfold.distance && y(r, a.autoUnfold.distance) === !1);
|
|
141
|
+
}).sort((r, a) => r.distance - a.distance).findIndex((r) => r.id === e.id);
|
|
142
|
+
if (d === -1 || d <= ((f = o.autoUnfold.maxNumber) != null ? f : 1) - 1 === !1)
|
|
136
143
|
return !1;
|
|
137
144
|
}
|
|
138
145
|
return !0;
|
|
139
146
|
}
|
|
140
147
|
})() : void 0;
|
|
141
148
|
}
|
|
142
|
-
getDistance(e,
|
|
143
|
-
var
|
|
144
|
-
const i = (
|
|
149
|
+
getDistance(e, t) {
|
|
150
|
+
var o, f, n;
|
|
151
|
+
const i = (o = this.five.panoIndex) != null ? o : t;
|
|
145
152
|
if (i === void 0)
|
|
146
153
|
throw new Error(`getDistance(): fivePanoIndex is ${i}`);
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
154
|
+
const s = this.getCaches({ panoIndex: t, id: e.id });
|
|
155
|
+
if (s.distance !== void 0)
|
|
156
|
+
return s.distance;
|
|
150
157
|
{
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
153
|
-
throw new Error(`getDistance(): observerPosition is ${
|
|
154
|
-
const
|
|
155
|
-
return
|
|
158
|
+
const l = (n = (f = this.five.work) == null ? void 0 : f.observers[i]) == null ? void 0 : n.position;
|
|
159
|
+
if (l === void 0)
|
|
160
|
+
throw new Error(`getDistance(): observerPosition is ${l}`);
|
|
161
|
+
const d = (() => V(e) ? M(e == null ? void 0 : e.position) : T(e.position))(), g = l.distanceTo(d);
|
|
162
|
+
return s.distance = g, g;
|
|
156
163
|
}
|
|
157
164
|
}
|
|
158
|
-
getAngle(e,
|
|
159
|
-
var
|
|
160
|
-
const i = (
|
|
165
|
+
getAngle(e, t) {
|
|
166
|
+
var o, f, n;
|
|
167
|
+
const i = (o = this.five.panoIndex) != null ? o : t;
|
|
161
168
|
if (i === void 0)
|
|
162
169
|
throw new Error(`getDistance(): fivePanoIndex is ${i}`);
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
165
|
-
return
|
|
170
|
+
const s = this.getCaches({ panoIndex: t, id: e.id });
|
|
171
|
+
if (s.angle !== void 0)
|
|
172
|
+
return s.angle;
|
|
166
173
|
{
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
throw new Error(`getAngleRange(): observerPosition is ${
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
174
|
+
const l = (n = (f = this.five.work) == null ? void 0 : f.observers[i]) == null ? void 0 : n.position;
|
|
175
|
+
if (l === void 0)
|
|
176
|
+
throw new Error(`getAngleRange(): observerPosition is ${l}`);
|
|
177
|
+
const d = (() => e.stickType === "3DPoint" ? S(e.normal) : $(e.position))();
|
|
178
|
+
if (!d)
|
|
172
179
|
return;
|
|
173
|
-
const
|
|
174
|
-
return
|
|
180
|
+
const g = new I.Vector3().copy(l).sub(T(e.position)), r = d.angleTo(g) * 180 / Math.PI;
|
|
181
|
+
return s.angle = r, s.angle;
|
|
175
182
|
}
|
|
176
183
|
}
|
|
177
184
|
getTagConfig(e) {
|
|
178
|
-
var
|
|
185
|
+
var s;
|
|
179
186
|
if (!e)
|
|
180
|
-
return (
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
187
|
+
return (s = this.config.globalConfig) != null ? s : {};
|
|
188
|
+
const t = {};
|
|
189
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((o) => {
|
|
190
|
+
const f = o;
|
|
191
|
+
if (t[f])
|
|
185
192
|
return;
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
193
|
+
const n = f.split("-");
|
|
194
|
+
if (n.length === 1) {
|
|
195
|
+
const [l] = n;
|
|
196
|
+
e.contentType === l && (t[f] = this.config.contentTypeConfig[f]);
|
|
197
|
+
}
|
|
198
|
+
if (n.length === 2) {
|
|
199
|
+
const [l = "Any", d = "Any"] = n;
|
|
200
|
+
(e.stickType === l || l === "Any") && (e.contentType === d || d === "Any") && (t[f] = this.config.contentTypeConfig[f]);
|
|
201
|
+
}
|
|
202
|
+
if (n.length === 3) {
|
|
203
|
+
const [l = "Any", d, g] = n;
|
|
204
|
+
if (d === "Audio" && e.contentType === "Audio") {
|
|
205
|
+
const r = e;
|
|
206
|
+
(r.stickType === l || l === "Any") && r.data.appearance === g && (t[f] = this.config.contentTypeConfig[f]);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
const i = D({}, this.config.globalConfig, ...Object.values(t), e.config);
|
|
211
|
+
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;
|
|
189
212
|
}
|
|
190
|
-
|
|
191
|
-
const i = this.getTagConfig(
|
|
213
|
+
can(e, t) {
|
|
214
|
+
const i = this.getTagConfig(t);
|
|
192
215
|
if (!i || typeof i != "object")
|
|
193
216
|
return !0;
|
|
194
217
|
if (e === "show" || e === "hide") {
|
|
@@ -200,37 +223,43 @@ class O extends V {
|
|
|
200
223
|
if (e === "fold" || e === "unfold") {
|
|
201
224
|
if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
|
|
202
225
|
return !0;
|
|
203
|
-
if (e === "fold" &&
|
|
226
|
+
if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
|
|
204
227
|
return !1;
|
|
205
228
|
}
|
|
206
229
|
return !0;
|
|
207
230
|
}
|
|
231
|
+
sort(e) {
|
|
232
|
+
return e.sort((t, i) => {
|
|
233
|
+
const s = this.getDistance(t), o = this.getDistance(i);
|
|
234
|
+
return s === void 0 || o === void 0 ? 0 : o - s;
|
|
235
|
+
});
|
|
236
|
+
}
|
|
208
237
|
setPointTagPosition() {
|
|
209
238
|
const e = this.filterPointTag();
|
|
210
|
-
e.length !== 0 && e.forEach((
|
|
211
|
-
var
|
|
212
|
-
if (!((
|
|
213
|
-
|
|
239
|
+
e.length !== 0 && e.forEach((t) => {
|
|
240
|
+
var s;
|
|
241
|
+
if (!((s = t.state) != null && s.visible)) {
|
|
242
|
+
t.pointTagStyle = void 0;
|
|
214
243
|
return;
|
|
215
244
|
}
|
|
216
|
-
const i = this.getTagProject(
|
|
245
|
+
const i = this.getTagProject(t);
|
|
217
246
|
if (!i) {
|
|
218
|
-
|
|
247
|
+
t.pointTagStyle = void 0;
|
|
219
248
|
return;
|
|
220
249
|
}
|
|
221
|
-
|
|
250
|
+
t.pointTagStyle = { leftPercent: (i.x + 1) / 2 * 100, topPercent: (-i.y + 1) / 2 * 100 };
|
|
222
251
|
});
|
|
223
252
|
}
|
|
224
253
|
setVisibleByPanoIndex() {
|
|
225
254
|
this.tags.forEach((e) => {
|
|
226
|
-
const
|
|
227
|
-
e.state && (e.state.visible =
|
|
255
|
+
const t = this.getVisibleByPanoIndex(e);
|
|
256
|
+
e.state && (e.state.visible = t);
|
|
228
257
|
});
|
|
229
258
|
}
|
|
230
259
|
setUnfoldedByPanoIndex() {
|
|
231
260
|
this.tags.forEach((e) => {
|
|
232
|
-
const
|
|
233
|
-
if (!!e.state && (
|
|
261
|
+
const t = this.getUnfoldedByPanoIndex(e);
|
|
262
|
+
if (!!e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
|
|
234
263
|
const i = this.getTagConfig(e);
|
|
235
264
|
typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoUnfoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
236
265
|
}
|
|
@@ -239,26 +268,32 @@ class O extends V {
|
|
|
239
268
|
getTagProject(e) {
|
|
240
269
|
if (!this.getVisibleByPanoIndex(e))
|
|
241
270
|
return;
|
|
242
|
-
const i =
|
|
243
|
-
if (!(
|
|
244
|
-
return { x:
|
|
271
|
+
const i = T(e.position), { x: s, y: o, z: f } = i.project(this.five.camera);
|
|
272
|
+
if (!(f > 1))
|
|
273
|
+
return { x: s, y: o, z: f };
|
|
245
274
|
}
|
|
246
275
|
filterPointTag() {
|
|
247
|
-
return this.tags.filter((e) => e.
|
|
276
|
+
return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint");
|
|
248
277
|
}
|
|
249
|
-
|
|
250
|
-
return this.tags.filter((e) => e.
|
|
278
|
+
filter2DPointTag() {
|
|
279
|
+
return this.tags.filter((e) => e.stickType === "2DPoint");
|
|
251
280
|
}
|
|
252
281
|
filter3DPointTag() {
|
|
253
|
-
return this.tags.filter((e) => e.
|
|
282
|
+
return this.tags.filter((e) => e.stickType === "3DPoint");
|
|
254
283
|
}
|
|
255
284
|
filter3DTag() {
|
|
256
|
-
return this.tags.filter((e) => e.
|
|
285
|
+
return this.tags.filter((e) => e.stickType === "3DPoint" || e.stickType === "Plane");
|
|
257
286
|
}
|
|
258
287
|
filterPlaneTag() {
|
|
259
|
-
return this.tags.filter((e) => e.
|
|
288
|
+
return this.tags.filter((e) => e.stickType === "Plane");
|
|
289
|
+
}
|
|
290
|
+
updateTagConfig(e) {
|
|
291
|
+
e != null && e.force && this.clearCache(), this.tags.forEach((t) => {
|
|
292
|
+
const i = this.getTagConfig(t);
|
|
293
|
+
t.mergedConfig = i;
|
|
294
|
+
});
|
|
260
295
|
}
|
|
261
296
|
}
|
|
262
297
|
export {
|
|
263
|
-
|
|
298
|
+
Y as TagComputer
|
|
264
299
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Tag, PartialDeep, TagId, Tags, State, AddTagConfig, LoadTagConfig } from '../typings';
|
|
2
|
+
import type { TagContentType } from '..';
|
|
3
|
+
import type { ArrayPosition } from '../typings';
|
|
1
4
|
import { Five } from '@realsee/five';
|
|
2
|
-
import type { Tag, ContentType, PartialDeep, TagId, Tags, State, AddTagConfig } from '../typings';
|
|
3
5
|
import { TagComputer } from './TagComputer';
|
|
4
|
-
import { ArrayPosition } from '../typings';
|
|
5
6
|
export declare const pluginFlag: (name: string) => string;
|
|
6
7
|
declare class PanoTagPluginController extends TagComputer {
|
|
7
8
|
/** 版本号 */
|
|
@@ -22,16 +23,10 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
22
23
|
/** 临时状态 */
|
|
23
24
|
private temporaryState;
|
|
24
25
|
private mediaStore;
|
|
26
|
+
private isIOSWX;
|
|
25
27
|
private store;
|
|
26
|
-
private staticUrl;
|
|
27
28
|
constructor(five: Five, params?: {
|
|
28
29
|
debug?: boolean;
|
|
29
|
-
mergePluginDefaultConfigToLoadDataConfig?: boolean;
|
|
30
|
-
staticConfig?: {
|
|
31
|
-
host?: string;
|
|
32
|
-
protocol?: string;
|
|
33
|
-
port?: number;
|
|
34
|
-
} | string;
|
|
35
30
|
config?: {
|
|
36
31
|
globalConfig?: Tags['globalConfig'];
|
|
37
32
|
contentTypeConfig?: Tags['contentTypeConfig'];
|
|
@@ -40,11 +35,19 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
40
35
|
/**
|
|
41
36
|
* @description: 加载数据
|
|
42
37
|
*/
|
|
43
|
-
load(data: Tags, config?:
|
|
38
|
+
load(data: Tags, config?: LoadTagConfig): Promise<boolean>;
|
|
44
39
|
/**
|
|
45
40
|
* @description: 添加标签
|
|
46
41
|
*/
|
|
47
|
-
addTag(tag: Tag | Tag[], config?: AddTagConfig):
|
|
42
|
+
addTag(tag: Tag | Tag[], config?: AddTagConfig): Promise<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* @description: 改变配置
|
|
45
|
+
*/
|
|
46
|
+
changeConfig(config: TagComputer['config'], merge?: boolean): void;
|
|
47
|
+
/**
|
|
48
|
+
* @description: 改变全局配置
|
|
49
|
+
*/
|
|
50
|
+
changeGlobalConfig(globalConfig: TagComputer['config']['globalConfig'], merge?: boolean): void;
|
|
48
51
|
clearTags(): void;
|
|
49
52
|
show(params?: {
|
|
50
53
|
userAction?: boolean;
|
|
@@ -68,6 +71,7 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
68
71
|
userAction?: boolean;
|
|
69
72
|
visibleWithAnimation?: boolean;
|
|
70
73
|
}): void;
|
|
74
|
+
changeUnfoldedById(id: TagId, unfolded: boolean): void;
|
|
71
75
|
/**
|
|
72
76
|
* @description: 修改3D标签normal
|
|
73
77
|
*/
|
|
@@ -75,12 +79,18 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
75
79
|
/**
|
|
76
80
|
* @description: 改变data
|
|
77
81
|
*/
|
|
78
|
-
changeDataById<C extends
|
|
82
|
+
changeDataById<C extends TagContentType = any>(id: TagId, data: PartialDeep<Tag<C>['data']>, deepMerge?: boolean): void;
|
|
83
|
+
/**
|
|
84
|
+
* @description: 改变tag的stickType
|
|
85
|
+
*/
|
|
86
|
+
changeStickTypeById<C extends TagContentType = any>(id: TagId, data: PartialDeep<{
|
|
87
|
+
[P in keyof Pick<Tag<C>, 'stickType' | 'position' | 'normal' | 'data'>]: Tag[P];
|
|
88
|
+
}>, deepMerge?: boolean): void;
|
|
79
89
|
/**
|
|
80
90
|
* @description: 改变tag任意属性
|
|
81
91
|
*/
|
|
82
|
-
changeTagById<C extends
|
|
83
|
-
[P in keyof Pick<Tag<C>, 'enabled' | 'style' | '
|
|
92
|
+
changeTagById<C extends TagContentType = any>(id: TagId, tag: PartialDeep<{
|
|
93
|
+
[P in keyof Pick<Tag<C>, 'enabled' | 'style' | 'stickType' | 'contentType' | 'data' | 'normal'>]: Tag[P];
|
|
84
94
|
}>, deepMerge?: boolean): void;
|
|
85
95
|
/**
|
|
86
96
|
* @description: 销毁tag
|
|
@@ -101,6 +111,7 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
101
111
|
* @description: 添加 cameraUpdate, panoArrived 等事件监听
|
|
102
112
|
*/
|
|
103
113
|
private addEventListener;
|
|
114
|
+
private loadVideoFirstFrame;
|
|
104
115
|
private addResizeListener;
|
|
105
116
|
private addResizeObserver;
|
|
106
117
|
/**
|