@realsee/dnalogel 2.19.1 → 2.20.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/Archive/deprecated.d.ts +48 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
- package/dist/PanoTagPlugin/controller/index.d.ts +7 -7
- package/dist/PanoTagPlugin/typings/controller.d.ts +8 -58
- package/dist/PanoTagPlugin/typings/index.d.ts +7 -5
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
- package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/dist/index.cjs.js +39 -39
- package/dist/index.js +677 -672
- package/dist/index.umd.js +32 -32
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +45 -38
- package/docs/classes/CruisePluginController.html +40 -33
- package/docs/classes/GuideLineItem.GuideLineItem.html +34 -27
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +45 -38
- package/docs/classes/Magnifier.html +34 -27
- package/docs/classes/ModelRoomLabelController.html +25 -18
- package/docs/classes/Object3DHelperController.html +39 -32
- package/docs/classes/PaintBrush.html +29 -22
- package/docs/classes/PanoMeasurePluginLine.html +37 -30
- package/docs/classes/PanoMeasurePluginModel.html +36 -29
- package/docs/classes/PanoMeasurePluginPoint.html +28 -21
- package/docs/classes/PanoMeasurePluginPolyline.html +40 -33
- package/docs/classes/PanoTagPluginController.html +86 -79
- package/docs/classes/Util.BetterTween.html +23 -16
- package/docs/classes/Util.FivePointSelector.html +26 -19
- package/docs/classes/Util.Interval.html +26 -19
- package/docs/classes/Util.Magnifier.html +31 -24
- package/docs/classes/Util.PointDomHelper.html +25 -18
- package/docs/classes/Util.PointHelper.html +25 -18
- package/docs/classes/Util.Rectangle.html +27 -20
- package/docs/enums/CameraMovementEffect.html +21 -14
- package/docs/enums/ContentType.html +69 -58
- package/docs/enums/DIRECTION.html +23 -16
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +23 -16
- package/docs/enums/DimensionType.html +21 -14
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +22 -15
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +23 -16
- package/docs/enums/PaintBrushTypeEnum.html +22 -15
- package/docs/enums/PointType.html +390 -0
- package/docs/enums/Rotation.html +22 -15
- package/docs/functions/CSS3DRenderPlugin.html +18 -11
- package/docs/functions/CameraMovementPlugin.html +18 -11
- package/docs/functions/CruisePlugin.html +18 -11
- package/docs/functions/GuideLinePlugin.html +19 -12
- package/docs/functions/ItemLabelPlugin.html +18 -11
- package/docs/functions/MapviewFloorplanPlugin.html +18 -11
- package/docs/functions/ModelChassisCompassPlugin.html +18 -11
- package/docs/functions/ModelEntryDoorGuidePlugin.html +18 -11
- package/docs/functions/ModelFloorplanPlugin.html +18 -11
- package/docs/functions/ModelItemLabelPlugin.html +18 -11
- package/docs/functions/ModelRoomLabelPlugin.html +18 -11
- package/docs/functions/ModelTVVideoPlugin.html +18 -11
- package/docs/functions/ModelViewPlugin.html +18 -11
- package/docs/functions/Object3DHelperPlugin.html +18 -11
- package/docs/functions/PanoCompassPlugin.html +18 -11
- package/docs/functions/PanoCursorRaycasterPlugin.html +18 -11
- package/docs/functions/PanoDoorLabelPlugin.html +18 -11
- package/docs/functions/PanoFloorplanRadarPlugin.html +18 -11
- package/docs/functions/PanoMeasurePlugin.html +18 -11
- package/docs/functions/PanoRulerPlugin.html +18 -11
- package/docs/functions/PanoRulerProPlugin.html +18 -11
- package/docs/functions/PanoSpatialTagPlugin.html +18 -11
- package/docs/functions/PanoTagPlugin.html +18 -11
- package/docs/functions/PanoVideoPlugin.html +18 -11
- package/docs/functions/TopviewFloorplanPlugin.html +18 -11
- package/docs/functions/Util.getCoordsFromClient.html +19 -12
- package/docs/functions/Util.getCoordsFromElement.html +19 -12
- package/docs/functions/Util.getFrameTime.html +19 -12
- package/docs/functions/Util.getIntersectFromRelativePosition.html +19 -12
- package/docs/functions/Util.getRaycasterFromFivePointer.html +19 -12
- package/docs/functions/Util.isAbsoluteURL.html +19 -12
- package/docs/functions/Util.isModelLike.html +19 -12
- package/docs/functions/Util.isNil.html +19 -12
- package/docs/functions/Util.isPanoramaLike.html +19 -12
- package/docs/functions/Util.nextFrame.html +19 -12
- package/docs/functions/Util.notNil.html +19 -12
- package/docs/functions/Util.requestAnimationFrameInterval.html +19 -12
- package/docs/functions/Util.tweenProgress.html +19 -12
- package/docs/functions/Util.uuid.html +19 -12
- package/docs/functions/pluginFlag.html +19 -12
- package/docs/index.html +19 -12
- package/docs/interfaces/AddTagConfig.html +20 -13
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +25 -18
- package/docs/interfaces/CSS3DRenderPluginState.html +22 -15
- package/docs/interfaces/CameraMovementPluginExportType.html +21 -14
- package/docs/interfaces/ContentTypeMapInterface.html +724 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +22 -15
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +26 -19
- package/docs/interfaces/CruisePluginTypes.EventMap.html +34 -27
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +26 -19
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +28 -21
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +28 -21
- package/docs/interfaces/CruisePluginTypes.PluginData.html +23 -16
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +21 -14
- package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -18
- package/docs/interfaces/EventMap.html +31 -24
- package/docs/interfaces/FloorplanBounding.html +22 -15
- package/docs/interfaces/FloorplanData.html +24 -17
- package/docs/interfaces/FloorplanEntrance.html +25 -18
- package/docs/interfaces/FloorplanExtraObject.html +24 -17
- package/docs/interfaces/FloorplanExtraObject3D.html +22 -15
- package/docs/interfaces/FloorplanFloorData.html +23 -16
- package/docs/interfaces/FloorplanImagePosition.html +21 -14
- package/docs/interfaces/FloorplanObserver.html +23 -16
- package/docs/interfaces/FloorplanOutlineItem.html +23 -16
- package/docs/interfaces/FloorplanPosition.html +21 -14
- package/docs/interfaces/FloorplanRoomItem.html +27 -20
- package/docs/interfaces/FloorplanRoomLabelItem.html +21 -14
- package/docs/interfaces/FloorplanServerBounding.html +22 -15
- package/docs/interfaces/FloorplanServerComputedData.html +24 -17
- package/docs/interfaces/FloorplanServerData.html +21 -14
- package/docs/interfaces/FloorplanServerDoorItem.html +24 -17
- package/docs/interfaces/FloorplanServerDoorPosition.html +22 -15
- package/docs/interfaces/FloorplanServerEntrance.html +25 -18
- package/docs/interfaces/FloorplanServerFloorData.html +23 -16
- package/docs/interfaces/FloorplanServerImagePosition.html +21 -14
- package/docs/interfaces/FloorplanServerObserver.html +23 -16
- package/docs/interfaces/FloorplanServerOutlineItem.html +23 -16
- package/docs/interfaces/FloorplanServerPosition.html +21 -14
- package/docs/interfaces/FloorplanServerRoomItem.html +28 -21
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +21 -14
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +22 -15
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +24 -17
- package/docs/interfaces/GuideLinePluginType.EventMap.html +27 -20
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +22 -15
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +20 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +27 -20
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +22 -15
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -25
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +21 -14
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +32 -25
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +19 -12
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +21 -14
- package/docs/interfaces/GuideLinePluginType.PluginState.html +22 -15
- package/docs/interfaces/GuideLinePluginType.Route.html +25 -18
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +23 -16
- package/docs/interfaces/HelperOffset.html +22 -15
- package/docs/interfaces/ImagePlaneGroup.html +20 -13
- package/docs/interfaces/ItemLabelPluginData.html +20 -13
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +25 -18
- package/docs/interfaces/ItemLabelPluginParametersType.html +23 -16
- package/docs/interfaces/MinMax.html +21 -14
- package/docs/interfaces/ModelChassisCompassPluginData.html +21 -14
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +22 -15
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +21 -14
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +22 -15
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +22 -15
- package/docs/interfaces/ModelItemLabelPluginData.html +20 -13
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +25 -18
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +21 -14
- package/docs/interfaces/ModelRoomLabelPluginData.html +20 -13
- package/docs/interfaces/ModelTVVideoPluginData.html +23 -16
- package/docs/interfaces/ModelTVVideoPluginExportType.html +22 -15
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +20 -13
- package/docs/interfaces/ModelViewPluginExportType.html +25 -18
- package/docs/interfaces/Object3DHelperState.html +22 -15
- package/docs/interfaces/ObjectHelperControllers.html +23 -16
- package/docs/interfaces/PaintBrushAction.html +26 -19
- package/docs/interfaces/PaintBrushConfigs.html +26 -19
- package/docs/interfaces/PaintBrushState.html +24 -17
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +24 -17
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +19 -12
- package/docs/interfaces/PanoMeasureParameterType.html +28 -21
- package/docs/interfaces/PanoMeasurePluginLineJson.html +22 -15
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +21 -14
- package/docs/interfaces/PanoMeasurePluginPointJson.html +21 -14
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +22 -15
- package/docs/interfaces/PanoRulerPluginExportType.html +24 -17
- package/docs/interfaces/PanoRulerPluginOptions.html +21 -14
- package/docs/interfaces/PanoRulerPluginParameterType.html +22 -15
- package/docs/interfaces/PanoRulerProPluginExportType.html +23 -16
- package/docs/interfaces/PanoRulerProPluginOptions.html +21 -14
- package/docs/interfaces/PanoRulerProPluginParameterType.html +21 -14
- package/docs/interfaces/PanoRulerProPluginState.html +22 -15
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +19 -12
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +19 -12
- package/docs/interfaces/PanoSpatialTagPluginData.html +25 -18
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +24 -17
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +27 -20
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +24 -17
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +27 -20
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +25 -18
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +24 -17
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +20 -13
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +22 -15
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +20 -13
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +23 -16
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +20 -13
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +22 -15
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +24 -17
- package/docs/interfaces/Point.html +22 -15
- package/docs/interfaces/Room.html +23 -16
- package/docs/interfaces/RoomInfo.html +21 -14
- package/docs/interfaces/RoomLabel.html +28 -21
- package/docs/interfaces/RoomRules.html +19 -12
- package/docs/interfaces/Rooms.html +19 -12
- package/docs/interfaces/Scissor.html +23 -16
- package/docs/interfaces/State.html +22 -15
- package/docs/interfaces/TagCacheInterface.html +26 -19
- package/docs/interfaces/TagConfig.html +32 -27
- package/docs/interfaces/TagGLTFObjectGroup.html +20 -13
- package/docs/interfaces/TagIconUrl.html +26 -19
- package/docs/interfaces/TagObjectGroup.html +20 -13
- package/docs/interfaces/TagStyle.html +20 -13
- package/docs/interfaces/Tags.html +116 -129
- package/docs/interfaces/TemporaryState.html +20 -13
- package/docs/interfaces/Util.MagnifierParameter.html +25 -18
- package/docs/interfaces/Util.MouseGroupParameter.html +22 -15
- package/docs/modules/CruisePluginTypes.html +19 -12
- package/docs/modules/GuideLineItem.html +19 -12
- package/docs/modules/GuideLineModeItem.html +19 -12
- package/docs/modules/GuideLinePluginType.html +19 -12
- package/docs/modules/PanoVideoPluginType.html +19 -12
- package/docs/modules/Util.html +19 -12
- package/docs/modules.html +34 -20
- package/docs/types/ArrayPosition.html +19 -12
- package/docs/types/AudioAppearance.html +20 -13
- package/docs/types/AudioTagTypeConfigKey.html +19 -12
- package/docs/types/CSS3DRenderExportType.html +19 -12
- package/docs/types/CSS3DRenderPluginExportType.html +19 -12
- package/docs/types/CSS3DRenderPluginParameterType.html +19 -12
- package/docs/types/ClassFunctionParameters.html +19 -12
- package/docs/types/Color.html +19 -12
- package/docs/types/ConfigFunction.html +390 -0
- package/docs/types/ContentTypeConfigKey.html +19 -12
- package/docs/types/ContentTypeConfigKeySplit.html +19 -12
- package/docs/types/ContentTypeMap.html +20 -13
- package/docs/types/ContentTypeMapInterfaceWithExtraData.html +359 -0
- package/docs/types/Create3DDomContainerReturnType.html +19 -12
- package/docs/types/Create3DElementReturnType.html +19 -12
- package/docs/types/CruisePluginExportType.html +19 -12
- package/docs/types/CruisePluginTypes.CruiseData.html +19 -12
- package/docs/types/CruisePluginTypes.MoveEffect.html +19 -12
- package/docs/types/DeprecatedMediaPlaneProperty.html +371 -0
- package/docs/types/DeprecatedTagProperty.html +374 -0
- package/docs/types/Direction-1.html +19 -12
- package/docs/types/Direction4.html +19 -12
- package/docs/types/ElementRenderer.html +19 -12
- package/docs/types/FloorplanRuleLabels.html +19 -12
- package/docs/types/FloorplanServerRuleLabels.html +19 -12
- package/docs/types/GuideLinePluginExportType.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineItem.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +19 -12
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +19 -12
- package/docs/types/GuideLinePluginType.PathItem.html +19 -12
- package/docs/types/GuideLinePluginType.PluginData.html +19 -12
- package/docs/types/HelperEventMap.html +19 -12
- package/docs/types/LoadTagConfig.html +19 -12
- package/docs/types/MapviewFloorplanPluginParameterType.html +19 -12
- package/docs/types/MapviewFloorplanPluginReturnType.html +19 -12
- package/docs/types/MediaData.html +19 -12
- package/docs/types/MediaStore.html +19 -12
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +19 -12
- package/docs/types/ModelFloorplanPluginParameterType.html +19 -12
- package/docs/types/ModelFloorplanPluginReturnType.html +19 -12
- package/docs/types/ModelRoomLabelPluginParameters.html +19 -12
- package/docs/types/ModelRoomLabelPluginReturnType.html +19 -12
- package/docs/types/MoveArgs.html +19 -12
- package/docs/types/MoveOpts.html +19 -12
- package/docs/types/{Point2DElement.html → Object.html} +22 -20
- package/docs/types/Object3DHelperEventMap.html +19 -12
- package/docs/types/ObjectFit.html +19 -12
- package/docs/types/PaintBrushEventMap.html +19 -12
- package/docs/types/PanoCompassPluginData.html +19 -12
- package/docs/types/PanoCompassPluginExportType.html +19 -12
- package/docs/types/PanoCompassPluginParameterType.html +19 -12
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +19 -12
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +19 -12
- package/docs/types/PanoIndex.html +19 -12
- package/docs/types/PanoMeasurePluginEvent.html +19 -12
- package/docs/types/PanoMeasureReturnType.html +19 -12
- package/docs/types/PanoSpatialTagPluginId.html +19 -12
- package/docs/types/PanoTagPluginExportInterface.html +19 -12
- package/docs/types/PanoTagPluginParamsInterface.html +19 -12
- package/docs/types/PanoVideoPluginParameterType.html +19 -12
- package/docs/types/PanoVideoPluginReturnType.html +19 -12
- package/docs/types/{Point3DElement.html → PartialObjectDeep.html} +23 -16
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +20 -13
- package/docs/types/PlaneTag.html +20 -13
- package/docs/types/Point2DTag.html +20 -13
- package/docs/types/Point3DTag.html +20 -13
- package/docs/types/PointTag.html +20 -13
- package/docs/types/{PointTagElement.html → PointTagInstance.html} +22 -15
- package/docs/types/Position.html +19 -12
- package/docs/types/{ModelElement.html → RequiredTag.html} +25 -16
- package/docs/types/RotateArgs.html +19 -12
- package/docs/types/RotateOpts.html +19 -12
- package/docs/types/RuleLabelsKey.html +19 -12
- package/docs/types/RuleLabelsValue.html +19 -12
- package/docs/types/StickType.html +19 -12
- package/docs/types/Tag.html +20 -13
- package/docs/types/Tag2D.html +19 -12
- package/docs/types/Tag3D.html +19 -12
- package/docs/types/TagContentType.html +19 -12
- package/docs/types/TagDimensionType.html +22 -13
- package/docs/types/TagElement.html +23 -13
- package/docs/types/TagEvents.html +19 -12
- package/docs/types/TagGLTFObject.html +19 -12
- package/docs/types/TagHooks.html +19 -12
- package/docs/types/TagIconSize.html +19 -12
- package/docs/types/TagId.html +19 -12
- package/docs/types/TagInstance.html +366 -0
- package/docs/types/{PlaneTagElement.html → TagPointType.html} +25 -20
- package/docs/types/TopviewFloorplanPluginParameterType.html +19 -12
- package/docs/types/TopviewFloorplanPluginReturnType.html +19 -12
- package/docs/types/WorkCode.html +19 -12
- package/docs/variables/FLOOR_TYPE_MAP.html +19 -12
- package/docs/variables/PLUGIN.html +19 -12
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +19 -12
- package/docs/variables/ROOM_TYPE_MAP.html +19 -12
- package/docs/variables/itemLabelPluginServerParams.html +19 -12
- package/docs/variables/modelItemLabelPluginServerParams.html +19 -12
- package/docs/variables/modelRoomLabelPluginServerParams.html +19 -12
- package/libs/CruisePlugin/Controller.js +74 -74
- package/libs/GuideLinePlugin/Controller.js +7 -7
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +48 -1
- package/libs/PanoTagPlugin/Archive/deprecated.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +21 -21
- package/libs/PanoTagPlugin/Components/TagItem.js +46 -46
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
- package/libs/PanoTagPlugin/controller/TagComputer.js +27 -27
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +33 -31
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
- package/libs/PanoTagPlugin/controller/TagUtil.js +17 -20
- package/libs/PanoTagPlugin/controller/index.d.ts +7 -7
- package/libs/PanoTagPlugin/controller/index.js +36 -34
- package/libs/PanoTagPlugin/index.js +11 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +8 -58
- package/libs/PanoTagPlugin/typings/index.d.ts +7 -5
- package/libs/PanoTagPlugin/typings/index.js +4 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.js +1 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
- package/libs/PanoTagPlugin/utils/planeNormal.js +5 -5
- package/libs/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +7 -7
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -50
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -133
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -184
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -83
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -50
- package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -133
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -184
- package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -83
- package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -4
- /package/libs/PanoTagPlugin/typings/tag/{TagConfig.js → Tag.d.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (f, h, t) => (
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var k = (f, h, t) => h in f ? R(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
|
|
3
|
+
var b = (f, h, t) => (k(f, typeof h != "symbol" ? h + "" : h, t), t);
|
|
4
4
|
var C = (f, h, t) => new Promise((e, o) => {
|
|
5
5
|
var i = (r) => {
|
|
6
6
|
try {
|
|
@@ -17,16 +17,16 @@ var C = (f, h, t) => new Promise((e, o) => {
|
|
|
17
17
|
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, n);
|
|
18
18
|
a((t = t.apply(f, h)).next());
|
|
19
19
|
});
|
|
20
|
-
import { TagComputer as
|
|
21
|
-
import { Group as S, Quaternion as
|
|
22
|
-
import
|
|
20
|
+
import { TagComputer as E } from "./TagComputer.js";
|
|
21
|
+
import { Group as S, Quaternion as w, Vector3 as v, Matrix4 as D } from "three";
|
|
22
|
+
import O from "../Components/TagContainer.js";
|
|
23
23
|
import A from "../Components/Tag/index.js";
|
|
24
24
|
import { arrayPositionToVector3 as y } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
-
import { centerPoint as
|
|
26
|
-
import { isMediaModelTag as P, isStickModelTag as
|
|
27
|
-
import { CSS3DRenderPlugin as
|
|
28
|
-
import { loadGLTF as
|
|
29
|
-
import { VideoPlane as
|
|
25
|
+
import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
|
|
26
|
+
import { isMediaModelTag as P, isStickModelTag as G } from "../utils/tag/tagCheck.js";
|
|
27
|
+
import { CSS3DRenderPlugin as I } from "../../CSS3DRenderPlugin/index.js";
|
|
28
|
+
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
29
|
+
import { VideoPlane as M, ImagePlane as j } from "../utils/model/mediaPlane.js";
|
|
30
30
|
import "../utils/tagPosition.js";
|
|
31
31
|
import "../utils/checkRange.js";
|
|
32
32
|
import "hammerjs";
|
|
@@ -139,8 +139,8 @@ import "../Components/Tag/CustomTag.js";
|
|
|
139
139
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
140
140
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
141
141
|
import "@realsee/five/gltf-loader";
|
|
142
|
-
const
|
|
143
|
-
class
|
|
142
|
+
const F = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
|
|
143
|
+
class ei extends E {
|
|
144
144
|
constructor(t) {
|
|
145
145
|
super(t);
|
|
146
146
|
b(this, "group", new S());
|
|
@@ -158,13 +158,13 @@ class ti extends w {
|
|
|
158
158
|
const e = t.data.modelUrl;
|
|
159
159
|
if (!e)
|
|
160
160
|
return;
|
|
161
|
-
const o =
|
|
161
|
+
const o = V(e).then((r) => {
|
|
162
162
|
var p, m, l, c, d;
|
|
163
163
|
const s = Object.assign(r.scene, {
|
|
164
164
|
customID: t.id,
|
|
165
165
|
isTagModel: !0,
|
|
166
166
|
removeEventListener: this.addObjectClickHandler(t, r.scene, (g) => {
|
|
167
|
-
|
|
167
|
+
this.hooks.emit("click", { target: "TagModel", tag: t, event: g });
|
|
168
168
|
})
|
|
169
169
|
});
|
|
170
170
|
return s.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (l = (m = (p = this.config) == null ? void 0 : p.globalConfig) == null ? void 0 : m.modelConfig) != null && l.autoLookAtEnabled && ((d = (c = t.config) == null ? void 0 : c.modelConfig) != null && d.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
|
|
@@ -178,7 +178,7 @@ class ti extends w {
|
|
|
178
178
|
if (n && (this.gltfObjectGroup.remove(n), n.removeEventListener()), this.updateRender3DDomTag(), P(t)) {
|
|
179
179
|
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
180
180
|
const r = t.data.mediaPosition.map(y);
|
|
181
|
-
t.mediaPlane = new
|
|
181
|
+
t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(y), {
|
|
182
182
|
objectFit: t.data.objectFit
|
|
183
183
|
});
|
|
184
184
|
const s = new v().addVectors(r[0], r[2]).divideScalar(2);
|
|
@@ -212,21 +212,21 @@ class ti extends w {
|
|
|
212
212
|
if (!o)
|
|
213
213
|
return;
|
|
214
214
|
const { url: i, type: n } = o;
|
|
215
|
-
if (!i || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof
|
|
215
|
+
if (!i || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof M && ((u = e.data.autoplayConfig) != null && u.autoplayVideo || e.mediaPlane.pause())), ((p = e.mediaPlane) == null ? void 0 : p.src) === i))
|
|
216
216
|
return;
|
|
217
217
|
const a = e.position.map(y);
|
|
218
218
|
if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
|
|
219
|
-
e.mediaPlane = new
|
|
219
|
+
e.mediaPlane = new j(i, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (l) => {
|
|
220
220
|
this.hooks.emit("click", { tag: e, target: "TagContent", event: l.origDomEvent });
|
|
221
221
|
});
|
|
222
222
|
else if (n === "Video") {
|
|
223
|
-
const l = new
|
|
223
|
+
const l = new M(i, a, {
|
|
224
224
|
videoCoverSrc: o.videoCoverUrl,
|
|
225
225
|
playButton: e.data.playIcon,
|
|
226
226
|
paused: !((m = e.data.autoplayConfig) != null && m.autoplayVideo),
|
|
227
227
|
objectFit: e.data.objectFit,
|
|
228
|
-
videoTextureMap:
|
|
229
|
-
ImageTextureMap:
|
|
228
|
+
videoTextureMap: F,
|
|
229
|
+
ImageTextureMap: L
|
|
230
230
|
});
|
|
231
231
|
l.onVideoReady = (d) => {
|
|
232
232
|
d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: l.videoInstance }));
|
|
@@ -246,14 +246,14 @@ class ti extends w {
|
|
|
246
246
|
if (e.tag3DContentSvelte) {
|
|
247
247
|
const { svelteApp: r, css3DInstance: s, initialNormal: u, currentNormal: p } = e.tag3DContentSvelte;
|
|
248
248
|
if (r.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !u.equals(p)) {
|
|
249
|
-
const m = new
|
|
249
|
+
const m = new w().setFromUnitVectors(u, p);
|
|
250
250
|
s.css3DObject.setRotationFromQuaternion(m);
|
|
251
251
|
}
|
|
252
252
|
return;
|
|
253
253
|
} else {
|
|
254
254
|
if (P(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
255
255
|
return;
|
|
256
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
256
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = I(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
257
257
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
258
258
|
const r = this.getPositions(e);
|
|
259
259
|
if (!r)
|
|
@@ -330,13 +330,15 @@ class ti extends w {
|
|
|
330
330
|
* @param model 模型
|
|
331
331
|
*/
|
|
332
332
|
updateTagCss3DObjectMatrix(t, e) {
|
|
333
|
-
var d, g, T
|
|
334
|
-
const o = (
|
|
333
|
+
var d, g, T;
|
|
334
|
+
const o = (g = (d = t.config.tag3DConfig) == null ? void 0 : d.ratio) != null ? g : 216e-5, i = (T = t.tag3DContentSvelte) == null ? void 0 : T.css3DInstance.css3DObject;
|
|
335
335
|
if (!i)
|
|
336
336
|
return;
|
|
337
337
|
const n = P(t) ? t.data.mediaPosition : t.position;
|
|
338
|
+
if (!n || n.length !== 4 || !Array.isArray(n[0]) || !Array.isArray(n[2]))
|
|
339
|
+
return;
|
|
338
340
|
e.updateWorldMatrix(!1, !1);
|
|
339
|
-
const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u =
|
|
341
|
+
const a = e.matrixWorld, r = new v().fromArray(n[0]), s = new v().fromArray(n[2]), u = x(r, s).add(new v(0, 0, 5e-4)), p = new D().setPosition(u), m = new D().makeScale(o, o, o), l = new D().multiply(a).multiply(p).multiply(m);
|
|
340
342
|
l.decompose(i.position, i.quaternion, i.scale);
|
|
341
343
|
const c = i.opacityMesh;
|
|
342
344
|
c && l.decompose(c.position, c.quaternion, c.scale);
|
|
@@ -344,7 +346,7 @@ class ti extends w {
|
|
|
344
346
|
/** 添加模型标签 */
|
|
345
347
|
addMediaModelTag(t) {
|
|
346
348
|
return C(this, null, function* () {
|
|
347
|
-
const e = t.filter(
|
|
349
|
+
const e = t.filter(G).map((o) => this.loadModel(o));
|
|
348
350
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
349
351
|
});
|
|
350
352
|
}
|
|
@@ -360,7 +362,7 @@ class ti extends w {
|
|
|
360
362
|
const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
361
363
|
if (!o)
|
|
362
364
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
363
|
-
this.TagContainerSvelte = new
|
|
365
|
+
this.TagContainerSvelte = new O({
|
|
364
366
|
target: o,
|
|
365
367
|
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
366
368
|
});
|
|
@@ -382,8 +384,8 @@ class ti extends w {
|
|
|
382
384
|
});
|
|
383
385
|
}
|
|
384
386
|
disposeAllCSS3DContainer() {
|
|
385
|
-
for (const [
|
|
386
|
-
|
|
387
|
+
for (const [, t] of this.store.css3DRenderDisposer)
|
|
388
|
+
t == null || t.forEach((e) => e == null ? void 0 : e());
|
|
387
389
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
388
390
|
}
|
|
389
391
|
/**
|
|
@@ -401,5 +403,5 @@ class ti extends w {
|
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
405
|
export {
|
|
404
|
-
|
|
406
|
+
ei as TagRender
|
|
405
407
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TagInstance, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore } from '../typings';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import type { Tag, Tags,
|
|
3
|
+
import type { Tag, Tags, PointTagInstance, Point3DTag } from '../typings';
|
|
4
4
|
import { TagCache } from './TagCache';
|
|
5
5
|
import type { CSS3DRenderPluginExportType } from '../../CSS3DRenderPlugin';
|
|
6
6
|
import type { Five } from '@realsee/five';
|
|
7
7
|
import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
8
8
|
export declare abstract class TagUtil extends TagCache {
|
|
9
|
-
tags:
|
|
9
|
+
tags: TagInstance[];
|
|
10
10
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
11
11
|
protected mediaStore: MediaStore;
|
|
12
12
|
/** css3DRenderPlugin */
|
|
13
13
|
protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
|
|
14
14
|
protected store: {
|
|
15
15
|
/** 清理函数数组 */
|
|
16
|
-
disposers: (() =>
|
|
16
|
+
disposers: (() => void)[];
|
|
17
17
|
visibleWithAnimation?: boolean;
|
|
18
|
-
css3DRenderDisposer: Map<TagId, (() =>
|
|
18
|
+
css3DRenderDisposer: Map<TagId, (() => void)[]>;
|
|
19
19
|
eventListenerDisposer?: () => void;
|
|
20
20
|
resizeObserverDisposer?: () => void;
|
|
21
21
|
resizeObserverDisposerAdding: boolean;
|
|
@@ -25,20 +25,20 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
25
25
|
protected domEvents: FiveDomEvents;
|
|
26
26
|
private mouseInfo?;
|
|
27
27
|
protected constructor(five: Five);
|
|
28
|
-
getTagById<C extends TagContentType =
|
|
28
|
+
getTagById<C extends TagContentType = TagContentType, S extends StickType = StickType>(id: TagId): TagInstance<C, S> | undefined;
|
|
29
29
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
30
30
|
pauseCurrentMedia(): void;
|
|
31
31
|
/**
|
|
32
32
|
* @description: 获取merge后的配置
|
|
33
33
|
* TODO: 缓存
|
|
34
34
|
*/
|
|
35
|
-
getTagConfig(tag: Tag
|
|
35
|
+
getTagConfig(tag: Tag): TagConfig<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown">;
|
|
36
36
|
protected loadVideoFirstFrame(): void;
|
|
37
37
|
protected updateTagConfig(params?: {
|
|
38
38
|
force?: boolean;
|
|
39
39
|
}): void;
|
|
40
|
-
protected can<T extends
|
|
41
|
-
protected getRenderType(tag:
|
|
40
|
+
protected can<T extends Tag>(action: 'show' | 'hide' | 'fold' | 'unfold', paramsTag: T): boolean;
|
|
41
|
+
protected getRenderType(tag: TagInstance): 'Dom' | 'Mesh' | 'BehindDom';
|
|
42
42
|
/**
|
|
43
43
|
* @description: 获取角度
|
|
44
44
|
*/
|
|
@@ -46,18 +46,18 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
46
46
|
/**
|
|
47
47
|
* @description: 获取距离
|
|
48
48
|
*/
|
|
49
|
-
protected getDistance(tag:
|
|
50
|
-
protected getPositions(tag:
|
|
49
|
+
protected getDistance(tag: TagInstance, panoIndex?: number): number;
|
|
50
|
+
protected getPositions(tag: TagInstance): [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3] | [import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition, import("../typings").ArrayPosition];
|
|
51
51
|
protected preventWhenMouseDown: () => false | void;
|
|
52
|
-
protected addObjectClickHandler(tag:
|
|
53
|
-
protected getTagNormal(tag:
|
|
54
|
-
protected get filterPointTag():
|
|
55
|
-
protected get filter2DPointTag():
|
|
56
|
-
protected get filter3DPointTag():
|
|
57
|
-
protected get filterImagePlane():
|
|
58
|
-
protected get filterMediaModel():
|
|
59
|
-
protected get filterModelTag():
|
|
60
|
-
protected get filterCSS3DTag(): (
|
|
52
|
+
protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
53
|
+
protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
|
|
54
|
+
protected get filterPointTag(): PointTagInstance[];
|
|
55
|
+
protected get filter2DPointTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "2DPoint">[];
|
|
56
|
+
protected get filter3DPointTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">[];
|
|
57
|
+
protected get filterImagePlane(): TagInstance<"MediaPlane", "Plane">[];
|
|
58
|
+
protected get filterMediaModel(): TagInstance<"MediaModel", "Model">[];
|
|
59
|
+
protected get filterModelTag(): TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model">[];
|
|
60
|
+
protected get filterCSS3DTag(): (TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Plane"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "Model"> | TagInstance<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", "3DPoint">)[];
|
|
61
61
|
/**
|
|
62
62
|
* @description 检查是否已经销毁
|
|
63
63
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -2,8 +2,8 @@ var y = Object.defineProperty;
|
|
|
2
2
|
var D = (c, u, e) => u in c ? y(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e;
|
|
3
3
|
var l = (c, u, e) => (D(c, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
4
|
import { objectAssignDeepExports as T } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
5
|
-
import * as
|
|
6
|
-
import { DefaultConfig as
|
|
5
|
+
import * as P from "three";
|
|
6
|
+
import { DefaultConfig as C } from "../tag.config.js";
|
|
7
7
|
import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
8
|
import { planeNormal as p } from "../utils/planeNormal.js";
|
|
9
9
|
import { tagPosition as E, getTagPosition as M } from "../utils/tagPosition.js";
|
|
@@ -11,9 +11,9 @@ import { normalPositionToPositions as k } from "../utils/normalPositionToPositio
|
|
|
11
11
|
import { TagCache as b } from "./TagCache.js";
|
|
12
12
|
import { writable as I } from "../../vendor/svelte/store/index.js";
|
|
13
13
|
import { isIOSWX as A } from "../../shared-utils/device.js";
|
|
14
|
-
import { isMediaPlaneTag as S, isMediaModelTag as g, isPlaneTag as V } from "../utils/tag/tagCheck.js";
|
|
15
|
-
import { VideoPlane as
|
|
16
|
-
import { FiveDomEvents as
|
|
14
|
+
import { isMediaPlaneTag as S, isMediaModelTag as g, isPlaneTag as V, isPoint3DTag as F } from "../utils/tag/tagCheck.js";
|
|
15
|
+
import { VideoPlane as L } from "../utils/model/mediaPlane.js";
|
|
16
|
+
import { FiveDomEvents as R } from "../../shared-utils/five/FiveDomEvents.js";
|
|
17
17
|
import "../../shared-utils/three/centerPoint.js";
|
|
18
18
|
import "../../base/BasePlugin.js";
|
|
19
19
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -41,11 +41,11 @@ import "../Assets/Icon.js";
|
|
|
41
41
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
42
42
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
43
43
|
import "../../shared-utils/threex/domevents/index.js";
|
|
44
|
-
class
|
|
44
|
+
class Pe extends b {
|
|
45
45
|
constructor(e) {
|
|
46
46
|
super(e);
|
|
47
47
|
l(this, "tags", []);
|
|
48
|
-
l(this, "config",
|
|
48
|
+
l(this, "config", C);
|
|
49
49
|
l(this, "mediaStore", I({
|
|
50
50
|
currentMediaElement: null
|
|
51
51
|
}));
|
|
@@ -57,7 +57,7 @@ class De extends b {
|
|
|
57
57
|
resizeObserverDisposerAdding: !1,
|
|
58
58
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
59
59
|
});
|
|
60
|
-
l(this, "domEvents", new
|
|
60
|
+
l(this, "domEvents", new R(this.five));
|
|
61
61
|
l(this, "mouseInfo");
|
|
62
62
|
l(this, "preventWhenMouseDown", () => {
|
|
63
63
|
var e;
|
|
@@ -67,7 +67,7 @@ class De extends b {
|
|
|
67
67
|
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
68
68
|
this.tags.forEach((t) => {
|
|
69
69
|
var o;
|
|
70
|
-
if (t.mediaPlane instanceof
|
|
70
|
+
if (t.mediaPlane instanceof L && i !== t.mediaPlane.videoInstance) {
|
|
71
71
|
if (!((o = t.mediaPlane.videoInstance) != null && o.src) || i === t.mediaPlane.videoInstance)
|
|
72
72
|
return;
|
|
73
73
|
t.mediaPlane.pause();
|
|
@@ -131,10 +131,9 @@ class De extends b {
|
|
|
131
131
|
updateTagConfig(e) {
|
|
132
132
|
e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
|
|
133
133
|
const t = this.getTagConfig(i);
|
|
134
|
-
i.
|
|
134
|
+
i.config = t, i.data = T({}, i.data, t.initialData);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
// eslint-disable-next-line complexity
|
|
138
137
|
can(e, i) {
|
|
139
138
|
const t = i, o = this.getTagConfig(t);
|
|
140
139
|
if (!o || typeof o != "object")
|
|
@@ -192,7 +191,7 @@ class De extends b {
|
|
|
192
191
|
const s = E(e.position);
|
|
193
192
|
if (!s)
|
|
194
193
|
return;
|
|
195
|
-
const n = new
|
|
194
|
+
const n = new P.Vector3().copy(r).sub(s), m = f.angleTo(n) * 180 / Math.PI;
|
|
196
195
|
return o.angle = m, o.angle;
|
|
197
196
|
}
|
|
198
197
|
}
|
|
@@ -223,12 +222,8 @@ class De extends b {
|
|
|
223
222
|
return e.position;
|
|
224
223
|
if (g(e))
|
|
225
224
|
return e.data.mediaPosition;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
this.five.camera.position,
|
|
229
|
-
h(i.position),
|
|
230
|
-
h(i.normal)
|
|
231
|
-
);
|
|
225
|
+
if (F(e))
|
|
226
|
+
return k(this.five.camera.position, h(e.position), h(e.normal));
|
|
232
227
|
}
|
|
233
228
|
addObjectClickHandler(e, i, t) {
|
|
234
229
|
if (!i || !this.domEvents)
|
|
@@ -307,7 +302,9 @@ class De extends b {
|
|
|
307
302
|
return this.tags.filter((e) => e.stickType === "Model");
|
|
308
303
|
}
|
|
309
304
|
get filterCSS3DTag() {
|
|
310
|
-
return this.tags.filter(
|
|
305
|
+
return this.tags.filter(
|
|
306
|
+
(i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel"
|
|
307
|
+
).filter((i) => {
|
|
311
308
|
const t = this.getRenderType(i);
|
|
312
309
|
return t === "BehindDom" || t === "Dom";
|
|
313
310
|
});
|
|
@@ -321,5 +318,5 @@ class De extends b {
|
|
|
321
318
|
}
|
|
322
319
|
}
|
|
323
320
|
export {
|
|
324
|
-
|
|
321
|
+
Pe as TagUtil
|
|
325
322
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Tag,
|
|
1
|
+
import type { Tag, TagId, Tags, TagInstance, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey, TagConfig, PartialObjectDeep } from '../typings';
|
|
2
2
|
import type { PickTagContentTypeInContentTypeConfigKey, TagContentType } from '..';
|
|
3
3
|
import type { ArrayPosition } from '../typings';
|
|
4
|
-
import { Five } from '@realsee/five';
|
|
4
|
+
import { type Five } from '@realsee/five';
|
|
5
5
|
import { TagRender } from './TagRender';
|
|
6
6
|
export declare const pluginFlag: (name: string) => string;
|
|
7
7
|
declare class PanoTagPluginController extends TagRender {
|
|
@@ -25,7 +25,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
25
25
|
/**
|
|
26
26
|
* @description: 添加标签
|
|
27
27
|
*/
|
|
28
|
-
addTag(tag: Tag
|
|
28
|
+
addTag(tag: Tag | Tag[], paramsConfig?: AddTagConfig): Promise<void>;
|
|
29
29
|
/**
|
|
30
30
|
* @description: 改变配置
|
|
31
31
|
*/
|
|
@@ -69,23 +69,23 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
69
69
|
/**
|
|
70
70
|
* @description: 改变data
|
|
71
71
|
*/
|
|
72
|
-
changeDataById<C extends TagContentType =
|
|
72
|
+
changeDataById<C extends TagContentType = TagContentType>(id: TagId, data: PartialObjectDeep<Tag<C>['data']>, deepMerge?: boolean): void;
|
|
73
73
|
/**
|
|
74
74
|
* @description: 改变tag的stickType
|
|
75
75
|
*/
|
|
76
|
-
changeStickTypeById<C extends TagContentType =
|
|
76
|
+
changeStickTypeById<C extends TagContentType = TagContentType>(id: TagId, data: PartialObjectDeep<{
|
|
77
77
|
[P in keyof Pick<Tag<C>, 'stickType' | 'position' | 'normal' | 'data'>]: Tag[P];
|
|
78
78
|
}>, deepMerge?: boolean): void;
|
|
79
79
|
/**
|
|
80
80
|
* @description: 改变tag任意属性
|
|
81
81
|
*/
|
|
82
|
-
changeTagById<C extends TagContentType =
|
|
82
|
+
changeTagById<C extends TagContentType = TagContentType>(id: TagId, tag: PartialObjectDeep<Tag<C>>, deepMerge?: boolean): void;
|
|
83
83
|
/**
|
|
84
84
|
* @description: 销毁tag
|
|
85
85
|
*/
|
|
86
86
|
destroyTagById(id: TagId | TagId[]): void;
|
|
87
87
|
/** 更改 tag 模型 */
|
|
88
|
-
changeTagModel: (tag:
|
|
88
|
+
changeTagModel: (tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>, data: PartialObjectDeep<Tag<'MediaModel'>['data']>) => Promise<void>;
|
|
89
89
|
/**
|
|
90
90
|
* @description: 设置 visible 和 unfolded
|
|
91
91
|
*/
|
|
@@ -2,7 +2,7 @@ var E = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var w = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var U = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e,
|
|
5
|
+
var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, f = (h, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
U.call(a, e) && v(h, e, a[e]);
|
|
8
8
|
if (C)
|
|
@@ -11,7 +11,7 @@ var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return h;
|
|
12
12
|
}, u = (h, a) => F(h, w(a));
|
|
13
13
|
var g = (h, a, e) => (v(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
-
var
|
|
14
|
+
var p = (h, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -29,7 +29,7 @@ var f = (h, a, e) => new Promise((t, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as b from "three";
|
|
31
31
|
import { Subscribe as B } from "@realsee/five";
|
|
32
|
-
import { objectAssignDeepExports as
|
|
32
|
+
import { objectAssignDeepExports as c } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
34
34
|
import { addDebugPoints as R } from "../utils/addDebugPoints.js";
|
|
35
35
|
import { isMediaModelTag as y, isModelTag as O } from "../utils/tag/tagCheck.js";
|
|
@@ -169,8 +169,8 @@ class ci extends N {
|
|
|
169
169
|
/** debug */
|
|
170
170
|
g(this, "debug");
|
|
171
171
|
/** 更改 tag 模型 */
|
|
172
|
-
g(this, "changeTagModel", (e, t) =>
|
|
173
|
-
e.data =
|
|
172
|
+
g(this, "changeTagModel", (e, t) => p(this, null, function* () {
|
|
173
|
+
e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
174
174
|
}));
|
|
175
175
|
g(this, "handleFiveInitAnimationEnded", () => {
|
|
176
176
|
const e = this.five.getCurrentState().mode;
|
|
@@ -186,7 +186,7 @@ class ci extends N {
|
|
|
186
186
|
typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (s = t.visibleFiveMode) != null && s.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
|
|
187
187
|
}), this.updateRenderAllTags();
|
|
188
188
|
});
|
|
189
|
-
this.params =
|
|
189
|
+
this.params = c({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
|
|
190
190
|
try {
|
|
191
191
|
const i = window;
|
|
192
192
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -197,9 +197,9 @@ class ci extends N {
|
|
|
197
197
|
* @description: 加载数据
|
|
198
198
|
*/
|
|
199
199
|
load(e, t) {
|
|
200
|
-
return
|
|
200
|
+
return p(this, null, function* () {
|
|
201
201
|
var s, o;
|
|
202
|
-
this.clearTags(), console.
|
|
202
|
+
this.clearTags(), console.debug(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
|
|
203
203
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
204
204
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
205
205
|
});
|
|
@@ -217,19 +217,21 @@ class ci extends N {
|
|
|
217
217
|
* @description: 添加标签
|
|
218
218
|
*/
|
|
219
219
|
addTag(e, t) {
|
|
220
|
-
return
|
|
220
|
+
return p(this, null, function* () {
|
|
221
221
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
222
|
-
var d;
|
|
222
|
+
var d, l;
|
|
223
223
|
const n = this.getTagConfig(o);
|
|
224
|
-
return u(
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
return u(f({}, o), {
|
|
225
|
+
enabled: (d = o.enabled) != null ? d : !0,
|
|
226
|
+
id: (l = o.id) != null ? l : z(),
|
|
227
|
+
data: c({}, n.initialData, o.data),
|
|
228
|
+
state: f({
|
|
228
229
|
visible: void 0,
|
|
229
230
|
unfolded: !this.can("fold", o)
|
|
230
231
|
}, n.initialState),
|
|
231
232
|
hooks: new B(),
|
|
232
|
-
|
|
233
|
+
initialConfig: o.config,
|
|
234
|
+
config: n,
|
|
233
235
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
234
236
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
235
237
|
enable: () => this.changeEnabledById(o.id, !0),
|
|
@@ -237,7 +239,7 @@ class ci extends N {
|
|
|
237
239
|
destroy: () => this.destroyTagById(o.id)
|
|
238
240
|
});
|
|
239
241
|
}).filter((o) => o.position);
|
|
240
|
-
return s.forEach(L), this.tags.push(...s), _(this.five).then(() =>
|
|
242
|
+
return s.forEach(L), this.tags.push(...s), _(this.five).then(() => p(this, null, function* () {
|
|
241
243
|
var o, n, r;
|
|
242
244
|
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
|
|
243
245
|
}));
|
|
@@ -247,22 +249,22 @@ class ci extends N {
|
|
|
247
249
|
* @description: 改变配置
|
|
248
250
|
*/
|
|
249
251
|
changeConfig(e, t = !0) {
|
|
250
|
-
t ? this.config =
|
|
252
|
+
t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
251
253
|
}
|
|
252
254
|
/**
|
|
253
255
|
* @description: 改变全局配置
|
|
254
256
|
*/
|
|
255
257
|
changeGlobalConfig(e, t = !0) {
|
|
256
|
-
t ? this.config.globalConfig =
|
|
258
|
+
t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
257
259
|
}
|
|
258
260
|
/**
|
|
259
261
|
* @description: 改变类型配置
|
|
260
262
|
*/
|
|
261
263
|
changeContentTypeConfig(e, t, i = !0) {
|
|
262
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
264
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
263
265
|
}
|
|
264
266
|
show(e) {
|
|
265
|
-
return
|
|
267
|
+
return p(this, null, function* () {
|
|
266
268
|
if (this.checkDisposed())
|
|
267
269
|
return;
|
|
268
270
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -270,7 +272,7 @@ class ci extends N {
|
|
|
270
272
|
});
|
|
271
273
|
}
|
|
272
274
|
hide(e) {
|
|
273
|
-
return
|
|
275
|
+
return p(this, null, function* () {
|
|
274
276
|
if (this.checkDisposed())
|
|
275
277
|
return;
|
|
276
278
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
@@ -292,7 +294,7 @@ class ci extends N {
|
|
|
292
294
|
setState(e, t) {
|
|
293
295
|
if (this.checkDisposed())
|
|
294
296
|
return;
|
|
295
|
-
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o =
|
|
297
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = f({}, this.state);
|
|
296
298
|
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
297
299
|
}
|
|
298
300
|
/**
|
|
@@ -334,7 +336,7 @@ class ci extends N {
|
|
|
334
336
|
*/
|
|
335
337
|
changeDataById(e, t, i = !0) {
|
|
336
338
|
const s = this.getTagById(e);
|
|
337
|
-
s && (i ? s.data =
|
|
339
|
+
s && (i ? s.data = c({}, s.data, t) : s.data = f(f({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
|
|
338
340
|
}
|
|
339
341
|
/**
|
|
340
342
|
* @description: 改变tag的stickType
|
|
@@ -347,7 +349,7 @@ class ci extends N {
|
|
|
347
349
|
*/
|
|
348
350
|
changeTagById(e, t, i = !0) {
|
|
349
351
|
const s = this.getTagById(e);
|
|
350
|
-
t && (i ?
|
|
352
|
+
t && (i ? c(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
|
|
351
353
|
}
|
|
352
354
|
/**
|
|
353
355
|
* @description: 销毁tag
|
|
@@ -362,7 +364,7 @@ class ci extends N {
|
|
|
362
364
|
* @description: 设置 visible 和 unfolded
|
|
363
365
|
*/
|
|
364
366
|
setVisibleAndUnfolded() {
|
|
365
|
-
return
|
|
367
|
+
return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
366
368
|
if (this.isPanorama)
|
|
367
369
|
return this.setVisible(), e ? new Promise((t) => {
|
|
368
370
|
setTimeout(() => {
|
|
@@ -394,9 +396,9 @@ class ci extends N {
|
|
|
394
396
|
* @description: 添加 cameraUpdate, panoArrived 等事件监听
|
|
395
397
|
*/
|
|
396
398
|
addEventListener() {
|
|
397
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this),
|
|
398
|
-
return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click",
|
|
399
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click",
|
|
399
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), l = this.clickhandler.bind(this), m = this.five.currentMode;
|
|
400
|
+
return m && this.handleFiveModeChange(m), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click", l), () => {
|
|
401
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click", l), this.store.eventListenerDisposer = void 0;
|
|
400
402
|
};
|
|
401
403
|
}
|
|
402
404
|
addResizeListener() {
|
|
@@ -438,7 +440,7 @@ class ci extends N {
|
|
|
438
440
|
handleFiveWantsMoveToPano() {
|
|
439
441
|
this.tags.forEach((e) => {
|
|
440
442
|
const t = this.getTagConfig(e);
|
|
441
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = u(
|
|
443
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = u(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = u(f({}, e.temporaryState), { visible: !!t.visibleConfig.alwaysShowWhenMovePano }));
|
|
442
444
|
}), this.updateTagContainerVisible();
|
|
443
445
|
}
|
|
444
446
|
/**
|
|
@@ -476,10 +478,10 @@ class ci extends N {
|
|
|
476
478
|
this.updateRenderPointTag();
|
|
477
479
|
}
|
|
478
480
|
handleFivePanoArrived() {
|
|
479
|
-
return
|
|
481
|
+
return p(this, null, function* () {
|
|
480
482
|
var e, t, i;
|
|
481
483
|
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((s) => {
|
|
482
|
-
s.temporaryState = u(
|
|
484
|
+
s.temporaryState = u(f({}, s.temporaryState), { visible: !0 });
|
|
483
485
|
}), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(O).filter((s) => {
|
|
484
486
|
var o, n;
|
|
485
487
|
return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
|
|
@@ -491,9 +493,9 @@ class ci extends N {
|
|
|
491
493
|
o.position.copy(n.position), o.quaternion.copy(n.quaternion);
|
|
492
494
|
const r = this.five.camera.position;
|
|
493
495
|
o.lookAt(r.clone().setY(o.position.y));
|
|
494
|
-
const d = n.quaternion.clone(),
|
|
496
|
+
const d = n.quaternion.clone(), l = o.quaternion.clone(), m = x();
|
|
495
497
|
m.onUpdate(({ progress: P }) => {
|
|
496
|
-
n.quaternion.copy(d.clone().slerp(
|
|
498
|
+
n.quaternion.copy(d.clone().slerp(l, P));
|
|
497
499
|
}), m.play();
|
|
498
500
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
499
501
|
});
|
|
@@ -510,7 +512,7 @@ class ci extends N {
|
|
|
510
512
|
}
|
|
511
513
|
changeTagMode(e, t) {
|
|
512
514
|
var i, s, o, n, r, d;
|
|
513
|
-
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((
|
|
515
|
+
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
|
|
514
516
|
}
|
|
515
517
|
}
|
|
516
518
|
export {
|