@realsee/dnalogel 2.15.0-alpha.2 → 2.15.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
- package/dist/index.cjs.js +36 -36
- package/dist/index.js +1686 -1663
- package/dist/index.umd.js +33 -33
- package/dist/shared-utils/logger.d.ts +17 -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 +24 -24
- 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 +46 -46
- 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/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/ImagePlaneGroup.html +6 -6
- 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 +14 -14
- 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/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- 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 +6 -6
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +6 -6
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.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/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +67 -67
- package/libs/PanoTagPlugin/controller/TagRender.js +56 -50
- package/libs/PanoTagPlugin/controller/index.js +10 -7
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +104 -102
- package/libs/shared-utils/logger.d.ts +17 -0
- package/libs/shared-utils/logger.js +16 -0
- package/package.json +1 -1
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
import { SvelteComponent as q, init as A, safe_not_equal as J, append_styles as R, empty as X, insert as k, noop as B, detach as y, getContext as S, onMount as D, element as g, attr as a, binding_callbacks as G, space as K, set_style as j, toggle_class as v, append as U, listen as
|
|
1
|
+
import { SvelteComponent as q, init as A, safe_not_equal as J, append_styles as R, empty as X, insert as k, noop as B, detach as y, getContext as S, onMount as D, element as g, attr as a, binding_callbacks as G, space as K, set_style as j, toggle_class as v, append as U, listen as I, src_url_equal as P, run_all as Q } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { Image_Play_Icon_With_Text as Y, Image_Play_Icon as Z } from "../../Assets/Icon.js";
|
|
3
|
-
function x(
|
|
4
|
-
R(
|
|
3
|
+
function x(l) {
|
|
4
|
+
R(l, "svelte-159ski6", ".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}");
|
|
5
5
|
}
|
|
6
|
-
function L(
|
|
6
|
+
function L(l) {
|
|
7
7
|
let e;
|
|
8
|
-
function i(
|
|
9
|
-
if (
|
|
8
|
+
function i(o, r) {
|
|
9
|
+
if (o[2].type === "Image")
|
|
10
10
|
return ee;
|
|
11
|
-
if (
|
|
11
|
+
if (o[2].type === "Video")
|
|
12
12
|
return $;
|
|
13
13
|
}
|
|
14
|
-
let t = i(
|
|
14
|
+
let t = i(l), n = t && t(l);
|
|
15
15
|
return {
|
|
16
16
|
c() {
|
|
17
17
|
e = g("div"), n && n.c(), a(e, "class", "media-item svelte-159ski6"), a(e, "draggable", "false");
|
|
18
18
|
},
|
|
19
|
-
m(
|
|
20
|
-
k(
|
|
19
|
+
m(o, r) {
|
|
20
|
+
k(o, e, r), n && n.m(e, null);
|
|
21
21
|
},
|
|
22
|
-
p(
|
|
23
|
-
t === (t = i(
|
|
22
|
+
p(o, r) {
|
|
23
|
+
t === (t = i(o)) && n ? n.p(o, r) : (n && n.d(1), n = t && t(o), n && (n.c(), n.m(e, null)));
|
|
24
24
|
},
|
|
25
|
-
d(
|
|
26
|
-
|
|
25
|
+
d(o) {
|
|
26
|
+
o && y(e), n && n.d();
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function $(
|
|
31
|
-
let e, i, t, n,
|
|
30
|
+
function $(l) {
|
|
31
|
+
let e, i, t, n, o, r;
|
|
32
32
|
function c(d, m) {
|
|
33
33
|
return d[7] && d[2].videoCoverUrl ? ie : te;
|
|
34
34
|
}
|
|
35
|
-
let u = c(
|
|
35
|
+
let u = c(l), f = u(l);
|
|
36
36
|
return {
|
|
37
37
|
c() {
|
|
38
|
-
f.c(), e = K(), i = g("div"), t = g("div"), n = g("div"), a(n, "class", "video-icon-img svelte-159ski6"), j(n, "background-image", "url(" +
|
|
38
|
+
f.c(), e = K(), i = g("div"), t = g("div"), n = g("div"), a(n, "class", "video-icon-img svelte-159ski6"), j(n, "background-image", "url(" + l[20]() + ")"), v(n, "canPlay", l[5]), a(t, "class", "video-icon svelte-159ski6"), v(t, "large", l[4] === "large"), v(t, "small", l[4] === "small"), a(i, "class", "video-play-button-container svelte-159ski6"), v(i, "showPlayButton", l[10]);
|
|
39
39
|
},
|
|
40
40
|
m(d, m) {
|
|
41
|
-
f.m(d, m), k(d, e, m), k(d, i, m), U(i, t), U(t, n),
|
|
41
|
+
f.m(d, m), k(d, e, m), k(d, i, m), U(i, t), U(t, n), o || (r = I(n, "click", l[21]), o = !0);
|
|
42
42
|
},
|
|
43
43
|
p(d, m) {
|
|
44
|
-
u === (u = c(d)) && f ? f.p(d, m) : (f.d(1), f = u(d), f && (f.c(), f.m(e.parentNode, e))), m & 8 && j(n, "background-image", "url(" + d[20]() + ")"), m & 32 && v(n, "canPlay", d[5]), m & 16 && v(t, "large", d[4] === "large"), m & 16 && v(t, "small", d[4] === "small"), m &
|
|
44
|
+
u === (u = c(d)) && f ? f.p(d, m) : (f.d(1), f = u(d), f && (f.c(), f.m(e.parentNode, e))), m & 8 && j(n, "background-image", "url(" + d[20]() + ")"), m & 32 && v(n, "canPlay", d[5]), m & 16 && v(t, "large", d[4] === "large"), m & 16 && v(t, "small", d[4] === "small"), m & 1024 && v(i, "showPlayButton", d[10]);
|
|
45
45
|
},
|
|
46
46
|
d(d) {
|
|
47
|
-
f.d(d), d && y(e), d && y(i),
|
|
47
|
+
f.d(d), d && y(e), d && y(i), o = !1, r();
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function ee(
|
|
51
|
+
function ee(l) {
|
|
52
52
|
let e, i, t, n;
|
|
53
53
|
return {
|
|
54
54
|
c() {
|
|
55
|
-
e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${
|
|
55
|
+
e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${l[6]};`), P(e.src, t = l[2].url) || a(e, "src", t), a(e, "alt", n = l[2].name), a(e, "draggable", !1);
|
|
56
56
|
},
|
|
57
|
-
m(
|
|
58
|
-
k(
|
|
57
|
+
m(o, r) {
|
|
58
|
+
k(o, e, r);
|
|
59
59
|
},
|
|
60
|
-
p(
|
|
61
|
-
r & 64 && i !== (i = `object-fit: ${
|
|
60
|
+
p(o, r) {
|
|
61
|
+
r & 64 && i !== (i = `object-fit: ${o[6]};`) && a(e, "style", i), r & 4 && !P(e.src, t = o[2].url) && a(e, "src", t), r & 4 && n !== (n = o[2].name) && a(e, "alt", n);
|
|
62
62
|
},
|
|
63
|
-
d(
|
|
64
|
-
|
|
63
|
+
d(o) {
|
|
64
|
+
o && y(e);
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function te(
|
|
69
|
-
let e, i, t, n,
|
|
68
|
+
function te(l) {
|
|
69
|
+
let e, i, t, n, o, r, c;
|
|
70
70
|
return {
|
|
71
71
|
c() {
|
|
72
|
-
e = g("video"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${
|
|
72
|
+
e = g("video"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${l[6]};`), P(e.src, t = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") || a(e, "src", t), a(e, "poster", n = l[2].videoCoverUrl), a(e, "preload", o = l[2].videoCoverUrl ? "none" : "auto"), a(e, "disablepictureinpicture", ""), e.playsInline = !0, a(e, "paused", ""), e.muted = !0, a(e, "draggable", !1), e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, v(e, "showPlayButton", l[10]);
|
|
73
73
|
},
|
|
74
74
|
m(u, f) {
|
|
75
|
-
k(u, e, f),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
k(u, e, f), l[19](e), r || (c = [
|
|
76
|
+
I(e, "play", l[14]),
|
|
77
|
+
I(e, "pause", l[15]),
|
|
78
|
+
I(e, "error", l[16]),
|
|
79
|
+
I(e, "ended", l[17]),
|
|
80
|
+
I(e, "click", l[18])
|
|
81
81
|
], r = !0);
|
|
82
82
|
},
|
|
83
83
|
p(u, f) {
|
|
84
|
-
f & 64 && i !== (i = `object-fit: ${u[6]};`) && a(e, "style", i), f & 4 && !
|
|
84
|
+
f & 64 && i !== (i = `object-fit: ${u[6]};`) && a(e, "style", i), f & 4 && !P(e.src, t = u[2].videoCoverUrl ? u[2].url : u[2].url + "#t=0.1") && a(e, "src", t), f & 4 && n !== (n = u[2].videoCoverUrl) && a(e, "poster", n), f & 4 && o !== (o = u[2].videoCoverUrl ? "none" : "auto") && a(e, "preload", o), f & 1024 && v(e, "showPlayButton", u[10]);
|
|
85
85
|
},
|
|
86
86
|
d(u) {
|
|
87
|
-
u && y(e),
|
|
87
|
+
u && y(e), l[19](null), r = !1, Q(c);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function ie(
|
|
91
|
+
function ie(l) {
|
|
92
92
|
let e, i, t, n;
|
|
93
93
|
return {
|
|
94
94
|
c() {
|
|
95
|
-
e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${
|
|
95
|
+
e = g("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", i = `object-fit: ${l[6]};`), P(e.src, t = l[2].videoCoverUrl) || a(e, "src", t), a(e, "alt", n = l[2].name), a(e, "draggable", !1);
|
|
96
96
|
},
|
|
97
|
-
m(
|
|
98
|
-
k(
|
|
97
|
+
m(o, r) {
|
|
98
|
+
k(o, e, r);
|
|
99
99
|
},
|
|
100
|
-
p(
|
|
101
|
-
r & 64 && i !== (i = `object-fit: ${
|
|
100
|
+
p(o, r) {
|
|
101
|
+
r & 64 && i !== (i = `object-fit: ${o[6]};`) && a(e, "style", i), r & 4 && !P(e.src, t = o[2].videoCoverUrl) && a(e, "src", t), r & 4 && n !== (n = o[2].name) && a(e, "alt", n);
|
|
102
102
|
},
|
|
103
|
-
d(
|
|
104
|
-
|
|
103
|
+
d(o) {
|
|
104
|
+
o && y(e);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
let e, i =
|
|
108
|
+
function oe(l) {
|
|
109
|
+
let e, i = l[2] && L(l);
|
|
110
110
|
return {
|
|
111
111
|
c() {
|
|
112
112
|
i && i.c(), e = X();
|
|
@@ -124,13 +124,13 @@ function le(o) {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
let t, n, { mediaInstance:
|
|
127
|
+
function le(l, e, i) {
|
|
128
|
+
let t, n, { mediaInstance: o = { videoInstance: void 0, paused: !0 } } = e, { tag: r } = e, { media: c } = e, { playButtonIfNeed: u = "withoutText" } = e, { playButtonSizeIfNeed: f = "small" } = e, { canPlay: d = !0 } = e, { objectFit: m = "fill" } = e, { disableVideoIfHavePoster: C = !1 } = e, p = !0, b = !1;
|
|
129
129
|
function N() {
|
|
130
|
-
i(
|
|
130
|
+
i(8, b = (c == null ? void 0 : c.type) === "Video" && Boolean(c.videoCoverUrl));
|
|
131
131
|
}
|
|
132
132
|
const w = S("mediaStore"), h = S("hooks"), _ = () => {
|
|
133
|
-
|
|
133
|
+
console.debug("loadPoster"), !b && (!t || (i(9, t.muted = !0, t), t.play(), t.pause(), i(9, t.muted = !1, t), i(8, b = !0), console.debug("loadPoster end")));
|
|
134
134
|
};
|
|
135
135
|
h.on("loadVideoFirstFrame", _), D(() => {
|
|
136
136
|
w.subscribe(({ currentMediaElement: s }) => {
|
|
@@ -138,28 +138,28 @@ function oe(o, e, i) {
|
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
140
|
const V = (s) => {
|
|
141
|
-
i(
|
|
141
|
+
i(10, p = !1), i(0, o.paused = !1, o), i(8, b = !0), t && w.set({ currentMediaElement: t }), h.emit("playStateChange", {
|
|
142
142
|
event: s,
|
|
143
143
|
state: "playing",
|
|
144
144
|
tag: r,
|
|
145
145
|
mediaInstance: t
|
|
146
146
|
});
|
|
147
147
|
}, E = (s) => {
|
|
148
|
-
i(
|
|
148
|
+
i(10, p = !0), i(0, o.paused = !0, o), h.emit("playStateChange", {
|
|
149
149
|
event: s,
|
|
150
150
|
state: "paused",
|
|
151
151
|
tag: r,
|
|
152
152
|
mediaInstance: t
|
|
153
153
|
});
|
|
154
154
|
}, z = (s) => {
|
|
155
|
-
i(
|
|
155
|
+
i(10, p = !0), i(0, o.paused = !0, o), h.emit("playStateChange", {
|
|
156
156
|
event: s,
|
|
157
157
|
state: "paused",
|
|
158
158
|
tag: r,
|
|
159
159
|
mediaInstance: t
|
|
160
160
|
});
|
|
161
161
|
}, F = (s) => {
|
|
162
|
-
i(
|
|
162
|
+
i(10, p = !0), i(0, o.paused = !0, o), h.emit("playStateChange", {
|
|
163
163
|
event: s,
|
|
164
164
|
state: "paused",
|
|
165
165
|
tag: r,
|
|
@@ -170,21 +170,21 @@ function oe(o, e, i) {
|
|
|
170
170
|
};
|
|
171
171
|
function W(s) {
|
|
172
172
|
G[s ? "unshift" : "push"](() => {
|
|
173
|
-
|
|
173
|
+
o.videoInstance = s, i(0, o);
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
const H = () => u === "withText" ? Y : u === "withoutText" ? Z : u, T = (s) => {
|
|
177
|
-
!d || t && (i(
|
|
177
|
+
!d || t && (i(9, t.muted = !1, t), t.play());
|
|
178
178
|
};
|
|
179
|
-
return
|
|
180
|
-
"mediaInstance" in s && i(0,
|
|
181
|
-
},
|
|
182
|
-
if (
|
|
179
|
+
return l.$$set = (s) => {
|
|
180
|
+
"mediaInstance" in s && i(0, o = s.mediaInstance), "tag" in s && i(1, r = s.tag), "media" in s && i(2, c = s.media), "playButtonIfNeed" in s && i(3, u = s.playButtonIfNeed), "playButtonSizeIfNeed" in s && i(4, f = s.playButtonSizeIfNeed), "canPlay" in s && i(5, d = s.canPlay), "objectFit" in s && i(6, m = s.objectFit), "disableVideoIfHavePoster" in s && i(7, C = s.disableVideoIfHavePoster);
|
|
181
|
+
}, l.$$.update = () => {
|
|
182
|
+
if (l.$$.dirty & 1 && i(9, t = o.videoInstance), l.$$.dirty & 4 && i(13, n = c == null ? void 0 : c.url), l.$$.dirty & 8192 && Boolean(n) && N(), l.$$.dirty & 512 && t && i(10, p = t.paused), l.$$.dirty & 772 && (c == null ? void 0 : c.type) === "Video" && !b) {
|
|
183
183
|
const s = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, M = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && s;
|
|
184
184
|
t && M && t.paused && (document.removeEventListener("WeixinJSBridgeReady", _), document.removeEventListener("touchstart", _), document.removeEventListener("click", _), document.addEventListener("WeixinJSBridgeReady", _), document.addEventListener("touchstart", _), document.addEventListener("click", _));
|
|
185
185
|
}
|
|
186
186
|
}, [
|
|
187
|
-
|
|
187
|
+
o,
|
|
188
188
|
r,
|
|
189
189
|
c,
|
|
190
190
|
u,
|
|
@@ -192,11 +192,11 @@ function oe(o, e, i) {
|
|
|
192
192
|
d,
|
|
193
193
|
m,
|
|
194
194
|
C,
|
|
195
|
+
b,
|
|
195
196
|
t,
|
|
196
197
|
p,
|
|
197
198
|
w,
|
|
198
199
|
h,
|
|
199
|
-
P,
|
|
200
200
|
n,
|
|
201
201
|
V,
|
|
202
202
|
E,
|
|
@@ -213,8 +213,8 @@ class re extends q {
|
|
|
213
213
|
super(), A(
|
|
214
214
|
this,
|
|
215
215
|
e,
|
|
216
|
-
oe,
|
|
217
216
|
le,
|
|
217
|
+
oe,
|
|
218
218
|
J,
|
|
219
219
|
{
|
|
220
220
|
mediaInstance: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var w = (l, p, t) => p in l ? j(l, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[p] = t;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var c = (l, p, t) => (w(l, typeof p != "symbol" ? p + "" : p, t), t);
|
|
4
|
+
var b = (l, p, t) => new Promise((e, i) => {
|
|
5
5
|
var o = (s) => {
|
|
6
6
|
try {
|
|
7
7
|
a(t.next(s));
|
|
@@ -18,16 +18,16 @@ var D = (l, p, t) => new Promise((e, i) => {
|
|
|
18
18
|
a((t = t.apply(l, p)).next());
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as O } from "./TagComputer.js";
|
|
21
|
-
import { Group as P, Quaternion as x, Vector3 as
|
|
21
|
+
import { Group as P, Quaternion as x, Vector3 as D, Matrix4 as T } from "three";
|
|
22
22
|
import G from "../Components/TagContainer.js";
|
|
23
23
|
import k from "../Components/Tag/index.js";
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
24
|
+
import { arrayPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
25
|
import { centerPoint as A } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import "@realsee/five/gltf-loader";
|
|
27
27
|
import R from "../utils/model/imagePlane.js";
|
|
28
|
-
import { isMediaModelTag as
|
|
28
|
+
import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
|
|
29
29
|
import { CSS3DRenderPlugin as E } from "../../CSS3DRenderPlugin/index.js";
|
|
30
|
-
import { loadGLTF as
|
|
30
|
+
import { loadGLTF as I } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
31
|
import "@realsee/five";
|
|
32
32
|
import "../utils/tagPosition.js";
|
|
33
33
|
import "../../shared-utils/three/loadTexture.js";
|
|
@@ -135,18 +135,18 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
135
135
|
class Le extends O {
|
|
136
136
|
constructor(t) {
|
|
137
137
|
super(t);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
c(this, "group", new P());
|
|
139
|
+
c(this, "imagePlaneGroup", new P());
|
|
140
|
+
c(this, "gltfObjectGroup", new P());
|
|
141
|
+
c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
142
|
+
c(this, "temporaryState", { visible: !0 });
|
|
143
|
+
c(this, "TagContainerSvelte");
|
|
144
|
+
c(this, "loadModel", (t) => b(this, null, function* () {
|
|
145
145
|
var s;
|
|
146
146
|
const e = t.data.modelUrl;
|
|
147
147
|
if (!e)
|
|
148
148
|
return;
|
|
149
|
-
const i =
|
|
149
|
+
const i = I(e).then((r) => Object.assign(r.scene, { customID: t.id, isTagModel: !0 }));
|
|
150
150
|
t.model = { promise: i };
|
|
151
151
|
const o = yield i;
|
|
152
152
|
if (((s = t.model) == null ? void 0 : s.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
|
|
@@ -155,13 +155,13 @@ class Le extends O {
|
|
|
155
155
|
const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
156
156
|
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
|
|
157
157
|
if (!t.imagePlane) {
|
|
158
|
-
const r = t.data.mediaPosition.map(
|
|
159
|
-
t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(
|
|
160
|
-
const m = new
|
|
158
|
+
const r = t.data.mediaPosition.map(S);
|
|
159
|
+
t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(S));
|
|
160
|
+
const m = new D().addVectors(r[0], r[2]).divideScalar(2);
|
|
161
161
|
t.imagePlane.position.copy(m), o.add(t.imagePlane);
|
|
162
162
|
}
|
|
163
163
|
} else
|
|
164
|
-
this.updateTagCss3DObjectMatrix(t, o);
|
|
164
|
+
o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
|
|
165
165
|
return this.gltfObjectGroup.add(o), o;
|
|
166
166
|
}));
|
|
167
167
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
@@ -181,7 +181,7 @@ class Le extends O {
|
|
|
181
181
|
const i = (n = e.data.mediaData[0]) == null ? void 0 : n.url;
|
|
182
182
|
if (!i || (e.imagePlane && (e.imagePlane.visible = (s = (a = e.state) == null ? void 0 : a.visible) != null ? s : !0), ((r = e.imagePlane) == null ? void 0 : r.imageSrc) === i))
|
|
183
183
|
return;
|
|
184
|
-
const o = e.position.map(
|
|
184
|
+
const o = e.position.map(S);
|
|
185
185
|
e.imagePlane = new R(i, o), e.imagePlane.setMatrixByCornerPoints(o), this.imagePlaneGroup.add(e.imagePlane);
|
|
186
186
|
});
|
|
187
187
|
}
|
|
@@ -189,7 +189,7 @@ class Le extends O {
|
|
|
189
189
|
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
190
190
|
var i, o;
|
|
191
191
|
if (e.tag3DContentSvelte) {
|
|
192
|
-
const { svelteApp: n,
|
|
192
|
+
const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
|
|
193
193
|
if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
|
|
194
194
|
const m = new x().setFromUnitVectors(s, r);
|
|
195
195
|
a.css3DObject.setRotationFromQuaternion(m);
|
|
@@ -209,41 +209,47 @@ class Le extends O {
|
|
|
209
209
|
const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
|
|
210
210
|
if (this.getRenderType(e) === "BehindDom") {
|
|
211
211
|
r.mode = "behind", r.container = document.createElement("div");
|
|
212
|
-
const
|
|
213
|
-
r.container.style.backgroundColor =
|
|
214
|
-
var
|
|
212
|
+
const g = "black";
|
|
213
|
+
r.container.style.backgroundColor = g, r.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
214
|
+
var h;
|
|
215
215
|
if (m.css3DObject.opacityMesh) {
|
|
216
|
-
const
|
|
217
|
-
this.hooks.emit("click", { event:
|
|
216
|
+
const d = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
|
|
217
|
+
this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
|
|
218
218
|
});
|
|
219
|
-
(
|
|
219
|
+
(h = this.store.css3DRenderDisposer.get(e.id)) == null || h.push(d);
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
|
|
224
224
|
if (!m)
|
|
225
225
|
return;
|
|
226
|
-
this.store.css3DRenderDisposer.set(e.id, [m.dispose])
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
226
|
+
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
227
|
+
const u = new k({
|
|
228
|
+
target: m.container,
|
|
229
|
+
props: {
|
|
230
|
+
tag: e,
|
|
231
|
+
hooks: this.hooks,
|
|
232
|
+
state: this.state,
|
|
233
|
+
mediaStore: this.mediaStore,
|
|
234
|
+
temporaryState: this.temporaryState
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
e.tag3DContentSvelte = {
|
|
238
|
+
svelteApp: u,
|
|
237
239
|
domContainer: m,
|
|
240
|
+
css3DInstance: m,
|
|
238
241
|
initialNormal: a,
|
|
239
|
-
currentNormal: a
|
|
242
|
+
currentNormal: a,
|
|
243
|
+
dispose: () => {
|
|
244
|
+
u.$destroy(), m.dispose();
|
|
245
|
+
}
|
|
240
246
|
};
|
|
241
247
|
}
|
|
242
248
|
}), this.clearUnusedPanelTag();
|
|
243
249
|
}
|
|
244
250
|
updateRenderModelTag() {
|
|
245
251
|
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
246
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(
|
|
252
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(C).forEach((i) => {
|
|
247
253
|
var o;
|
|
248
254
|
(o = i.model) == null || o.promise.then((n) => {
|
|
249
255
|
n.visible = this.getCurrentVisibleState(i);
|
|
@@ -257,20 +263,20 @@ class Le extends O {
|
|
|
257
263
|
});
|
|
258
264
|
}
|
|
259
265
|
updateTagCss3DObjectMatrix(t, e) {
|
|
260
|
-
var
|
|
261
|
-
const i = (M = (v = (
|
|
266
|
+
var f, v, M, y;
|
|
267
|
+
const i = (M = (v = (f = t.mergedConfig) == null ? void 0 : f.tag3DConfig) == null ? void 0 : v.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.css3DInstance.css3DObject;
|
|
262
268
|
if (!o)
|
|
263
269
|
return;
|
|
264
|
-
const n =
|
|
270
|
+
const n = C(t) ? t.data.mediaPosition : t.position;
|
|
265
271
|
e.updateWorldMatrix(!1, !1);
|
|
266
|
-
const a = e.matrixWorld, s = new
|
|
267
|
-
|
|
268
|
-
const
|
|
269
|
-
|
|
272
|
+
const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = A(s, r).add(new D(0, 0, 5e-4)), u = new T().setPosition(m), g = new T().makeScale(i, i, i), h = new T().multiply(a).multiply(u).multiply(g);
|
|
273
|
+
h.decompose(o.position, o.quaternion, o.scale);
|
|
274
|
+
const d = o.opacityMesh;
|
|
275
|
+
d && h.decompose(d.position, d.quaternion, d.scale);
|
|
270
276
|
}
|
|
271
277
|
addMediaModelTag(t) {
|
|
272
|
-
return
|
|
273
|
-
const e = t.filter(
|
|
278
|
+
return b(this, null, function* () {
|
|
279
|
+
const e = t.filter(C).map((i) => this.loadModel(i));
|
|
274
280
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
275
281
|
});
|
|
276
282
|
}
|
|
@@ -297,7 +303,7 @@ class Le extends O {
|
|
|
297
303
|
withAnimation: this.store.visibleWithAnimation
|
|
298
304
|
}), this.filterCSS3DTag.forEach((e) => {
|
|
299
305
|
var i, o, n, a, s;
|
|
300
|
-
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.
|
|
306
|
+
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
|
|
301
307
|
state: this.state,
|
|
302
308
|
temporaryState: this.temporaryState,
|
|
303
309
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -312,7 +318,7 @@ class Le extends O {
|
|
|
312
318
|
clearUnusedPanelTag() {
|
|
313
319
|
this.filter2DPointTag.forEach((t) => {
|
|
314
320
|
var e;
|
|
315
|
-
(e = t.tag3DContentSvelte) == null || e.
|
|
321
|
+
(e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
|
|
316
322
|
});
|
|
317
323
|
for (const [t, e] of this.store.css3DRenderDisposer) {
|
|
318
324
|
const i = this.getTagById(t);
|
|
@@ -27,10 +27,10 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
28
|
r((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
30
|
+
import { Subscribe as M } from "@realsee/five";
|
|
31
31
|
import c from "object-assign-deep";
|
|
32
32
|
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
|
-
import { addDebugPoints as
|
|
33
|
+
import { addDebugPoints as w } from "../utils/addDebugPoints.js";
|
|
34
34
|
import "three";
|
|
35
35
|
import "@realsee/five/gltf-loader";
|
|
36
36
|
import "../../shared-utils/three/loadTexture.js";
|
|
@@ -187,7 +187,7 @@ class Zt extends k {
|
|
|
187
187
|
const i = yield this.addTag(e.tagList, t);
|
|
188
188
|
if (this.debug)
|
|
189
189
|
try {
|
|
190
|
-
|
|
190
|
+
w(this.five, this.tags);
|
|
191
191
|
} catch (r) {
|
|
192
192
|
console.error(r);
|
|
193
193
|
}
|
|
@@ -203,7 +203,7 @@ class Zt extends k {
|
|
|
203
203
|
visible: void 0,
|
|
204
204
|
unfolded: !this.can("fold", o)
|
|
205
205
|
}, r.initialState),
|
|
206
|
-
hooks: new
|
|
206
|
+
hooks: new M(),
|
|
207
207
|
mergedConfig: r,
|
|
208
208
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
209
209
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
@@ -323,13 +323,16 @@ class Zt extends k {
|
|
|
323
323
|
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
|
|
324
324
|
}
|
|
325
325
|
handleEnable() {
|
|
326
|
-
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.
|
|
326
|
+
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.group.traverse((e) => {
|
|
327
|
+
var t;
|
|
328
|
+
(t = e == null ? void 0 : e.updateTagCss3DObjectMatrix) == null || t.call(e);
|
|
329
|
+
}), this.updateRenderAllTags(), this.five.needsRender = !0;
|
|
327
330
|
}
|
|
328
331
|
handleDisable() {
|
|
329
332
|
var e, t, i;
|
|
330
333
|
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filterCSS3DTag.forEach((s) => {
|
|
331
334
|
var o;
|
|
332
|
-
(o = s.tag3DContentSvelte) == null || o.
|
|
335
|
+
(o = s.tag3DContentSvelte) == null || o.dispose(), s.tag3DContentSvelte = void 0;
|
|
333
336
|
}), this.five.needsRender = !0;
|
|
334
337
|
}
|
|
335
338
|
addEventListener() {
|
|
@@ -414,7 +417,7 @@ class Zt extends k {
|
|
|
414
417
|
}
|
|
415
418
|
changeTagMode(e, t) {
|
|
416
419
|
var i, s, o, r, n, h;
|
|
417
|
-
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.
|
|
420
|
+
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
|
|
418
421
|
}
|
|
419
422
|
}
|
|
420
423
|
export {
|
|
@@ -89,9 +89,12 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
|
|
|
89
89
|
};
|
|
90
90
|
tag3DContentSvelte: {
|
|
91
91
|
svelteApp: TagContentSvelte;
|
|
92
|
+
/** @deprecated rename to css3DInstance */
|
|
92
93
|
domContainer: NonNullable<Create3DDomContainerReturnType>;
|
|
94
|
+
css3DInstance: NonNullable<Create3DDomContainerReturnType>;
|
|
93
95
|
initialNormal: Vector3;
|
|
94
96
|
currentNormal: Vector3;
|
|
97
|
+
dispose: () => void;
|
|
95
98
|
};
|
|
96
99
|
imagePlane: ImagePlane;
|
|
97
100
|
model: {
|
|
@@ -42,6 +42,7 @@ export interface TagStyle {
|
|
|
42
42
|
export declare type TagGLTFObject = GLTFObject & {
|
|
43
43
|
customID: number | string;
|
|
44
44
|
isTagModel: boolean;
|
|
45
|
+
updateTagCss3DObjectMatrix?: () => void;
|
|
45
46
|
};
|
|
46
47
|
export interface TagObjectGroup extends Group {
|
|
47
48
|
children: Array<TagGLTFObjectGroup>;
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -4,7 +4,7 @@ var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
|
|
|
4
4
|
import { Subscribe as c } from "../shared-utils/Subscribe.js";
|
|
5
5
|
class o {
|
|
6
6
|
constructor(r, t) {
|
|
7
|
-
s(this, "VERSION", "2.15.
|
|
7
|
+
s(this, "VERSION", "2.15.1-alpha.0");
|
|
8
8
|
s(this, "five");
|
|
9
9
|
s(this, "hooks", new c());
|
|
10
10
|
s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|