@realsee/dnalogel 2.13.2 → 2.14.0-dev.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/Controller.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/typing.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
- package/dist/Object3DHelperPlugin/Controller.d.ts +1 -3
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -4
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
- package/dist/PanoTagPlugin/typings/controller.d.ts +4 -6
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
- package/{libs/PanoTagPlugin/utils/model/imageModel.d.ts → dist/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
- package/dist/index.cjs.js +47 -47
- package/dist/index.js +5101 -5083
- package/dist/index.umd.js +43 -43
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
- package/{libs/shared-utils/Object3DHelper/utils → dist/shared-utils}/threex/domevents/index.d.ts +9 -7
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -31
- 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 +90 -222
- 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 +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -8
- package/docs/functions/CameraMovementPlugin.html +5 -8
- package/docs/functions/CruisePlugin.html +5 -8
- package/docs/functions/GuideLinePlugin.html +5 -8
- package/docs/functions/ItemLabelPlugin.html +5 -8
- package/docs/functions/MapviewFloorplanPlugin.html +5 -8
- package/docs/functions/ModelChassisCompassPlugin.html +5 -8
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -8
- package/docs/functions/ModelFloorplanPlugin.html +5 -8
- package/docs/functions/ModelItemLabelPlugin.html +5 -8
- package/docs/functions/ModelRoomLabelPlugin.html +5 -8
- package/docs/functions/ModelTVVideoPlugin.html +5 -8
- package/docs/functions/ModelViewPlugin.html +5 -8
- package/docs/functions/Object3DHelperPlugin.html +5 -8
- package/docs/functions/PanoCompassPlugin.html +5 -8
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -8
- package/docs/functions/PanoDoorLabelPlugin.html +5 -8
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -8
- package/docs/functions/PanoMeasurePlugin.html +5 -8
- package/docs/functions/PanoRulerPlugin.html +5 -8
- package/docs/functions/PanoRulerProPlugin.html +5 -8
- package/docs/functions/PanoSpatialTagPlugin.html +5 -8
- package/docs/functions/PanoTagPlugin.html +5 -8
- package/docs/functions/PanoVideoPlugin.html +5 -8
- package/docs/functions/TopviewFloorplanPlugin.html +5 -8
- 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 +5 -8
- package/docs/index.html +4 -7
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.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 +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/ObjectHelperControllers.html +9 -9
- 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 +5 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- 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 +5 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -8
- 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/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.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 +5 -8
- package/docs/interfaces/Rooms.html +5 -8
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +10 -10
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -10
- package/docs/types/ArrayPosition.html +5 -8
- package/docs/types/AudioAppearance.html +5 -8
- package/docs/types/AudioTagTypeConfigKey.html +5 -8
- package/docs/types/CSS3DRenderExportType.html +5 -8
- package/docs/types/CSS3DRenderPluginExportType.html +5 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -8
- package/docs/types/ClassFunctionParameters.html +5 -8
- package/docs/types/Color.html +5 -8
- package/docs/types/ContentTypeConfigKey.html +5 -8
- package/docs/types/ContentTypeConfigKeySplit.html +5 -8
- package/docs/types/ContentTypeMap.html +5 -8
- package/docs/types/Create3DDomContainerReturnType.html +5 -8
- package/docs/types/Create3DElementReturnType.html +5 -8
- package/docs/types/CruisePluginExportType.html +5 -8
- package/docs/types/Direction-1.html +5 -8
- package/docs/types/Direction4.html +5 -8
- package/docs/types/FloorplanRuleLabels.html +5 -8
- package/docs/types/FloorplanServerRuleLabels.html +5 -8
- package/docs/types/GuideLinePluginExportType.html +5 -8
- package/docs/types/HelperEventMap.html +5 -8
- package/docs/types/LoadTagConfig.html +5 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -8
- package/docs/types/MediaData.html +5 -8
- package/docs/types/MediaStore.html +5 -8
- package/docs/types/ModelElement.html +5 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -8
- package/docs/types/MoveArgs.html +5 -8
- package/docs/types/MoveOpts.html +5 -8
- package/docs/types/Object3DHelperEventMap.html +5 -8
- package/docs/types/ObjectFit.html +5 -8
- package/docs/types/PaintBrushEventMap.html +5 -8
- package/docs/types/PanoCompassPluginData.html +5 -8
- package/docs/types/PanoCompassPluginExportType.html +5 -8
- package/docs/types/PanoCompassPluginParameterType.html +5 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -8
- package/docs/types/PanoIndex.html +5 -8
- package/docs/types/PanoMeasurePluginEvent.html +5 -8
- package/docs/types/PanoMeasureReturnType.html +5 -8
- package/docs/types/PanoSpatialTagPluginId.html +5 -8
- package/docs/types/PanoTagPluginExportInterface.html +5 -8
- package/docs/types/PanoTagPluginParamsInterface.html +5 -8
- package/docs/types/PanoVideoPluginParameterType.html +5 -8
- package/docs/types/PanoVideoPluginReturnType.html +5 -8
- package/docs/types/PlaneTag.html +5 -8
- package/docs/types/PlaneTagElement.html +5 -8
- package/docs/types/Point2DElement.html +5 -8
- package/docs/types/Point2DTag.html +5 -8
- package/docs/types/Point3DElement.html +5 -8
- package/docs/types/Point3DTag.html +5 -8
- package/docs/types/PointTag.html +5 -8
- package/docs/types/PointTagElement.html +5 -8
- package/docs/types/Position.html +5 -8
- package/docs/types/RotateArgs.html +5 -8
- package/docs/types/RotateOpts.html +5 -8
- package/docs/types/RuleLabelsKey.html +5 -8
- package/docs/types/RuleLabelsValue.html +5 -8
- package/docs/types/StickType.html +5 -8
- package/docs/types/Tag.html +6 -9
- package/docs/types/Tag2D.html +5 -8
- package/docs/types/Tag3D.html +5 -8
- package/docs/types/TagContentType.html +5 -8
- package/docs/types/TagDimensionType.html +5 -8
- package/docs/types/TagElement.html +6 -9
- package/docs/types/TagEvents.html +5 -8
- package/docs/types/TagGLTFObject.html +5 -8
- package/docs/types/TagHooks.html +5 -8
- package/docs/types/TagIconSize.html +5 -8
- package/docs/types/TagId.html +5 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -8
- package/docs/types/WorkCode.html +5 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -8
- package/docs/variables/PLUGIN.html +6 -9
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -8
- package/docs/variables/ROOM_TYPE_MAP.html +5 -8
- package/docs/variables/itemLabelPluginServerParams.html +5 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +2 -4
- package/libs/CSS3DRenderPlugin/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/typing.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +21 -21
- package/libs/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
- package/libs/CSS3DRenderPlugin/{CSS3DRender.js → utils/three/CSS3DRender.js} +13 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -11
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -3
- package/libs/Object3DHelperPlugin/Controller.js +50 -52
- package/libs/Object3DHelperPlugin/index.js +3 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +7 -0
- package/libs/PanoTagPlugin/Archive/deprecated.js +4 -0
- package/libs/PanoTagPlugin/Archive/index.d.ts +1 -0
- package/libs/PanoTagPlugin/Archive/index.js +4 -0
- package/libs/PanoTagPlugin/Components/Common/Audio.js +93 -97
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +206 -205
- package/libs/PanoTagPlugin/Components/Common/Media.js +115 -109
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +100 -100
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +66 -68
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +14 -15
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +101 -106
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +82 -84
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +62 -61
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +49 -48
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +52 -51
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +108 -115
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +25 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +49 -50
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +68 -70
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +55 -54
- package/libs/PanoTagPlugin/Components/Tag/index.js +153 -163
- package/libs/PanoTagPlugin/Components/TagContainer.js +5 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +80 -87
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
- package/libs/PanoTagPlugin/controller/TagComputer.js +80 -58
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +161 -153
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +179 -77
- package/libs/PanoTagPlugin/controller/index.js +54 -49
- package/libs/PanoTagPlugin/index.js +16 -16
- 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/typings/controller.d.ts +4 -6
- package/libs/PanoTagPlugin/typings/index.js +7 -5
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -3
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +6 -4
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/{dist/PanoTagPlugin/utils/model/imageModel.d.ts → libs/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +33 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +8 -4
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +31 -33
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/three/index.js +1 -1
- package/{dist/shared-utils/Object3DHelper/utils → libs/shared-utils}/threex/domevents/index.d.ts +9 -7
- package/libs/shared-utils/{Object3DHelper/utils/threex → threex}/domevents/index.js +4 -3
- package/package.json +1 -1
- package/docs/enums/PointType.html +0 -72
- package/docs/types/TagPointType.html +0 -272
- package/docs/variables/VERSION.html +0 -269
- package/libs/PanoTagPlugin/tsconfig.js +0 -9
- package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var o = (
|
|
1
|
+
var j = Object.defineProperty;
|
|
2
|
+
var w = (l, m, t) => m in l ? j(l, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[m] = t;
|
|
3
|
+
var d = (l, m, t) => (w(l, typeof m != "symbol" ? m + "" : m, t), t);
|
|
4
|
+
var T = (l, m, t) => new Promise((e, i) => {
|
|
5
|
+
var o = (r) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
i(
|
|
7
|
+
a(t.next(r));
|
|
8
|
+
} catch (s) {
|
|
9
|
+
i(s);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, n = (r) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
i(
|
|
13
|
+
a(t.throw(r));
|
|
14
|
+
} catch (s) {
|
|
15
|
+
i(s);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, n);
|
|
18
|
+
a((t = t.apply(l, m)).next());
|
|
19
19
|
});
|
|
20
|
-
import { TagComputer as
|
|
21
|
-
import { Group as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
20
|
+
import { TagComputer as O } from "./TagComputer.js";
|
|
21
|
+
import { Group as D, Quaternion as x, Vector3 as h, Matrix4 as u } from "three";
|
|
22
|
+
import G from "../Components/TagContainer.js";
|
|
23
|
+
import k from "../Components/Tag/index.js";
|
|
24
|
+
import { arrayPositionToVector3 as P } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
+
import { centerPoint as A } from "../../shared-utils/three/centerPoint.js";
|
|
26
|
+
import "@realsee/five/gltf-loader";
|
|
27
|
+
import R from "../utils/model/imagePlane.js";
|
|
28
|
+
import { isMediaModelTag as b } from "../utils/tag/tagCheck.js";
|
|
29
|
+
import { CSS3DRenderPlugin as E } from "../../CSS3DRenderPlugin/index.js";
|
|
30
|
+
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
|
+
import "@realsee/five";
|
|
31
32
|
import "../utils/tagPosition.js";
|
|
32
|
-
import "../../shared-utils/three/
|
|
33
|
+
import "../../shared-utils/three/loadTexture.js";
|
|
33
34
|
import "../utils/checkRange.js";
|
|
34
35
|
import "hammerjs";
|
|
35
|
-
import "@realsee/five";
|
|
36
36
|
import "@tweenjs/tween.js";
|
|
37
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
37
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
38
38
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
39
39
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
40
40
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -52,11 +52,14 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
52
52
|
import "./TagUtil.js";
|
|
53
53
|
import "object-assign-deep";
|
|
54
54
|
import "../tag.config.js";
|
|
55
|
+
import "../utils/planeNormal.js";
|
|
56
|
+
import "../utils/normalPositionToPositions.js";
|
|
55
57
|
import "./TagCache.js";
|
|
56
58
|
import "../../base/BasePlugin.js";
|
|
57
59
|
import "../../vendor/svelte/store/index.js";
|
|
58
60
|
import "../../vendor/svelte/internal/index.js";
|
|
59
61
|
import "../utils/device.js";
|
|
62
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
60
63
|
import "../Components/TagItem.js";
|
|
61
64
|
import "../utils/noTypecheck.js";
|
|
62
65
|
import "../Components/Common/TagPoint.js";
|
|
@@ -128,163 +131,172 @@ import "../Components/Tag/LinkTag.js";
|
|
|
128
131
|
import "../Components/Tag/CustomTag.js";
|
|
129
132
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
130
133
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
const t = e.data.modelUrl;
|
|
145
|
-
if (!t)
|
|
134
|
+
class Ue extends O {
|
|
135
|
+
constructor(t) {
|
|
136
|
+
super(t);
|
|
137
|
+
d(this, "group", new D());
|
|
138
|
+
d(this, "imagePlaneGroup", new D());
|
|
139
|
+
d(this, "gltfObjectGroup", new D());
|
|
140
|
+
d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
141
|
+
d(this, "temporaryState", { visible: !0 });
|
|
142
|
+
d(this, "TagContainerSvelte");
|
|
143
|
+
d(this, "loadModel", (t) => T(this, null, function* () {
|
|
144
|
+
var r;
|
|
145
|
+
const e = t.data.modelUrl;
|
|
146
|
+
if (!e)
|
|
146
147
|
return;
|
|
147
|
-
const i =
|
|
148
|
-
|
|
148
|
+
const i = V(e).then((s) => Object.assign(s.scene, { customID: t.id, isTagModel: !0 }));
|
|
149
|
+
t.model = { promise: i };
|
|
149
150
|
const o = yield i;
|
|
150
|
-
if (((
|
|
151
|
+
if (((r = t.model) == null ? void 0 : r.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
|
|
151
152
|
return;
|
|
152
|
-
o.visible =
|
|
153
|
-
const
|
|
154
|
-
|
|
153
|
+
o.visible = this.getCurrentVisibleState(t), new u().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFloorIndex(t);
|
|
154
|
+
const a = this.gltfObjectGroup.children.find((s) => s.customID === t.id);
|
|
155
|
+
if (a && this.gltfObjectGroup.remove(a), this.can("renderByMesh", t)) {
|
|
156
|
+
if (!t.imagePlane) {
|
|
157
|
+
const s = t.data.mediaPosition.map(P);
|
|
158
|
+
t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(P));
|
|
159
|
+
const p = new h().addVectors(s[0], s[2]).divideScalar(2);
|
|
160
|
+
t.imagePlane.position.copy(p), o.add(t.imagePlane);
|
|
161
|
+
}
|
|
162
|
+
} else
|
|
163
|
+
this.updateTagCss3DObjectMatrix(t, o);
|
|
164
|
+
return this.gltfObjectGroup.add(o), o;
|
|
155
165
|
}));
|
|
156
166
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
157
167
|
}
|
|
158
168
|
clearTags() {
|
|
159
|
-
this.tags.forEach((
|
|
160
|
-
var
|
|
161
|
-
(i = (
|
|
169
|
+
this.tags.forEach((t) => {
|
|
170
|
+
var e, i;
|
|
171
|
+
(i = (e = t.imagePlane) == null ? void 0 : e.parent) == null || i.remove(t.imagePlane);
|
|
162
172
|
}), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
163
173
|
}
|
|
164
174
|
updateRenderAllTags() {
|
|
165
|
-
this.enabledModelTagSet.clear(), this.tags.forEach((
|
|
175
|
+
this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane();
|
|
166
176
|
}
|
|
167
|
-
|
|
168
|
-
this.sort(
|
|
169
|
-
var
|
|
170
|
-
const i = (
|
|
171
|
-
!i || (
|
|
177
|
+
updateRenderImagePlane() {
|
|
178
|
+
this.sort(this.filterImagePlane).forEach((e) => {
|
|
179
|
+
var n, a, r, s;
|
|
180
|
+
const i = (n = e.data.mediaData[0]) == null ? void 0 : n.url;
|
|
181
|
+
if (!i || (e.imagePlane && (e.imagePlane.visible = (r = (a = e.state) == null ? void 0 : a.visible) != null ? r : !0), ((s = e.imagePlane) == null ? void 0 : s.imageSrc) === i))
|
|
182
|
+
return;
|
|
183
|
+
const o = e.position.map(P);
|
|
184
|
+
e.imagePlane = new R(i, o), e.imagePlane.setMatrixByCornerPoints(o), this.imagePlaneGroup.add(e.imagePlane);
|
|
172
185
|
});
|
|
173
186
|
}
|
|
174
|
-
|
|
175
|
-
this.sort([...this.filter3DTag]).forEach((
|
|
176
|
-
var
|
|
177
|
-
if (
|
|
178
|
-
const { svelteApp:
|
|
179
|
-
if (
|
|
180
|
-
const
|
|
181
|
-
|
|
187
|
+
updateRender3DDomTag() {
|
|
188
|
+
this.sort([...this.filter3DTag]).forEach((e) => {
|
|
189
|
+
var i;
|
|
190
|
+
if (e.tag3DContentSvelte) {
|
|
191
|
+
const { svelteApp: o, domContainer: n, initialNormal: a, currentNormal: r } = e.tag3DContentSvelte;
|
|
192
|
+
if (o.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !a.equals(r)) {
|
|
193
|
+
const s = new x().setFromUnitVectors(a, r);
|
|
194
|
+
n.css3DObject.setRotationFromQuaternion(s);
|
|
182
195
|
}
|
|
183
196
|
return;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (
|
|
191
|
-
return
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (!o)
|
|
212
|
-
return;
|
|
213
|
-
const s = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, s);
|
|
214
|
-
!r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
215
|
-
svelteApp: new A({
|
|
216
|
-
target: r.container,
|
|
217
|
-
props: {
|
|
218
|
-
tag: t,
|
|
219
|
-
hooks: this.hooks,
|
|
220
|
-
state: this.state,
|
|
221
|
-
mediaStore: this.mediaStore,
|
|
222
|
-
temporaryState: this.temporaryState
|
|
197
|
+
} else {
|
|
198
|
+
if (((i = e.state) == null ? void 0 : i.visible) === !1)
|
|
199
|
+
return;
|
|
200
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = E(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
201
|
+
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
202
|
+
const o = this.getPositions(e);
|
|
203
|
+
if (!o)
|
|
204
|
+
return;
|
|
205
|
+
const n = this.getTagNormal(e);
|
|
206
|
+
if (!n)
|
|
207
|
+
return;
|
|
208
|
+
const a = this.getTagConfig(e), r = a.tag3DConfig;
|
|
209
|
+
if (a.renderType === "Mesh" && r) {
|
|
210
|
+
r.mode = "behind", r.container = document.createElement("div");
|
|
211
|
+
const p = "black";
|
|
212
|
+
r.container.style.backgroundColor = p, r.container.style.border = `3px solid ${p}`;
|
|
213
|
+
}
|
|
214
|
+
const s = this.css3DRenderPlugin.create3DDomContainer(o, r);
|
|
215
|
+
if (!s)
|
|
216
|
+
return;
|
|
217
|
+
this.store.css3DRenderDisposer.set(e.id, [s.dispose]), this.css3DRenderPlugin.hooks.on("render", () => {
|
|
218
|
+
var p;
|
|
219
|
+
if (s.css3DObject.opacityMesh) {
|
|
220
|
+
const g = this.addObjectClickHandler(e, s.css3DObject.opacityMesh, (f) => {
|
|
221
|
+
this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
|
|
222
|
+
});
|
|
223
|
+
(p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(g);
|
|
223
224
|
}
|
|
224
|
-
}),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
}), e.tag3DContentSvelte = {
|
|
226
|
+
svelteApp: new k({
|
|
227
|
+
target: s.container,
|
|
228
|
+
props: {
|
|
229
|
+
tag: e,
|
|
230
|
+
hooks: this.hooks,
|
|
231
|
+
state: this.state,
|
|
232
|
+
mediaStore: this.mediaStore,
|
|
233
|
+
temporaryState: this.temporaryState
|
|
234
|
+
}
|
|
235
|
+
}),
|
|
236
|
+
domContainer: s,
|
|
237
|
+
initialNormal: n,
|
|
238
|
+
currentNormal: n
|
|
239
|
+
};
|
|
240
|
+
}
|
|
229
241
|
}), this.clearUnusedPanelTag();
|
|
230
242
|
}
|
|
231
243
|
updateRenderModelTag() {
|
|
232
|
-
const
|
|
233
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(
|
|
244
|
+
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
245
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(b).forEach((i) => {
|
|
234
246
|
var o;
|
|
235
|
-
(o = i.model) == null || o.promise.then((
|
|
236
|
-
|
|
247
|
+
(o = i.model) == null || o.promise.then((n) => {
|
|
248
|
+
n.visible = this.getCurrentVisibleState(i);
|
|
237
249
|
});
|
|
238
250
|
});
|
|
239
251
|
}
|
|
240
252
|
updateTagModelVisible() {
|
|
241
|
-
this.tags.forEach((
|
|
242
|
-
var
|
|
243
|
-
|
|
253
|
+
this.tags.forEach((t) => {
|
|
254
|
+
var e;
|
|
255
|
+
t.imagePlane && (t.imagePlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
|
|
244
256
|
});
|
|
245
257
|
}
|
|
246
|
-
updateTagCss3DObjectMatrix(
|
|
247
|
-
var
|
|
248
|
-
const i = (
|
|
258
|
+
updateTagCss3DObjectMatrix(t, e) {
|
|
259
|
+
var S, v, M, y;
|
|
260
|
+
const i = (M = (v = (S = t.mergedConfig) == null ? void 0 : S.tag3DConfig) == null ? void 0 : v.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.domContainer.css3DObject;
|
|
249
261
|
if (!o)
|
|
250
262
|
return;
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
|
|
263
|
+
const n = b(t) ? t.data.mediaPosition : t.position;
|
|
264
|
+
e.updateWorldMatrix(!1, !1);
|
|
265
|
+
const a = e.matrixWorld, r = new h().fromArray(n[0]), s = new h().fromArray(n[2]), p = A(r, s).add(new h(0, 0, 5e-4)), g = new u().setPosition(p), f = new u().makeScale(i, i, i), C = new u().multiply(a).multiply(g).multiply(f);
|
|
266
|
+
C.decompose(o.position, o.quaternion, o.scale);
|
|
255
267
|
const c = o.opacityMesh;
|
|
256
|
-
|
|
268
|
+
c && C.decompose(c.position, c.quaternion, c.scale);
|
|
257
269
|
}
|
|
258
|
-
addMediaModelTag(
|
|
259
|
-
return
|
|
260
|
-
const
|
|
261
|
-
yield Promise.all(
|
|
270
|
+
addMediaModelTag(t) {
|
|
271
|
+
return T(this, null, function* () {
|
|
272
|
+
const e = t.filter(b).map((i) => this.loadModel(i));
|
|
273
|
+
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
262
274
|
});
|
|
263
275
|
}
|
|
264
276
|
updateRenderPointTag() {
|
|
265
|
-
var
|
|
266
|
-
const
|
|
277
|
+
var e;
|
|
278
|
+
const t = this.sort(this.filterPointTag);
|
|
267
279
|
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
268
|
-
this.TagContainerSvelte.$set({ tags:
|
|
280
|
+
this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
|
|
269
281
|
else {
|
|
270
|
-
const i = (
|
|
282
|
+
const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
271
283
|
if (!i)
|
|
272
284
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
273
|
-
this.TagContainerSvelte = new
|
|
285
|
+
this.TagContainerSvelte = new G({
|
|
274
286
|
target: i,
|
|
275
|
-
props: { hooks: this.hooks, tags:
|
|
287
|
+
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
276
288
|
});
|
|
277
289
|
}
|
|
278
290
|
}
|
|
279
291
|
updateTagContainerVisible() {
|
|
280
|
-
var
|
|
281
|
-
(
|
|
292
|
+
var t;
|
|
293
|
+
(t = this.TagContainerSvelte) == null || t.$set({
|
|
282
294
|
state: this.state,
|
|
283
295
|
temporaryState: this.temporaryState,
|
|
284
296
|
withAnimation: this.store.visibleWithAnimation
|
|
285
|
-
}), this.filter3DTag.forEach((
|
|
286
|
-
var i, o,
|
|
287
|
-
(
|
|
297
|
+
}), this.filter3DTag.forEach((e) => {
|
|
298
|
+
var i, o, n, a, r;
|
|
299
|
+
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
|
|
288
300
|
state: this.state,
|
|
289
301
|
temporaryState: this.temporaryState,
|
|
290
302
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -292,25 +304,21 @@ class $e extends w {
|
|
|
292
304
|
});
|
|
293
305
|
}
|
|
294
306
|
disposeAllCSS3DContainer() {
|
|
295
|
-
for (const [
|
|
296
|
-
|
|
307
|
+
for (const [t, e] of this.store.css3DRenderDisposer)
|
|
308
|
+
e == null || e.forEach((i) => i == null ? void 0 : i());
|
|
297
309
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
298
310
|
}
|
|
299
311
|
clearUnusedPanelTag() {
|
|
300
|
-
this.filter2DPointTag.forEach((
|
|
301
|
-
var
|
|
302
|
-
(
|
|
312
|
+
this.filter2DPointTag.forEach((t) => {
|
|
313
|
+
var e;
|
|
314
|
+
(e = t.tag3DContentSvelte) == null || e.domContainer.dispose(), t.tag3DContentSvelte = void 0;
|
|
303
315
|
});
|
|
304
|
-
for (const [
|
|
305
|
-
const i = this.getTagById(
|
|
306
|
-
(!i || i.stickType === "2DPoint") && (
|
|
316
|
+
for (const [t, e] of this.store.css3DRenderDisposer) {
|
|
317
|
+
const i = this.getTagById(t);
|
|
318
|
+
(!i || i.stickType === "2DPoint") && (e == null || e.forEach((o) => o == null ? void 0 : o()), this.store.css3DRenderDisposer.delete(t));
|
|
307
319
|
}
|
|
308
320
|
}
|
|
309
|
-
updateTagCss3DObjectVisible(e) {
|
|
310
|
-
var t, i, o, s, r;
|
|
311
|
-
(r = (i = (t = e.tag3DContentSvelte) == null ? void 0 : t.domContainer) == null ? void 0 : i.css3DObject) == null || r.setVisible((s = this.state.visible && ((o = e.state) == null ? void 0 : o.visible)) != null ? s : !0), this.five.needsRender = !0;
|
|
312
|
-
}
|
|
313
321
|
}
|
|
314
322
|
export {
|
|
315
|
-
|
|
323
|
+
Ue as TagRender
|
|
316
324
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { TagElement, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore } from '../typings';
|
|
2
|
+
import * as THREE from 'three';
|
|
2
3
|
import type { Tag, Tags, Point2DElement, Point3DElement, PlaneTagElement, PointTagElement, Point3DTag, ModelElement } from '../typings';
|
|
3
4
|
import { TagCache } from './TagCache';
|
|
4
5
|
import { CSS3DRenderPluginExportType } from '../../CSS3DRenderPlugin';
|
|
5
6
|
import { Five } from '@realsee/five';
|
|
6
7
|
export declare abstract class TagUtil extends TagCache {
|
|
7
|
-
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
8
8
|
tags: TagElement[];
|
|
9
|
+
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
9
10
|
protected mediaStore: MediaStore;
|
|
10
11
|
/** css3DRenderPlugin */
|
|
11
12
|
protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
|
|
@@ -13,13 +14,15 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
13
14
|
/** 清理函数数组 */
|
|
14
15
|
disposers: (() => any)[];
|
|
15
16
|
visibleWithAnimation?: boolean;
|
|
16
|
-
css3DRenderDisposer: Map<TagId, () =>
|
|
17
|
+
css3DRenderDisposer: Map<TagId, (() => any)[]>;
|
|
17
18
|
eventListenerDisposer?: () => void;
|
|
18
19
|
resizeObserverDisposer?: () => void;
|
|
19
20
|
resizeObserverDisposerAdding: boolean;
|
|
20
21
|
disposed: boolean;
|
|
21
22
|
};
|
|
22
23
|
protected get isPanorama(): boolean;
|
|
24
|
+
private domEvents?;
|
|
25
|
+
private mouseInfo?;
|
|
23
26
|
protected constructor(five: Five);
|
|
24
27
|
getTagById<C extends TagContentType = any, S extends StickType = any>(id: TagId): TagElement<C, S> | undefined;
|
|
25
28
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
@@ -33,7 +36,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
33
36
|
protected updateTagConfig(params?: {
|
|
34
37
|
force?: boolean;
|
|
35
38
|
}): void;
|
|
36
|
-
protected can<T extends TagElement<any, any>>(action: 'show' | 'hide' | 'fold' | 'unfold' | 'renderByMesh', paramsTag: T): boolean;
|
|
39
|
+
protected can<T extends TagElement<any, any>>(action: 'show' | 'hide' | 'fold' | 'unfold' | 'renderByMesh' | 'renderByMeshDom', paramsTag: T): boolean;
|
|
37
40
|
/**
|
|
38
41
|
* @description: 获取角度
|
|
39
42
|
*/
|
|
@@ -42,10 +45,15 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
42
45
|
* @description: 获取距离
|
|
43
46
|
*/
|
|
44
47
|
protected getDistance(tag: Tag<any, any>, panoIndex?: number): number;
|
|
48
|
+
protected getPositions(tag: TagElement<any, any>): any;
|
|
49
|
+
protected fiveWantMovePanoHandler: (panoIndex: number) => false | void;
|
|
50
|
+
protected addObjectClickHandler(tag: TagElement, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
51
|
+
protected getTagNormal(tag: TagElement<any, 'Plane'> | TagElement<any, 'Model'> | TagElement<any, '3DPoint'>): THREE.Vector3;
|
|
45
52
|
protected get filterPointTag(): PointTagElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
|
|
46
53
|
protected get filter2DPointTag(): Point2DElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
|
|
47
54
|
protected get filter3DPointTag(): Point3DElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
|
|
48
|
-
protected get
|
|
55
|
+
protected get filterImagePlane(): PlaneTagElement<"MediaPlane">[];
|
|
56
|
+
protected get filterMediaModel(): ModelElement<"MediaModel">[];
|
|
49
57
|
protected get filterModelTag(): ModelElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
|
|
50
58
|
protected get filter3DTag(): (TagElement<any, "Plane"> | TagElement<any, "Model"> | TagElement<any, "3DPoint">)[];
|
|
51
59
|
/**
|