@realsee/dnalogel 2.20.0-dev.1 → 2.20.0-dev.11
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/controller/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +11 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +4 -4
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -4
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +4 -2
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +12 -10
- package/dist/index.cjs.js +44 -44
- package/dist/index.js +4083 -4020
- package/dist/index.umd.js +32 -32
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +26 -26
- package/docs/classes/GuideLineItem.GuideLineItem.html +20 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +31 -31
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +74 -48
- package/docs/classes/Util.BetterTween.html +9 -9
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +20 -20
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- 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 +5 -5
- 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 +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isAbsoluteURL.html +5 -5
- package/docs/functions/Util.isModelLike.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.isPanoramaLike.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/Util.uuid.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +5 -5
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +8 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -11
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +13 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +7 -7
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -8
- package/docs/interfaces/GuideLinePluginType.Route.html +11 -11
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -9
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +15 -15
- 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 +7 -7
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/CruisePluginTypes.html +5 -5
- package/docs/modules/GuideLineItem.html +5 -5
- package/docs/modules/GuideLineModeItem.html +5 -5
- package/docs/modules/GuideLinePluginType.html +5 -5
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +6 -6
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +6 -6
- package/docs/types/ContentTypeConfigKeySplit.html +6 -6
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +5 -5
- package/docs/types/DeprecatedTagProperty.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/ElementRenderer.html +10 -8
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -5
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -5
- package/docs/types/GuideLinePluginType.PathItem.html +5 -5
- package/docs/types/GuideLinePluginType.PluginData.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PartialObjectDeep.html +5 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -6
- 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 +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +6 -6
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +29 -11
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagInstance.html +6 -6
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/{TagIconSize.html → TagRendererMap.html} +8 -11
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Common/Media.js +94 -94
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +61 -54
- package/libs/PanoTagPlugin/Components/Tag/index.js +279 -266
- package/libs/PanoTagPlugin/Components/TagContainer.js +90 -83
- package/libs/PanoTagPlugin/Components/TagItem.js +177 -169
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +83 -77
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +11 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +41 -22
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -4
- package/libs/PanoTagPlugin/controller/index.js +23 -20
- package/libs/PanoTagPlugin/typings/controller.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +4 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -4
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +4 -2
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +12 -10
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
28
28
|
*/
|
|
29
29
|
getUnfoldedByCamera(tag: TagInstance): boolean;
|
|
30
30
|
protected sort<T extends TagInstance>(tags: T[]): T[];
|
|
31
|
+
protected setTagZIndex<T extends TagInstance>(tags: T[]): void;
|
|
31
32
|
/**
|
|
32
33
|
* @description: 一个点的标签
|
|
33
34
|
*/
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TagComputer } from './TagComputer';
|
|
2
|
-
import type { Tag, TagInstance, TagGLTFObject, TagObjectGroup, TagGLTFObjectGroup, ImagePlaneGroup, TagContentType } from '../typings';
|
|
2
|
+
import type { Tag, TagInstance, TagGLTFObject, TagObjectGroup, TagGLTFObjectGroup, ImagePlaneGroup, TagContentType, ElementRenderer, TagRendererMap } from '../typings';
|
|
3
3
|
import type { TemporaryState } from '../typings';
|
|
4
4
|
import { type Object3D } from 'three';
|
|
5
5
|
import TagContainerSvelte from '../Components/TagContainer.svelte';
|
|
6
6
|
import type { Five } from '@realsee/five';
|
|
7
7
|
export declare abstract class TagRender extends TagComputer {
|
|
8
8
|
protected group: TagObjectGroup;
|
|
9
|
+
protected renderMap: TagRendererMap;
|
|
9
10
|
protected imagePlaneGroup: ImagePlaneGroup;
|
|
10
11
|
protected gltfObjectGroup: TagGLTFObjectGroup;
|
|
11
12
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
@@ -15,6 +16,15 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
15
16
|
/** 点标签 */
|
|
16
17
|
protected TagContainerSvelte?: TagContainerSvelte;
|
|
17
18
|
constructor(five: Five);
|
|
19
|
+
/**
|
|
20
|
+
* @description: 设置 contentType 的渲染器
|
|
21
|
+
* @param {string} contentType
|
|
22
|
+
* 如果是 `TagContentType` 中的类型,将会覆盖掉插件内部默认的渲染器,
|
|
23
|
+
* 如果是其他任意 str
|
|
24
|
+
* ing 如:'Foo',则可以将类似 `{id: 1, contentType: 'Foo', position: [0,0,0]}` 的 tag 交给插件渲染
|
|
25
|
+
* @note 优先级低于 tag.element
|
|
26
|
+
*/
|
|
27
|
+
registerRenderer(contentType: string, renderer: ElementRenderer): void;
|
|
18
28
|
clearTags(): void;
|
|
19
29
|
/**
|
|
20
30
|
* @description: 更新所有标签
|
|
@@ -56,11 +56,12 @@ export interface EventMap extends BasePlugin.EventMap<State> {
|
|
|
56
56
|
}) => void;
|
|
57
57
|
loadVideoFirstFrame: () => void;
|
|
58
58
|
}
|
|
59
|
-
export type TagEvents = {
|
|
59
|
+
export type TagEvents<C extends TagContentType = TagContentType> = {
|
|
60
60
|
unfolded: () => void;
|
|
61
61
|
folded: () => void;
|
|
62
62
|
show: () => void;
|
|
63
63
|
hide: () => void;
|
|
64
|
+
dataChanged: (data: TagInstance<C>['data']) => void;
|
|
64
65
|
};
|
|
65
66
|
export interface TagCacheInterface {
|
|
66
67
|
visible?: boolean;
|
|
@@ -2,7 +2,7 @@ import type { State as FiveState } from '@realsee/five';
|
|
|
2
2
|
import type { TagConfig } from './TagConfig';
|
|
3
3
|
import type { ContentTypeMap, TagContentType } from './TagData';
|
|
4
4
|
import type { Position, TagId, StickType, TagStyle, ElementRenderer, PickTagContentTypeInContentTypeConfigKey, ContentTypeConfigKey } from './Utils';
|
|
5
|
-
import type { DeprecatedTagProperty } from '../../Archive/deprecated';
|
|
5
|
+
import type { ContentType, DeprecatedTagProperty } from '../../Archive/deprecated';
|
|
6
6
|
export interface Tags {
|
|
7
7
|
version?: string;
|
|
8
8
|
/** tag配置 > 按type配置 > 全局配置 */
|
|
@@ -19,11 +19,11 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
|
|
|
19
19
|
/** 开启/禁用 */
|
|
20
20
|
enabled?: boolean;
|
|
21
21
|
/** 唯一标识 */
|
|
22
|
-
id
|
|
22
|
+
id: TagId;
|
|
23
23
|
/** @type {StickType} 附着方式 */
|
|
24
24
|
stickType: S;
|
|
25
25
|
/** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
|
|
26
|
-
contentType: C;
|
|
26
|
+
contentType: C extends ContentType.Unknown ? string : C;
|
|
27
27
|
/** 点 */
|
|
28
28
|
position: S extends 'Plane' ? [Position, Position, Position, Position] : S extends '2DPoint' | '3DPoint' | 'Model' ? Position : Position | [Position, Position, Position, Position];
|
|
29
29
|
/** 法向量 */
|
|
@@ -33,7 +33,7 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
|
|
|
33
33
|
/** 标签 wrapper 的 classname */
|
|
34
34
|
className?: string;
|
|
35
35
|
/** 标签数据 */
|
|
36
|
-
data
|
|
36
|
+
data: C extends TagContentType ? ContentTypeMap[C] : ContentTypeMap[keyof ContentTypeMap];
|
|
37
37
|
/** 「展开/收起」 「可见/不可见」 的策略配置 */
|
|
38
38
|
config?: TagConfig<C>;
|
|
39
39
|
/** 打标签时的 five state */
|
|
@@ -4,8 +4,8 @@ import type { ContentTypeMap, TagContentType } from './TagData';
|
|
|
4
4
|
import type { MinMax } from './Utils';
|
|
5
5
|
import type { PartialObjectDeep } from './Utils';
|
|
6
6
|
import type { TagInstance } from './TagInstance';
|
|
7
|
-
type ConfigFunction
|
|
8
|
-
tag: TagInstance<
|
|
7
|
+
type ConfigFunction = (five: Five, tagState: {
|
|
8
|
+
tag: TagInstance<any>;
|
|
9
9
|
/** 标签点或中心点的到摄像机的距离 */
|
|
10
10
|
distance: number;
|
|
11
11
|
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
@@ -68,7 +68,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
68
68
|
* @default undefined
|
|
69
69
|
*/
|
|
70
70
|
angleRange?: MinMax;
|
|
71
|
-
} | ConfigFunction
|
|
71
|
+
} | ConfigFunction;
|
|
72
72
|
/** 展开/收起配置 */
|
|
73
73
|
unfoldedConfig?: {
|
|
74
74
|
/** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
|
|
@@ -109,7 +109,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
109
109
|
/** 展开的最大距离, 默认为无限制 */
|
|
110
110
|
distance?: MinMax;
|
|
111
111
|
};
|
|
112
|
-
} | ConfigFunction
|
|
112
|
+
} | ConfigFunction;
|
|
113
113
|
/** 初始状态 */
|
|
114
114
|
initialState?: {
|
|
115
115
|
/** 显示/隐藏 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Tag } from './Tag';
|
|
2
2
|
import type TagContentSvelte from '../../Components/Tag/index.svelte';
|
|
3
3
|
import type { TagContentType } from './TagData';
|
|
4
|
-
import type { StickType, TagGLTFObject } from './Utils';
|
|
4
|
+
import type { PartialObjectDeep, StickType, TagGLTFObject } from './Utils';
|
|
5
5
|
import type { Create3DDomContainerReturnType } from '../../../CSS3DRenderPlugin';
|
|
6
6
|
import type { Vector3 } from 'three';
|
|
7
7
|
import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
|
|
@@ -15,6 +15,7 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
15
15
|
leftPercent: number;
|
|
16
16
|
topPercent: number;
|
|
17
17
|
} | null;
|
|
18
|
+
zIndex?: number;
|
|
18
19
|
temporaryState: {
|
|
19
20
|
visible: boolean;
|
|
20
21
|
};
|
|
@@ -41,11 +42,12 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
41
42
|
visible?: boolean;
|
|
42
43
|
unfolded: boolean;
|
|
43
44
|
};
|
|
44
|
-
hooks: Subscribe<TagEvents
|
|
45
|
+
hooks: Subscribe<TagEvents<C>>;
|
|
45
46
|
unfold: () => void;
|
|
46
47
|
fold: () => void;
|
|
47
48
|
enable: () => void;
|
|
48
49
|
disable: () => void;
|
|
49
50
|
destroy: () => void;
|
|
51
|
+
changeData: (data: PartialObjectDeep<TagInstance<C>['data']>) => void;
|
|
50
52
|
};
|
|
51
53
|
export {};
|
|
@@ -35,8 +35,11 @@ export interface TagIconUrl {
|
|
|
35
35
|
export interface TagStyle {
|
|
36
36
|
/** 小圆点样式 */
|
|
37
37
|
point?: {
|
|
38
|
-
/**
|
|
39
|
-
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated v2.11.0 废弃,使用 width: number 控制
|
|
40
|
+
* @description S: 18; M: 20; L: 24; XL: 28
|
|
41
|
+
*/
|
|
42
|
+
size?: 'S' | 'M' | 'L' | 'XL' | number;
|
|
40
43
|
} & TagIconUrl;
|
|
41
44
|
}
|
|
42
45
|
export type TagGLTFObject = GLTFObject & {
|
|
@@ -46,7 +49,10 @@ export type TagGLTFObject = GLTFObject & {
|
|
|
46
49
|
updateTagCss3DObjectMatrix?: () => void;
|
|
47
50
|
};
|
|
48
51
|
/** 返回一个销毁函数 */
|
|
49
|
-
export type ElementRenderer = (container: HTMLElement) => () => void;
|
|
52
|
+
export type ElementRenderer = (container: HTMLElement, tag: TagInstance<any, any>) => () => void;
|
|
53
|
+
export type TagRendererMap = Map<string, {
|
|
54
|
+
renderer: ElementRenderer;
|
|
55
|
+
}>;
|
|
50
56
|
export interface TagObjectGroup extends Group {
|
|
51
57
|
children: Array<TagGLTFObjectGroup>;
|
|
52
58
|
}
|
|
@@ -56,18 +62,14 @@ export interface TagGLTFObjectGroup extends Group {
|
|
|
56
62
|
export interface ImagePlaneGroup extends Group {
|
|
57
63
|
children: ImagePlane[];
|
|
58
64
|
}
|
|
59
|
-
/**
|
|
60
|
-
* @description S: 18; M: 20; L: 24; XL: 28
|
|
61
|
-
*/
|
|
62
|
-
export type TagIconSize = 'S' | 'M' | 'L' | 'XL' | number;
|
|
63
65
|
export type AudioAppearance = TagInstance<'Audio'>['data']['appearance'];
|
|
64
66
|
export type AudioTagTypeConfigKey = `${StickType | 'Any'}-Audio-${AudioAppearance}`;
|
|
65
|
-
export type ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey
|
|
67
|
+
export type ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey | `Mixin-${string}`;
|
|
66
68
|
/**
|
|
67
69
|
* @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥,没找到就是 never
|
|
68
70
|
*/
|
|
69
|
-
export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
|
|
70
|
-
export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
|
|
71
|
+
export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `Mixin-${string}` ? string : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
|
|
72
|
+
export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | ['Mixin', string] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
|
|
71
73
|
export type PointTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint' | '3DPoint'>;
|
|
72
74
|
/** 二维标签 */
|
|
73
75
|
export type Point2DTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint'>;
|