@realsee/dnalogel 2.11.0-aplha.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +4 -3
- package/dist/PanoVideoPlugin/VideoMeshController.d.ts +7 -0
- package/dist/index.cjs.js +45 -45
- package/dist/index.js +1986 -1933
- package/dist/index.umd.js +28 -28
- package/dist/shared-utils/audio.d.ts +3 -0
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +47 -47
- 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 +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.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 +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +10 -10
- package/libs/ModelRoomLabelPlugin/Controller.d.ts +2 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +18 -15
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +74 -72
- package/libs/PanoTagPlugin/Components/Common/Audio.js +61 -42
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +67 -64
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +53 -50
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +74 -77
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +4 -3
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +69 -61
- package/libs/PanoVideoPlugin/VideoMeshController.d.ts +7 -0
- package/libs/PanoVideoPlugin/VideoMeshController.js +62 -39
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +1 -1
- package/libs/shared-utils/audio.d.ts +3 -0
- package/libs/shared-utils/audio.js +38 -60
- package/package.json +1 -1
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -121
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as K, init as P, safe_not_equal as Q, append_styles as V, empty as X, insert as S, transition_in as g, transition_out as h, check_outros as E, detach as T, element as
|
|
1
|
+
import { SvelteComponent as K, init as P, safe_not_equal as Q, append_styles as V, empty as X, insert as S, transition_in as g, transition_out as h, check_outros as E, detach as T, element as w, create_component as k, space as D, attr as $, add_render_callback as G, set_style as Y, toggle_class as L, mount_component as y, append as c, add_resize_listener as Z, listen as x, group_outros as H, destroy_component as z, create_in_transition as ee, create_out_transition as te, bubble as ie } from "../../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { cubicInOut as N } from "../../../../vendor/svelte/easing/index.js";
|
|
3
3
|
import { fade as O } from "../../../../vendor/svelte/transition/index.js";
|
|
4
4
|
import ne from "../../Common/Audio.js";
|
|
@@ -6,8 +6,8 @@ import oe from "../../Common/Line/Straight.js";
|
|
|
6
6
|
import J from "../../Common/Shadow.js";
|
|
7
7
|
import le from "../../Common/Text/FlyMText.js";
|
|
8
8
|
import re from "../../Common/Icon/audioIcon.js";
|
|
9
|
-
import "../../../../shared-utils/audio.js";
|
|
10
9
|
import "../../../utils/audio/SharedAudio.js";
|
|
10
|
+
import "../../../../shared-utils/audio.js";
|
|
11
11
|
import "../../../../shared-utils/uuid.js";
|
|
12
12
|
import "../../Common/Text/FlyText.js";
|
|
13
13
|
import "animejs";
|
|
@@ -23,8 +23,8 @@ function ae(e) {
|
|
|
23
23
|
V(e, "svelte-1s6gk4a", ".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}");
|
|
24
24
|
}
|
|
25
25
|
function j(e) {
|
|
26
|
-
var
|
|
27
|
-
let n, i, o, t, a, u, m,
|
|
26
|
+
var I, M;
|
|
27
|
+
let n, i, o, t, a, u, m, r, s, d, v, _, b, R, U;
|
|
28
28
|
i = new J({
|
|
29
29
|
props: {
|
|
30
30
|
visible: e[6],
|
|
@@ -46,35 +46,35 @@ function j(e) {
|
|
|
46
46
|
props: {
|
|
47
47
|
unfolded: e[6],
|
|
48
48
|
length: e[3],
|
|
49
|
-
outDelay: e[4] + 20 * Math.min((
|
|
49
|
+
outDelay: e[4] + 20 * Math.min((M = (I = e[5]) == null ? void 0 : I.length) != null ? M : 10, 15),
|
|
50
50
|
useLinearColor: !0
|
|
51
51
|
}
|
|
52
52
|
}), {
|
|
53
53
|
c() {
|
|
54
|
-
n =
|
|
54
|
+
n = w("div"), k(i.$$.fragment), o = D(), t = w("div"), a = w("div"), u = w("div"), f && f.c(), m = D(), r = w("div"), k(s.$$.fragment), v = D(), k(_.$$.fragment), $(u, "class", "audio-icon svelte-1s6gk4a"), G(() => e[15].call(r)), Y(r, "display", "inline-block"), $(a, "class", "wrapper svelte-1s6gk4a"), $(t, "class", "content svelte-1s6gk4a"), $(n, "class", "audio-tag svelte-1s6gk4a"), L(n, "unfolded", e[6]);
|
|
55
55
|
},
|
|
56
|
-
m(
|
|
57
|
-
S(
|
|
56
|
+
m(l, p) {
|
|
57
|
+
S(l, n, p), y(i, n, null), c(n, o), c(n, t), c(t, a), c(a, u), f && f.m(u, null), c(a, m), c(a, r), y(s, r, null), d = Z(r, e[15].bind(r)), c(n, v), y(_, n, null), b = !0, R || (U = x(r, "click", e[7]), R = !0);
|
|
58
58
|
},
|
|
59
|
-
p(
|
|
59
|
+
p(l, p) {
|
|
60
60
|
var q, F;
|
|
61
61
|
const W = {};
|
|
62
|
-
p & 64 && (W.visible =
|
|
62
|
+
p & 64 && (W.visible = l[6]), p & 8 && (W.left = l[3] / 2 + "px"), i.$set(W), l[6] ? f ? (f.p(l, p), p & 64 && g(f, 1)) : (f = B(l), f.c(), g(f, 1), f.m(u, null)) : f && (H(), h(f, 1, 1, () => {
|
|
63
63
|
f = null;
|
|
64
64
|
}), E());
|
|
65
65
|
const A = {};
|
|
66
|
-
p & 64 && (A.visible =
|
|
66
|
+
p & 64 && (A.visible = l[6]), p & 2 && (A.textUnfolded = l[1]), p & 32 && (A.content = l[5]), s.$set(A);
|
|
67
67
|
const C = {};
|
|
68
|
-
p & 64 && (C.unfolded =
|
|
68
|
+
p & 64 && (C.unfolded = l[6]), p & 8 && (C.length = l[3]), p & 48 && (C.outDelay = l[4] + 20 * Math.min((F = (q = l[5]) == null ? void 0 : q.length) != null ? F : 10, 15)), _.$set(C), (!b || p & 64) && L(n, "unfolded", l[6]);
|
|
69
69
|
},
|
|
70
|
-
i(
|
|
71
|
-
|
|
70
|
+
i(l) {
|
|
71
|
+
b || (g(i.$$.fragment, l), g(f), g(s.$$.fragment, l), g(_.$$.fragment, l), b = !0);
|
|
72
72
|
},
|
|
73
|
-
o(
|
|
74
|
-
h(i.$$.fragment,
|
|
73
|
+
o(l) {
|
|
74
|
+
h(i.$$.fragment, l), h(f), h(s.$$.fragment, l), h(_.$$.fragment, l), b = !1;
|
|
75
75
|
},
|
|
76
|
-
d(
|
|
77
|
-
|
|
76
|
+
d(l) {
|
|
77
|
+
l && T(n), z(i), f && f.d(), z(s), d(), z(_), R = !1, U();
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
@@ -94,20 +94,20 @@ function B(e) {
|
|
|
94
94
|
$$slots: { default: [se] },
|
|
95
95
|
$$scope: { ctx: e }
|
|
96
96
|
}
|
|
97
|
-
}), t.$on("play", e[11]), t.$on("pause", e[12]), t.$on("
|
|
97
|
+
}), t.$on("play", e[11]), t.$on("pause", e[12]), t.$on("error", e[13]), t.$on("audioRef", e[14]), {
|
|
98
98
|
c() {
|
|
99
|
-
n =
|
|
99
|
+
n = w("div"), k(i.$$.fragment), o = D(), k(t.$$.fragment), $(n, "class", "audio svelte-1s6gk4a");
|
|
100
100
|
},
|
|
101
|
-
m(
|
|
102
|
-
S(
|
|
101
|
+
m(r, s) {
|
|
102
|
+
S(r, n, s), y(i, n, null), c(n, o), y(t, n, null), m = !0;
|
|
103
103
|
},
|
|
104
|
-
p(
|
|
105
|
-
e =
|
|
104
|
+
p(r, s) {
|
|
105
|
+
e = r;
|
|
106
106
|
const d = {};
|
|
107
|
-
s & 64 && (d.enable = e[6]), s & 1 && (d.url = e[0].data.audioUrl), s & 1 && (d.hooksInfo = { tag: e[0] }), s &
|
|
107
|
+
s & 64 && (d.enable = e[6]), s & 1 && (d.url = e[0].data.audioUrl), s & 1 && (d.hooksInfo = { tag: e[0] }), s & 65540 && (d.$$scope = { dirty: s, ctx: e }), t.$set(d);
|
|
108
108
|
},
|
|
109
|
-
i(
|
|
110
|
-
m || (g(i.$$.fragment,
|
|
109
|
+
i(r) {
|
|
110
|
+
m || (g(i.$$.fragment, r), g(t.$$.fragment, r), r && G(() => {
|
|
111
111
|
u && u.end(1), a = ee(n, O, {
|
|
112
112
|
duration: 1e3,
|
|
113
113
|
delay: 0,
|
|
@@ -115,16 +115,16 @@ function B(e) {
|
|
|
115
115
|
}), a.start();
|
|
116
116
|
}), m = !0);
|
|
117
117
|
},
|
|
118
|
-
o(
|
|
118
|
+
o(r) {
|
|
119
119
|
var s, d;
|
|
120
|
-
h(i.$$.fragment,
|
|
120
|
+
h(i.$$.fragment, r), h(t.$$.fragment, r), a && a.invalidate(), r && (u = te(n, O, {
|
|
121
121
|
duration: 1e3,
|
|
122
122
|
delay: 20 * Math.min((d = (s = e[5]) == null ? void 0 : s.length) != null ? d : 10, 15),
|
|
123
123
|
easing: N
|
|
124
124
|
})), m = !1;
|
|
125
125
|
},
|
|
126
|
-
d(
|
|
127
|
-
|
|
126
|
+
d(r) {
|
|
127
|
+
r && T(n), z(i), z(t), r && u && u.end();
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
}
|
|
@@ -132,10 +132,10 @@ function se(e) {
|
|
|
132
132
|
let n, i, o;
|
|
133
133
|
return i = new re({ props: { playing: e[2] } }), {
|
|
134
134
|
c() {
|
|
135
|
-
n =
|
|
135
|
+
n = w("div"), k(i.$$.fragment), $(n, "class", "audio-icon__wrapper svelte-1s6gk4a");
|
|
136
136
|
},
|
|
137
137
|
m(t, a) {
|
|
138
|
-
S(t, n, a),
|
|
138
|
+
S(t, n, a), y(i, n, null), o = !0;
|
|
139
139
|
},
|
|
140
140
|
p(t, a) {
|
|
141
141
|
const u = {};
|
|
@@ -148,7 +148,7 @@ function se(e) {
|
|
|
148
148
|
h(i.$$.fragment, t), o = !1;
|
|
149
149
|
},
|
|
150
150
|
d(t) {
|
|
151
|
-
t && T(n),
|
|
151
|
+
t && T(n), z(i);
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
}
|
|
@@ -179,41 +179,44 @@ function fe(e) {
|
|
|
179
179
|
}
|
|
180
180
|
function ue(e, n, i) {
|
|
181
181
|
let o, t, a;
|
|
182
|
-
var u, m,
|
|
183
|
-
let { tag: s } = n, d = !1,
|
|
184
|
-
function
|
|
182
|
+
var u, m, r;
|
|
183
|
+
let { tag: s } = n, d = !1, v = !1, _;
|
|
184
|
+
function b() {
|
|
185
185
|
i(1, d = !d);
|
|
186
186
|
}
|
|
187
|
-
const
|
|
188
|
-
i(2,
|
|
189
|
-
},
|
|
190
|
-
i(2,
|
|
187
|
+
const R = () => {
|
|
188
|
+
i(2, v = !0);
|
|
189
|
+
}, U = () => {
|
|
190
|
+
i(2, v = !1);
|
|
191
|
+
}, f = () => {
|
|
192
|
+
i(2, v = !1);
|
|
191
193
|
};
|
|
192
|
-
function
|
|
193
|
-
ie.call(this, e,
|
|
194
|
+
function I(l) {
|
|
195
|
+
ie.call(this, e, l);
|
|
194
196
|
}
|
|
195
197
|
function M() {
|
|
196
198
|
_ = this.clientWidth, i(3, _);
|
|
197
199
|
}
|
|
198
|
-
return e.$$set = (
|
|
199
|
-
"tag" in
|
|
200
|
+
return e.$$set = (l) => {
|
|
201
|
+
"tag" in l && i(0, s = l.tag);
|
|
200
202
|
}, e.$$.update = () => {
|
|
201
|
-
e.$$.dirty & 257 && i(6, o = !!(!(i(8, u = s.state) === null || u === void 0) && u.unfolded)), e.$$.dirty & 1537 && i(5, t = i(10,
|
|
203
|
+
e.$$.dirty & 257 && i(6, o = !!(!(i(8, u = s.state) === null || u === void 0) && u.unfolded)), e.$$.dirty & 1537 && i(5, t = i(10, r = i(9, m = s.data.title) !== null && m !== void 0 ? m : s.data.text) !== null && r !== void 0 ? r : ""), e.$$.dirty & 2 && i(4, a = d ? 450 : 0);
|
|
202
204
|
}, [
|
|
203
205
|
s,
|
|
204
206
|
d,
|
|
205
|
-
|
|
207
|
+
v,
|
|
206
208
|
_,
|
|
207
209
|
a,
|
|
208
210
|
t,
|
|
209
211
|
o,
|
|
210
|
-
|
|
212
|
+
b,
|
|
211
213
|
u,
|
|
212
214
|
m,
|
|
213
|
-
|
|
215
|
+
r,
|
|
216
|
+
R,
|
|
214
217
|
U,
|
|
215
|
-
I,
|
|
216
218
|
f,
|
|
219
|
+
I,
|
|
217
220
|
M
|
|
218
221
|
];
|
|
219
222
|
}
|
|
@@ -4,8 +4,8 @@ import v from "./AudioPlaneTag.js";
|
|
|
4
4
|
import "../../../../vendor/svelte/easing/index.js";
|
|
5
5
|
import "../../../../vendor/svelte/transition/index.js";
|
|
6
6
|
import "../../Common/Audio.js";
|
|
7
|
-
import "../../../../shared-utils/audio.js";
|
|
8
7
|
import "../../../utils/audio/SharedAudio.js";
|
|
8
|
+
import "../../../../shared-utils/audio.js";
|
|
9
9
|
import "../../Common/Line/Straight.js";
|
|
10
10
|
import "../../../../shared-utils/uuid.js";
|
|
11
11
|
import "../../Common/Shadow.js";
|
|
@@ -80,8 +80,8 @@ import "../../../shared-utils/animationFrame/BetterTween.js";
|
|
|
80
80
|
import "../../../shared-utils/animationFrame/index.js";
|
|
81
81
|
import "./AudioTag/AudioTag.js";
|
|
82
82
|
import "../Common/Audio.js";
|
|
83
|
-
import "../../../shared-utils/audio.js";
|
|
84
83
|
import "../../utils/audio/SharedAudio.js";
|
|
84
|
+
import "../../../shared-utils/audio.js";
|
|
85
85
|
import "../Common/Icon/audioIcon.js";
|
|
86
86
|
import "./AudioTag/AudioPlaneTag.js";
|
|
87
87
|
import "../Common/Icon/Icon.js";
|
|
@@ -79,8 +79,8 @@ import "../utils/tag/tagCheck.js";
|
|
|
79
79
|
import "./Tag/AudioTag/index.js";
|
|
80
80
|
import "./Tag/AudioTag/AudioTag.js";
|
|
81
81
|
import "./Common/Audio.js";
|
|
82
|
-
import "../../shared-utils/audio.js";
|
|
83
82
|
import "../utils/audio/SharedAudio.js";
|
|
83
|
+
import "../../shared-utils/audio.js";
|
|
84
84
|
import "./Common/Icon/audioIcon.js";
|
|
85
85
|
import "./Tag/AudioTag/AudioPlaneTag.js";
|
|
86
86
|
import "./Tag/MediaPlane.js";
|
|
@@ -79,8 +79,8 @@ import "../utils/tag/tagCheck.js";
|
|
|
79
79
|
import "./Tag/AudioTag/index.js";
|
|
80
80
|
import "./Tag/AudioTag/AudioTag.js";
|
|
81
81
|
import "./Common/Audio.js";
|
|
82
|
-
import "../../shared-utils/audio.js";
|
|
83
82
|
import "../utils/audio/SharedAudio.js";
|
|
83
|
+
import "../../shared-utils/audio.js";
|
|
84
84
|
import "./Common/Icon/audioIcon.js";
|
|
85
85
|
import "./Tag/AudioTag/AudioPlaneTag.js";
|
|
86
86
|
import "./Tag/MediaPlane.js";
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var P = (h,
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
1
|
+
var I = Object.defineProperty, L = Object.defineProperties;
|
|
2
|
+
var V = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
|
+
var B = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var P = (h, a, e) => a in h ? I(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
|
|
6
|
+
for (var e in a || (a = {}))
|
|
7
|
+
B.call(a, e) && P(h, e, a[e]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var e of F(a))
|
|
10
|
+
x.call(a, e) && P(h, e, a[e]);
|
|
11
11
|
return h;
|
|
12
|
-
}, T = (h,
|
|
13
|
-
var l = (h,
|
|
14
|
-
var c = (h,
|
|
12
|
+
}, T = (h, a) => L(h, V(a));
|
|
13
|
+
var l = (h, a, e) => (P(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var c = (h, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (n) => {
|
|
16
16
|
try {
|
|
17
17
|
r(e.next(n));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (d) {
|
|
19
|
+
i(d);
|
|
20
20
|
}
|
|
21
21
|
}, o = (n) => {
|
|
22
22
|
try {
|
|
23
23
|
r(e.throw(n));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (d) {
|
|
25
|
+
i(d);
|
|
26
26
|
}
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
|
-
r((e = e.apply(h,
|
|
28
|
+
r((e = e.apply(h, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
31
|
-
import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as
|
|
30
|
+
import { Subscribe as G } from "@realsee/five";
|
|
31
|
+
import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as N } from "three";
|
|
32
32
|
import v from "object-assign-deep";
|
|
33
|
-
import { writable as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
33
|
+
import { writable as W } from "../../vendor/svelte/store/index.js";
|
|
34
|
+
import z from "../Components/TagContainer.js";
|
|
35
|
+
import _ from "../Components/Tag/index.js";
|
|
36
36
|
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
37
|
-
import { addDebugPoints as
|
|
37
|
+
import { addDebugPoints as $ } from "../utils/addDebugPoints.js";
|
|
38
38
|
import { planeNormal as k } from "../utils/planeNormal.js";
|
|
39
|
-
import { isMediaModelTag as
|
|
40
|
-
import { waitFiveModelLoaded as
|
|
41
|
-
import { normalPositionToPositions as
|
|
39
|
+
import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
|
|
40
|
+
import { waitFiveModelLoaded as q } from "../utils/actionAfterFiveModelLoad.js";
|
|
41
|
+
import { normalPositionToPositions as H } from "../utils/normalPositionToPositions.js";
|
|
42
42
|
import { debounce as j } from "../utils/debounce.js";
|
|
43
|
-
import { throttle as
|
|
43
|
+
import { throttle as J } from "../utils/throttle.js";
|
|
44
44
|
import { resizeObserver as U } from "../utils/resizeObserver.js";
|
|
45
|
-
import { TagComputer as
|
|
46
|
-
import { CSS3DRenderPlugin as
|
|
47
|
-
import
|
|
48
|
-
import { generateBlankAudio as
|
|
45
|
+
import { TagComputer as Q } from "./TagComputer.js";
|
|
46
|
+
import { CSS3DRenderPlugin as X } from "../../CSS3DRenderPlugin/index.js";
|
|
47
|
+
import K from "../utils/tag/format.js";
|
|
48
|
+
import { generateBlankAudio as Y, AudioNamespace as Z } from "../../shared-utils/audio.js";
|
|
49
49
|
import { loadGLTF as ee } from "../../shared-utils/three/GLTFLoader.js";
|
|
50
50
|
import "../../vendor/svelte/internal/index.js";
|
|
51
51
|
import "../Components/TagItem.js";
|
|
@@ -141,7 +141,7 @@ import "../../CSS3DRenderPlugin/Controller.js";
|
|
|
141
141
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
142
142
|
import "@realsee/five/gltf-loader";
|
|
143
143
|
const M = "DnalogelPlugin-PanoTagPlugin", te = !1, di = (h) => `${M}--${h}`;
|
|
144
|
-
class li extends
|
|
144
|
+
class li extends Q {
|
|
145
145
|
constructor(e, t) {
|
|
146
146
|
super(e);
|
|
147
147
|
l(this, "state", { enabled: !0, visible: !0 });
|
|
@@ -150,7 +150,7 @@ class li extends K {
|
|
|
150
150
|
l(this, "css3DRenderPlugin");
|
|
151
151
|
l(this, "TagContainerSvelte");
|
|
152
152
|
l(this, "temporaryState", { visible: !0 });
|
|
153
|
-
l(this, "mediaStore",
|
|
153
|
+
l(this, "mediaStore", W({
|
|
154
154
|
currentMediaElement: null
|
|
155
155
|
}));
|
|
156
156
|
l(this, "group", new E());
|
|
@@ -172,12 +172,12 @@ class li extends K {
|
|
|
172
172
|
l(this, "handleFiveInitAnimationEnded", () => {
|
|
173
173
|
const e = this.five.getCurrentState().mode;
|
|
174
174
|
this.tags.forEach((t) => {
|
|
175
|
-
|
|
175
|
+
m(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
|
|
176
176
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
177
177
|
});
|
|
178
178
|
l(this, "handleFiveModelShownFloorChange", () => {
|
|
179
179
|
this.tags.forEach((e) => {
|
|
180
|
-
!
|
|
180
|
+
!m(e) || (e.state.visible = this.getVisible(e));
|
|
181
181
|
}), this.updateRenderAllTags();
|
|
182
182
|
});
|
|
183
183
|
l(this, "loadModel", (e) => c(this, null, function* () {
|
|
@@ -185,16 +185,16 @@ class li extends K {
|
|
|
185
185
|
const t = e.data.modelUrl;
|
|
186
186
|
if (!t)
|
|
187
187
|
return;
|
|
188
|
-
const i = ee(t).then((
|
|
188
|
+
const i = ee(t).then((d) => Object.assign(d.scene, { customID: e.id, isTagModel: !0 }));
|
|
189
189
|
e.model = { promise: i };
|
|
190
190
|
const s = yield i;
|
|
191
191
|
if (((n = e.model) == null ? void 0 : n.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
|
|
192
192
|
return;
|
|
193
193
|
s.visible = e.state.visible, new S().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (s.visible = !1);
|
|
194
|
-
const r = this.gltfObjectGroup.children.find((
|
|
194
|
+
const r = this.gltfObjectGroup.children.find((d) => d.customID === e.id);
|
|
195
195
|
return r && this.gltfObjectGroup.remove(r), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
|
|
196
196
|
}));
|
|
197
|
-
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config,
|
|
197
|
+
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Y(1, { namespace: Z.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
|
|
198
198
|
}
|
|
199
199
|
load(e, t) {
|
|
200
200
|
return c(this, null, function* () {
|
|
@@ -206,7 +206,7 @@ class li extends K {
|
|
|
206
206
|
const i = yield this.addTag(e.tagList, t);
|
|
207
207
|
if (this.debug)
|
|
208
208
|
try {
|
|
209
|
-
|
|
209
|
+
$(this.five, this.tags);
|
|
210
210
|
} catch (r) {
|
|
211
211
|
console.error(r);
|
|
212
212
|
}
|
|
@@ -219,12 +219,12 @@ class li extends K {
|
|
|
219
219
|
const r = this.getTagConfig(o);
|
|
220
220
|
return T(p({}, o), {
|
|
221
221
|
state: p({ visible: void 0, unfolded: te }, r.initialState),
|
|
222
|
-
hooks: new
|
|
222
|
+
hooks: new G(),
|
|
223
223
|
clickable: r.clickable,
|
|
224
224
|
mergedConfig: r
|
|
225
225
|
});
|
|
226
226
|
}).filter((o) => o.position);
|
|
227
|
-
return s.forEach(
|
|
227
|
+
return s.forEach(K), this.tags.push(...s), q(this.five).then(() => {
|
|
228
228
|
var o, r, n;
|
|
229
229
|
return this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), this.addMediaModelTag(s);
|
|
230
230
|
});
|
|
@@ -270,8 +270,8 @@ class li extends K {
|
|
|
270
270
|
dispose() {
|
|
271
271
|
var e, t, i, s, o, r;
|
|
272
272
|
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
|
|
273
|
-
var
|
|
274
|
-
return (
|
|
273
|
+
var d;
|
|
274
|
+
return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
|
|
275
275
|
}), 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.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.hooks.emit("dispose");
|
|
276
276
|
}
|
|
277
277
|
setState(e, t) {
|
|
@@ -285,9 +285,11 @@ class li extends K {
|
|
|
285
285
|
const i = this.getTagById(e);
|
|
286
286
|
if (!i)
|
|
287
287
|
return;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
let s = !1;
|
|
289
|
+
if (t && this.can("unfold", i) && (i.state.unfolded = !0, s = !0), t && (this.can("unfold", i) ? (i.state.unfolded = !0, s = !0) : console.warn(`tag ${e} cannot be unfolded`)), t || (this.can("fold", i) ? (i.state.unfolded = !1, s = !0) : console.warn(`tag ${e} cannot be folded`)), s) {
|
|
290
|
+
const r = this.filterPointTag();
|
|
291
|
+
(o = this.TagContainerSvelte) == null || o.$set({ tags: r });
|
|
292
|
+
}
|
|
291
293
|
}
|
|
292
294
|
changeTagNormalById(e, t) {
|
|
293
295
|
const i = this.getTagById(e);
|
|
@@ -314,25 +316,20 @@ class li extends K {
|
|
|
314
316
|
this.mediaStore.set({ currentMediaElement: null });
|
|
315
317
|
}
|
|
316
318
|
updateTagCss3DObjectMatrix(e, t) {
|
|
317
|
-
var D, w,
|
|
318
|
-
const i = (
|
|
319
|
+
var D, w, R, O;
|
|
320
|
+
const i = (R = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? R : 216e-5, s = (O = e.tag3DContentSvelte) == null ? void 0 : O.domContainer.css3DObject;
|
|
319
321
|
if (!s)
|
|
320
322
|
return;
|
|
321
|
-
const o =
|
|
323
|
+
const o = m(e) ? e.data.mediaPosition : e.position;
|
|
322
324
|
t.updateWorldMatrix(!1, !1);
|
|
323
|
-
const r = t.matrixWorld, n = new A().fromArray(o[0]),
|
|
325
|
+
const r = t.matrixWorld, n = new A().fromArray(o[0]), d = new A().fromArray(o[2]), f = new A().lerpVectors(n, d, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(f), y = new S().makeScale(i, i, i), b = new S().multiply(r).multiply(g).multiply(y);
|
|
324
326
|
b.decompose(s.position, s.quaternion, s.scale);
|
|
325
327
|
const u = s.opacityMesh;
|
|
326
328
|
!u || b.decompose(u.position, u.quaternion, u.scale);
|
|
327
329
|
}
|
|
328
330
|
updateTagCss3DObjectVisible(e) {
|
|
329
|
-
var
|
|
330
|
-
|
|
331
|
-
if (!t)
|
|
332
|
-
return;
|
|
333
|
-
t.visible = (r = (o = e.state) == null ? void 0 : o.visible) != null ? r : !0;
|
|
334
|
-
const i = t.opacityMesh;
|
|
335
|
-
!i || (i.visible = (a = (n = e.state) == null ? void 0 : n.visible) != null ? a : !0);
|
|
331
|
+
var t, i, s, o, r;
|
|
332
|
+
(r = (i = (t = e.tag3DContentSvelte) == null ? void 0 : t.domContainer) == null ? void 0 : i.css3DObject) == null || r.setVisible(this.state.visible && ((o = (s = e.state) == null ? void 0 : s.visible) != null ? o : !0)), this.five.needsRender = !0;
|
|
336
333
|
}
|
|
337
334
|
setVisibleAndUnfolded() {
|
|
338
335
|
return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -345,10 +342,10 @@ class li extends K {
|
|
|
345
342
|
});
|
|
346
343
|
}
|
|
347
344
|
handleShow() {
|
|
348
|
-
this.state.visible = !0, this.updateTagContainerVisible();
|
|
345
|
+
this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.five.needsRender = !0;
|
|
349
346
|
}
|
|
350
347
|
handleHide() {
|
|
351
|
-
this.pauseCurrentMedia(), this.state.visible = !1, this.updateTagContainerVisible();
|
|
348
|
+
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.five.needsRender = !0;
|
|
352
349
|
}
|
|
353
350
|
handleEnable() {
|
|
354
351
|
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
|
|
@@ -361,9 +358,9 @@ class li extends K {
|
|
|
361
358
|
});
|
|
362
359
|
}
|
|
363
360
|
addEventListener() {
|
|
364
|
-
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),
|
|
365
|
-
return this.handleFiveModeChange(g), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived",
|
|
366
|
-
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived",
|
|
361
|
+
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), f = this.clickhandler.bind(this), g = this.five.currentMode;
|
|
362
|
+
return this.handleFiveModeChange(g), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", d), t.on("click", f), () => {
|
|
363
|
+
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", d), t.off("click", f), this.store.eventListenerDisposer = void 0;
|
|
367
364
|
};
|
|
368
365
|
}
|
|
369
366
|
loadVideoFirstFrame() {
|
|
@@ -385,7 +382,7 @@ class li extends K {
|
|
|
385
382
|
}, i = () => {
|
|
386
383
|
!this.state.enabled || this.hide();
|
|
387
384
|
}, { observe: s, unobserve: o } = U(
|
|
388
|
-
|
|
385
|
+
J(() => {
|
|
389
386
|
!this.store.resizeObserverDisposer || i();
|
|
390
387
|
}, 500),
|
|
391
388
|
e
|
|
@@ -399,7 +396,7 @@ class li extends K {
|
|
|
399
396
|
}
|
|
400
397
|
handleFiveModeChange(e) {
|
|
401
398
|
this.setModelMedialVisible(), this.tags.forEach((t) => {
|
|
402
|
-
|
|
399
|
+
m(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
|
|
403
400
|
}), this.updateRenderAllTags(), this.updateRenderAllTags();
|
|
404
401
|
}
|
|
405
402
|
handleFiveWantsMoveToPano() {
|
|
@@ -434,8 +431,8 @@ class li extends K {
|
|
|
434
431
|
temporaryState: this.temporaryState,
|
|
435
432
|
withAnimation: this.store.visibleWithAnimation
|
|
436
433
|
}), this.filter3DTag().forEach((t) => {
|
|
437
|
-
var i;
|
|
438
|
-
(i = t.tag3DContentSvelte) == null
|
|
434
|
+
var i, s, o, r;
|
|
435
|
+
(o = (s = (i = t.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null || o.setVisible(this.state.visible), (r = t.tag3DContentSvelte) == null || r.svelteApp.$set({
|
|
439
436
|
state: this.state,
|
|
440
437
|
temporaryState: this.temporaryState,
|
|
441
438
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -476,7 +473,7 @@ class li extends K {
|
|
|
476
473
|
const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
477
474
|
if (!i)
|
|
478
475
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
479
|
-
this.TagContainerSvelte = new
|
|
476
|
+
this.TagContainerSvelte = new z({
|
|
480
477
|
target: i,
|
|
481
478
|
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
482
479
|
});
|
|
@@ -484,8 +481,8 @@ class li extends K {
|
|
|
484
481
|
}
|
|
485
482
|
updateRenderPlaneTag() {
|
|
486
483
|
this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
|
|
487
|
-
var n,
|
|
488
|
-
if (
|
|
484
|
+
var n, d, f;
|
|
485
|
+
if (m(t) && ((n = t.model) == null ? void 0 : n.object) && this.updateTagCss3DObjectMatrix(t, (d = t.model) == null ? void 0 : d.object), t.tag3DContentSvelte) {
|
|
489
486
|
const { svelteApp: g, domContainer: y, initialNormal: b, currentNormal: u } = t.tag3DContentSvelte;
|
|
490
487
|
if (this.updateTagCss3DObjectVisible(t), g.$set({
|
|
491
488
|
tag: t,
|
|
@@ -493,16 +490,16 @@ class li extends K {
|
|
|
493
490
|
state: this.state,
|
|
494
491
|
temporaryState: this.temporaryState
|
|
495
492
|
}), !b.equals(u)) {
|
|
496
|
-
const D = new
|
|
493
|
+
const D = new N().setFromUnitVectors(b, u);
|
|
497
494
|
y.css3DObject.setRotationFromQuaternion(D);
|
|
498
495
|
}
|
|
499
496
|
return;
|
|
500
497
|
}
|
|
501
|
-
if (((
|
|
498
|
+
if (((f = t.state) == null ? void 0 : f.visible) === !1)
|
|
502
499
|
return;
|
|
503
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
500
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = X(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
504
501
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
505
|
-
const i = (() => t.stickType === "Plane" ? t.position :
|
|
502
|
+
const i = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : H(
|
|
506
503
|
this.five.camera.position,
|
|
507
504
|
C(t.position),
|
|
508
505
|
C(t.normal)
|
|
@@ -521,7 +518,7 @@ class li extends K {
|
|
|
521
518
|
return;
|
|
522
519
|
const o = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, o);
|
|
523
520
|
!r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
|
|
524
|
-
svelteApp: new
|
|
521
|
+
svelteApp: new _({
|
|
525
522
|
target: r.container,
|
|
526
523
|
props: {
|
|
527
524
|
tag: t,
|
|
@@ -539,7 +536,7 @@ class li extends K {
|
|
|
539
536
|
}
|
|
540
537
|
updateRenderModelTag() {
|
|
541
538
|
const e = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
542
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(
|
|
539
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
|
|
543
540
|
var s;
|
|
544
541
|
(s = i.model) == null || s.promise.then((o) => {
|
|
545
542
|
o.visible = i.state.visible;
|
|
@@ -563,7 +560,7 @@ class li extends K {
|
|
|
563
560
|
}
|
|
564
561
|
addMediaModelTag(e) {
|
|
565
562
|
return c(this, null, function* () {
|
|
566
|
-
const t = e.filter(
|
|
563
|
+
const t = e.filter(m).map(this.loadModel);
|
|
567
564
|
yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
568
565
|
});
|
|
569
566
|
}
|
|
@@ -86,8 +86,8 @@ import "./utils/tag/tagCheck.js";
|
|
|
86
86
|
import "./Components/Tag/AudioTag/index.js";
|
|
87
87
|
import "./Components/Tag/AudioTag/AudioTag.js";
|
|
88
88
|
import "./Components/Common/Audio.js";
|
|
89
|
-
import "../shared-utils/audio.js";
|
|
90
89
|
import "./utils/audio/SharedAudio.js";
|
|
90
|
+
import "../shared-utils/audio.js";
|
|
91
91
|
import "./Components/Common/Icon/audioIcon.js";
|
|
92
92
|
import "./Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
93
93
|
import "./Components/Tag/MediaPlane.js";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export declare class SharedAudio extends Audio {
|
|
2
|
-
sharedAudioSrc?: string;
|
|
3
|
-
sharedAudioPaused: boolean;
|
|
4
2
|
get paused(): boolean;
|
|
5
3
|
get currentTime(): number;
|
|
4
|
+
private sharedAudioSrc?;
|
|
5
|
+
private sharedAudioPaused;
|
|
6
6
|
private sharedAudioCurrentTime;
|
|
7
7
|
private tryplaying;
|
|
8
8
|
private audioInstance?;
|
|
9
9
|
private eventListenerDisposer?;
|
|
10
10
|
constructor(src?: string);
|
|
11
11
|
play(): Promise<void>;
|
|
12
|
-
pause(): void;
|
|
12
|
+
pause(e?: Event): void;
|
|
13
13
|
dispose(): void;
|
|
14
14
|
private clear;
|
|
15
|
+
private endedHandler;
|
|
15
16
|
private addEventListeners;
|
|
16
17
|
}
|