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