@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,194 +1,205 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
var U = Object.defineProperty, j = Object.defineProperties;
|
|
2
|
+
var w = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var k = Object.getOwnPropertySymbols;
|
|
4
|
+
var B = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var P = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, x = (u, c) => {
|
|
6
|
+
for (var e in c || (c = {}))
|
|
7
|
+
B.call(c, e) && P(u, e, c[e]);
|
|
8
|
+
if (k)
|
|
9
|
+
for (var e of k(c))
|
|
10
|
+
A.call(c, e) && P(u, e, c[e]);
|
|
11
|
+
return u;
|
|
12
|
+
}, D = (u, c) => j(u, w(c));
|
|
13
|
+
var y = (u, c, e) => (P(u, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
import C from "object-assign-deep";
|
|
5
15
|
import * as I from "three";
|
|
6
|
-
import { DefaultConfig as
|
|
7
|
-
import {
|
|
8
|
-
import { arrayPositionToVector3 as
|
|
9
|
-
import { planeNormal as
|
|
10
|
-
import { tagPosition as
|
|
11
|
-
import { checkRange as
|
|
12
|
-
import { TagCacheController as
|
|
13
|
-
class
|
|
16
|
+
import { DefaultConfig as E } from "../tag.config.js";
|
|
17
|
+
import { is3DTag as V, isPointTag as R } from "../utils/tag/tagCheck.js";
|
|
18
|
+
import { arrayPositionToVector3 as M, anyPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as $ } from "../utils/planeNormal.js";
|
|
20
|
+
import { tagPosition as T } from "../utils/tagPosition.js";
|
|
21
|
+
import { checkRange as v } from "../utils/checkRange.js";
|
|
22
|
+
import { TagCacheController as z } from "./TagCacheController.js";
|
|
23
|
+
class q extends z {
|
|
14
24
|
constructor(e) {
|
|
15
25
|
super(e);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
26
|
+
y(this, "tags", []);
|
|
27
|
+
y(this, "config", E);
|
|
28
|
+
y(this, "raycaster", new I.Raycaster());
|
|
19
29
|
}
|
|
20
30
|
getTagById(e) {
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
23
|
-
console.error(`getTagById(): tag is ${
|
|
31
|
+
const t = this.tags.find((i) => i.id === e);
|
|
32
|
+
if (!t) {
|
|
33
|
+
console.error(`getTagById(): tag is ${t}, id is ${e}`);
|
|
24
34
|
return;
|
|
25
35
|
}
|
|
26
|
-
return
|
|
36
|
+
return t;
|
|
27
37
|
}
|
|
28
|
-
changeConfig(e,
|
|
29
|
-
|
|
38
|
+
changeConfig(e, t = !0) {
|
|
39
|
+
t ? this.config = C({}, this.config, e) : this.config = e, this.clearCache();
|
|
30
40
|
}
|
|
31
|
-
changeGlobalConfig(e,
|
|
32
|
-
|
|
41
|
+
changeGlobalConfig(e, t = !0) {
|
|
42
|
+
t ? this.config.globalConfig = C({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
|
|
33
43
|
}
|
|
34
|
-
changeContentTypeConfig(e,
|
|
35
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
44
|
+
changeContentTypeConfig(e, t, i = !0) {
|
|
45
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = C({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
|
|
36
46
|
}
|
|
37
|
-
getVisibleByPanoIndex(e,
|
|
38
|
-
var
|
|
39
|
-
const i = this.getCaches({ panoIndex:
|
|
47
|
+
getVisibleByPanoIndex(e, t) {
|
|
48
|
+
var n;
|
|
49
|
+
const i = this.getCaches({ panoIndex: t, id: e.id }), s = (n = this.five.panoIndex) != null ? n : t;
|
|
40
50
|
if (i.visible !== void 0)
|
|
41
51
|
return i.visible;
|
|
42
52
|
{
|
|
43
|
-
const
|
|
44
|
-
var
|
|
45
|
-
const
|
|
46
|
-
if (typeof
|
|
47
|
-
return
|
|
48
|
-
if (
|
|
53
|
+
const l = (() => {
|
|
54
|
+
var d, p, r;
|
|
55
|
+
const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, a = this.getDistance(e);
|
|
56
|
+
if (typeof o == "function")
|
|
57
|
+
return o(this.five, { tag: e, distance: a });
|
|
58
|
+
if (o.keep === "hidden")
|
|
49
59
|
return !1;
|
|
50
|
-
if (
|
|
60
|
+
if (o.keep === "visible")
|
|
51
61
|
return !0;
|
|
52
|
-
if (
|
|
62
|
+
if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0 && (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s) || o.visiblePanoIndex === "current" && s !== ((p = e.fiveState) == null ? void 0 : p.panoIndex)) || o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && v(a, o.visibleDistance) === !1)
|
|
53
63
|
return !1;
|
|
54
|
-
if (
|
|
55
|
-
if (
|
|
64
|
+
if (o.intersectRaycaster !== !1 && o.intersectRaycaster) {
|
|
65
|
+
if (s === void 0)
|
|
56
66
|
return !1;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
60
|
-
const
|
|
61
|
-
this.raycaster.set(
|
|
62
|
-
const [
|
|
63
|
-
|
|
67
|
+
const f = (r = this.five.work.observers[s]) == null ? void 0 : r.position;
|
|
68
|
+
if (f === void 0)
|
|
69
|
+
throw new Error(`getVisible(): observerPosition is ${f}`);
|
|
70
|
+
const h = T(e.position).sub(f).normalize();
|
|
71
|
+
this.raycaster.set(f, h);
|
|
72
|
+
const [g] = this.five.model.intersectRaycaster(this.raycaster), b = (() => {
|
|
73
|
+
var m;
|
|
74
|
+
return typeof o.intersectRaycaster == "object" && (m = o.intersectRaycaster.distanceAccuracy) != null ? m : 0.01;
|
|
75
|
+
})();
|
|
76
|
+
if (g && g.distance + b < a)
|
|
64
77
|
return !1;
|
|
65
78
|
}
|
|
66
|
-
return !(
|
|
79
|
+
return !(o.angleRange && V(e) && v(this.getAngle(e), o.angleRange) === !1);
|
|
67
80
|
})();
|
|
68
|
-
return i.visible =
|
|
81
|
+
return i.visible = l, i.visible;
|
|
69
82
|
}
|
|
70
83
|
}
|
|
71
|
-
getUnfoldedByPanoIndex(e,
|
|
84
|
+
getUnfoldedByPanoIndex(e, t) {
|
|
72
85
|
if (!this.getVisibleByPanoIndex(e))
|
|
73
86
|
return;
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
87
|
+
const s = this.getCaches({ panoIndex: t, id: e.id });
|
|
88
|
+
if (s.unfolded !== void 0)
|
|
89
|
+
return s.unfolded;
|
|
77
90
|
{
|
|
78
|
-
const
|
|
79
|
-
if (!
|
|
91
|
+
const n = this.getTagConfig(e).unfoldedConfig;
|
|
92
|
+
if (!n)
|
|
80
93
|
return;
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
if (typeof
|
|
84
|
-
return
|
|
85
|
-
if (
|
|
94
|
+
const l = (() => {
|
|
95
|
+
const a = this.getDistance(e);
|
|
96
|
+
if (typeof n == "function")
|
|
97
|
+
return n(this.five, { tag: e, distance: a });
|
|
98
|
+
if (n.keep === "folded")
|
|
86
99
|
return !1;
|
|
87
|
-
if (
|
|
100
|
+
if (n.keep === "unfolded")
|
|
88
101
|
return !0;
|
|
89
|
-
if (
|
|
90
|
-
return !1;
|
|
91
|
-
if (t.disableFold === !0)
|
|
92
|
-
return !0;
|
|
93
|
-
if (t.unfoldDistance && P(f, t.unfoldDistance) === !1)
|
|
102
|
+
if (n.unfoldDistance && v(a, n.unfoldDistance) === !1)
|
|
94
103
|
return !1;
|
|
95
104
|
})();
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
return
|
|
105
|
+
s.unfolded = l;
|
|
106
|
+
const o = this.getUnfoldedByCamera(e);
|
|
107
|
+
return o !== void 0 ? o : s.unfolded;
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
getUnfoldedByCamera(e) {
|
|
102
111
|
return this.getVisibleByPanoIndex(e) ? (() => {
|
|
103
|
-
var
|
|
104
|
-
const
|
|
105
|
-
if (!!
|
|
106
|
-
if (typeof
|
|
107
|
-
return
|
|
108
|
-
if (
|
|
109
|
-
return !1;
|
|
110
|
-
if (t.keep === "unfolded")
|
|
111
|
-
return !0;
|
|
112
|
-
if (t.disableUnfold === !0)
|
|
112
|
+
var l;
|
|
113
|
+
const s = this.getDistance(e), n = this.getTagConfig(e).unfoldedConfig;
|
|
114
|
+
if (!!n) {
|
|
115
|
+
if (typeof n == "function")
|
|
116
|
+
return n(this.five, { tag: e, distance: s });
|
|
117
|
+
if (n.keep === "folded")
|
|
113
118
|
return !1;
|
|
114
|
-
if (
|
|
119
|
+
if (n.keep === "unfolded")
|
|
115
120
|
return !0;
|
|
116
|
-
if (
|
|
121
|
+
if (n.autoUnfold === void 0 || n.autoUnfold === !1 || n.autoUnfold.enable === !1)
|
|
117
122
|
return;
|
|
118
|
-
if (
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
123
|
+
if (n.autoUnfold.strategy === "ScreenPostion") {
|
|
124
|
+
const o = this.getTagProject(e);
|
|
125
|
+
if (o && v(o.x, n.autoUnfold.autoUnfoldProjectX) === !1)
|
|
121
126
|
return !1;
|
|
122
127
|
}
|
|
123
|
-
if (
|
|
124
|
-
const
|
|
125
|
-
const
|
|
126
|
-
if (!
|
|
128
|
+
if (n.autoUnfold.strategy === "MinimumDistance") {
|
|
129
|
+
const d = this.filterPointTag().filter((r) => this.getVisibleByPanoIndex(r)).filter((r) => {
|
|
130
|
+
const f = this.getTagProject(r);
|
|
131
|
+
if (!f)
|
|
127
132
|
return !1;
|
|
128
|
-
const { x: h, y: g, z:
|
|
129
|
-
return !(Math.abs(
|
|
130
|
-
}).filter((
|
|
131
|
-
var h;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
const { x: h, y: g, z: b } = f;
|
|
134
|
+
return !(Math.abs(b) > 1 || Math.abs(h) > 1 || Math.abs(g) > 1);
|
|
135
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
|
|
136
|
+
var h, g;
|
|
137
|
+
return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((h = f.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
|
|
138
|
+
}).map((r) => D(x({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
|
|
139
|
+
var h, g;
|
|
140
|
+
return !(r === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((h = f.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = f.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || f.autoUnfold.distance && v(r, f.autoUnfold.distance) === !1);
|
|
141
|
+
}).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
|
|
142
|
+
if (d === -1 || d <= ((l = n.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
|
|
136
143
|
return !1;
|
|
137
144
|
}
|
|
138
145
|
return !0;
|
|
139
146
|
}
|
|
140
147
|
})() : void 0;
|
|
141
148
|
}
|
|
142
|
-
getDistance(e,
|
|
143
|
-
var
|
|
144
|
-
const i = (
|
|
149
|
+
getDistance(e, t) {
|
|
150
|
+
var n, l, o;
|
|
151
|
+
const i = (n = this.five.panoIndex) != null ? n : t;
|
|
145
152
|
if (i === void 0)
|
|
146
153
|
throw new Error(`getDistance(): fivePanoIndex is ${i}`);
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
154
|
+
const s = this.getCaches({ panoIndex: t, id: e.id });
|
|
155
|
+
if (s.distance !== void 0)
|
|
156
|
+
return s.distance;
|
|
150
157
|
{
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
153
|
-
throw new Error(`getDistance(): observerPosition is ${
|
|
154
|
-
const
|
|
155
|
-
return
|
|
158
|
+
const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
|
|
159
|
+
if (a === void 0)
|
|
160
|
+
throw new Error(`getDistance(): observerPosition is ${a}`);
|
|
161
|
+
const d = (() => R(e) ? M(e == null ? void 0 : e.position) : T(e.position))(), p = a.distanceTo(d);
|
|
162
|
+
return s.distance = p, p;
|
|
156
163
|
}
|
|
157
164
|
}
|
|
158
|
-
getAngle(e,
|
|
159
|
-
var
|
|
160
|
-
const i = (
|
|
165
|
+
getAngle(e, t) {
|
|
166
|
+
var n, l, o;
|
|
167
|
+
const i = (n = this.five.panoIndex) != null ? n : t;
|
|
161
168
|
if (i === void 0)
|
|
162
169
|
throw new Error(`getDistance(): fivePanoIndex is ${i}`);
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
165
|
-
return
|
|
170
|
+
const s = this.getCaches({ panoIndex: t, id: e.id });
|
|
171
|
+
if (s.angle !== void 0)
|
|
172
|
+
return s.angle;
|
|
166
173
|
{
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
throw new Error(`getAngleRange(): observerPosition is ${
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
174
|
+
const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
|
|
175
|
+
if (a === void 0)
|
|
176
|
+
throw new Error(`getAngleRange(): observerPosition is ${a}`);
|
|
177
|
+
const d = (() => e.stickType === "3DPoint" ? S(e.normal) : $(e.position))();
|
|
178
|
+
if (!d)
|
|
172
179
|
return;
|
|
173
|
-
const
|
|
174
|
-
return
|
|
180
|
+
const p = new I.Vector3().copy(a).sub(T(e.position)), r = d.angleTo(p) * 180 / Math.PI;
|
|
181
|
+
return s.angle = r, s.angle;
|
|
175
182
|
}
|
|
176
183
|
}
|
|
177
184
|
getTagConfig(e) {
|
|
178
|
-
var
|
|
185
|
+
var s;
|
|
179
186
|
if (!e)
|
|
180
|
-
return (
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
187
|
+
return (s = this.config.globalConfig) != null ? s : {};
|
|
188
|
+
const t = {};
|
|
189
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((n) => {
|
|
190
|
+
const l = n;
|
|
191
|
+
if (t[l])
|
|
185
192
|
return;
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
193
|
+
const o = l.split("-");
|
|
194
|
+
o.length === 1 && o.unshift("Any");
|
|
195
|
+
const [a = "Any", d = "Any"] = o || [];
|
|
196
|
+
(e.stickType === a || a === "Any") && (e.contentType === d || d === "Any") && (t[l] = this.config.contentTypeConfig[l]);
|
|
197
|
+
});
|
|
198
|
+
const i = C({}, this.config.globalConfig, ...Object.values(t), e.config);
|
|
199
|
+
return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep }), i;
|
|
189
200
|
}
|
|
190
|
-
|
|
191
|
-
const i = this.getTagConfig(
|
|
201
|
+
can(e, t) {
|
|
202
|
+
const i = this.getTagConfig(t);
|
|
192
203
|
if (!i || typeof i != "object")
|
|
193
204
|
return !0;
|
|
194
205
|
if (e === "show" || e === "hide") {
|
|
@@ -200,37 +211,43 @@ class O extends V {
|
|
|
200
211
|
if (e === "fold" || e === "unfold") {
|
|
201
212
|
if (!i.unfoldedConfig || typeof i.unfoldedConfig != "object")
|
|
202
213
|
return !0;
|
|
203
|
-
if (e === "fold" &&
|
|
214
|
+
if (e === "fold" && i.unfoldedConfig.keep === "unfolded" || e === "unfold" && i.unfoldedConfig.keep === "folded")
|
|
204
215
|
return !1;
|
|
205
216
|
}
|
|
206
217
|
return !0;
|
|
207
218
|
}
|
|
219
|
+
sort(e) {
|
|
220
|
+
return e.sort((t, i) => {
|
|
221
|
+
const s = this.getDistance(t), n = this.getDistance(i);
|
|
222
|
+
return s === void 0 || n === void 0 ? 0 : n - s;
|
|
223
|
+
});
|
|
224
|
+
}
|
|
208
225
|
setPointTagPosition() {
|
|
209
226
|
const e = this.filterPointTag();
|
|
210
|
-
e.length !== 0 && e.forEach((
|
|
211
|
-
var
|
|
212
|
-
if (!((
|
|
213
|
-
|
|
227
|
+
e.length !== 0 && e.forEach((t) => {
|
|
228
|
+
var s;
|
|
229
|
+
if (!((s = t.state) != null && s.visible)) {
|
|
230
|
+
t.pointTagStyle = void 0;
|
|
214
231
|
return;
|
|
215
232
|
}
|
|
216
|
-
const i = this.getTagProject(
|
|
233
|
+
const i = this.getTagProject(t);
|
|
217
234
|
if (!i) {
|
|
218
|
-
|
|
235
|
+
t.pointTagStyle = void 0;
|
|
219
236
|
return;
|
|
220
237
|
}
|
|
221
|
-
|
|
238
|
+
t.pointTagStyle = { leftPercent: (i.x + 1) / 2 * 100, topPercent: (-i.y + 1) / 2 * 100 };
|
|
222
239
|
});
|
|
223
240
|
}
|
|
224
241
|
setVisibleByPanoIndex() {
|
|
225
242
|
this.tags.forEach((e) => {
|
|
226
|
-
const
|
|
227
|
-
e.state && (e.state.visible =
|
|
243
|
+
const t = this.getVisibleByPanoIndex(e);
|
|
244
|
+
e.state && (e.state.visible = t);
|
|
228
245
|
});
|
|
229
246
|
}
|
|
230
247
|
setUnfoldedByPanoIndex() {
|
|
231
248
|
this.tags.forEach((e) => {
|
|
232
|
-
const
|
|
233
|
-
if (!!e.state && (
|
|
249
|
+
const t = this.getUnfoldedByPanoIndex(e);
|
|
250
|
+
if (!!e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
|
|
234
251
|
const i = this.getTagConfig(e);
|
|
235
252
|
typeof i.unfoldedConfig == "object" && i.unfoldedConfig.autoUnfoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
236
253
|
}
|
|
@@ -239,26 +256,26 @@ class O extends V {
|
|
|
239
256
|
getTagProject(e) {
|
|
240
257
|
if (!this.getVisibleByPanoIndex(e))
|
|
241
258
|
return;
|
|
242
|
-
const i =
|
|
243
|
-
if (!(
|
|
244
|
-
return { x:
|
|
259
|
+
const i = T(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
|
|
260
|
+
if (!(l > 1))
|
|
261
|
+
return { x: s, y: n, z: l };
|
|
245
262
|
}
|
|
246
263
|
filterPointTag() {
|
|
247
|
-
return this.tags.filter((e) => e.
|
|
264
|
+
return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint");
|
|
248
265
|
}
|
|
249
|
-
|
|
250
|
-
return this.tags.filter((e) => e.
|
|
266
|
+
filter2DPointTag() {
|
|
267
|
+
return this.tags.filter((e) => e.stickType === "2DPoint");
|
|
251
268
|
}
|
|
252
269
|
filter3DPointTag() {
|
|
253
|
-
return this.tags.filter((e) => e.
|
|
270
|
+
return this.tags.filter((e) => e.stickType === "3DPoint");
|
|
254
271
|
}
|
|
255
272
|
filter3DTag() {
|
|
256
|
-
return this.tags.filter((e) => e.
|
|
273
|
+
return this.tags.filter((e) => e.stickType === "3DPoint" || e.stickType === "Plane");
|
|
257
274
|
}
|
|
258
275
|
filterPlaneTag() {
|
|
259
|
-
return this.tags.filter((e) => e.
|
|
276
|
+
return this.tags.filter((e) => e.stickType === "Plane");
|
|
260
277
|
}
|
|
261
278
|
}
|
|
262
279
|
export {
|
|
263
|
-
|
|
280
|
+
q as TagComputer
|
|
264
281
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { Tag, PartialDeep, TagId, Tags, State, AddTagConfig } from '../typings';
|
|
2
|
+
import type { TagContentType } from '..';
|
|
3
|
+
import type { ArrayPosition } from '../typings';
|
|
1
4
|
import { Five } from '@realsee/five';
|
|
2
|
-
import type { Tag, ContentType, PartialDeep, TagId, Tags, State, AddTagConfig } from '../typings';
|
|
3
5
|
import { TagComputer } from './TagComputer';
|
|
4
|
-
import { ArrayPosition } from '../typings';
|
|
5
6
|
export declare const pluginFlag: (name: string) => string;
|
|
6
7
|
declare class PanoTagPluginController extends TagComputer {
|
|
7
8
|
/** 版本号 */
|
|
@@ -22,16 +23,10 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
22
23
|
/** 临时状态 */
|
|
23
24
|
private temporaryState;
|
|
24
25
|
private mediaStore;
|
|
26
|
+
private isIOSWX;
|
|
25
27
|
private store;
|
|
26
|
-
private staticUrl;
|
|
27
28
|
constructor(five: Five, params?: {
|
|
28
29
|
debug?: boolean;
|
|
29
|
-
mergePluginDefaultConfigToLoadDataConfig?: boolean;
|
|
30
|
-
staticConfig?: {
|
|
31
|
-
host?: string;
|
|
32
|
-
protocol?: string;
|
|
33
|
-
port?: number;
|
|
34
|
-
} | string;
|
|
35
30
|
config?: {
|
|
36
31
|
globalConfig?: Tags['globalConfig'];
|
|
37
32
|
contentTypeConfig?: Tags['contentTypeConfig'];
|
|
@@ -75,12 +70,18 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
75
70
|
/**
|
|
76
71
|
* @description: 改变data
|
|
77
72
|
*/
|
|
78
|
-
changeDataById<C extends
|
|
73
|
+
changeDataById<C extends TagContentType = any>(id: TagId, data: PartialDeep<Tag<C>['data']>, deepMerge?: boolean): void;
|
|
74
|
+
/**
|
|
75
|
+
* @description: 改变tag的stickType
|
|
76
|
+
*/
|
|
77
|
+
changeStickTypeById<C extends TagContentType = any>(id: TagId, data: PartialDeep<{
|
|
78
|
+
[P in keyof Pick<Tag<C>, 'stickType' | 'position' | 'normal' | 'data'>]: Tag[P];
|
|
79
|
+
}>, deepMerge?: boolean): void;
|
|
79
80
|
/**
|
|
80
81
|
* @description: 改变tag任意属性
|
|
81
82
|
*/
|
|
82
|
-
changeTagById<C extends
|
|
83
|
-
[P in keyof Pick<Tag<C>, 'enabled' | 'style' | '
|
|
83
|
+
changeTagById<C extends TagContentType = any>(id: TagId, tag: PartialDeep<{
|
|
84
|
+
[P in keyof Pick<Tag<C>, 'enabled' | 'style' | 'stickType' | 'contentType' | 'data' | 'normal'>]: Tag[P];
|
|
84
85
|
}>, deepMerge?: boolean): void;
|
|
85
86
|
/**
|
|
86
87
|
* @description: 销毁tag
|
|
@@ -101,6 +102,7 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
101
102
|
* @description: 添加 cameraUpdate, panoArrived 等事件监听
|
|
102
103
|
*/
|
|
103
104
|
private addEventListener;
|
|
105
|
+
private loadVideoFirstFrame;
|
|
104
106
|
private addResizeListener;
|
|
105
107
|
private addResizeObserver;
|
|
106
108
|
/**
|