@realsee/dnalogel 2.20.0-alpha.0 → 2.20.0-dev.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 +45 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +2 -48
- package/dist/PanoTagPlugin/typings/index.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -5
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +1 -34
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +51 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -11
- package/dist/index.cjs.js +5 -5
- package/dist/index.js +20 -18
- package/dist/index.umd.js +5 -5
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/GuideLineItem.GuideLineItem.html +4 -4
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoMeasurePluginLine.html +4 -4
- package/docs/classes/PanoMeasurePluginModel.html +4 -4
- package/docs/classes/PanoMeasurePluginPoint.html +4 -4
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +23 -23
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +20 -20
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +5 -5
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +4 -4
- package/docs/interfaces/CruisePluginTypes.EventMap.html +4 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +4 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +4 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +4 -4
- package/docs/interfaces/CruisePluginTypes.PluginData.html +4 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +4 -4
- package/docs/interfaces/CruisePluginTypes.PluginState.html +4 -4
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +4 -4
- package/docs/interfaces/GuideLinePluginType.EventMap.html +4 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +4 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +4 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +4 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +4 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +4 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +4 -4
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -4
- package/docs/interfaces/HelperOffset.html +4 -4
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/MinMax.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/ObjectHelperControllers.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/State.html +5 -5
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +14 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +12 -12
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +6 -6
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +5 -5
- package/docs/types/DeprecatedTagProperty.html +5 -5
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PartialObjectDeep.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagInstance.html +5 -5
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +8 -6
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +6 -6
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +45 -1
- package/libs/PanoTagPlugin/Archive/deprecated.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +21 -21
- package/libs/PanoTagPlugin/Components/TagItem.js +31 -31
- package/libs/PanoTagPlugin/controller/TagRender.js +32 -32
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +36 -34
- package/libs/PanoTagPlugin/index.js +11 -13
- package/libs/PanoTagPlugin/typings/controller.d.ts +2 -48
- package/libs/PanoTagPlugin/typings/index.d.ts +1 -0
- package/libs/PanoTagPlugin/typings/index.js +3 -5
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -5
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +1 -34
- package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -4
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +51 -0
- package/libs/PanoTagPlugin/typings/tag/TagInstance.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -11
- package/libs/PanoTagPlugin/typings/tag/Utils.js +1 -4
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +13 -15
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,49 @@
|
|
|
1
|
-
import type { StickType, TagContentType, TagInstance } from '../typings';
|
|
1
|
+
import type { StickType, TagContentType, TagInstance, Point2DTag, Point3DTag } from '../typings';
|
|
2
2
|
/** @deprecated 改用具体的string */
|
|
3
3
|
export declare enum PointType {
|
|
4
4
|
PointTag = "PointTag",
|
|
5
5
|
PlaneTag = "PlaneTag"
|
|
6
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';
|
|
7
47
|
/** @deprecated 改用 stickType */
|
|
8
48
|
export type TagPointType = keyof typeof PointType;
|
|
9
49
|
/** @deprecated */
|
|
@@ -23,3 +63,7 @@ export type DeprecatedMediaPlaneProperty = {
|
|
|
23
63
|
};
|
|
24
64
|
/** @deprecated Use {@link TagInstance} instead */
|
|
25
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,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
|
}
|
|
@@ -82,46 +75,7 @@ export interface TagCacheInterface {
|
|
|
82
75
|
reason?: string;
|
|
83
76
|
};
|
|
84
77
|
}
|
|
85
|
-
export type TagInstance<C extends TagContentType = TagContentType, S extends StickType = StickType> = Tag<C, S> & Partial<{
|
|
86
|
-
screenPosition: {
|
|
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>;
|
|
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
81
|
export type PointTagInstance<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint' | '2DPoint'>;
|
|
127
|
-
export {};
|
|
@@ -3,5 +3,6 @@ export * from './tag/Tag';
|
|
|
3
3
|
export * from './tag/Utils';
|
|
4
4
|
export * from './tag/TagData';
|
|
5
5
|
export * from './tag/TagConfig';
|
|
6
|
+
export * from './tag/TagInstance';
|
|
6
7
|
export * from '../Archive/deprecated';
|
|
7
8
|
export type { ContentTypeMap, TagContentType } from './tag/TagData';
|
|
@@ -2,11 +2,8 @@ import type { Create3DDomContainerParamsType } from '../../../CSS3DRenderPlugin/
|
|
|
2
2
|
import type { Five, Mode } from '@realsee/five';
|
|
3
3
|
import type { ContentTypeMap, TagContentType } from './TagData';
|
|
4
4
|
import type { MinMax } from './Utils';
|
|
5
|
-
import type {
|
|
6
|
-
import type { TagInstance } from '
|
|
7
|
-
type PartialObjectDeep<ObjectType extends object> = {
|
|
8
|
-
[KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType]>;
|
|
9
|
-
};
|
|
5
|
+
import type { PartialObjectDeep } from './Utils';
|
|
6
|
+
import type { TagInstance } from './TagInstance';
|
|
10
7
|
type ConfigFunction<C extends TagContentType = TagContentType> = (five: Five, tagState: {
|
|
11
8
|
tag: TagInstance<C>;
|
|
12
9
|
/** 标签点或中心点的到摄像机的距离 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DeprecatedMediaPlaneProperty } from '../../Archive/deprecated';
|
|
1
|
+
import type { DeprecatedMediaPlaneProperty, ContentType } from '../../Archive/deprecated';
|
|
2
2
|
import type { Position, TagIconUrl } from './Utils';
|
|
3
3
|
export type MediaData = {
|
|
4
4
|
type: 'Image';
|
|
@@ -10,39 +10,6 @@ export type MediaData = {
|
|
|
10
10
|
};
|
|
11
11
|
export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
12
12
|
type Object = Record<string | number | symbol, any>;
|
|
13
|
-
/** @deprecated Use {@link TagContentType} instead */
|
|
14
|
-
export declare enum ContentType {
|
|
15
|
-
/** 音频标签 */
|
|
16
|
-
Audio = "Audio",
|
|
17
|
-
/** 文本标签 */
|
|
18
|
-
Text = "Text",
|
|
19
|
-
/** 图文标签 */
|
|
20
|
-
ImageText = "ImageText",
|
|
21
|
-
/** 图片标签, 可用 ImageText 代替 */
|
|
22
|
-
Image = "Image",
|
|
23
|
-
/** 视频标签,可用 ImageText 代替 */
|
|
24
|
-
Video = "Video",
|
|
25
|
-
/** VR跳转标签 */
|
|
26
|
-
Link = "Link",
|
|
27
|
-
/** 贴纸标签 */
|
|
28
|
-
Sticker = "Sticker",
|
|
29
|
-
/** VR跳转标签 */
|
|
30
|
-
VRLink = "VRLink",
|
|
31
|
-
/** 全景跳转标签 */
|
|
32
|
-
PanoLink = "PanoLink",
|
|
33
|
-
/** 营销标签 */
|
|
34
|
-
Marketing = "Marketing",
|
|
35
|
-
/** 图片视频贴片 */
|
|
36
|
-
MediaPlane = "MediaPlane",
|
|
37
|
-
/** 带有多媒体的模型 */
|
|
38
|
-
MediaModel = "MediaModel",
|
|
39
|
-
/** 模型 */
|
|
40
|
-
Model = "Model",
|
|
41
|
-
/** 其他/自定义标签 */
|
|
42
|
-
Custom = "Custom",
|
|
43
|
-
/** Unknown */
|
|
44
|
-
Unknown = "Unknown"
|
|
45
|
-
}
|
|
46
13
|
export type TagContentType = keyof typeof ContentType;
|
|
47
14
|
/**
|
|
48
15
|
* @description: 标签数据
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Tag } from './Tag';
|
|
2
|
+
import type TagContentSvelte from '../../Components/Tag/index.svelte';
|
|
3
|
+
import type { TagContentType } from './TagData';
|
|
4
|
+
import type { StickType, TagGLTFObject } from './Utils';
|
|
5
|
+
import type { Create3DDomContainerReturnType } from '../../../CSS3DRenderPlugin';
|
|
6
|
+
import type { Vector3 } from 'three';
|
|
7
|
+
import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
|
|
8
|
+
import type { TagEvents } from '../controller';
|
|
9
|
+
import type { TagConfig } from './TagConfig';
|
|
10
|
+
import type { Subscribe } from '@realsee/five';
|
|
11
|
+
import type { SetRequired } from 'type-fest';
|
|
12
|
+
type RequiredTag<C extends TagContentType = TagContentType, S extends StickType = StickType> = SetRequired<Tag<C, S>, 'id' | 'data' | 'enabled' | 'config' | 'stickType' | 'contentType'>;
|
|
13
|
+
export type TagInstance<C extends TagContentType = TagContentType, S extends StickType = StickType> = RequiredTag<C, S> & Partial<{
|
|
14
|
+
screenPosition: {
|
|
15
|
+
leftPercent: number;
|
|
16
|
+
topPercent: number;
|
|
17
|
+
} | null;
|
|
18
|
+
temporaryState: {
|
|
19
|
+
visible: boolean;
|
|
20
|
+
};
|
|
21
|
+
tag3DContentSvelte: {
|
|
22
|
+
svelteApp: TagContentSvelte;
|
|
23
|
+
/** @deprecated rename to css3DInstance */
|
|
24
|
+
domContainer: NonNullable<Create3DDomContainerReturnType>;
|
|
25
|
+
css3DInstance: NonNullable<Create3DDomContainerReturnType>;
|
|
26
|
+
initialNormal: Vector3;
|
|
27
|
+
currentNormal: Vector3;
|
|
28
|
+
dispose: () => void;
|
|
29
|
+
};
|
|
30
|
+
initialConfig: TagConfig<C>;
|
|
31
|
+
mediaPlane: ImagePlane | VideoPlane;
|
|
32
|
+
model: {
|
|
33
|
+
promise: Promise<TagGLTFObject>;
|
|
34
|
+
object?: TagGLTFObject;
|
|
35
|
+
};
|
|
36
|
+
mediaVisible: boolean;
|
|
37
|
+
play: () => void;
|
|
38
|
+
pause: () => void;
|
|
39
|
+
}> & {
|
|
40
|
+
state: {
|
|
41
|
+
visible?: boolean;
|
|
42
|
+
unfolded: boolean;
|
|
43
|
+
};
|
|
44
|
+
hooks: Subscribe<TagEvents>;
|
|
45
|
+
unfold: () => void;
|
|
46
|
+
fold: () => void;
|
|
47
|
+
enable: () => void;
|
|
48
|
+
disable: () => void;
|
|
49
|
+
destroy: () => void;
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
@@ -2,8 +2,8 @@ import type { GLTFObject } from '@realsee/five/gltf-loader';
|
|
|
2
2
|
import type { Group } from 'three';
|
|
3
3
|
import type { TagContentType } from './TagData';
|
|
4
4
|
import type { ImagePlane } from '../../utils/model/mediaPlane';
|
|
5
|
-
import type { TagInstance } from '../controller';
|
|
6
5
|
import type { PartialDeep } from 'type-fest';
|
|
6
|
+
import type { TagInstance } from './TagInstance';
|
|
7
7
|
export type TagId = string | number;
|
|
8
8
|
export type ArrayPosition = number[];
|
|
9
9
|
export type Position = ArrayPosition;
|
|
@@ -16,12 +16,6 @@ export interface MinMax {
|
|
|
16
16
|
min?: number;
|
|
17
17
|
max?: number;
|
|
18
18
|
}
|
|
19
|
-
/** @deprecated 改用具体的string */
|
|
20
|
-
export declare enum DimensionType {
|
|
21
|
-
Two = "2D",
|
|
22
|
-
Three = "3D"
|
|
23
|
-
}
|
|
24
|
-
export type TagDimensionType = '2D' | '3D';
|
|
25
19
|
export type StickType = '2DPoint' | '3DPoint' | 'Plane' | 'Model';
|
|
26
20
|
export interface TagIconUrl {
|
|
27
21
|
url?: string;
|
|
@@ -81,7 +75,3 @@ export type Point2DTag<C extends TagContentType = TagContentType> = TagInstance<
|
|
|
81
75
|
export type Point3DTag<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint'>;
|
|
82
76
|
/** 三维贴片 */
|
|
83
77
|
export type PlaneTag<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;
|
|
84
|
-
/** @deprecated 'Tag2D' replaced by pointType: 'Point2DTag' */
|
|
85
|
-
export type Tag2D<C extends TagContentType = TagContentType> = Point2DTag<C>;
|
|
86
|
-
/** @deprecated 'Tag3D' replaced by pointType: 'Point3DTag' */
|
|
87
|
-
export type Tag3D<C extends TagContentType = TagContentType> = Point3DTag<C>;
|