@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,8 +1,49 @@
|
|
|
1
|
+
import type { StickType, TagContentType, TagInstance, Point2DTag, Point3DTag } from '../typings';
|
|
1
2
|
/** @deprecated 改用具体的string */
|
|
2
3
|
export declare enum PointType {
|
|
3
4
|
PointTag = "PointTag",
|
|
4
5
|
PlaneTag = "PlaneTag"
|
|
5
6
|
}
|
|
7
|
+
/** @deprecated Use {@link TagContentType} instead */
|
|
8
|
+
export declare enum ContentType {
|
|
9
|
+
/** 音频标签 */
|
|
10
|
+
Audio = "Audio",
|
|
11
|
+
/** 文本标签 */
|
|
12
|
+
Text = "Text",
|
|
13
|
+
/** 图文标签 */
|
|
14
|
+
ImageText = "ImageText",
|
|
15
|
+
/** 图片标签, 可用 ImageText 代替 */
|
|
16
|
+
Image = "Image",
|
|
17
|
+
/** 视频标签,可用 ImageText 代替 */
|
|
18
|
+
Video = "Video",
|
|
19
|
+
/** VR跳转标签 */
|
|
20
|
+
Link = "Link",
|
|
21
|
+
/** 贴纸标签 */
|
|
22
|
+
Sticker = "Sticker",
|
|
23
|
+
/** VR跳转标签 */
|
|
24
|
+
VRLink = "VRLink",
|
|
25
|
+
/** 全景跳转标签 */
|
|
26
|
+
PanoLink = "PanoLink",
|
|
27
|
+
/** 营销标签 */
|
|
28
|
+
Marketing = "Marketing",
|
|
29
|
+
/** 图片视频贴片 */
|
|
30
|
+
MediaPlane = "MediaPlane",
|
|
31
|
+
/** 带有多媒体的模型 */
|
|
32
|
+
MediaModel = "MediaModel",
|
|
33
|
+
/** 模型 */
|
|
34
|
+
Model = "Model",
|
|
35
|
+
/** 其他/自定义标签 */
|
|
36
|
+
Custom = "Custom",
|
|
37
|
+
/** Unknown */
|
|
38
|
+
Unknown = "Unknown"
|
|
39
|
+
}
|
|
40
|
+
/** @deprecated 改用具体的string */
|
|
41
|
+
export declare enum DimensionType {
|
|
42
|
+
Two = "2D",
|
|
43
|
+
Three = "3D"
|
|
44
|
+
}
|
|
45
|
+
/** @deprecated */
|
|
46
|
+
export type TagDimensionType = '2D' | '3D';
|
|
6
47
|
/** @deprecated 改用 stickType */
|
|
7
48
|
export type TagPointType = keyof typeof PointType;
|
|
8
49
|
/** @deprecated */
|
|
@@ -16,7 +57,13 @@ export type DeprecatedTagProperty = {
|
|
|
16
57
|
export type DeprecatedMediaPlaneProperty = {
|
|
17
58
|
/**
|
|
18
59
|
* @description stretch: 拉伸适配, proportional: 等比适配,默认值 'proportional'
|
|
19
|
-
* @deprecated
|
|
60
|
+
* @deprecated Use {@link ObjectFit} instead
|
|
20
61
|
*/
|
|
21
62
|
adaptationMode?: 'stretch' | 'proportional';
|
|
22
63
|
};
|
|
64
|
+
/** @deprecated Use {@link TagInstance} instead */
|
|
65
|
+
export type TagElement<C extends TagContentType = TagContentType, S extends StickType = StickType> = TagInstance<C, S>;
|
|
66
|
+
/** @deprecated 'Tag2D' replaced by pointType: 'Point2DTag' */
|
|
67
|
+
export type Tag2D<C extends TagContentType = TagContentType> = Point2DTag<C>;
|
|
68
|
+
/** @deprecated 'Tag3D' replaced by pointType: 'Point3DTag' */
|
|
69
|
+
export type Tag3D<C extends TagContentType = TagContentType> = Point3DTag<C>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Five, Mode } from '@realsee/five';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TagInstance } from '../typings';
|
|
4
4
|
import type { Raycaster } from 'three';
|
|
5
5
|
import { TagUtil } from './TagUtil';
|
|
6
6
|
export declare abstract class TagComputer extends TagUtil {
|
|
@@ -9,25 +9,25 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
9
9
|
/**
|
|
10
10
|
* @description: 获取是否可见
|
|
11
11
|
*/
|
|
12
|
-
getVisibleByPanoIndex(tag:
|
|
13
|
-
getVisibleByFiveMode(tag:
|
|
12
|
+
getVisibleByPanoIndex(tag: TagInstance, panoIndex?: number): boolean;
|
|
13
|
+
getVisibleByFiveMode(tag: TagInstance, mode?: Mode): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @description 获取标签当前状态
|
|
16
16
|
* @return (this.state.visible && tag.state.visible) ?? true
|
|
17
17
|
*/
|
|
18
|
-
getCurrentVisibleState(tag:
|
|
19
|
-
getVisible(tag:
|
|
18
|
+
getCurrentVisibleState(tag: TagInstance): boolean;
|
|
19
|
+
getVisible(tag: TagInstance): boolean;
|
|
20
20
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
21
|
-
getModelMedialVisibleByPanoIndex(tag:
|
|
21
|
+
getModelMedialVisibleByPanoIndex(tag: TagInstance): boolean;
|
|
22
22
|
/**
|
|
23
23
|
* @description: 获取是否展开
|
|
24
24
|
*/
|
|
25
|
-
getUnfoldedByPanoIndex(tag:
|
|
25
|
+
getUnfoldedByPanoIndex(tag: TagInstance, panoIndex?: number): boolean;
|
|
26
26
|
/**
|
|
27
27
|
* @description: 获取是否展开
|
|
28
28
|
*/
|
|
29
|
-
getUnfoldedByCamera(tag:
|
|
30
|
-
protected sort<T extends
|
|
29
|
+
getUnfoldedByCamera(tag: TagInstance): boolean;
|
|
30
|
+
protected sort<T extends TagInstance>(tags: T[]): T[];
|
|
31
31
|
/**
|
|
32
32
|
* @description: 一个点的标签
|
|
33
33
|
*/
|
|
@@ -39,18 +39,18 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
39
39
|
/**
|
|
40
40
|
* @description: 一个点的标签
|
|
41
41
|
*/
|
|
42
|
-
protected getTagProject(tag:
|
|
42
|
+
protected getTagProject(tag: TagInstance): {
|
|
43
43
|
x: number;
|
|
44
44
|
y: number;
|
|
45
45
|
z: number;
|
|
46
46
|
};
|
|
47
47
|
/** 通过射线检测标签可用性 */
|
|
48
|
-
protected getTagEnableByIntersect(tag:
|
|
48
|
+
protected getTagEnableByIntersect(tag: TagInstance, raycaster: Raycaster): {
|
|
49
49
|
value: boolean;
|
|
50
50
|
reason: string;
|
|
51
51
|
};
|
|
52
52
|
/** 获取点位看向标签的射线 */
|
|
53
|
-
protected getRaycasterFromPanoIndex(tag:
|
|
53
|
+
protected getRaycasterFromPanoIndex(tag: TagInstance, panoIndex: number): THREE.Raycaster;
|
|
54
54
|
/** 检测是否匹配当前楼层 */
|
|
55
55
|
private getVisibleByFloorIndex;
|
|
56
56
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TagComputer } from './TagComputer';
|
|
2
|
-
import type { Tag,
|
|
2
|
+
import type { Tag, TagInstance, TagGLTFObject, TagObjectGroup, TagGLTFObjectGroup, ImagePlaneGroup, TagContentType } from '../typings';
|
|
3
3
|
import type { TemporaryState } from '../typings';
|
|
4
|
-
import { Object3D } from 'three';
|
|
4
|
+
import { type Object3D } from 'three';
|
|
5
5
|
import TagContainerSvelte from '../Components/TagContainer.svelte';
|
|
6
|
-
import { Five } from '@realsee/five';
|
|
6
|
+
import type { Five } from '@realsee/five';
|
|
7
7
|
export declare abstract class TagRender extends TagComputer {
|
|
8
8
|
protected group: TagObjectGroup;
|
|
9
9
|
protected imagePlaneGroup: ImagePlaneGroup;
|
|
@@ -41,7 +41,7 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
41
41
|
* @param tag 标签
|
|
42
42
|
* @param model 模型
|
|
43
43
|
*/
|
|
44
|
-
protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag:
|
|
44
|
+
protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagInstance<TagContentType, S>, model: Object3D): void;
|
|
45
45
|
/** 添加模型标签 */
|
|
46
46
|
protected addMediaModelTag(tags: Tag[]): Promise<void>;
|
|
47
47
|
/**
|
|
@@ -55,5 +55,5 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
55
55
|
*/
|
|
56
56
|
protected clearUnusedPanelTag(): void;
|
|
57
57
|
/** 加载外部模型 */
|
|
58
|
-
protected loadModel: (tag:
|
|
58
|
+
protected loadModel: (tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
|
|
59
59
|
}
|
|
@@ -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
|
|
@@ -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
|
*/
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import type { PanoTagPluginController,
|
|
1
|
+
import type { PanoTagPluginController, TagInstance } from '../index';
|
|
2
2
|
import type * as BasePlugin from '../../base/BasePlugin';
|
|
3
|
-
import type TagContentSvelte from '../Components/Tag/index.svelte';
|
|
4
|
-
import type { Vector3 } from 'three';
|
|
5
|
-
import type { Create3DDomContainerReturnType } from '../../CSS3DRenderPlugin';
|
|
6
3
|
import type { Writable } from 'svelte/store';
|
|
7
|
-
import type {
|
|
8
|
-
import type { TagId, StickType, TagGLTFObject } from './tag/Utils';
|
|
4
|
+
import type { TagId } from './tag/Utils';
|
|
9
5
|
import type { TagContentType } from './tag/TagData';
|
|
10
|
-
import type { Tag } from './tag/Tag';
|
|
11
|
-
import type { ImagePlane, VideoPlane } from '../utils/model/mediaPlane';
|
|
12
|
-
type NonNullable<T> = T extends null | undefined | void ? never : T;
|
|
13
6
|
export type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
|
|
14
7
|
export interface State extends BasePlugin.State {
|
|
15
8
|
}
|
|
@@ -25,22 +18,22 @@ export interface EventMap extends BasePlugin.EventMap<State> {
|
|
|
25
18
|
event: Event;
|
|
26
19
|
} & ({
|
|
27
20
|
target: 'TagPoint';
|
|
28
|
-
tag:
|
|
21
|
+
tag: PointTagInstance;
|
|
29
22
|
} | {
|
|
30
23
|
target: 'TagContent';
|
|
31
|
-
tag:
|
|
24
|
+
tag: TagInstance;
|
|
32
25
|
} | {
|
|
33
26
|
target: 'AudioTagPlayIcon';
|
|
34
|
-
tag:
|
|
27
|
+
tag: TagInstance;
|
|
35
28
|
audioInstance: HTMLAudioElement;
|
|
36
29
|
} | {
|
|
37
30
|
target: 'TagModel';
|
|
38
|
-
tag:
|
|
31
|
+
tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>;
|
|
39
32
|
})) => void;
|
|
40
33
|
playStateChange: (params: {
|
|
41
34
|
event: Event;
|
|
42
35
|
state: 'playing' | 'paused';
|
|
43
|
-
tag:
|
|
36
|
+
tag: TagInstance;
|
|
44
37
|
mediaInstance: HTMLMediaElement;
|
|
45
38
|
}) => void;
|
|
46
39
|
exposure: (params: {
|
|
@@ -82,50 +75,7 @@ export interface TagCacheInterface {
|
|
|
82
75
|
reason?: string;
|
|
83
76
|
};
|
|
84
77
|
}
|
|
85
|
-
export type TagElement<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
|
|
86
|
-
pointTagStyle: {
|
|
87
|
-
leftPercent: number;
|
|
88
|
-
topPercent: number;
|
|
89
|
-
} | null;
|
|
90
|
-
temporaryState: {
|
|
91
|
-
visible: boolean;
|
|
92
|
-
};
|
|
93
|
-
tag3DContentSvelte: {
|
|
94
|
-
svelteApp: TagContentSvelte;
|
|
95
|
-
/** @deprecated rename to css3DInstance */
|
|
96
|
-
domContainer: NonNullable<Create3DDomContainerReturnType>;
|
|
97
|
-
css3DInstance: NonNullable<Create3DDomContainerReturnType>;
|
|
98
|
-
initialNormal: Vector3;
|
|
99
|
-
currentNormal: Vector3;
|
|
100
|
-
dispose: () => void;
|
|
101
|
-
};
|
|
102
|
-
mediaPlane: ImagePlane | VideoPlane;
|
|
103
|
-
model: {
|
|
104
|
-
promise: Promise<TagGLTFObject>;
|
|
105
|
-
object?: TagGLTFObject;
|
|
106
|
-
};
|
|
107
|
-
mediaVisible: boolean;
|
|
108
|
-
play: () => void;
|
|
109
|
-
pause: () => void;
|
|
110
|
-
}> & {
|
|
111
|
-
state: {
|
|
112
|
-
visible?: boolean;
|
|
113
|
-
unfolded: boolean;
|
|
114
|
-
};
|
|
115
|
-
hooks: Subscribe<TagEvents>;
|
|
116
|
-
mergedConfig: TagConfig<C, S>;
|
|
117
|
-
unfold: () => void;
|
|
118
|
-
fold: () => void;
|
|
119
|
-
enable: () => void;
|
|
120
|
-
disable: () => void;
|
|
121
|
-
destroy: () => void;
|
|
122
|
-
};
|
|
123
78
|
export type MediaStore = Writable<{
|
|
124
79
|
currentMediaElement: HTMLMediaElement | null;
|
|
125
80
|
}>;
|
|
126
|
-
export type
|
|
127
|
-
export type PlaneTagElement<C extends TagContentType = TagContentType> = TagElement<C, 'Plane'>;
|
|
128
|
-
export type Point2DElement<C extends TagContentType = TagContentType> = TagElement<C, '2DPoint'>;
|
|
129
|
-
export type Point3DElement<C extends TagContentType = TagContentType> = TagElement<C, '3DPoint'>;
|
|
130
|
-
export type ModelElement<C extends TagContentType = TagContentType> = TagElement<C, 'Model'>;
|
|
131
|
-
export {};
|
|
81
|
+
export type PointTagInstance<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint' | '2DPoint'>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './controller';
|
|
2
|
-
export * from './tag/Tag';
|
|
3
|
-
export * from './tag/Utils';
|
|
4
|
-
export * from './tag/TagData';
|
|
5
|
-
export * from './tag/TagConfig';
|
|
6
|
-
export
|
|
2
|
+
export * from './tag/Tag.d';
|
|
3
|
+
export * from './tag/Utils.d';
|
|
4
|
+
export * from './tag/TagData.d';
|
|
5
|
+
export * from './tag/TagConfig.d';
|
|
6
|
+
export * from './tag/TagInstance.d';
|
|
7
|
+
export * from '../Archive/deprecated';
|
|
8
|
+
export type { ContentTypeMap, TagContentType } from './tag/TagData';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Vector3 } from 'three';
|
|
3
|
-
import {
|
|
4
|
-
import DomEvents from '../../../shared-utils/threex/domevents';
|
|
5
|
-
import {
|
|
3
|
+
import type { ObjectFit } from '../../typings';
|
|
4
|
+
import type DomEvents from '../../../shared-utils/threex/domevents';
|
|
5
|
+
import type { Overwrite } from '../../../typings/utils.type';
|
|
6
6
|
type Src = string;
|
|
7
7
|
type VideoTexture = Overwrite<THREE.VideoTexture, {
|
|
8
8
|
image: HTMLVideoElement;
|
|
@@ -50,7 +50,7 @@ declare class VideoPlane extends MediaPlane {
|
|
|
50
50
|
play(muted?: boolean): Promise<void>;
|
|
51
51
|
pause(): void;
|
|
52
52
|
initialDomEvents(domEvents: DomEvents): void;
|
|
53
|
-
initialRenderHooks(func: (render: () => void) => () =>
|
|
53
|
+
initialRenderHooks(func: (render: () => void) => () => void): void;
|
|
54
54
|
private showPlayUI;
|
|
55
55
|
private showPauseUI;
|
|
56
56
|
private render;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function isPointTag(tag:
|
|
3
|
-
export declare function isPlaneTag(tag:
|
|
4
|
-
export declare function isPoint2DTag(tag:
|
|
5
|
-
export declare function isPoint3DTag(tag:
|
|
6
|
-
export declare function is2DTag(tag:
|
|
7
|
-
export declare function is3DTag(tag:
|
|
8
|
-
export declare function isMediaModelTag(tag:
|
|
9
|
-
export declare function isModelTag(tag:
|
|
10
|
-
export declare function isStickModelTag(tag:
|
|
11
|
-
export declare function isMediaPlaneTag(tag:
|
|
1
|
+
import type { TagContentType, TagInstance } from '../../typings';
|
|
2
|
+
export declare function isPointTag(tag: TagInstance): boolean;
|
|
3
|
+
export declare function isPlaneTag<T extends TagContentType>(tag: TagInstance<T>): tag is TagInstance<T, 'Plane'>;
|
|
4
|
+
export declare function isPoint2DTag(tag: TagInstance): boolean;
|
|
5
|
+
export declare function isPoint3DTag<T extends TagContentType>(tag: TagInstance<T>): tag is TagInstance<T, '3DPoint'>;
|
|
6
|
+
export declare function is2DTag(tag: TagInstance): boolean;
|
|
7
|
+
export declare function is3DTag<T extends TagContentType>(tag: TagInstance): tag is TagInstance<T, '3DPoint'> | TagInstance<T, 'Plane'>;
|
|
8
|
+
export declare function isMediaModelTag(tag: TagInstance): tag is TagInstance<'MediaModel', 'Model'>;
|
|
9
|
+
export declare function isModelTag(tag: TagInstance): tag is TagInstance<'Model', 'Model'>;
|
|
10
|
+
export declare function isStickModelTag(tag: TagInstance): tag is TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>;
|
|
11
|
+
export declare function isMediaPlaneTag(tag: TagInstance): tag is TagInstance<'MediaModel', 'Model'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector3 } from 'three';
|
|
2
2
|
import { type AnyPosition } from '.';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TagInstance } from '../typings';
|
|
4
4
|
export declare function tagPosition(position: AnyPosition | [AnyPosition, AnyPosition, AnyPosition, AnyPosition]): Vector3;
|
|
5
|
-
export declare function getTagPosition(tag:
|
|
5
|
+
export declare function getTagPosition(tag: TagInstance): Vector3;
|