@realsee/dnalogel 2.3.9-alpha.1 → 2.3.9-alpha.3
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/index.cjs.js +54 -54
- package/dist/index.js +4837 -4792
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/audio.d.ts +19 -0
- 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 +41 -41
- 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 +16 -16
- 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/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/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 +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/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 +5 -5
- 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 +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/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 +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 +10 -10
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- 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/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/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/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/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/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/CruisePlugin/Controller.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Audio.js +131 -132
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +66 -64
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +17 -16
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +164 -143
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +54 -54
- package/libs/PanoTagPlugin/Components/Tag/index.js +111 -91
- package/libs/PanoTagPlugin/Components/TagContainer.js +38 -18
- package/libs/PanoTagPlugin/Components/TagItem.js +64 -44
- package/libs/PanoTagPlugin/controller/index.js +40 -35
- package/libs/PanoTagPlugin/index.js +30 -25
- package/libs/index.js +93 -92
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +25 -32
- package/libs/shared-utils/audio.d.ts +19 -0
- package/libs/shared-utils/audio.js +75 -0
- package/package.json +1 -1
|
@@ -38,9 +38,29 @@ import "swiper/css";
|
|
|
38
38
|
import "swiper/css/autoplay";
|
|
39
39
|
import "./Common/MediaItem.js";
|
|
40
40
|
import "./Tag/MarketingTag.js";
|
|
41
|
+
import "hammerjs";
|
|
42
|
+
import "@realsee/five";
|
|
43
|
+
import "@tweenjs/tween.js";
|
|
44
|
+
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
45
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
46
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
47
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
48
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
49
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
50
|
+
import "../../shared-utils/Subscribe.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
52
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
57
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
58
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
59
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
41
60
|
import "./Tag/AudioTag/index.js";
|
|
42
61
|
import "./Tag/AudioTag/AudioTag.js";
|
|
43
62
|
import "./Common/Audio.js";
|
|
63
|
+
import "../../shared-utils/audio.js";
|
|
44
64
|
import "./Common/Icon/audioIcon.js";
|
|
45
65
|
import "./Tag/AudioTag/AudioPlaneTag.js";
|
|
46
66
|
import "../utils/timeToString.js";
|
|
@@ -85,12 +105,12 @@ function x(o) {
|
|
|
85
105
|
c() {
|
|
86
106
|
G(e.$$.fragment);
|
|
87
107
|
},
|
|
88
|
-
m(i,
|
|
89
|
-
H(e, i,
|
|
108
|
+
m(i, n) {
|
|
109
|
+
H(e, i, n), t = !0;
|
|
90
110
|
},
|
|
91
|
-
p(i,
|
|
92
|
-
const
|
|
93
|
-
|
|
111
|
+
p(i, n) {
|
|
112
|
+
const l = {};
|
|
113
|
+
n & 4 && (l.mediaStore = i[2]), n & 1 && (l.withAnimation = i[0]), n & 2 && (l.tag = F(i[1])), n & 8 && (l.state = i[3]), n & 16 && (l.temporaryState = i[4]), e.$set(l);
|
|
94
114
|
},
|
|
95
115
|
i(i) {
|
|
96
116
|
t || (v(e.$$.fragment, i), t = !0);
|
|
@@ -126,12 +146,12 @@ function tt(o) {
|
|
|
126
146
|
c() {
|
|
127
147
|
G(e.$$.fragment);
|
|
128
148
|
},
|
|
129
|
-
m(i,
|
|
130
|
-
H(e, i,
|
|
149
|
+
m(i, n) {
|
|
150
|
+
H(e, i, n), t = !0;
|
|
131
151
|
},
|
|
132
|
-
p(i,
|
|
133
|
-
const
|
|
134
|
-
|
|
152
|
+
p(i, n) {
|
|
153
|
+
const l = {};
|
|
154
|
+
n & 2 && (l.tag = i[1]), e.$set(l);
|
|
135
155
|
},
|
|
136
156
|
i(i) {
|
|
137
157
|
t || (v(e.$$.fragment, i), t = !0);
|
|
@@ -145,71 +165,71 @@ function tt(o) {
|
|
|
145
165
|
};
|
|
146
166
|
}
|
|
147
167
|
function et(o) {
|
|
148
|
-
let e, t, i,
|
|
168
|
+
let e, t, i, n, l, f, s, g, u;
|
|
149
169
|
const w = [x, Z], c = [];
|
|
150
|
-
function T(
|
|
151
|
-
return
|
|
170
|
+
function T(r, m) {
|
|
171
|
+
return r[12] ? 0 : 1;
|
|
152
172
|
}
|
|
153
|
-
i = T(o),
|
|
173
|
+
i = T(o), n = c[i] = w[i](o);
|
|
154
174
|
const a = [tt, $], _ = [];
|
|
155
|
-
function A(
|
|
156
|
-
return
|
|
175
|
+
function A(r, m) {
|
|
176
|
+
return r[13] ? 0 : 1;
|
|
157
177
|
}
|
|
158
178
|
return f = A(o), s = _[f] = a[f](o), {
|
|
159
179
|
c() {
|
|
160
|
-
e = P("div"), t = P("div"),
|
|
180
|
+
e = P("div"), t = P("div"), n.c(), l = Q(), s.c(), d(t, "class", "wrapper svelte-bdubcv"), d(t, "data-tag-unfolded", o[8]), d(t, "data-tag-id", o[11]), d(t, "data-content-type", g = o[1].contentType), h(t, "left", o[7]), h(t, "top", o[6]), h(t, "z-index", o[5]), d(e, "class", "tag svelte-bdubcv"), d(e, "data-tag-id", o[11]), y(e, "disable", o[10]), y(e, "hide", o[9]), y(e, "withAnimation", o[0]);
|
|
161
181
|
},
|
|
162
|
-
m(
|
|
163
|
-
z(
|
|
182
|
+
m(r, m) {
|
|
183
|
+
z(r, e, m), j(e, t), c[i].m(t, null), j(t, l), _[f].m(t, null), u = !0;
|
|
164
184
|
},
|
|
165
|
-
p(
|
|
166
|
-
let
|
|
167
|
-
i = T(
|
|
168
|
-
c[
|
|
169
|
-
}), B(),
|
|
185
|
+
p(r, [m]) {
|
|
186
|
+
let p = i;
|
|
187
|
+
i = T(r), i === p ? c[i].p(r, m) : (E(), k(c[p], 1, 1, () => {
|
|
188
|
+
c[p] = null;
|
|
189
|
+
}), B(), n = c[i], n ? n.p(r, m) : (n = c[i] = w[i](r), n.c()), v(n, 1), n.m(t, l));
|
|
170
190
|
let b = f;
|
|
171
|
-
f = A(
|
|
191
|
+
f = A(r), f === b ? _[f].p(r, m) : (E(), k(_[b], 1, 1, () => {
|
|
172
192
|
_[b] = null;
|
|
173
|
-
}), B(), s = _[f], s ? s.p(
|
|
193
|
+
}), B(), s = _[f], s ? s.p(r, m) : (s = _[f] = a[f](r), s.c()), v(s, 1), s.m(t, null)), (!u || m & 256) && d(t, "data-tag-unfolded", r[8]), (!u || m & 2048) && d(t, "data-tag-id", r[11]), (!u || m & 2 && g !== (g = r[1].contentType)) && d(t, "data-content-type", g), m & 128 && h(t, "left", r[7]), m & 64 && h(t, "top", r[6]), m & 32 && h(t, "z-index", r[5]), (!u || m & 2048) && d(e, "data-tag-id", r[11]), (!u || m & 1024) && y(e, "disable", r[10]), (!u || m & 512) && y(e, "hide", r[9]), (!u || m & 1) && y(e, "withAnimation", r[0]);
|
|
174
194
|
},
|
|
175
|
-
i(
|
|
176
|
-
u || (v(
|
|
195
|
+
i(r) {
|
|
196
|
+
u || (v(n), v(s), u = !0);
|
|
177
197
|
},
|
|
178
|
-
o(
|
|
179
|
-
k(
|
|
198
|
+
o(r) {
|
|
199
|
+
k(n), k(s), u = !1;
|
|
180
200
|
},
|
|
181
|
-
d(
|
|
182
|
-
|
|
201
|
+
d(r) {
|
|
202
|
+
r && C(e), c[i].d(), _[f].d();
|
|
183
203
|
}
|
|
184
204
|
};
|
|
185
205
|
}
|
|
186
206
|
function it(o, e, t) {
|
|
187
|
-
let i,
|
|
188
|
-
const
|
|
189
|
-
return o.$$set = (
|
|
190
|
-
"withAnimation" in
|
|
207
|
+
let i, n, l, f, s, g, u, w, c, { withAnimation: T = !1 } = e, { tag: a } = e, { mediaStore: _ } = e, { state: A } = e, { temporaryState: r } = e;
|
|
208
|
+
const m = U("hooks");
|
|
209
|
+
return o.$$set = (p) => {
|
|
210
|
+
"withAnimation" in p && t(0, T = p.withAnimation), "tag" in p && t(1, a = p.tag), "mediaStore" in p && t(2, _ = p.mediaStore), "state" in p && t(3, A = p.state), "temporaryState" in p && t(4, r = p.temporaryState);
|
|
191
211
|
}, o.$$.update = () => {
|
|
192
|
-
var
|
|
193
|
-
o.$$.dirty & 2 && t(13, i = (() => !(a.contentType === "Link" || a.contentType === "VRLink" || a.contentType === "PanoLink" || a.contentType === "Audio" && a.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12,
|
|
212
|
+
var p, b, L, I, q, D, R, V;
|
|
213
|
+
o.$$.dirty & 2 && t(13, i = (() => !(a.contentType === "Link" || a.contentType === "VRLink" || a.contentType === "PanoLink" || a.contentType === "Audio" && a.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => a.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, l = a.id), o.$$.dirty & 2 && t(10, f = !((p = a.pointTagStyle) != null && p.leftPercent) || !((b = a.pointTagStyle) != null && b.topPercent) || a.enabled === !1 || !a.state), o.$$.dirty & 2 && t(9, s = !((L = a.state) != null && L.visible) || ((I = a.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, g = (q = a.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, u = ((D = a.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, w = ((R = a.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = a.state) != null && V.unfolded ? 1 : 0);
|
|
194
214
|
}, [
|
|
195
215
|
T,
|
|
196
216
|
a,
|
|
197
217
|
_,
|
|
198
218
|
A,
|
|
199
|
-
|
|
219
|
+
r,
|
|
200
220
|
c,
|
|
201
221
|
w,
|
|
202
222
|
u,
|
|
203
223
|
g,
|
|
204
224
|
s,
|
|
205
225
|
f,
|
|
206
|
-
|
|
207
|
-
|
|
226
|
+
l,
|
|
227
|
+
n,
|
|
208
228
|
i,
|
|
209
|
-
|
|
229
|
+
m
|
|
210
230
|
];
|
|
211
231
|
}
|
|
212
|
-
class
|
|
232
|
+
class ve extends K {
|
|
213
233
|
constructor(e) {
|
|
214
234
|
super(), M(
|
|
215
235
|
this,
|
|
@@ -229,5 +249,5 @@ class ee extends K {
|
|
|
229
249
|
}
|
|
230
250
|
}
|
|
231
251
|
export {
|
|
232
|
-
|
|
252
|
+
ve as default
|
|
233
253
|
};
|
|
@@ -9,9 +9,9 @@ var u = (h, a, e) => a in h ? S(h, a, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
for (var e of T(a))
|
|
10
10
|
E.call(a, e) && u(h, e, a[e]);
|
|
11
11
|
return h;
|
|
12
|
-
},
|
|
12
|
+
}, f = (h, a) => y(h, P(a));
|
|
13
13
|
var d = (h, a, e) => (u(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
-
var
|
|
14
|
+
var m = (h, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
@@ -28,9 +28,9 @@ var f = (h, a, e) => new Promise((t, i) => {
|
|
|
28
28
|
n((e = e.apply(h, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Subscribe as R } from "@realsee/five";
|
|
31
|
-
import { Quaternion as
|
|
31
|
+
import { Quaternion as k } from "three";
|
|
32
32
|
import c from "object-assign-deep";
|
|
33
|
-
import { writable as
|
|
33
|
+
import { writable as F } from "../../vendor/svelte/store/index.js";
|
|
34
34
|
import U from "../Components/TagContainer.js";
|
|
35
35
|
import L from "../Components/Tag/index.js";
|
|
36
36
|
import { arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
@@ -44,6 +44,7 @@ import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
|
44
44
|
import { TagComputer as N } from "./TagComputer.js";
|
|
45
45
|
import { CSS3DRenderPlugin as z } from "../../CSS3DRenderPlugin/index.js";
|
|
46
46
|
import W from "../utils/tag/format.js";
|
|
47
|
+
import { generateBlankAudio as _ } from "../../shared-utils/audio.js";
|
|
47
48
|
import "../../vendor/svelte/internal/index.js";
|
|
48
49
|
import "../Components/TagItem.js";
|
|
49
50
|
import "../utils/noTypecheck.js";
|
|
@@ -85,6 +86,23 @@ import "swiper/css";
|
|
|
85
86
|
import "swiper/css/autoplay";
|
|
86
87
|
import "../Components/Common/MediaItem.js";
|
|
87
88
|
import "../Components/Tag/MarketingTag.js";
|
|
89
|
+
import "hammerjs";
|
|
90
|
+
import "@tweenjs/tween.js";
|
|
91
|
+
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
92
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
93
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
94
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
95
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
96
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
97
|
+
import "../../shared-utils/Subscribe.js";
|
|
98
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
99
|
+
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
100
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
101
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
102
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
103
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
104
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
105
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
88
106
|
import "../Components/Tag/AudioTag/index.js";
|
|
89
107
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
90
108
|
import "../Components/Common/Audio.js";
|
|
@@ -98,26 +116,13 @@ import "../Components/Tag/CustomTag.js";
|
|
|
98
116
|
import "../tag.config.js";
|
|
99
117
|
import "../utils/tag/tagCheck.js";
|
|
100
118
|
import "../utils/tagPosition.js";
|
|
101
|
-
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
102
119
|
import "../utils/checkRange.js";
|
|
103
120
|
import "./TagCacheController.js";
|
|
104
121
|
import "../../base/BasePlugin.js";
|
|
105
|
-
import "../../shared-utils/Subscribe.js";
|
|
106
122
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
107
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
108
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
109
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
110
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
111
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
112
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
113
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
114
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
115
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
116
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
117
123
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
class wt extends N {
|
|
124
|
+
const A = "2.0.2", v = `DnalogelPlugin-PanoTagPlugin@${A}`, $ = !1, Ut = (h) => `${v}--${h}`;
|
|
125
|
+
class Lt extends N {
|
|
121
126
|
constructor(e, t) {
|
|
122
127
|
super(e);
|
|
123
128
|
d(this, "version", A);
|
|
@@ -127,7 +132,7 @@ class wt extends N {
|
|
|
127
132
|
d(this, "css3DRenderPlugin");
|
|
128
133
|
d(this, "TagContainerSvelte");
|
|
129
134
|
d(this, "temporaryState", { visible: !0 });
|
|
130
|
-
d(this, "mediaStore",
|
|
135
|
+
d(this, "mediaStore", F({
|
|
131
136
|
currentMediaElement: null
|
|
132
137
|
}));
|
|
133
138
|
d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
|
|
@@ -140,10 +145,10 @@ class wt extends N {
|
|
|
140
145
|
d(this, "disposedErrorLog", () => {
|
|
141
146
|
console.error(`${v} is disposed`);
|
|
142
147
|
});
|
|
143
|
-
this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
148
|
+
this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, _(1), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
|
|
144
149
|
}
|
|
145
150
|
load(e, t) {
|
|
146
|
-
return
|
|
151
|
+
return m(this, null, function* () {
|
|
147
152
|
var i, s;
|
|
148
153
|
if (this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
|
|
149
154
|
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
@@ -158,11 +163,11 @@ class wt extends N {
|
|
|
158
163
|
});
|
|
159
164
|
}
|
|
160
165
|
addTag(e, t) {
|
|
161
|
-
return
|
|
166
|
+
return m(this, null, function* () {
|
|
162
167
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
163
168
|
const n = this.getTagConfig(o);
|
|
164
|
-
return
|
|
165
|
-
state: p({ visible: void 0, unfolded:
|
|
169
|
+
return f(p({}, o), {
|
|
170
|
+
state: p({ visible: void 0, unfolded: $ }, n.initialState),
|
|
166
171
|
hooks: new R(),
|
|
167
172
|
clickable: n.clickable,
|
|
168
173
|
mergedConfig: n
|
|
@@ -184,7 +189,7 @@ class wt extends N {
|
|
|
184
189
|
this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
185
190
|
}
|
|
186
191
|
show(e) {
|
|
187
|
-
return
|
|
192
|
+
return m(this, null, function* () {
|
|
188
193
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
189
194
|
if (this.store.disposed)
|
|
190
195
|
return this.disposedErrorLog();
|
|
@@ -192,7 +197,7 @@ class wt extends N {
|
|
|
192
197
|
});
|
|
193
198
|
}
|
|
194
199
|
hide(e) {
|
|
195
|
-
return
|
|
200
|
+
return m(this, null, function* () {
|
|
196
201
|
const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
|
|
197
202
|
if (this.store.disposed)
|
|
198
203
|
return this.disposedErrorLog();
|
|
@@ -258,7 +263,7 @@ class wt extends N {
|
|
|
258
263
|
this.mediaStore.set({ currentMediaElement: null });
|
|
259
264
|
}
|
|
260
265
|
setVisibleAndUnfolded() {
|
|
261
|
-
return
|
|
266
|
+
return m(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
262
267
|
if (!!this.isPanorama)
|
|
263
268
|
return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
|
|
264
269
|
setTimeout(() => {
|
|
@@ -326,7 +331,7 @@ class wt extends N {
|
|
|
326
331
|
handleFiveWantsMoveToPano() {
|
|
327
332
|
this.tags.forEach((e) => {
|
|
328
333
|
const t = this.getTagConfig(e);
|
|
329
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
334
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = f(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = f(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
|
|
330
335
|
}), this.updateTagContainerVisible();
|
|
331
336
|
}
|
|
332
337
|
temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -372,9 +377,9 @@ class wt extends N {
|
|
|
372
377
|
this.updateRenderPointTag();
|
|
373
378
|
}
|
|
374
379
|
handleFivePanoArrived() {
|
|
375
|
-
return
|
|
380
|
+
return m(this, null, function* () {
|
|
376
381
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
377
|
-
e.temporaryState =
|
|
382
|
+
e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
|
|
378
383
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
|
|
379
384
|
});
|
|
380
385
|
}
|
|
@@ -414,7 +419,7 @@ class wt extends N {
|
|
|
414
419
|
state: this.state,
|
|
415
420
|
temporaryState: this.temporaryState
|
|
416
421
|
}), !n.equals(r)) {
|
|
417
|
-
const l = new
|
|
422
|
+
const l = new k().setFromUnitVectors(n, r);
|
|
418
423
|
o.css3DObject.setRotationFromQuaternion(l);
|
|
419
424
|
}
|
|
420
425
|
} else {
|
|
@@ -460,7 +465,7 @@ class wt extends N {
|
|
|
460
465
|
}
|
|
461
466
|
}
|
|
462
467
|
export {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
468
|
+
Lt as PanoTagPluginController,
|
|
469
|
+
Lt as default,
|
|
470
|
+
Ut as pluginFlag
|
|
466
471
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { default as Wo, pluginFlag as Xo } from "./controller/index.js";
|
|
3
|
+
import { ContentType as Zo } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as $o, PointType as or } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "three";
|
|
7
7
|
import "object-assign-deep";
|
|
@@ -46,9 +46,28 @@ import "swiper/css/autoplay";
|
|
|
46
46
|
import "./utils/noTypecheck.js";
|
|
47
47
|
import "./Components/Common/MediaItem.js";
|
|
48
48
|
import "./Components/Tag/MarketingTag.js";
|
|
49
|
+
import "hammerjs";
|
|
50
|
+
import "@tweenjs/tween.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
53
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
54
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
55
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
57
|
+
import "../shared-utils/Subscribe.js";
|
|
58
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
59
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
60
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
61
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
62
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
63
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
64
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
65
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
66
|
+
import "../shared-utils/animationFrame/index.js";
|
|
49
67
|
import "./Components/Tag/AudioTag/index.js";
|
|
50
68
|
import "./Components/Tag/AudioTag/AudioTag.js";
|
|
51
69
|
import "./Components/Common/Audio.js";
|
|
70
|
+
import "../shared-utils/audio.js";
|
|
52
71
|
import "./Components/Common/Icon/audioIcon.js";
|
|
53
72
|
import "./Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
54
73
|
import "./utils/timeToString.js";
|
|
@@ -59,7 +78,6 @@ import "./Components/Common/Icon/Icon.js";
|
|
|
59
78
|
import "./utils/getImageInfo.js";
|
|
60
79
|
import "./Components/Tag/CustomTag.js";
|
|
61
80
|
import "./Components/Common/TagPoint.js";
|
|
62
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
63
81
|
import "./utils/addDebugPoints.js";
|
|
64
82
|
import "./utils/planeNormal.js";
|
|
65
83
|
import "./utils/actionAfterFiveModelLoad.js";
|
|
@@ -71,33 +89,20 @@ import "./controller/TagComputer.js";
|
|
|
71
89
|
import "./tag.config.js";
|
|
72
90
|
import "./utils/tag/tagCheck.js";
|
|
73
91
|
import "./utils/tagPosition.js";
|
|
74
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
75
92
|
import "./utils/checkRange.js";
|
|
76
93
|
import "./controller/TagCacheController.js";
|
|
77
94
|
import "../base/BasePlugin.js";
|
|
78
|
-
import "../shared-utils/Subscribe.js";
|
|
79
95
|
import "../CSS3DRenderPlugin/index.js";
|
|
80
96
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
81
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
82
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
83
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
84
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
85
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
86
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
87
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
88
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
89
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
90
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
91
97
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
92
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
93
98
|
import "./utils/tag/format.js";
|
|
94
|
-
const
|
|
99
|
+
const So = (o, r) => new t(o, r);
|
|
95
100
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
Zo as ContentType,
|
|
102
|
+
$o as DimensionType,
|
|
103
|
+
So as PanoTagPlugin,
|
|
104
|
+
Wo as PanoTagPluginController,
|
|
105
|
+
or as PointType,
|
|
106
|
+
So as default,
|
|
107
|
+
Xo as pluginFlag
|
|
103
108
|
};
|