@realsee/dnalogel 2.3.3 → 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 +17 -16
- 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,110 +1,99 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var S = Object.defineProperty, y = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var T = Object.getOwnPropertySymbols;
|
|
4
4
|
var w = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var g = (h, a, e) => a in h ? S(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, f = (h, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
w.call(a, e) &&
|
|
7
|
+
w.call(a, e) && g(h, e, a[e]);
|
|
8
8
|
if (T)
|
|
9
9
|
for (var e of T(a))
|
|
10
|
-
E.call(a, e) &&
|
|
11
|
-
return
|
|
12
|
-
}, c = (
|
|
13
|
-
var
|
|
14
|
-
var p = (
|
|
15
|
-
var
|
|
10
|
+
E.call(a, e) && g(h, e, a[e]);
|
|
11
|
+
return h;
|
|
12
|
+
}, c = (h, a) => y(h, P(a));
|
|
13
|
+
var l = (h, a, e) => (g(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var p = (h, a, e) => new Promise((t, i) => {
|
|
15
|
+
var s = (n) => {
|
|
16
16
|
try {
|
|
17
17
|
r(e.next(n));
|
|
18
18
|
} catch (d) {
|
|
19
|
-
|
|
19
|
+
i(d);
|
|
20
20
|
}
|
|
21
21
|
}, o = (n) => {
|
|
22
22
|
try {
|
|
23
23
|
r(e.throw(n));
|
|
24
24
|
} catch (d) {
|
|
25
|
-
|
|
25
|
+
i(d);
|
|
26
26
|
}
|
|
27
|
-
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(
|
|
28
|
-
r((e = e.apply(
|
|
27
|
+
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
|
+
r((e = e.apply(h, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
31
|
-
import { Quaternion as
|
|
32
|
-
import
|
|
33
|
-
import { writable as
|
|
30
|
+
import { Subscribe as k } from "@realsee/five";
|
|
31
|
+
import { Quaternion as F } from "three";
|
|
32
|
+
import v from "object-assign-deep";
|
|
33
|
+
import { writable as R } from "../../vendor/svelte/store/index.js";
|
|
34
34
|
import { TagContainer as L } from "../Components/TagContainer.js";
|
|
35
|
-
import { Tag as
|
|
36
|
-
import { arrayPositionToVector3 as
|
|
35
|
+
import { Tag as U } from "../Components/Tag/index.js";
|
|
36
|
+
import { arrayPositionToVector3 as u } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
37
37
|
import { addDebugPoints as O } from "../utils/addDebugPoints.js";
|
|
38
38
|
import { planeNormal as I } from "../utils/planeNormal.js";
|
|
39
|
-
import { actionAfterFiveModelLoad as
|
|
39
|
+
import { actionAfterFiveModelLoad as B } from "../utils/actionAfterFiveModelLoad.js";
|
|
40
40
|
import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
|
|
41
41
|
import { debounce as C } from "../utils/debounce.js";
|
|
42
|
-
import { throttle as
|
|
42
|
+
import { throttle as V } from "../utils/throttle.js";
|
|
43
43
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
44
|
-
import { TagComputer as
|
|
45
|
-
import { CSS3DRenderPlugin as
|
|
46
|
-
import {
|
|
47
|
-
const
|
|
48
|
-
class ae extends
|
|
44
|
+
import { TagComputer as z } from "./TagComputer.js";
|
|
45
|
+
import { CSS3DRenderPlugin as N } from "../../CSS3DRenderPlugin/index.js";
|
|
46
|
+
import { formatTag as W } from "../utils/tag/format.js";
|
|
47
|
+
const A = "2.0.0-dev.6", m = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, re = (h) => `${m}--${h}`;
|
|
48
|
+
class ae extends z {
|
|
49
49
|
constructor(e, t) {
|
|
50
50
|
super(e);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
l(this, "version", A);
|
|
52
|
+
l(this, "state", { enabled: !0, visible: !0 });
|
|
53
|
+
l(this, "params");
|
|
54
|
+
l(this, "debug");
|
|
55
|
+
l(this, "css3DRenderPlugin");
|
|
56
|
+
l(this, "TagContainerSvelte");
|
|
57
|
+
l(this, "temporaryState", { visible: !0 });
|
|
58
|
+
l(this, "mediaStore", R({
|
|
59
|
+
currentMediaElement: null
|
|
60
60
|
}));
|
|
61
|
-
|
|
61
|
+
l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
|
|
62
|
+
l(this, "store", {
|
|
62
63
|
disposers: [],
|
|
63
64
|
disposed: !1,
|
|
64
65
|
resizeObserverDisposerAdding: !1,
|
|
65
66
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
66
67
|
});
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
console.error(`${b} is disposed`);
|
|
68
|
+
l(this, "disposedErrorLog", () => {
|
|
69
|
+
console.error(`${m} is disposed`);
|
|
70
70
|
});
|
|
71
71
|
this.params = f({
|
|
72
72
|
debug: !1,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
staticConfig: {
|
|
76
|
-
host: "vrlab-static.ljcdn.com"
|
|
77
|
-
}
|
|
78
|
-
}, t), this.debug = this.params.debug, this.config = this.params.config, this.staticUrl = (() => {
|
|
79
|
-
var i;
|
|
80
|
-
const s = this.params.staticConfig;
|
|
81
|
-
if (typeof s == "string")
|
|
82
|
-
return s;
|
|
83
|
-
{
|
|
84
|
-
const o = s.protocol ? s.protocol + ":" : "", r = (i = s.host) != null ? i : "vrlab-static.ljcdn.com", n = s.port ? ":" + s.port : "";
|
|
85
|
-
return `${o}//${r}${n}`;
|
|
86
|
-
}
|
|
87
|
-
})(), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
73
|
+
config: this.config
|
|
74
|
+
}, t), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
88
75
|
}
|
|
89
76
|
load(e, t) {
|
|
90
|
-
var
|
|
91
|
-
this.clearTags(), console.log(
|
|
92
|
-
globalConfig: (
|
|
93
|
-
contentTypeConfig: (
|
|
94
|
-
})
|
|
77
|
+
var i, s;
|
|
78
|
+
this.clearTags(), console.log(m, " load:", { data: e }), this.config = v({}, this.config, {
|
|
79
|
+
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
80
|
+
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
81
|
+
}), this.addTag(e.tagList, t), this.debug && O(this.five, this.tags);
|
|
95
82
|
}
|
|
96
83
|
addTag(e, t) {
|
|
97
|
-
const
|
|
84
|
+
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
98
85
|
const r = this.getTagConfig(o);
|
|
99
86
|
return c(f({}, o), {
|
|
100
|
-
state: f({ visible: void 0, unfolded:
|
|
101
|
-
hooks: new
|
|
87
|
+
state: f({ visible: void 0, unfolded: $ }, r.initialState),
|
|
88
|
+
hooks: new k(),
|
|
102
89
|
clickable: r.clickable
|
|
103
90
|
});
|
|
104
91
|
}).filter((o) => o.position);
|
|
105
|
-
this.tags.push(...
|
|
106
|
-
var
|
|
107
|
-
this.store.eventListenerDisposer && ((
|
|
92
|
+
s.forEach(W), this.tags.push(...s), B(this.five, () => {
|
|
93
|
+
var r, n, d;
|
|
94
|
+
this.store.eventListenerDisposer && ((n = (r = this.store).eventListenerDisposer) == null || n.call(r)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener());
|
|
95
|
+
const o = this.five.getCurrentState().mode;
|
|
96
|
+
o && o !== "Panorama" && this.temporaryHide(), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (d = t == null ? void 0 : t.withAnimation) != null ? d : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
|
|
108
97
|
});
|
|
109
98
|
}
|
|
110
99
|
clearTags() {
|
|
@@ -112,18 +101,18 @@ class ae extends $ {
|
|
|
112
101
|
}
|
|
113
102
|
show(e) {
|
|
114
103
|
return p(this, null, function* () {
|
|
115
|
-
const { userAction: t = !0, withAnimation:
|
|
104
|
+
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
116
105
|
if (this.store.disposed)
|
|
117
106
|
return this.disposedErrorLog();
|
|
118
|
-
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation:
|
|
107
|
+
this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("show", { userAction: t, withAnimation: i });
|
|
119
108
|
});
|
|
120
109
|
}
|
|
121
110
|
hide(e) {
|
|
122
111
|
return p(this, null, function* () {
|
|
123
|
-
const { userAction: t = !0, withAnimation:
|
|
112
|
+
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
124
113
|
if (this.store.disposed)
|
|
125
114
|
return this.disposedErrorLog();
|
|
126
|
-
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation:
|
|
115
|
+
this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("hide", { userAction: t, withAnimation: i });
|
|
127
116
|
});
|
|
128
117
|
}
|
|
129
118
|
enable(e) {
|
|
@@ -139,42 +128,45 @@ class ae extends $ {
|
|
|
139
128
|
this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
|
|
140
129
|
}
|
|
141
130
|
dispose() {
|
|
142
|
-
var e, t,
|
|
143
|
-
this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
|
|
131
|
+
var e, t, i, s, o, r;
|
|
132
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
|
|
144
133
|
var d;
|
|
145
134
|
return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
|
|
146
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (
|
|
135
|
+
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
|
|
147
136
|
}
|
|
148
137
|
setState(e, t) {
|
|
149
138
|
if (this.store.disposed)
|
|
150
139
|
return this.disposedErrorLog();
|
|
151
|
-
const { userAction:
|
|
152
|
-
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation =
|
|
140
|
+
const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = f({}, this.state);
|
|
141
|
+
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
153
142
|
}
|
|
154
143
|
changeTagNormalById(e, t) {
|
|
144
|
+
const i = this.getTagById(e);
|
|
145
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = u(t), this.updateRenderPlaneTag());
|
|
146
|
+
}
|
|
147
|
+
changeDataById(e, t, i = !0) {
|
|
155
148
|
const s = this.getTagById(e);
|
|
156
|
-
!s ||
|
|
149
|
+
!s || (i ? s.data = v({}, s.data, t) : s.data = f(f({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
157
150
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
!i || (s ? i.data = m({}, i.data, t) : Object.assign(i.data, t), this.checkPanelTag(), this.updateRenderAllTags());
|
|
151
|
+
changeStickTypeById(e, t, i = !0) {
|
|
152
|
+
this.changeTagById(e, t, i);
|
|
161
153
|
}
|
|
162
|
-
changeTagById(e, t,
|
|
163
|
-
const
|
|
164
|
-
!t || (
|
|
154
|
+
changeTagById(e, t, i = !0) {
|
|
155
|
+
const s = this.getTagById(e);
|
|
156
|
+
!t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = u(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
|
|
165
157
|
}
|
|
166
158
|
destroyTagById(e) {
|
|
167
|
-
(Array.isArray(e) ? e : [e]).forEach((
|
|
168
|
-
const
|
|
169
|
-
|
|
159
|
+
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
160
|
+
const s = this.tags.findIndex((o) => o.id === i);
|
|
161
|
+
s !== -1 && this.tags.splice(s, 1);
|
|
170
162
|
}), this.updateRenderAllTags();
|
|
171
163
|
}
|
|
172
164
|
pauseCurrentMedia() {
|
|
173
|
-
this.mediaStore.set({
|
|
165
|
+
this.mediaStore.set({ currentMediaElement: null });
|
|
174
166
|
}
|
|
175
167
|
setVisibleAndUnfolded() {
|
|
176
168
|
return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
177
|
-
return this.setVisibleByPanoIndex(), e ? new Promise((t,
|
|
169
|
+
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
178
170
|
setTimeout(() => {
|
|
179
171
|
this.setUnfoldedByPanoIndex(), t();
|
|
180
172
|
}, 10);
|
|
@@ -185,24 +177,27 @@ class ae extends $ {
|
|
|
185
177
|
this.state.visible = !0, this.updateTagContainerVisible();
|
|
186
178
|
}
|
|
187
179
|
handleHide() {
|
|
188
|
-
this.state.visible = !1, this.updateTagContainerVisible();
|
|
180
|
+
this.pauseCurrentMedia(), this.state.visible = !1, this.updateTagContainerVisible();
|
|
189
181
|
}
|
|
190
182
|
handleEnable() {
|
|
191
183
|
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
|
|
192
184
|
}
|
|
193
185
|
handleDisable() {
|
|
194
|
-
var e, t,
|
|
195
|
-
this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (
|
|
186
|
+
var e, t, i;
|
|
187
|
+
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filter3DTag().forEach((s) => {
|
|
196
188
|
var o;
|
|
197
|
-
(o =
|
|
189
|
+
(o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
|
|
198
190
|
});
|
|
199
191
|
}
|
|
200
192
|
addEventListener() {
|
|
201
|
-
const { five: e, hooks: t } = this,
|
|
202
|
-
return e.on("wantsMoveToPano",
|
|
203
|
-
e.off("wantsMoveToPano",
|
|
193
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), b = this.clickhandler.bind(this);
|
|
194
|
+
return e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", d), t.on("click", b), () => {
|
|
195
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", d), t.off("click", b), this.store.eventListenerDisposer = void 0;
|
|
204
196
|
};
|
|
205
197
|
}
|
|
198
|
+
loadVideoFirstFrame() {
|
|
199
|
+
this.isIOSWX && this.hooks.emit("loadVideoFirstFrame");
|
|
200
|
+
}
|
|
206
201
|
addResizeListener() {
|
|
207
202
|
if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
|
|
208
203
|
const e = this.addResizeObserver();
|
|
@@ -216,44 +211,44 @@ class ae extends $ {
|
|
|
216
211
|
return;
|
|
217
212
|
const e = this.five.getElement(), t = () => {
|
|
218
213
|
!this.state.enabled || (this.show(), this.updateRenderAllTags());
|
|
219
|
-
},
|
|
214
|
+
}, i = () => {
|
|
220
215
|
!this.state.enabled || this.hide();
|
|
221
|
-
}, { observe:
|
|
222
|
-
|
|
223
|
-
!this.store.resizeObserverDisposer ||
|
|
216
|
+
}, { observe: s, unobserve: o } = D(
|
|
217
|
+
V(() => {
|
|
218
|
+
!this.store.resizeObserverDisposer || i();
|
|
224
219
|
}, 500),
|
|
225
220
|
e
|
|
226
221
|
), { observe: r, unobserve: n } = D(
|
|
227
222
|
C(() => t(), 400),
|
|
228
223
|
e
|
|
229
224
|
);
|
|
230
|
-
return
|
|
225
|
+
return s(), r(), () => {
|
|
231
226
|
o(), n();
|
|
232
227
|
};
|
|
233
228
|
}
|
|
234
229
|
handleFiveModeChange(e) {
|
|
235
|
-
e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow()) : this.temporaryHide();
|
|
230
|
+
e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow({ withAnimation: !0 })) : this.temporaryHide();
|
|
236
231
|
}
|
|
237
232
|
handleFiveWantsMoveToPano() {
|
|
238
233
|
this.tags.forEach((e) => {
|
|
239
234
|
const t = this.getTagConfig(e);
|
|
240
|
-
typeof t.visibleConfig == "object" && t.visibleConfig.keep ? e.temporaryState = c(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) :
|
|
241
|
-
}), this.
|
|
235
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = c(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = c(f({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
236
|
+
}), this.updateTagContainerVisible();
|
|
242
237
|
}
|
|
243
|
-
temporaryShow() {
|
|
244
|
-
this.temporaryState.visible = !0;
|
|
238
|
+
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
239
|
+
this.store.visibleWithAnimation = e, this.temporaryState.visible = !0, this.updateTagContainerVisible();
|
|
245
240
|
}
|
|
246
|
-
temporaryHide() {
|
|
247
|
-
this.temporaryState.visible = !1;
|
|
241
|
+
temporaryHide({ withAnimation: e } = { withAnimation: !1 }) {
|
|
242
|
+
this.store.visibleWithAnimation = e, this.temporaryState.visible = !1, this.updateTagContainerVisible();
|
|
248
243
|
}
|
|
249
244
|
clickhandler(e) {
|
|
250
245
|
if (e.target !== "TagPoint")
|
|
251
246
|
return;
|
|
252
247
|
if (!e.tag.state)
|
|
253
248
|
return console.warn("Clickhandler: params.tag.state is undefined");
|
|
254
|
-
const t = this.
|
|
255
|
-
t &&
|
|
256
|
-
|
|
249
|
+
const t = this.can("fold", e.tag), i = this.can("unfold", e.tag);
|
|
250
|
+
t && i && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((s) => {
|
|
251
|
+
s.id !== e.tag.id && s.state && this.can("fold", s) && (s.state.unfolded = !1);
|
|
257
252
|
}), this.updateRenderAllTags());
|
|
258
253
|
}
|
|
259
254
|
updateRenderAllTags() {
|
|
@@ -266,8 +261,8 @@ class ae extends $ {
|
|
|
266
261
|
temporaryState: this.temporaryState,
|
|
267
262
|
withAnimation: this.store.visibleWithAnimation
|
|
268
263
|
}), this.filter3DTag().forEach((t) => {
|
|
269
|
-
var
|
|
270
|
-
(
|
|
264
|
+
var i;
|
|
265
|
+
(i = t.tag3DContentSvelte) == null || i.svelteApp.$set({
|
|
271
266
|
state: this.state,
|
|
272
267
|
temporaryState: this.temporaryState,
|
|
273
268
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -286,58 +281,58 @@ class ae extends $ {
|
|
|
286
281
|
return p(this, null, function* () {
|
|
287
282
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
288
283
|
e.temporaryState = c(f({}, e.temporaryState), { visible: !0 });
|
|
289
|
-
}), this.
|
|
284
|
+
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
290
285
|
});
|
|
291
286
|
}
|
|
292
287
|
setUnfoldedByCamera() {
|
|
293
288
|
let e = !1;
|
|
294
289
|
this.tags.forEach((t) => {
|
|
295
|
-
const
|
|
296
|
-
!t.state ||
|
|
290
|
+
const i = this.getUnfoldedByCamera(t);
|
|
291
|
+
!t.state || i !== void 0 && (i === !0 && (e = !0), t.state.unfolded = i);
|
|
297
292
|
}), e && this.tags.forEach((t) => {
|
|
298
|
-
const
|
|
299
|
-
typeof
|
|
293
|
+
const i = this.getTagConfig(t).unfoldedConfig;
|
|
294
|
+
typeof i == "object" && (i.autoUnfold || i.keep) || t.state && (t.state.unfolded = !1);
|
|
300
295
|
});
|
|
301
296
|
}
|
|
302
297
|
updateRenderPointTag() {
|
|
303
298
|
var t;
|
|
304
|
-
const e = this.filterPointTag();
|
|
299
|
+
const e = this.sort(this.filterPointTag());
|
|
305
300
|
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
306
301
|
this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
|
|
307
302
|
else {
|
|
308
|
-
const
|
|
309
|
-
if (!
|
|
303
|
+
const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
304
|
+
if (!i)
|
|
310
305
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
311
306
|
this.TagContainerSvelte = new L({
|
|
312
|
-
target:
|
|
307
|
+
target: i,
|
|
313
308
|
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
314
309
|
});
|
|
315
310
|
}
|
|
316
311
|
}
|
|
317
312
|
updateRenderPlaneTag() {
|
|
318
|
-
[...this.filterPlaneTag(), ...this.filter3DPointTag()].forEach((t) => {
|
|
319
|
-
var
|
|
313
|
+
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag()]).forEach((t) => {
|
|
314
|
+
var i;
|
|
320
315
|
if (t.tag3DContentSvelte) {
|
|
321
|
-
const { svelteApp:
|
|
322
|
-
if (
|
|
316
|
+
const { svelteApp: s, domContainer: o, initialNormal: r, currentNormal: n } = t.tag3DContentSvelte;
|
|
317
|
+
if (s.$set({
|
|
323
318
|
tag: t,
|
|
324
319
|
hooks: this.hooks,
|
|
325
320
|
state: this.state,
|
|
326
321
|
temporaryState: this.temporaryState
|
|
327
322
|
}), !r.equals(n)) {
|
|
328
|
-
const d = new
|
|
323
|
+
const d = new F().setFromUnitVectors(r, n);
|
|
329
324
|
o.css3DObject.setRotationFromQuaternion(d);
|
|
330
325
|
}
|
|
331
326
|
} else {
|
|
332
|
-
if (((
|
|
327
|
+
if (((i = t.state) == null ? void 0 : i.visible) === !1)
|
|
333
328
|
return;
|
|
334
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
329
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = N(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
335
330
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
336
|
-
const
|
|
331
|
+
const s = t.stickType === "Plane" ? t.position : M(this.five.camera.position, u(t.position), u(t.normal)), o = t.stickType === "Plane" ? I(t.position) : u(t.normal), r = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(s, r);
|
|
337
332
|
if (!n)
|
|
338
333
|
return;
|
|
339
334
|
this.store.css3DRenderDisposer.set(t.id, n.dispose), t.tag3DContentSvelte = {
|
|
340
|
-
svelteApp: new
|
|
335
|
+
svelteApp: new U({
|
|
341
336
|
target: n.container,
|
|
342
337
|
props: {
|
|
343
338
|
tag: t,
|
|
@@ -360,13 +355,13 @@ class ae extends $ {
|
|
|
360
355
|
this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
|
|
361
356
|
}
|
|
362
357
|
checkPanelTag() {
|
|
363
|
-
this.
|
|
358
|
+
this.filter2DPointTag().forEach((e) => {
|
|
364
359
|
var t;
|
|
365
|
-
|
|
360
|
+
(t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0;
|
|
366
361
|
});
|
|
367
362
|
for (const [e, t] of this.store.css3DRenderDisposer) {
|
|
368
|
-
const
|
|
369
|
-
(!
|
|
363
|
+
const i = this.getTagById(e);
|
|
364
|
+
(!i || i.stickType === "2DPoint") && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
|
|
370
365
|
}
|
|
371
366
|
}
|
|
372
367
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import PanoTagPluginController from './controller';
|
|
3
3
|
export * from './controller';
|
|
4
|
-
export * from './typings
|
|
4
|
+
export * from './typings';
|
|
5
5
|
export declare type PanoTagPluginExportInterface = InstanceType<typeof PanoTagPluginController>;
|
|
6
6
|
export declare type PanoTagPluginParamsInterface = ConstructorParameters<typeof PanoTagPluginController>[1];
|
|
7
7
|
export declare const PanoTagPlugin: FivePlugin<PanoTagPluginParamsInterface, PanoTagPluginExportInterface>;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { PanoTagPluginController as t } from "./controller/index.js";
|
|
2
|
-
import { PanoTagPluginController as
|
|
3
|
-
import { ContentType as
|
|
2
|
+
import { PanoTagPluginController as Qo, pluginFlag as Ro } from "./controller/index.js";
|
|
3
|
+
import { ContentType as Uo } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as Wo, PointType as Xo } from "./typings/tag/Utils.js";
|
|
4
5
|
import "@realsee/five";
|
|
5
6
|
import "three";
|
|
6
7
|
import "object-assign-deep";
|
|
7
8
|
import "../vendor/svelte/store/index.js";
|
|
8
9
|
import "../vendor/svelte/internal/index.js";
|
|
9
10
|
import "./Components/TagContainer.js";
|
|
10
|
-
import "./Components/
|
|
11
|
-
import "./utils/noTypecheck.js";
|
|
11
|
+
import "./Components/TagItem.js";
|
|
12
12
|
import "./Components/Tag/index.js";
|
|
13
|
-
import "./Components/Tag/TextTag.js";
|
|
13
|
+
import "./Components/Tag/TextTag/index.js";
|
|
14
|
+
import "./Components/Tag/TextTag/TextTag.js";
|
|
14
15
|
import "./Components/Common/Line/Straight.js";
|
|
15
16
|
import "../vendor/svelte/transition/index.js";
|
|
16
17
|
import "../vendor/svelte/easing/index.js";
|
|
17
18
|
import "../shared-utils/uuid.js";
|
|
18
19
|
import "./Components/Common/Shadow.js";
|
|
19
|
-
import "./Components/Common/
|
|
20
|
-
import "./Components/Common/Text.js";
|
|
20
|
+
import "./Components/Common/Text/FlyMText.js";
|
|
21
|
+
import "./Components/Common/Text/FlyText.js";
|
|
21
22
|
import "animejs";
|
|
22
23
|
import "../shared-utils/isNil.js";
|
|
23
24
|
import "./utils/search.js";
|
|
@@ -25,6 +26,9 @@ import "./utils/constants.js";
|
|
|
25
26
|
import "./Components/Common/Arrow.js";
|
|
26
27
|
import "./Assets/Icon.js";
|
|
27
28
|
import "./utils/doUtil.js";
|
|
29
|
+
import "./Components/Tag/TextTag/TextPlaneTag.js";
|
|
30
|
+
import "./Components/Common/Text/MText.js";
|
|
31
|
+
import "./utils/px2rem.js";
|
|
28
32
|
import "./Components/Tag/ImageTextTag.js";
|
|
29
33
|
import "./Components/Common/Line/Polyline.js";
|
|
30
34
|
import "./Components/Common/Media.js";
|
|
@@ -39,16 +43,22 @@ import "../vendor/swiper/components-shared/update-swiper.js";
|
|
|
39
43
|
import "../vendor/swiper/svelte/swiper-slide.js";
|
|
40
44
|
import "swiper/css";
|
|
41
45
|
import "swiper/css/autoplay";
|
|
46
|
+
import "./utils/noTypecheck.js";
|
|
42
47
|
import "./Components/Common/MediaItem.js";
|
|
43
48
|
import "./Components/Tag/MarketingTag.js";
|
|
44
|
-
import "./Components/Tag/AudioTag.js";
|
|
49
|
+
import "./Components/Tag/AudioTag/index.js";
|
|
50
|
+
import "./Components/Tag/AudioTag/AudioTag.js";
|
|
45
51
|
import "./Components/Common/Audio.js";
|
|
52
|
+
import "./Components/Common/Icon/audioIcon.js";
|
|
53
|
+
import "./Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
54
|
+
import "./utils/timeToString.js";
|
|
55
|
+
import "./utils/color.js";
|
|
46
56
|
import "./Components/Tag/MediaPlane.js";
|
|
47
57
|
import "./Components/Tag/LinkTag.js";
|
|
58
|
+
import "./Components/Common/Icon/Icon.js";
|
|
59
|
+
import "./utils/getImageInfo.js";
|
|
48
60
|
import "./Components/Tag/CustomTag.js";
|
|
49
|
-
import "./Components/Common/
|
|
50
|
-
import "./Components/Common/Point/CustomPoint.js";
|
|
51
|
-
import "./Components/Common/Point/DefaultPoint.js";
|
|
61
|
+
import "./Components/Common/TagPoint.js";
|
|
52
62
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
53
63
|
import "./utils/addDebugPoints.js";
|
|
54
64
|
import "./utils/planeNormal.js";
|
|
@@ -59,6 +69,7 @@ import "./utils/throttle.js";
|
|
|
59
69
|
import "./utils/resizeObserver.js";
|
|
60
70
|
import "./controller/TagComputer.js";
|
|
61
71
|
import "./tag.config.js";
|
|
72
|
+
import "./utils/tag/tagCheck.js";
|
|
62
73
|
import "./utils/tagPosition.js";
|
|
63
74
|
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
64
75
|
import "./utils/checkRange.js";
|
|
@@ -79,14 +90,14 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
79
90
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
80
91
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
81
92
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
82
|
-
|
|
93
|
+
import "./utils/tag/format.js";
|
|
94
|
+
const Mo = (o, r) => new t(o, r);
|
|
83
95
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Bo as pluginFlag
|
|
96
|
+
Uo as ContentType,
|
|
97
|
+
Wo as DimensionType,
|
|
98
|
+
Mo as PanoTagPlugin,
|
|
99
|
+
Qo as PanoTagPluginController,
|
|
100
|
+
Xo as PointType,
|
|
101
|
+
Mo as default,
|
|
102
|
+
Ro as pluginFlag
|
|
92
103
|
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
globalConfig: {
|
|
3
|
-
initialState: {},
|
|
4
|
-
visibleConfig: {
|
|
5
|
-
visibleDistance: { max: 5 },
|
|
6
|
-
angleRange: { min: -45, max: 45 }
|
|
7
|
-
},
|
|
8
3
|
unfoldedConfig: {
|
|
9
4
|
autoUnfold: {
|
|
10
|
-
strategy: "MinimumDistance"
|
|
5
|
+
strategy: "MinimumDistance",
|
|
6
|
+
distance: { max: 5 }
|
|
11
7
|
}
|
|
12
8
|
},
|
|
13
9
|
tag3DConfig: {
|
|
@@ -15,7 +11,15 @@ const n = {
|
|
|
15
11
|
}
|
|
16
12
|
},
|
|
17
13
|
contentTypeConfig: {
|
|
18
|
-
|
|
14
|
+
Link: {
|
|
15
|
+
unfoldedConfig: {
|
|
16
|
+
keep: "unfolded"
|
|
17
|
+
},
|
|
18
|
+
initialState: {
|
|
19
|
+
unfolded: !0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
VRLink: {
|
|
19
23
|
unfoldedConfig: {
|
|
20
24
|
keep: "unfolded"
|
|
21
25
|
},
|
|
@@ -23,22 +27,25 @@ const n = {
|
|
|
23
27
|
unfolded: !0
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
|
-
|
|
27
|
-
unfoldedConfig:
|
|
30
|
+
PanoLink: {
|
|
31
|
+
unfoldedConfig: {
|
|
32
|
+
keep: "unfolded"
|
|
33
|
+
},
|
|
34
|
+
initialState: {
|
|
35
|
+
unfolded: !0
|
|
36
|
+
}
|
|
28
37
|
},
|
|
29
|
-
|
|
38
|
+
MediaPlane: {
|
|
30
39
|
unfoldedConfig: {
|
|
31
40
|
keep: "unfolded"
|
|
32
41
|
},
|
|
33
42
|
visibleConfig: {
|
|
34
|
-
alwaysShowWhenMovePano: !0
|
|
35
|
-
angleRange: void 0,
|
|
36
|
-
visibleDistance: void 0
|
|
43
|
+
alwaysShowWhenMovePano: !0
|
|
37
44
|
}
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
};
|
|
41
48
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
e as DefaultConfig,
|
|
50
|
+
e as default
|
|
44
51
|
};
|