@realsee/dnalogel 2.3.4 → 2.3.5-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/dist/ModelViewPlugin/Plugin.d.ts +8 -0
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
- package/dist/PanoTagPlugin/controller/index.d.ts +14 -12
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +12 -11
- package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
- package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +7181 -6311
- package/dist/index.umd.js +43 -43
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +196 -164
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +75 -35
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +19 -15
- 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 +19 -15
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +35 -13
- package/docs/functions/CameraMovementPlugin.html +35 -13
- package/docs/functions/CruisePlugin.html +35 -13
- package/docs/functions/GuideLinePlugin.html +36 -14
- package/docs/functions/ItemLabelPlugin.html +35 -13
- package/docs/functions/MapviewFloorplanPlugin.html +35 -13
- package/docs/functions/ModelChassisCompassPlugin.html +35 -13
- package/docs/functions/ModelEntryDoorGuidePlugin.html +35 -13
- package/docs/functions/ModelFloorplanPlugin.html +35 -13
- package/docs/functions/ModelItemLabelPlugin.html +35 -13
- package/docs/functions/ModelRoomLabelPlugin.html +35 -13
- package/docs/functions/ModelTVVideoPlugin.html +35 -13
- package/docs/functions/ModelViewPlugin.html +35 -13
- package/docs/functions/Object3DHelperPlugin.html +35 -13
- package/docs/functions/PanoCompassPlugin.html +35 -13
- package/docs/functions/PanoCursorRaycasterPlugin.html +35 -13
- package/docs/functions/PanoDoorLabelPlugin.html +35 -13
- package/docs/functions/PanoFloorplanRadarPlugin.html +35 -13
- package/docs/functions/PanoMeasurePlugin.html +35 -13
- package/docs/functions/PanoRulerPlugin.html +35 -13
- package/docs/functions/PanoRulerProPlugin.html +35 -13
- package/docs/functions/PanoSpatialTagPlugin.html +35 -13
- package/docs/functions/PanoTagPlugin.html +41 -23
- package/docs/functions/TopviewFloorplanPlugin.html +35 -13
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +36 -14
- package/docs/index.html +35 -13
- package/docs/interfaces/AddTagConfig.html +64 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +298 -0
- 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/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/MinMax.html +71 -0
- 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 +57 -9
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- 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 +36 -14
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- 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 +36 -14
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +36 -14
- 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/Point.html +8 -8
- package/docs/interfaces/PointJson.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 +36 -14
- package/docs/interfaces/Rooms.html +36 -14
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +89 -0
- package/docs/interfaces/TagCache.html +92 -0
- package/docs/interfaces/TagConfig.html +15 -19
- package/docs/interfaces/TagIconUrl.html +91 -0
- package/docs/interfaces/Tags.html +14 -12
- package/docs/interfaces/TemporaryState.html +64 -0
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +65 -21
- package/docs/types/ArrayPosition.html +37 -15
- package/docs/types/CSS3DRenderExportType.html +36 -14
- package/docs/types/CSS3DRenderPluginExportType.html +36 -14
- package/docs/types/CSS3DRenderPluginParameterType.html +36 -14
- package/docs/types/Color.html +36 -14
- package/docs/types/ContentTypeConfigKey.html +37 -15
- package/docs/types/ContentTypeMap.html +247 -0
- package/docs/types/Create3DDomContainerReturnType.html +36 -14
- package/docs/types/Create3DElementReturnType.html +36 -14
- package/docs/types/CruisePluginExportType.html +36 -14
- package/docs/types/Direction-1.html +36 -14
- package/docs/types/Direction4.html +36 -14
- package/docs/types/FloorplanRuleLabels.html +36 -14
- package/docs/types/FloorplanServerRuleLabels.html +36 -14
- package/docs/types/GuideLinePluginExportType.html +36 -14
- package/docs/types/HelperEventMap.html +36 -14
- package/docs/types/MapviewFloorplanPluginParameterType.html +36 -14
- package/docs/types/MapviewFloorplanPluginReturnType.html +36 -14
- package/docs/types/MediaData.html +36 -14
- package/docs/types/MediaStore.html +247 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +36 -14
- package/docs/types/ModelFloorplanPluginParameterType.html +36 -14
- package/docs/types/ModelFloorplanPluginReturnType.html +36 -14
- package/docs/types/ModelRoomLabelPluginParameters.html +36 -14
- package/docs/types/ModelRoomLabelPluginReturnType.html +36 -14
- package/docs/types/MoveArgs.html +36 -14
- package/docs/types/MoveOpts.html +36 -14
- package/docs/types/Object3DHelperEventMap.html +36 -14
- package/docs/types/ObjectFit.html +36 -14
- package/docs/types/PaintBrushEventMap.html +36 -14
- package/docs/types/PanoCompassPluginData.html +36 -14
- package/docs/types/PanoCompassPluginExportType.html +36 -14
- package/docs/types/PanoCompassPluginParameterType.html +36 -14
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +36 -14
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +36 -14
- package/docs/types/PanoIndex.html +247 -0
- package/docs/types/PanoMeasurePluginEvent.html +36 -14
- package/docs/types/PanoMeasureReturnType.html +36 -14
- package/docs/types/PanoSpatialTagPluginId.html +36 -14
- package/docs/types/PanoTagPluginExportInterface.html +36 -14
- package/docs/types/PanoTagPluginParamsInterface.html +36 -14
- package/docs/types/PlaneTag.html +39 -19
- package/docs/types/PlaneTagElement.html +252 -0
- package/docs/types/Point2DElement.html +252 -0
- package/docs/types/Point2DTag.html +254 -0
- package/docs/types/Point3DElement.html +252 -0
- package/docs/types/Point3DTag.html +254 -0
- package/docs/types/PointTag.html +39 -23
- package/docs/types/PointTagElement.html +252 -0
- package/docs/types/Position.html +36 -14
- package/docs/types/RotateArgs.html +36 -14
- package/docs/types/RotateOpts.html +36 -14
- package/docs/types/RuleLabelsKey.html +36 -14
- package/docs/types/RuleLabelsValue.html +36 -14
- package/docs/types/StickType.html +247 -0
- package/docs/types/Tag.html +40 -22
- package/docs/types/Tag2D.html +41 -20
- package/docs/types/Tag3D.html +41 -20
- package/docs/types/TagContentType.html +247 -0
- package/docs/types/TagDimensionType.html +247 -0
- package/docs/types/TagElement.html +254 -0
- package/docs/types/TagEvents.html +282 -0
- package/docs/types/TagHooks.html +247 -0
- package/docs/types/TagIconSize.html +250 -0
- package/docs/types/TagId.html +36 -14
- package/docs/types/TagPointType.html +250 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +36 -14
- package/docs/types/TopviewFloorplanPluginReturnType.html +36 -14
- package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +39 -17
- package/docs/variables/FLOOR_TYPE_MAP.html +36 -14
- package/docs/variables/PLUGIN.html +36 -14
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +36 -14
- package/docs/variables/ROOM_TYPE_MAP.html +36 -14
- package/docs/variables/VERSION.html +36 -14
- package/docs/variables/itemLabelPluginServerParams.html +36 -14
- package/docs/variables/modelItemLabelPluginServerParams.html +36 -14
- package/docs/variables/modelRoomLabelPluginServerParams.html +36 -14
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +2 -2
- package/libs/ModelViewPlugin/Plugin.d.ts +8 -0
- package/libs/ModelViewPlugin/Plugin.js +83 -73
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
- package/libs/PanoTagPlugin/Components/Common/Audio.js +138 -133
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +173 -0
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +32 -32
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -57
- package/libs/PanoTagPlugin/Components/Common/Media.js +212 -194
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +109 -80
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +78 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +135 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +147 -0
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +209 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +204 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +98 -0
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +100 -130
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +49 -98
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +47 -44
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +98 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +122 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +98 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +130 -133
- package/libs/PanoTagPlugin/Components/TagContainer.js +89 -105
- package/libs/PanoTagPlugin/Components/TagItem.js +139 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
- package/libs/PanoTagPlugin/controller/TagComputer.js +168 -151
- package/libs/PanoTagPlugin/controller/index.d.ts +14 -12
- package/libs/PanoTagPlugin/controller/index.js +128 -133
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +31 -20
- package/libs/PanoTagPlugin/tag.config.js +23 -16
- package/libs/PanoTagPlugin/typings/controller.d.ts +12 -11
- package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
- package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/color.js +17 -0
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/getImageInfo.js +50 -0
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
- package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/format.js +10 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +10 -0
- package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
- package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
- package/libs/index.js +112 -101
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +17 -20
- package/libs/vendor/svelte/internal/index.js +381 -341
- package/package.json +3 -3
- package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/docs/enums/LinkType.html +0 -67
- package/docs/interfaces/ContentTypeMap.html +0 -212
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
- package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
- package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
- package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/libs/PanoTagPlugin/typings/tag.js +0 -7
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import type { Five } from '@realsee/five';
|
|
2
|
-
import type { Create3DDomContainerParamsType } from '../../CSS3DRenderPlugin/Controller';
|
|
3
|
-
export type { PartialDeep } from 'type-fest';
|
|
4
|
-
export declare type TagId = string | number;
|
|
5
|
-
export declare type ArrayPosition = [number, number, number];
|
|
6
|
-
export declare type Position = ArrayPosition;
|
|
7
|
-
declare type Object = Record<string | number | symbol, any>;
|
|
8
|
-
/** 返回一个销毁函数 */
|
|
9
|
-
declare type ElementRenderer = (container: HTMLElement) => () => void;
|
|
10
|
-
interface MinMax {
|
|
11
|
-
min?: number;
|
|
12
|
-
max?: number;
|
|
13
|
-
}
|
|
14
|
-
export declare enum DimensionType {
|
|
15
|
-
Two = "2D",
|
|
16
|
-
Three = "3D"
|
|
17
|
-
}
|
|
18
|
-
export declare enum PointType {
|
|
19
|
-
PointTag = "PointTag",
|
|
20
|
-
PlaneTag = "PlaneTag"
|
|
21
|
-
}
|
|
22
|
-
export declare enum ContentType {
|
|
23
|
-
/** 音频标签 */
|
|
24
|
-
Audio = "Audio",
|
|
25
|
-
/** 文本标签 */
|
|
26
|
-
Text = "Text",
|
|
27
|
-
/** 图文标签 */
|
|
28
|
-
ImageText = "ImageText",
|
|
29
|
-
/** VR跳转标签 */
|
|
30
|
-
Link = "Link",
|
|
31
|
-
/** 营销标签 */
|
|
32
|
-
Marketing = "Marketing",
|
|
33
|
-
/** 图片视频贴片 */
|
|
34
|
-
MediaPlane = "MediaPlane",
|
|
35
|
-
/** 其他/自定义标签 */
|
|
36
|
-
Custom = "Custom"
|
|
37
|
-
}
|
|
38
|
-
export interface Tags {
|
|
39
|
-
version?: string;
|
|
40
|
-
/** tag配置 > 按type配置 > 全局配置 */
|
|
41
|
-
/** 全局配置 */
|
|
42
|
-
globalConfig?: TagConfig;
|
|
43
|
-
/** 按type配置 */
|
|
44
|
-
contentTypeConfig?: Partial<Record<ContentTypeConfigKey, TagConfig>>;
|
|
45
|
-
tagList: Tag[];
|
|
46
|
-
}
|
|
47
|
-
export declare type ContentTypeConfigKeyArray = [DimensionType | 'Any', ContentType | 'Any', PointType | 'Any'];
|
|
48
|
-
export declare type ContentTypeConfigKey = `${ContentTypeConfigKeyArray[0]}-${ContentTypeConfigKeyArray[1]}-${ContentTypeConfigKeyArray[2]}`;
|
|
49
|
-
export declare type Tag<C extends ContentType = any, P extends PointType = any, D extends DimensionType = any, CustomDataType extends Object = {}> = {
|
|
50
|
-
/** 开启/禁用 */
|
|
51
|
-
enabled?: boolean;
|
|
52
|
-
/** 唯一标识 */
|
|
53
|
-
id: TagId;
|
|
54
|
-
/** 一个点的标签/4个点的标签 */
|
|
55
|
-
pointType: P;
|
|
56
|
-
/** 2维/3维类型 */
|
|
57
|
-
dimensionType: D;
|
|
58
|
-
/** 内容类型,根据内容类型展示对应UI */
|
|
59
|
-
contentType: C;
|
|
60
|
-
/** 点 */
|
|
61
|
-
position: P extends PointType.PointTag ? Position : P extends PointType.PlaneTag ? [Position, Position, Position, Position] : any;
|
|
62
|
-
/** 自定义标签内容 */
|
|
63
|
-
element?: string | Element | ElementRenderer;
|
|
64
|
-
/** 标签数据 */
|
|
65
|
-
data: C extends ContentType.Custom ? CustomDataType : ContentTypeMap[C];
|
|
66
|
-
/** 「展开/收起」 「可见/不可见」 的策略配置 */
|
|
67
|
-
config?: TagConfig<C, P, D, CustomDataType>;
|
|
68
|
-
/** 法向量 */
|
|
69
|
-
normal?: Position;
|
|
70
|
-
/** 样式 */
|
|
71
|
-
style?: {
|
|
72
|
-
/** 小圆点样式 */
|
|
73
|
-
point?: {
|
|
74
|
-
style: 'Default';
|
|
75
|
-
} | {
|
|
76
|
-
style: 'CustomIcon';
|
|
77
|
-
iconUrl: string;
|
|
78
|
-
} | {
|
|
79
|
-
style: 'noPoint';
|
|
80
|
-
};
|
|
81
|
-
/** 收起的时候的动画延时,单位:ms */
|
|
82
|
-
foldedPointDelay?: number;
|
|
83
|
-
};
|
|
84
|
-
} & (D extends DimensionType.Three ? (P extends PointType.PointTag ? {
|
|
85
|
-
normal: Position;
|
|
86
|
-
} : unknown) : unknown); /** 三维标签需要法向量 */
|
|
87
|
-
export interface TagConfig<C extends ContentType = ContentType, T extends PointType = PointType, D extends DimensionType = DimensionType, CustomDataType extends Object = {}> {
|
|
88
|
-
/** 显示/隐藏配置 */
|
|
89
|
-
visibleConfig?: {
|
|
90
|
-
/** 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效 */
|
|
91
|
-
keep?: 'visible' | 'hidden';
|
|
92
|
-
/** 走点时不隐藏 */
|
|
93
|
-
alwaysShowWhenMovePano?: true;
|
|
94
|
-
/** min-max米内显示 | 无距离限制 */
|
|
95
|
-
visibleDistance?: MinMax | 'unLimited';
|
|
96
|
-
/** 限制xx点位上可见,不传则不限制 */
|
|
97
|
-
visiblePanoIndex?: number[];
|
|
98
|
-
/** 碰撞检测配置 */
|
|
99
|
-
intersectRaycaster?: {
|
|
100
|
-
/** 是否开启碰撞检测 */
|
|
101
|
-
enabled?: false;
|
|
102
|
-
/** 碰撞检测的允许误差, 默认值建议为0.01 */
|
|
103
|
-
distanceAccuracy?: number;
|
|
104
|
-
};
|
|
105
|
-
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起 */
|
|
106
|
-
angleRange?: MinMax;
|
|
107
|
-
} | ((five: Five, tagState: {
|
|
108
|
-
tag: Tag<C, T, D, CustomDataType>;
|
|
109
|
-
/** 标签点或中心点的到摄像机的距离 */
|
|
110
|
-
distance: number;
|
|
111
|
-
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
112
|
-
angleRange?: number;
|
|
113
|
-
}) => boolean);
|
|
114
|
-
/** 展开/收起配置 */
|
|
115
|
-
unfoldedConfig?: {
|
|
116
|
-
/** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
|
|
117
|
-
keep?: 'unfolded' | 'folded';
|
|
118
|
-
/** 划动到不可见状态时,自动收起,disableFold: true 的标签不受此参数影响 */
|
|
119
|
-
autoUnfoldWhenHide?: false;
|
|
120
|
-
/**
|
|
121
|
-
* @deprecated replace by { keep: 'folded' }
|
|
122
|
-
* @deprecated 部分标签是无法打开的
|
|
123
|
-
*/
|
|
124
|
-
disableUnfold?: true;
|
|
125
|
-
/**
|
|
126
|
-
* @deprecated replace by { keep: 'unfolded' }
|
|
127
|
-
* @deprecated 部分标签是无法收起的
|
|
128
|
-
*/
|
|
129
|
-
disableFold?: true;
|
|
130
|
-
/** min-max米内自动展开,否则收起 */
|
|
131
|
-
unfoldDistance?: MinMax;
|
|
132
|
-
/** 自动展开策略 */
|
|
133
|
-
autoUnfold?: {
|
|
134
|
-
/** 自动展开 策略 */
|
|
135
|
-
strategy?: 'ScreenPostion';
|
|
136
|
-
/** 自动展开策略,{min,max}为project(camera)后的x值 */
|
|
137
|
-
autoUnfoldProjectX?: MinMax;
|
|
138
|
-
} | {
|
|
139
|
-
/** 自动展开 策略 */
|
|
140
|
-
strategy?: 'MinimumDistance';
|
|
141
|
-
/** 展开的最大数量, 默认为1 */
|
|
142
|
-
maxNumber?: number;
|
|
143
|
-
};
|
|
144
|
-
} | ((five: Five, tagState: {
|
|
145
|
-
tag: Tag<C, T, D, CustomDataType>;
|
|
146
|
-
/** 标签点或中心点的到摄像机的距离 */
|
|
147
|
-
distance: number;
|
|
148
|
-
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
149
|
-
angleRange?: number;
|
|
150
|
-
}) => boolean);
|
|
151
|
-
/** 初始状态 */
|
|
152
|
-
initialState?: {
|
|
153
|
-
/** 显示/隐藏 */
|
|
154
|
-
visible?: boolean;
|
|
155
|
-
/** 展开/收起 */
|
|
156
|
-
unfolded?: boolean;
|
|
157
|
-
};
|
|
158
|
-
tag3DConfig?: Create3DDomContainerParamsType['config'];
|
|
159
|
-
clickable?: false;
|
|
160
|
-
}
|
|
161
|
-
export declare enum LinkType {
|
|
162
|
-
VrLink = "vr",
|
|
163
|
-
NormalLink = "normal"
|
|
164
|
-
}
|
|
165
|
-
export declare type MediaData = {
|
|
166
|
-
type: 'Image';
|
|
167
|
-
url: string;
|
|
168
|
-
} | {
|
|
169
|
-
type: 'Video';
|
|
170
|
-
url: string;
|
|
171
|
-
videoCoverUrl?: string;
|
|
172
|
-
};
|
|
173
|
-
export declare type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
174
|
-
export interface ContentTypeMap {
|
|
175
|
-
[ContentType.Audio]: {
|
|
176
|
-
text: string;
|
|
177
|
-
audioUrl: string;
|
|
178
|
-
extraData?: Object;
|
|
179
|
-
};
|
|
180
|
-
[ContentType.ImageText]: {
|
|
181
|
-
text?: string;
|
|
182
|
-
mediaData: (MediaData & {
|
|
183
|
-
name?: string;
|
|
184
|
-
})[];
|
|
185
|
-
extraData?: Object;
|
|
186
|
-
};
|
|
187
|
-
[ContentType.Text]: {
|
|
188
|
-
text: string;
|
|
189
|
-
extraData?: Object;
|
|
190
|
-
};
|
|
191
|
-
[ContentType.Link]: {
|
|
192
|
-
linkType: LinkType;
|
|
193
|
-
text: string;
|
|
194
|
-
extraData?: Object;
|
|
195
|
-
};
|
|
196
|
-
[ContentType.Marketing]: {
|
|
197
|
-
/** 标题 */
|
|
198
|
-
title: string;
|
|
199
|
-
/** 高亮的标签 */
|
|
200
|
-
brandTags?: string[];
|
|
201
|
-
/** 普通标签 */
|
|
202
|
-
tags?: string[];
|
|
203
|
-
/** 头部宣传图 */
|
|
204
|
-
headerPictureUrl?: string;
|
|
205
|
-
/** 跳转文字 */
|
|
206
|
-
highlightText?: string;
|
|
207
|
-
/** 价格 */
|
|
208
|
-
price?: {
|
|
209
|
-
value: string;
|
|
210
|
-
/** 单位 */
|
|
211
|
-
unit: string;
|
|
212
|
-
};
|
|
213
|
-
extraData?: Object;
|
|
214
|
-
};
|
|
215
|
-
[ContentType.MediaPlane]: {
|
|
216
|
-
enableCarousel?: boolean;
|
|
217
|
-
/**
|
|
218
|
-
* @description stretch: 拉伸适配, proportional: 等比适配,默认值 'proportional'
|
|
219
|
-
* @deprecated replaced by objectFit
|
|
220
|
-
*/
|
|
221
|
-
adaptationMode?: 'stretch' | 'proportional';
|
|
222
|
-
/** object-fit doc {@link https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit} */
|
|
223
|
-
objectFit?: ObjectFit;
|
|
224
|
-
/**
|
|
225
|
-
* @description 是否开启自动轮播
|
|
226
|
-
* @param autoplay true: 开启自动轮播, false: 关闭自动播放
|
|
227
|
-
* @param autoplayVideo 自动轮播时,如果是视频, 则自动播放视频
|
|
228
|
-
* @default 默认值 { autoplay: true, autoplayVideo: false }
|
|
229
|
-
*/
|
|
230
|
-
autoplayConfig?: {
|
|
231
|
-
autoplay: boolean;
|
|
232
|
-
autoplayVideo: boolean;
|
|
233
|
-
};
|
|
234
|
-
mediaData: MediaData[];
|
|
235
|
-
extraData?: Object;
|
|
236
|
-
};
|
|
237
|
-
[ContentType.Custom]: unknown;
|
|
238
|
-
}
|
|
239
|
-
/** 内置一些基础标签 */
|
|
240
|
-
/** 一个点的标签 */
|
|
241
|
-
export declare type PointTag<C extends ContentType = ContentType, D extends DimensionType = DimensionType, CustomDataType extends Object = {}> = Tag<C, PointType.PointTag, D, CustomDataType>;
|
|
242
|
-
/** 二维标签 */
|
|
243
|
-
export declare type Tag2D<C extends ContentType = ContentType, CustomDataType extends Object = {}> = Tag<C, PointType.PointTag, DimensionType.Two, CustomDataType>;
|
|
244
|
-
/** 三维标签 */
|
|
245
|
-
export declare type Tag3D<C extends ContentType = ContentType, CustomDataType extends Object = {}> = Tag<C, PointType.PointTag, DimensionType.Three, CustomDataType>;
|
|
246
|
-
/** 三维贴片 */
|
|
247
|
-
export declare type PlaneTag<C extends ContentType = ContentType, CustomDataType extends Object = {}> = Tag<C, PointType.PlaneTag, DimensionType.Three, CustomDataType>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var r = /* @__PURE__ */ ((a) => (a.Two = "2D", a.Three = "3D", a))(r || {}), g = /* @__PURE__ */ ((a) => (a.PointTag = "PointTag", a.PlaneTag = "PlaneTag", a))(g || {}), i = /* @__PURE__ */ ((a) => (a.Audio = "Audio", a.Text = "Text", a.ImageText = "ImageText", a.Link = "Link", a.Marketing = "Marketing", a.MediaPlane = "MediaPlane", a.Custom = "Custom", a))(i || {}), u = /* @__PURE__ */ ((a) => (a.VrLink = "vr", a.NormalLink = "normal", a))(u || {});
|
|
2
|
-
export {
|
|
3
|
-
i as ContentType,
|
|
4
|
-
r as DimensionType,
|
|
5
|
-
u as LinkType,
|
|
6
|
-
g as PointType
|
|
7
|
-
};
|