@realsee/dnalogel 2.3.9-alpha.0 → 2.3.9-alpha.2
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/PanoTagPlugin/controller/index.d.ts +2 -2
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/dist/index.cjs.js +16 -16
- package/dist/index.js +2520 -2508
- package/dist/index.umd.js +17 -17
- 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 +45 -45
- 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/PanoTagPlugin/Components/Tag/MarketingTag.js +164 -143
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +54 -54
- package/libs/PanoTagPlugin/Components/Tag/index.js +110 -91
- package/libs/PanoTagPlugin/Components/TagContainer.js +37 -18
- package/libs/PanoTagPlugin/Components/TagItem.js +63 -44
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +49 -35
- package/libs/PanoTagPlugin/index.js +29 -25
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +7 -1
- package/libs/PanoTagPlugin/utils/index.js +10 -9
- package/package.json +1 -1
|
@@ -38,6 +38,25 @@ 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";
|
|
@@ -85,12 +104,12 @@ function x(o) {
|
|
|
85
104
|
c() {
|
|
86
105
|
G(e.$$.fragment);
|
|
87
106
|
},
|
|
88
|
-
m(i,
|
|
89
|
-
H(e, i,
|
|
107
|
+
m(i, n) {
|
|
108
|
+
H(e, i, n), t = !0;
|
|
90
109
|
},
|
|
91
|
-
p(i,
|
|
92
|
-
const
|
|
93
|
-
|
|
110
|
+
p(i, n) {
|
|
111
|
+
const l = {};
|
|
112
|
+
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
113
|
},
|
|
95
114
|
i(i) {
|
|
96
115
|
t || (v(e.$$.fragment, i), t = !0);
|
|
@@ -126,12 +145,12 @@ function tt(o) {
|
|
|
126
145
|
c() {
|
|
127
146
|
G(e.$$.fragment);
|
|
128
147
|
},
|
|
129
|
-
m(i,
|
|
130
|
-
H(e, i,
|
|
148
|
+
m(i, n) {
|
|
149
|
+
H(e, i, n), t = !0;
|
|
131
150
|
},
|
|
132
|
-
p(i,
|
|
133
|
-
const
|
|
134
|
-
|
|
151
|
+
p(i, n) {
|
|
152
|
+
const l = {};
|
|
153
|
+
n & 2 && (l.tag = i[1]), e.$set(l);
|
|
135
154
|
},
|
|
136
155
|
i(i) {
|
|
137
156
|
t || (v(e.$$.fragment, i), t = !0);
|
|
@@ -145,71 +164,71 @@ function tt(o) {
|
|
|
145
164
|
};
|
|
146
165
|
}
|
|
147
166
|
function et(o) {
|
|
148
|
-
let e, t, i,
|
|
167
|
+
let e, t, i, n, l, f, s, g, u;
|
|
149
168
|
const w = [x, Z], c = [];
|
|
150
|
-
function T(
|
|
151
|
-
return
|
|
169
|
+
function T(r, m) {
|
|
170
|
+
return r[12] ? 0 : 1;
|
|
152
171
|
}
|
|
153
|
-
i = T(o),
|
|
172
|
+
i = T(o), n = c[i] = w[i](o);
|
|
154
173
|
const a = [tt, $], _ = [];
|
|
155
|
-
function A(
|
|
156
|
-
return
|
|
174
|
+
function A(r, m) {
|
|
175
|
+
return r[13] ? 0 : 1;
|
|
157
176
|
}
|
|
158
177
|
return f = A(o), s = _[f] = a[f](o), {
|
|
159
178
|
c() {
|
|
160
|
-
e = P("div"), t = P("div"),
|
|
179
|
+
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
180
|
},
|
|
162
|
-
m(
|
|
163
|
-
z(
|
|
181
|
+
m(r, m) {
|
|
182
|
+
z(r, e, m), j(e, t), c[i].m(t, null), j(t, l), _[f].m(t, null), u = !0;
|
|
164
183
|
},
|
|
165
|
-
p(
|
|
166
|
-
let
|
|
167
|
-
i = T(
|
|
168
|
-
c[
|
|
169
|
-
}), B(),
|
|
184
|
+
p(r, [m]) {
|
|
185
|
+
let p = i;
|
|
186
|
+
i = T(r), i === p ? c[i].p(r, m) : (E(), k(c[p], 1, 1, () => {
|
|
187
|
+
c[p] = null;
|
|
188
|
+
}), 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
189
|
let b = f;
|
|
171
|
-
f = A(
|
|
190
|
+
f = A(r), f === b ? _[f].p(r, m) : (E(), k(_[b], 1, 1, () => {
|
|
172
191
|
_[b] = null;
|
|
173
|
-
}), B(), s = _[f], s ? s.p(
|
|
192
|
+
}), 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
193
|
},
|
|
175
|
-
i(
|
|
176
|
-
u || (v(
|
|
194
|
+
i(r) {
|
|
195
|
+
u || (v(n), v(s), u = !0);
|
|
177
196
|
},
|
|
178
|
-
o(
|
|
179
|
-
k(
|
|
197
|
+
o(r) {
|
|
198
|
+
k(n), k(s), u = !1;
|
|
180
199
|
},
|
|
181
|
-
d(
|
|
182
|
-
|
|
200
|
+
d(r) {
|
|
201
|
+
r && C(e), c[i].d(), _[f].d();
|
|
183
202
|
}
|
|
184
203
|
};
|
|
185
204
|
}
|
|
186
205
|
function it(o, e, t) {
|
|
187
|
-
let i,
|
|
188
|
-
const
|
|
189
|
-
return o.$$set = (
|
|
190
|
-
"withAnimation" in
|
|
206
|
+
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;
|
|
207
|
+
const m = U("hooks");
|
|
208
|
+
return o.$$set = (p) => {
|
|
209
|
+
"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
210
|
}, 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,
|
|
211
|
+
var p, b, L, I, q, D, R, V;
|
|
212
|
+
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
213
|
}, [
|
|
195
214
|
T,
|
|
196
215
|
a,
|
|
197
216
|
_,
|
|
198
217
|
A,
|
|
199
|
-
|
|
218
|
+
r,
|
|
200
219
|
c,
|
|
201
220
|
w,
|
|
202
221
|
u,
|
|
203
222
|
g,
|
|
204
223
|
s,
|
|
205
224
|
f,
|
|
206
|
-
|
|
207
|
-
|
|
225
|
+
l,
|
|
226
|
+
n,
|
|
208
227
|
i,
|
|
209
|
-
|
|
228
|
+
m
|
|
210
229
|
];
|
|
211
230
|
}
|
|
212
|
-
class
|
|
231
|
+
class ke extends K {
|
|
213
232
|
constructor(e) {
|
|
214
233
|
super(), M(
|
|
215
234
|
this,
|
|
@@ -229,5 +248,5 @@ class ee extends K {
|
|
|
229
248
|
}
|
|
230
249
|
}
|
|
231
250
|
export {
|
|
232
|
-
|
|
251
|
+
ke as default
|
|
233
252
|
};
|
|
@@ -35,11 +35,11 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
35
35
|
/**
|
|
36
36
|
* @description: 加载数据
|
|
37
37
|
*/
|
|
38
|
-
load(data: Tags, config?: LoadTagConfig):
|
|
38
|
+
load(data: Tags, config?: LoadTagConfig): Promise<boolean>;
|
|
39
39
|
/**
|
|
40
40
|
* @description: 添加标签
|
|
41
41
|
*/
|
|
42
|
-
addTag(tag: Tag | Tag[], config?: AddTagConfig):
|
|
42
|
+
addTag(tag: Tag | Tag[], config?: AddTagConfig): Promise<boolean>;
|
|
43
43
|
/**
|
|
44
44
|
* @description: 改变配置
|
|
45
45
|
*/
|
|
@@ -36,7 +36,7 @@ import L from "../Components/Tag/index.js";
|
|
|
36
36
|
import { arrayPositionToVector3 as g } 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 {
|
|
39
|
+
import { waitFiveModelLoaded 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
42
|
import { throttle as V } from "../utils/throttle.js";
|
|
@@ -85,6 +85,23 @@ import "swiper/css";
|
|
|
85
85
|
import "swiper/css/autoplay";
|
|
86
86
|
import "../Components/Common/MediaItem.js";
|
|
87
87
|
import "../Components/Tag/MarketingTag.js";
|
|
88
|
+
import "hammerjs";
|
|
89
|
+
import "@tweenjs/tween.js";
|
|
90
|
+
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
91
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
92
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
93
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
94
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
95
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
96
|
+
import "../../shared-utils/Subscribe.js";
|
|
97
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
98
|
+
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
99
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
100
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
101
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
102
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
103
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
104
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
88
105
|
import "../Components/Tag/AudioTag/index.js";
|
|
89
106
|
import "../Components/Tag/AudioTag/AudioTag.js";
|
|
90
107
|
import "../Components/Common/Audio.js";
|
|
@@ -98,26 +115,13 @@ import "../Components/Tag/CustomTag.js";
|
|
|
98
115
|
import "../tag.config.js";
|
|
99
116
|
import "../utils/tag/tagCheck.js";
|
|
100
117
|
import "../utils/tagPosition.js";
|
|
101
|
-
import "../../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
102
118
|
import "../utils/checkRange.js";
|
|
103
119
|
import "./TagCacheController.js";
|
|
104
120
|
import "../../base/BasePlugin.js";
|
|
105
|
-
import "../../shared-utils/Subscribe.js";
|
|
106
121
|
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
122
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
class wt extends N {
|
|
123
|
+
const A = "2.0.1", v = `DnalogelPlugin-PanoTagPlugin@${A}`, _ = !1, Ft = (h) => `${v}--${h}`;
|
|
124
|
+
class kt extends N {
|
|
121
125
|
constructor(e, t) {
|
|
122
126
|
super(e);
|
|
123
127
|
d(this, "version", A);
|
|
@@ -143,25 +147,35 @@ class wt extends N {
|
|
|
143
147
|
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 });
|
|
144
148
|
}
|
|
145
149
|
load(e, t) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
return m(this, null, function* () {
|
|
151
|
+
var i, s;
|
|
152
|
+
if (this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
|
|
153
|
+
globalConfig: (i = e.globalConfig) != null ? i : {},
|
|
154
|
+
contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
|
|
155
|
+
}), this.debug)
|
|
156
|
+
try {
|
|
157
|
+
O(this.five, this.tags);
|
|
158
|
+
} catch (o) {
|
|
159
|
+
console.error(o);
|
|
160
|
+
}
|
|
161
|
+
return this.addTag(e.tagList, t);
|
|
162
|
+
});
|
|
151
163
|
}
|
|
152
164
|
addTag(e, t) {
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
165
|
+
return m(this, null, function* () {
|
|
166
|
+
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
167
|
+
const n = this.getTagConfig(o);
|
|
168
|
+
return f(p({}, o), {
|
|
169
|
+
state: p({ visible: void 0, unfolded: _ }, n.initialState),
|
|
170
|
+
hooks: new R(),
|
|
171
|
+
clickable: n.clickable,
|
|
172
|
+
mergedConfig: n
|
|
173
|
+
});
|
|
174
|
+
}).filter((o) => o.position);
|
|
175
|
+
return s.forEach(W), this.tags.push(...s), B(this.five).then(() => {
|
|
176
|
+
var o, n, r;
|
|
177
|
+
return this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), !0;
|
|
160
178
|
});
|
|
161
|
-
}).filter((o) => o.position);
|
|
162
|
-
s.forEach(W), this.tags.push(...s), B(this.five, () => {
|
|
163
|
-
var o, n, r;
|
|
164
|
-
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
|
|
165
179
|
});
|
|
166
180
|
}
|
|
167
181
|
changeConfig(e, t = !0) {
|
|
@@ -450,7 +464,7 @@ class wt extends N {
|
|
|
450
464
|
}
|
|
451
465
|
}
|
|
452
466
|
export {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
467
|
+
kt as PanoTagPluginController,
|
|
468
|
+
kt as default,
|
|
469
|
+
Ft as pluginFlag
|
|
456
470
|
};
|
|
@@ -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 Vo, pluginFlag as Wo } from "./controller/index.js";
|
|
3
|
+
import { ContentType as Yo } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as _o, PointType as $o } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "three";
|
|
7
7
|
import "object-assign-deep";
|
|
@@ -46,6 +46,24 @@ 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";
|
|
@@ -59,7 +77,6 @@ import "./Components/Common/Icon/Icon.js";
|
|
|
59
77
|
import "./utils/getImageInfo.js";
|
|
60
78
|
import "./Components/Tag/CustomTag.js";
|
|
61
79
|
import "./Components/Common/TagPoint.js";
|
|
62
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
63
80
|
import "./utils/addDebugPoints.js";
|
|
64
81
|
import "./utils/planeNormal.js";
|
|
65
82
|
import "./utils/actionAfterFiveModelLoad.js";
|
|
@@ -71,33 +88,20 @@ import "./controller/TagComputer.js";
|
|
|
71
88
|
import "./tag.config.js";
|
|
72
89
|
import "./utils/tag/tagCheck.js";
|
|
73
90
|
import "./utils/tagPosition.js";
|
|
74
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
75
91
|
import "./utils/checkRange.js";
|
|
76
92
|
import "./controller/TagCacheController.js";
|
|
77
93
|
import "../base/BasePlugin.js";
|
|
78
|
-
import "../shared-utils/Subscribe.js";
|
|
79
94
|
import "../CSS3DRenderPlugin/index.js";
|
|
80
95
|
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
96
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
92
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
93
97
|
import "./utils/tag/format.js";
|
|
94
|
-
const
|
|
98
|
+
const Ro = (o, r) => new t(o, r);
|
|
95
99
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
Yo as ContentType,
|
|
101
|
+
_o as DimensionType,
|
|
102
|
+
Ro as PanoTagPlugin,
|
|
103
|
+
Vo as PanoTagPluginController,
|
|
104
|
+
$o as PointType,
|
|
105
|
+
Ro as default,
|
|
106
|
+
Wo as pluginFlag
|
|
103
107
|
};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
function d(e, o) {
|
|
2
2
|
e.model.loaded ? o() : e.once("modelLoaded", () => o());
|
|
3
3
|
}
|
|
4
|
+
function l(e) {
|
|
5
|
+
return new Promise((o) => {
|
|
6
|
+
e.model.loaded ? o() : e.once("modelLoaded", () => o());
|
|
7
|
+
});
|
|
8
|
+
}
|
|
4
9
|
export {
|
|
5
|
-
d as actionAfterFiveModelLoad
|
|
10
|
+
d as actionAfterFiveModelLoad,
|
|
11
|
+
l as waitFiveModelLoaded
|
|
6
12
|
};
|
|
@@ -3,34 +3,35 @@ import { even as a } from "../../CSS3DRenderPlugin/utils/even.js";
|
|
|
3
3
|
import { random as n } from "../../CSS3DRenderPlugin/utils/random.js";
|
|
4
4
|
import { anyPositionToVector3 as f, arrayPositionToVector3 as x, positionToVector3 as s } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
5
5
|
import { addDebugPoints as l } from "./addDebugPoints.js";
|
|
6
|
-
import { noTypecheck as
|
|
6
|
+
import { noTypecheck as P } from "./noTypecheck.js";
|
|
7
7
|
import { planeNormal as T } from "./planeNormal.js";
|
|
8
8
|
import { tagPosition as b } from "./tagPosition.js";
|
|
9
9
|
import { checkRange as u } from "./checkRange.js";
|
|
10
|
-
import { actionAfterFiveModelLoad as
|
|
10
|
+
import { actionAfterFiveModelLoad as y, waitFiveModelLoaded as F } from "./actionAfterFiveModelLoad.js";
|
|
11
11
|
import { normalPositionToPositions as k } from "./normalPositionToPositions.js";
|
|
12
12
|
import { debounce as S } from "./debounce.js";
|
|
13
|
-
import { throttle as
|
|
14
|
-
import { binarySearchFirstBig as
|
|
13
|
+
import { throttle as z } from "./throttle.js";
|
|
14
|
+
import { binarySearchFirstBig as B, searchFirstValueSmallThanLastValue as D } from "./search.js";
|
|
15
15
|
import { resizeObserver as O } from "./resizeObserver.js";
|
|
16
16
|
import "three";
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
y as actionAfterFiveModelLoad,
|
|
19
19
|
l as addDebugPoints,
|
|
20
20
|
f as anyPositionToVector3,
|
|
21
21
|
x as arrayPositionToVector3,
|
|
22
|
-
|
|
22
|
+
B as binarySearchFirstBig,
|
|
23
23
|
t as centerPoint,
|
|
24
24
|
u as checkRange,
|
|
25
25
|
S as debounce,
|
|
26
26
|
a as even,
|
|
27
|
-
|
|
27
|
+
P as noTypecheck,
|
|
28
28
|
k as normalPositionToPositions,
|
|
29
29
|
T as planeNormal,
|
|
30
30
|
s as positionToVector3,
|
|
31
31
|
n as random,
|
|
32
32
|
O as resizeObserver,
|
|
33
|
-
|
|
33
|
+
D as searchFirstValueSmallThanLastValue,
|
|
34
34
|
b as tagPosition,
|
|
35
|
-
|
|
35
|
+
z as throttle,
|
|
36
|
+
F as waitFiveModelLoaded
|
|
36
37
|
};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.3.9-alpha.
|
|
10
|
+
"version": "2.3.9-alpha.2",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|