@realsee/dnalogel 2.14.2-alpha.1 → 2.14.2
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/typing.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +3 -3
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
- package/dist/CameraMovementPlugin/typing.d.ts +4 -4
- package/dist/CruisePlugin/typing.d.ts +4 -4
- package/dist/GuideLinePlugin/typing.d.ts +1 -1
- package/dist/ItemLabelPlugin/events.type.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/events.type.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/index.d.ts +1 -1
- package/dist/Object3DHelperPlugin/typings.d.ts +2 -2
- package/dist/PanoCompassPlugin/index.d.ts +1 -1
- package/dist/PanoCompassPlugin/typings.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +6 -6
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/PanoRulerPlugin/typings.d.ts +1 -1
- package/dist/PanoRulerProPlugin/typings.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/dist/PanoTagPlugin/index.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +11 -11
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +5 -5
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +19 -19
- package/dist/PanoVideoPlugin/index.d.ts +2 -2
- package/dist/base/BasePlugin.d.ts +1 -1
- package/dist/base/BasePluginWithData.d.ts +1 -1
- package/dist/components/PaintBrush/Subscribe.d.ts +1 -1
- package/dist/components/PaintBrush/typings.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/index.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +4 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +2 -2
- package/dist/floorplan/typings/floorplanData.d.ts +3 -3
- package/dist/floorplan/typings/floorplanServerData.d.ts +1 -1
- package/dist/floorplan/typings/utility.d.ts +2 -2
- package/dist/index.cjs.js +29 -29
- package/dist/index.js +1188 -1192
- package/dist/index.umd.js +34 -34
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +2 -2
- package/dist/shared-utils/three/PointHelper.d.ts +3 -3
- package/dist/typings/math.type.d.ts +3 -3
- package/docs/assets/highlight.css +6 -6
- package/docs/assets/main.js +56 -52
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +27 -5
- package/docs/classes/CSS3DRender.html +36 -36
- 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 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +37 -37
- 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 +46 -46
- 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 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +5 -5
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +5 -5
- package/docs/functions/PanoVideoPlugin.html +5 -5
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- 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 -5
- package/docs/index.html +9 -9
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -23
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +35 -35
- 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 +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +21 -21
- 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 +14 -14
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +14 -14
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +21 -21
- 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 +14 -14
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +23 -23
- 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 +16 -16
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -22
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +20 -20
- 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 +18 -18
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -9
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +15 -15
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -9
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +29 -29
- 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 +17 -17
- 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 -5
- package/docs/interfaces/Rooms.html +5 -5
- 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 +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +45 -45
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +17 -17
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +9 -9
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +13 -13
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -6
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/typing.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +3 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -1
- package/libs/CameraMovementPlugin/typing.d.ts +4 -4
- package/libs/CruisePlugin/typing.d.ts +4 -4
- package/libs/GuideLinePlugin/typing.d.ts +1 -1
- package/libs/ItemLabelPlugin/events.type.d.ts +1 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -1
- package/libs/ModelItemLabelPlugin/events.type.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/Controller.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/index.d.ts +1 -1
- package/libs/Object3DHelperPlugin/typings.d.ts +2 -2
- package/libs/PanoCompassPlugin/index.d.ts +1 -1
- package/libs/PanoCompassPlugin/typings.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +6 -6
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoRulerPlugin/typings.d.ts +1 -1
- package/libs/PanoRulerProPlugin/typings.d.ts +1 -1
- package/libs/PanoSpatialTagPlugin/typings.d.ts +1 -1
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +1 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +181 -190
- package/libs/PanoTagPlugin/controller/TagRender.js +73 -73
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +34 -46
- package/libs/PanoTagPlugin/controller/index.js +8 -8
- package/libs/PanoTagPlugin/index.d.ts +2 -2
- package/libs/PanoTagPlugin/typings/controller.d.ts +11 -11
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +5 -5
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +19 -19
- package/libs/PanoVideoPlugin/index.d.ts +2 -2
- package/libs/base/BasePlugin.d.ts +1 -1
- package/libs/base/BasePlugin.js +3 -3
- package/libs/base/BasePluginWithData.d.ts +1 -1
- package/libs/components/PaintBrush/Subscribe.d.ts +1 -1
- package/libs/components/PaintBrush/typings.d.ts +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.d.ts +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.d.ts +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +64 -60
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +104 -100
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +4 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +60 -51
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.d.ts +2 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +2 -0
- package/libs/floorplan/TopviewFloorplanPlugin/index.d.ts +2 -2
- package/libs/floorplan/typings/floorplanData.d.ts +3 -3
- package/libs/floorplan/typings/floorplanServerData.d.ts +1 -1
- package/libs/floorplan/typings/utility.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +2 -2
- package/libs/shared-utils/three/PointHelper.d.ts +3 -3
- package/libs/typings/math.type.d.ts +3 -3
- package/package.json +15 -17
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
|
-
var w = (l,
|
|
3
|
-
var d = (l,
|
|
4
|
-
var
|
|
5
|
-
var o = (
|
|
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
20
|
import { TagComputer as O } from "./TagComputer.js";
|
|
21
|
-
import { Group as
|
|
21
|
+
import { Group as D, Quaternion as x, Vector3 as h, Matrix4 as u } from "three";
|
|
22
22
|
import G from "../Components/TagContainer.js";
|
|
23
23
|
import k from "../Components/Tag/index.js";
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
24
|
+
import { arrayPositionToVector3 as P } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
25
|
import { centerPoint as A } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import "@realsee/five/gltf-loader";
|
|
27
27
|
import R from "../utils/model/imagePlane.js";
|
|
28
|
-
import { isMediaModelTag as
|
|
28
|
+
import { isMediaModelTag as b } from "../utils/tag/tagCheck.js";
|
|
29
29
|
import { CSS3DRenderPlugin as E } from "../../CSS3DRenderPlugin/index.js";
|
|
30
30
|
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
31
|
import "@realsee/five";
|
|
@@ -134,30 +134,30 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
134
134
|
class Ue extends O {
|
|
135
135
|
constructor(t) {
|
|
136
136
|
super(t);
|
|
137
|
-
d(this, "group", new
|
|
138
|
-
d(this, "imagePlaneGroup", new
|
|
139
|
-
d(this, "gltfObjectGroup", new
|
|
137
|
+
d(this, "group", new D());
|
|
138
|
+
d(this, "imagePlaneGroup", new D());
|
|
139
|
+
d(this, "gltfObjectGroup", new D());
|
|
140
140
|
d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
141
141
|
d(this, "temporaryState", { visible: !0 });
|
|
142
142
|
d(this, "TagContainerSvelte");
|
|
143
|
-
d(this, "loadModel", (t) =>
|
|
144
|
-
var
|
|
143
|
+
d(this, "loadModel", (t) => T(this, null, function* () {
|
|
144
|
+
var r;
|
|
145
145
|
const e = t.data.modelUrl;
|
|
146
146
|
if (!e)
|
|
147
147
|
return;
|
|
148
|
-
const i = V(e).then((
|
|
148
|
+
const i = V(e).then((s) => Object.assign(s.scene, { customID: t.id, isTagModel: !0 }));
|
|
149
149
|
t.model = { promise: i };
|
|
150
150
|
const o = yield i;
|
|
151
|
-
if (((
|
|
151
|
+
if (((r = t.model) == null ? void 0 : r.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
|
|
152
152
|
return;
|
|
153
|
-
o.visible = this.getCurrentVisibleState(t), new
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
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
156
|
if (!t.imagePlane) {
|
|
157
|
-
const
|
|
158
|
-
t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(
|
|
159
|
-
const
|
|
160
|
-
t.imagePlane.position.copy(
|
|
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
161
|
}
|
|
162
162
|
} else
|
|
163
163
|
this.updateTagCss3DObjectMatrix(t, o);
|
|
@@ -176,22 +176,22 @@ class Ue extends O {
|
|
|
176
176
|
}
|
|
177
177
|
updateRenderImagePlane() {
|
|
178
178
|
this.sort(this.filterImagePlane).forEach((e) => {
|
|
179
|
-
var a,
|
|
180
|
-
const i = (
|
|
181
|
-
if (!i || (e.imagePlane && (e.imagePlane.visible = (
|
|
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
182
|
return;
|
|
183
|
-
const o = e.position.map(
|
|
183
|
+
const o = e.position.map(P);
|
|
184
184
|
e.imagePlane = new R(i, o), e.imagePlane.setMatrixByCornerPoints(o), this.imagePlaneGroup.add(e.imagePlane);
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
updateRender3DDomTag() {
|
|
188
|
-
this.sort([...this.
|
|
189
|
-
var i
|
|
188
|
+
this.sort([...this.filter3DTag]).forEach((e) => {
|
|
189
|
+
var i;
|
|
190
190
|
if (e.tag3DContentSvelte) {
|
|
191
|
-
const { svelteApp:
|
|
192
|
-
if (
|
|
193
|
-
const
|
|
194
|
-
n.css3DObject.setRotationFromQuaternion(
|
|
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);
|
|
195
195
|
}
|
|
196
196
|
return;
|
|
197
197
|
} else {
|
|
@@ -199,32 +199,32 @@ class Ue extends O {
|
|
|
199
199
|
return;
|
|
200
200
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = E(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
201
201
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
202
|
-
const
|
|
203
|
-
if (!
|
|
202
|
+
const o = this.getPositions(e);
|
|
203
|
+
if (!o)
|
|
204
204
|
return;
|
|
205
205
|
const n = this.getTagNormal(e);
|
|
206
206
|
if (!n)
|
|
207
207
|
return;
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
208
|
+
const a = this.getTagConfig(e), r = a.tag3DConfig;
|
|
209
|
+
if (a.renderType === "Mesh" && r) {
|
|
210
210
|
r.mode = "behind", r.container = document.createElement("div");
|
|
211
|
-
const
|
|
212
|
-
r.container.style.backgroundColor =
|
|
213
|
-
var u;
|
|
214
|
-
if (m.css3DObject.opacityMesh) {
|
|
215
|
-
const g = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (c) => {
|
|
216
|
-
console.log(e), this.hooks.emit("click", { event: c, target: "TagContent", tag: e });
|
|
217
|
-
});
|
|
218
|
-
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(g);
|
|
219
|
-
}
|
|
220
|
-
});
|
|
211
|
+
const p = "black";
|
|
212
|
+
r.container.style.backgroundColor = p, r.container.style.border = `3px solid ${p}`;
|
|
221
213
|
}
|
|
222
|
-
const
|
|
223
|
-
if (!
|
|
214
|
+
const s = this.css3DRenderPlugin.create3DDomContainer(o, r);
|
|
215
|
+
if (!s)
|
|
224
216
|
return;
|
|
225
|
-
this.store.css3DRenderDisposer.set(e.id, [
|
|
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);
|
|
224
|
+
}
|
|
225
|
+
}), e.tag3DContentSvelte = {
|
|
226
226
|
svelteApp: new k({
|
|
227
|
-
target:
|
|
227
|
+
target: s.container,
|
|
228
228
|
props: {
|
|
229
229
|
tag: e,
|
|
230
230
|
hooks: this.hooks,
|
|
@@ -233,7 +233,7 @@ class Ue extends O {
|
|
|
233
233
|
temporaryState: this.temporaryState
|
|
234
234
|
}
|
|
235
235
|
}),
|
|
236
|
-
domContainer:
|
|
236
|
+
domContainer: s,
|
|
237
237
|
initialNormal: n,
|
|
238
238
|
currentNormal: n
|
|
239
239
|
};
|
|
@@ -242,10 +242,10 @@ class Ue extends O {
|
|
|
242
242
|
}
|
|
243
243
|
updateRenderModelTag() {
|
|
244
244
|
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
245
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(
|
|
245
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(b).forEach((i) => {
|
|
246
246
|
var o;
|
|
247
|
-
(o = i.model) == null || o.promise.then((
|
|
248
|
-
|
|
247
|
+
(o = i.model) == null || o.promise.then((n) => {
|
|
248
|
+
n.visible = this.getCurrentVisibleState(i);
|
|
249
249
|
});
|
|
250
250
|
});
|
|
251
251
|
}
|
|
@@ -256,20 +256,20 @@ class Ue extends O {
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
updateTagCss3DObjectMatrix(t, e) {
|
|
259
|
-
var
|
|
260
|
-
const i = (M = (v = (
|
|
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;
|
|
261
261
|
if (!o)
|
|
262
262
|
return;
|
|
263
|
-
const
|
|
263
|
+
const n = b(t) ? t.data.mediaPosition : t.position;
|
|
264
264
|
e.updateWorldMatrix(!1, !1);
|
|
265
|
-
const
|
|
266
|
-
|
|
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);
|
|
267
267
|
const c = o.opacityMesh;
|
|
268
|
-
c &&
|
|
268
|
+
c && C.decompose(c.position, c.quaternion, c.scale);
|
|
269
269
|
}
|
|
270
270
|
addMediaModelTag(t) {
|
|
271
|
-
return
|
|
272
|
-
const e = t.filter(
|
|
271
|
+
return T(this, null, function* () {
|
|
272
|
+
const e = t.filter(b).map((i) => this.loadModel(i));
|
|
273
273
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
274
274
|
});
|
|
275
275
|
}
|
|
@@ -294,9 +294,9 @@ class Ue extends O {
|
|
|
294
294
|
state: this.state,
|
|
295
295
|
temporaryState: this.temporaryState,
|
|
296
296
|
withAnimation: this.store.visibleWithAnimation
|
|
297
|
-
}), this.
|
|
298
|
-
var i, o,
|
|
299
|
-
(
|
|
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({
|
|
300
300
|
state: this.state,
|
|
301
301
|
temporaryState: this.temporaryState,
|
|
302
302
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -36,8 +36,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
36
36
|
protected updateTagConfig(params?: {
|
|
37
37
|
force?: boolean;
|
|
38
38
|
}): void;
|
|
39
|
-
protected can<T extends TagElement<any, any>>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
|
|
40
|
-
protected getRenderType(tag: TagElement<any, any>): 'Dom' | 'Mesh' | 'BehindDom';
|
|
39
|
+
protected can<T extends TagElement<any, any>>(action: 'show' | 'hide' | 'fold' | 'unfold' | 'renderByMesh' | 'renderByMeshDom', paramsTag: T): boolean;
|
|
41
40
|
/**
|
|
42
41
|
* @description: 获取角度
|
|
43
42
|
*/
|
|
@@ -56,7 +55,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
56
55
|
protected get filterImagePlane(): PlaneTagElement<"MediaPlane">[];
|
|
57
56
|
protected get filterMediaModel(): ModelElement<"MediaModel">[];
|
|
58
57
|
protected get filterModelTag(): ModelElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
|
|
59
|
-
protected get
|
|
58
|
+
protected get filter3DTag(): (TagElement<any, "Plane"> | TagElement<any, "Model"> | TagElement<any, "3DPoint">)[];
|
|
60
59
|
/**
|
|
61
60
|
* @description 检查是否已经销毁
|
|
62
61
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
2
|
var y = (c, u, e) => u in c ? T(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e;
|
|
3
|
-
var
|
|
3
|
+
var l = (c, u, e) => (y(c, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
4
|
import D from "object-assign-deep";
|
|
5
5
|
import * as C from "three";
|
|
6
6
|
import { DefaultConfig as w } from "../tag.config.js";
|
|
@@ -31,24 +31,24 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
31
31
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
32
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
33
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
34
|
-
class
|
|
34
|
+
class ae extends b {
|
|
35
35
|
constructor(e) {
|
|
36
36
|
super(e);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
l(this, "tags", []);
|
|
38
|
+
l(this, "config", w);
|
|
39
|
+
l(this, "mediaStore", I({
|
|
40
40
|
currentMediaElement: null
|
|
41
41
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
l(this, "css3DRenderPlugin");
|
|
43
|
+
l(this, "store", {
|
|
44
44
|
disposers: [],
|
|
45
45
|
disposed: !1,
|
|
46
46
|
resizeObserverDisposerAdding: !1,
|
|
47
47
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
48
48
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
l(this, "domEvents");
|
|
50
|
+
l(this, "mouseInfo");
|
|
51
|
+
l(this, "preventWhenMouseDown", () => {
|
|
52
52
|
var e;
|
|
53
53
|
if ((e = this.mouseInfo) != null && e.isDown)
|
|
54
54
|
return !1;
|
|
@@ -77,8 +77,8 @@ class le extends b {
|
|
|
77
77
|
if (!e)
|
|
78
78
|
return (t = this.config.globalConfig) != null ? t : {};
|
|
79
79
|
const i = {};
|
|
80
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
81
|
-
const r =
|
|
80
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
|
|
81
|
+
const r = a;
|
|
82
82
|
if (i[r])
|
|
83
83
|
return;
|
|
84
84
|
const f = r.split("-");
|
|
@@ -91,10 +91,10 @@ class le extends b {
|
|
|
91
91
|
(e.stickType === s || s === "Any") && (e.contentType === n || n === "Any") && (i[r] = this.config.contentTypeConfig[r]);
|
|
92
92
|
}
|
|
93
93
|
if (f.length === 3) {
|
|
94
|
-
const [s = "Any", n,
|
|
94
|
+
const [s = "Any", n, m] = f;
|
|
95
95
|
if (n === "Audio" && e.contentType === "Audio") {
|
|
96
|
-
const
|
|
97
|
-
(
|
|
96
|
+
const h = e;
|
|
97
|
+
(h.stickType === s || s === "Any") && h.data.appearance === m && (i[r] = this.config.contentTypeConfig[r]);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
});
|
|
@@ -126,25 +126,16 @@ class le extends b {
|
|
|
126
126
|
if (e === "fold" && t.unfoldedConfig.keep === "unfolded" || e === "unfold" && t.unfoldedConfig.keep === "folded")
|
|
127
127
|
return !1;
|
|
128
128
|
}
|
|
129
|
+
if (e === "renderByMesh")
|
|
130
|
+
if (x(o) || v(o)) {
|
|
131
|
+
const d = o.data.mediaData;
|
|
132
|
+
return d.length === 1 && d[0].type === "Image" && t.renderType === "Mesh";
|
|
133
|
+
} else
|
|
134
|
+
return !1;
|
|
129
135
|
return !0;
|
|
130
136
|
}
|
|
131
|
-
getRenderType(e) {
|
|
132
|
-
const i = this.getTagConfig(e);
|
|
133
|
-
if (!i || typeof i != "object" || !i.renderType)
|
|
134
|
-
return "Dom";
|
|
135
|
-
const o = e.data.mediaData;
|
|
136
|
-
if (!o || o.length === 0)
|
|
137
|
-
return "Dom";
|
|
138
|
-
if (i.renderType === "Mesh") {
|
|
139
|
-
if (x(e))
|
|
140
|
-
return o.length === 1 && o[0].type === "Image" ? "Mesh" : "Dom";
|
|
141
|
-
if (v(e))
|
|
142
|
-
return o.length === 1 && o[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
143
|
-
} else
|
|
144
|
-
return "Dom";
|
|
145
|
-
}
|
|
146
137
|
getAngle(e, i) {
|
|
147
|
-
var d,
|
|
138
|
+
var d, a, r;
|
|
148
139
|
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
149
140
|
if (o === void 0)
|
|
150
141
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -152,7 +143,7 @@ class le extends b {
|
|
|
152
143
|
if (t.angle !== void 0)
|
|
153
144
|
return t.angle;
|
|
154
145
|
{
|
|
155
|
-
const f = (r = (
|
|
146
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
156
147
|
if (f === void 0)
|
|
157
148
|
throw new Error(`getAngleRange(): observerPosition is ${f}`);
|
|
158
149
|
const s = (() => e.stickType === "3DPoint" ? E(e.normal) : g(e.position))();
|
|
@@ -161,12 +152,12 @@ class le extends b {
|
|
|
161
152
|
const n = P(e.position);
|
|
162
153
|
if (!n)
|
|
163
154
|
return;
|
|
164
|
-
const
|
|
165
|
-
return t.angle =
|
|
155
|
+
const m = new C.Vector3().copy(f).sub(n), h = s.angleTo(m) * 180 / Math.PI;
|
|
156
|
+
return t.angle = h, t.angle;
|
|
166
157
|
}
|
|
167
158
|
}
|
|
168
159
|
getDistance(e, i) {
|
|
169
|
-
var d,
|
|
160
|
+
var d, a, r;
|
|
170
161
|
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
171
162
|
if (o === void 0)
|
|
172
163
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -174,7 +165,7 @@ class le extends b {
|
|
|
174
165
|
if (t.distance !== void 0)
|
|
175
166
|
return t.distance;
|
|
176
167
|
{
|
|
177
|
-
const f = (r = (
|
|
168
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
178
169
|
if (f === void 0)
|
|
179
170
|
throw new Error(`getDistance(): observerPosition is ${f}`);
|
|
180
171
|
const s = k(e);
|
|
@@ -212,7 +203,7 @@ class le extends b {
|
|
|
212
203
|
isDown: !0,
|
|
213
204
|
mouseDownTimestamp: Date.now()
|
|
214
205
|
};
|
|
215
|
-
},
|
|
206
|
+
}, a = (s) => {
|
|
216
207
|
if (!t()) {
|
|
217
208
|
this.mouseInfo = void 0;
|
|
218
209
|
return;
|
|
@@ -239,8 +230,8 @@ class le extends b {
|
|
|
239
230
|
const n = s.origDomEvent;
|
|
240
231
|
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(n), this.mouseInfo = void 0);
|
|
241
232
|
};
|
|
242
|
-
return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup",
|
|
243
|
-
!this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup",
|
|
233
|
+
return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
|
|
234
|
+
!this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
|
|
244
235
|
};
|
|
245
236
|
}
|
|
246
237
|
getTagNormal(e) {
|
|
@@ -262,7 +253,7 @@ class le extends b {
|
|
|
262
253
|
}
|
|
263
254
|
get filterImagePlane() {
|
|
264
255
|
return this.tags.filter(
|
|
265
|
-
(e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.
|
|
256
|
+
(e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.can("renderByMesh", e)
|
|
266
257
|
);
|
|
267
258
|
}
|
|
268
259
|
get filterMediaModel() {
|
|
@@ -271,16 +262,13 @@ class le extends b {
|
|
|
271
262
|
get filterModelTag() {
|
|
272
263
|
return this.tags.filter((e) => e.stickType === "Model");
|
|
273
264
|
}
|
|
274
|
-
get
|
|
275
|
-
return this.tags.filter((
|
|
276
|
-
const o = this.getRenderType(i);
|
|
277
|
-
return o === "BehindDom" || o === "Dom";
|
|
278
|
-
});
|
|
265
|
+
get filter3DTag() {
|
|
266
|
+
return this.tags.filter((e) => e.stickType === "3DPoint" || e.stickType === "Plane" || e.stickType === "Model").filter((e) => !this.can("renderByMesh", e));
|
|
279
267
|
}
|
|
280
268
|
checkDisposed() {
|
|
281
269
|
return this.store.disposed ? (console.error("PanoTagPluginController has been disposed"), !0) : !1;
|
|
282
270
|
}
|
|
283
271
|
}
|
|
284
272
|
export {
|
|
285
|
-
|
|
273
|
+
ae as TagUtil
|
|
286
274
|
};
|
|
@@ -29,14 +29,14 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
import { Subscribe as w } from "@realsee/five";
|
|
31
31
|
import c from "object-assign-deep";
|
|
32
|
-
import { arrayPositionToVector3 as
|
|
32
|
+
import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
33
|
import { addDebugPoints as M } from "../utils/addDebugPoints.js";
|
|
34
34
|
import "three";
|
|
35
35
|
import "@realsee/five/gltf-loader";
|
|
36
36
|
import "../../shared-utils/three/loadTexture.js";
|
|
37
37
|
import { isMediaModelTag as v } from "../utils/tag/tagCheck.js";
|
|
38
38
|
import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
|
|
39
|
-
import { debounce as
|
|
39
|
+
import { debounce as C } from "../utils/debounce.js";
|
|
40
40
|
import { throttle as B } from "../utils/throttle.js";
|
|
41
41
|
import { resizeObserver as y } from "../utils/resizeObserver.js";
|
|
42
42
|
import R from "../utils/tag/format.js";
|
|
@@ -262,7 +262,7 @@ class Yt extends k {
|
|
|
262
262
|
}
|
|
263
263
|
dispose() {
|
|
264
264
|
var e, t, i, s, o, r;
|
|
265
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.
|
|
265
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag.forEach((n) => {
|
|
266
266
|
var h;
|
|
267
267
|
return (h = n.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
|
|
268
268
|
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
@@ -286,7 +286,7 @@ class Yt extends k {
|
|
|
286
286
|
}
|
|
287
287
|
changeTagNormalById(e, t) {
|
|
288
288
|
const i = this.getTagById(e);
|
|
289
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
289
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = A(t));
|
|
290
290
|
}
|
|
291
291
|
changeDataById(e, t, i = !0) {
|
|
292
292
|
const s = this.getTagById(e);
|
|
@@ -297,7 +297,7 @@ class Yt extends k {
|
|
|
297
297
|
}
|
|
298
298
|
changeTagById(e, t, i = !0) {
|
|
299
299
|
const s = this.getTagById(e);
|
|
300
|
-
!t || (i ? c(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal =
|
|
300
|
+
!t || (i ? c(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
|
|
301
301
|
}
|
|
302
302
|
destroyTagById(e) {
|
|
303
303
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -326,7 +326,7 @@ class Yt extends k {
|
|
|
326
326
|
}
|
|
327
327
|
handleDisable() {
|
|
328
328
|
var e, t, i;
|
|
329
|
-
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.
|
|
329
|
+
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filter3DTag.forEach((s) => {
|
|
330
330
|
var o;
|
|
331
331
|
(o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
|
|
332
332
|
}), this.five.needsRender = !0;
|
|
@@ -358,7 +358,7 @@ class Yt extends k {
|
|
|
358
358
|
}, 500),
|
|
359
359
|
e
|
|
360
360
|
), { observe: r, unobserve: n } = y(
|
|
361
|
-
|
|
361
|
+
C(() => t(), 400),
|
|
362
362
|
e
|
|
363
363
|
);
|
|
364
364
|
return s(), r(), () => {
|
|
@@ -387,7 +387,7 @@ class Yt extends k {
|
|
|
387
387
|
}), this.updateRenderAllTags());
|
|
388
388
|
}
|
|
389
389
|
handleFiveCameraUpdateDebounce() {
|
|
390
|
-
return
|
|
390
|
+
return C(() => {
|
|
391
391
|
this.setUnfoldedByCamera(), this.updateRenderAllTags();
|
|
392
392
|
}, 100);
|
|
393
393
|
}
|
|
@@ -2,7 +2,7 @@ import type { FivePlugin } from '@realsee/five';
|
|
|
2
2
|
import PanoTagPluginController from './controller';
|
|
3
3
|
export * from './controller';
|
|
4
4
|
export * from './typings';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type PanoTagPluginExportInterface = InstanceType<typeof PanoTagPluginController>;
|
|
6
|
+
export type PanoTagPluginParamsInterface = ConstructorParameters<typeof PanoTagPluginController>[1];
|
|
7
7
|
export declare const PanoTagPlugin: FivePlugin<PanoTagPluginParamsInterface, PanoTagPluginExportInterface>;
|
|
8
8
|
export default PanoTagPlugin;
|
|
@@ -9,14 +9,14 @@ import type { TagId, StickType, TagGLTFObject } from './tag/Utils';
|
|
|
9
9
|
import type { TagContentType } from './tag/TagData';
|
|
10
10
|
import type { Tag } from './tag/Tag';
|
|
11
11
|
import type ImagePlane from '../utils/model/imagePlane';
|
|
12
|
-
|
|
13
|
-
export
|
|
12
|
+
type NonNullable<T> = T extends null | undefined | void ? never : T;
|
|
13
|
+
export type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
|
|
14
14
|
export interface State extends BasePlugin.State {
|
|
15
15
|
}
|
|
16
16
|
export interface AddTagConfig {
|
|
17
17
|
withAnimation?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type LoadTagConfig = AddTagConfig;
|
|
20
20
|
export interface TemporaryState {
|
|
21
21
|
visible?: boolean;
|
|
22
22
|
}
|
|
@@ -60,7 +60,7 @@ export interface EventMap extends BasePlugin.EventMap<State> {
|
|
|
60
60
|
}) => void;
|
|
61
61
|
loadVideoFirstFrame: () => void;
|
|
62
62
|
}
|
|
63
|
-
export
|
|
63
|
+
export type TagEvents = {
|
|
64
64
|
unfolded: () => void;
|
|
65
65
|
folded: () => void;
|
|
66
66
|
show: () => void;
|
|
@@ -79,7 +79,7 @@ export interface TagCacheInterface {
|
|
|
79
79
|
reason?: string;
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
export
|
|
82
|
+
export type TagElement<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
|
|
83
83
|
pointTagStyle: {
|
|
84
84
|
leftPercent: number;
|
|
85
85
|
topPercent: number;
|
|
@@ -114,12 +114,12 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
|
|
|
114
114
|
disable: () => void;
|
|
115
115
|
destroy: () => void;
|
|
116
116
|
};
|
|
117
|
-
export
|
|
117
|
+
export type MediaStore = Writable<{
|
|
118
118
|
currentMediaElement: HTMLMediaElement | null;
|
|
119
119
|
}>;
|
|
120
|
-
export
|
|
121
|
-
export
|
|
122
|
-
export
|
|
123
|
-
export
|
|
124
|
-
export
|
|
120
|
+
export type PointTagElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint' | '2DPoint'>;
|
|
121
|
+
export type PlaneTagElement<C extends TagContentType = TagContentType> = TagElement<C, 'Plane'>;
|
|
122
|
+
export type Point2DElement<C extends TagContentType = TagContentType> = TagElement<C, '2DPoint'>;
|
|
123
|
+
export type Point3DElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint'>;
|
|
124
|
+
export type ModelElement<C extends TagContentType = TagContentType> = TagElement<C, 'Model'>;
|
|
125
125
|
export {};
|
|
@@ -5,7 +5,7 @@ import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle } from
|
|
|
5
5
|
export type { ContentTypeMap, TagContentType };
|
|
6
6
|
export { ContentType };
|
|
7
7
|
/** 返回一个销毁函数 */
|
|
8
|
-
|
|
8
|
+
type ElementRenderer = (container: HTMLElement) => () => void;
|
|
9
9
|
export interface Tags {
|
|
10
10
|
version?: string;
|
|
11
11
|
/** tag配置 > 按type配置 > 全局配置 */
|
|
@@ -16,7 +16,7 @@ export interface Tags {
|
|
|
16
16
|
/** 标签列表配置 */
|
|
17
17
|
tagList: Tag[];
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type Tag<C extends TagContentType = TagContentType, S extends StickType = StickType> = {
|
|
20
20
|
/** 开启/禁用 */
|
|
21
21
|
enabled?: boolean;
|
|
22
22
|
/** 唯一标识 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Position, TagIconUrl } from './Utils';
|
|
2
|
-
export
|
|
2
|
+
export type MediaData = {
|
|
3
3
|
type: 'Image';
|
|
4
4
|
url: string;
|
|
5
5
|
} | {
|
|
@@ -7,8 +7,8 @@ export declare type MediaData = {
|
|
|
7
7
|
url: string;
|
|
8
8
|
videoCoverUrl?: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
type Object = Record<string | number | symbol, any>;
|
|
11
|
+
export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
12
12
|
export declare enum ContentType {
|
|
13
13
|
/** 音频标签 */
|
|
14
14
|
Audio = "Audio",
|
|
@@ -39,7 +39,7 @@ export declare enum ContentType {
|
|
|
39
39
|
/** Unknown */
|
|
40
40
|
Unknown = "Unknown"
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type TagContentType = keyof typeof ContentType;
|
|
43
43
|
/**
|
|
44
44
|
* @description: 标签数据
|
|
45
45
|
*/
|
|
@@ -170,5 +170,5 @@ interface ContentTypeMapInterface {
|
|
|
170
170
|
Custom: Object;
|
|
171
171
|
Unknown: Object;
|
|
172
172
|
}
|
|
173
|
-
export
|
|
173
|
+
export type ContentTypeMap = Pick<ContentTypeMapInterface, TagContentType>;
|
|
174
174
|
export {};
|