@realsee/dnalogel 2.3.5-dev.2 → 2.3.5-dev.4
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/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/index.cjs.js +16 -16
- package/dist/index.js +1340 -1328
- package/dist/index.umd.js +14 -14
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +57 -40
- 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/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/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/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/Common/TagPoint.js +39 -39
- package/libs/PanoTagPlugin/Components/TagItem.js +44 -43
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +32 -29
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +58 -50
- package/libs/PanoTagPlugin/utils/tag/format.js +4 -4
- package/package.json +1 -1
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
1
|
+
import { SvelteComponent as M, init as U, safe_not_equal as B, append_styles as E, element as j, space as T, create_component as I, attr as w, set_style as g, toggle_class as y, insert as $, mount_component as R, append as _, listen as G, transition_in as q, transition_out as A, detach as P, destroy_component as F, getContext as H } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { Shadow as J } from "./Shadow.js";
|
|
3
3
|
import { Icon as K } from "./Icon/Icon.js";
|
|
4
4
|
import { Image_Default_Point as L } from "../../Assets/Icon.js";
|
|
5
5
|
import { px2rem as b } from "../../utils/px2rem.js";
|
|
6
|
-
function N(
|
|
7
|
-
|
|
6
|
+
function N(n) {
|
|
7
|
+
E(n, "svelte-gna22j", '@charset "UTF-8";.tag-point-click-helper.svelte-gna22j.svelte-gna22j{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-gna22j.svelte-gna22j{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-gna22j.svelte-gna22j,.tag-unfolded-point.svelte-gna22j.svelte-gna22j{transition:all 0.5s}.tag-point-wrapper.svelte-gna22j .tag-unfolded-point.svelte-gna22j{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-gna22j .tag-unfolded-point.svelte-gna22j:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-gna22j .tag-unfolded-point.svelte-gna22j:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-gna22j .tag-folded-point.svelte-gna22j{opacity:1}.tag-point-wrapper.folded.svelte-gna22j .tag-unfolded-point.svelte-gna22j{opacity:0}.tag-point-wrapper.unfolded.svelte-gna22j .tag-folded-point.svelte-gna22j{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-gna22j .tag-unfolded-point.svelte-gna22j{opacity:1;scale:1}');
|
|
8
8
|
}
|
|
9
|
-
function O(
|
|
10
|
-
let
|
|
9
|
+
function O(n) {
|
|
10
|
+
let l, r, t, d, u, p, c, i, a, s, m, v;
|
|
11
11
|
return d = new J({
|
|
12
12
|
props: {
|
|
13
13
|
center: !0,
|
|
14
14
|
blurRadius: 12,
|
|
15
15
|
spreadRadius: 5
|
|
16
16
|
}
|
|
17
|
-
}),
|
|
17
|
+
}), a = new K({
|
|
18
18
|
props: {
|
|
19
|
-
icon:
|
|
20
|
-
width:
|
|
19
|
+
icon: n[2],
|
|
20
|
+
width: n[1]
|
|
21
21
|
}
|
|
22
22
|
}), {
|
|
23
23
|
c() {
|
|
24
|
-
|
|
24
|
+
l = j("div"), r = T(), t = j("div"), I(d.$$.fragment), u = T(), p = j("div"), c = T(), i = j("div"), I(a.$$.fragment), w(l, "class", "tag-point-click-helper svelte-gna22j"), w(p, "class", "tag-unfolded-point svelte-gna22j"), g(p, "transition-delay", (n[3] ? k : 0) + "ms"), w(i, "class", "tag-folded-point svelte-gna22j"), g(i, "transition-delay", (n[3] ? k : 0) + "ms"), w(t, "class", "tag-point-wrapper svelte-gna22j"), y(t, "unfolded", n[0]), y(t, "folded", n[3]), g(t, "width", b(n[1])), g(t, "height", b(n[1]));
|
|
25
25
|
},
|
|
26
|
-
m(e,
|
|
27
|
-
|
|
26
|
+
m(e, o) {
|
|
27
|
+
$(e, l, o), $(e, r, o), $(e, t, o), R(d, t, null), _(t, u), _(t, p), _(t, c), _(t, i), R(a, i, null), s = !0, m || (v = G(l, "click", n[4]), m = !0);
|
|
28
28
|
},
|
|
29
|
-
p(e, [
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
29
|
+
p(e, [o]) {
|
|
30
|
+
o & 8 && g(p, "transition-delay", (e[3] ? k : 0) + "ms");
|
|
31
|
+
const f = {};
|
|
32
|
+
o & 4 && (f.icon = e[2]), o & 2 && (f.width = e[1]), a.$set(f), o & 8 && g(i, "transition-delay", (e[3] ? k : 0) + "ms"), (!s || o & 1) && y(t, "unfolded", e[0]), (!s || o & 8) && y(t, "folded", e[3]), o & 2 && g(t, "width", b(e[1])), o & 2 && g(t, "height", b(e[1]));
|
|
33
33
|
},
|
|
34
34
|
i(e) {
|
|
35
|
-
|
|
35
|
+
s || (q(d.$$.fragment, e), q(a.$$.fragment, e), s = !0);
|
|
36
36
|
},
|
|
37
37
|
o(e) {
|
|
38
|
-
|
|
38
|
+
A(d.$$.fragment, e), A(a.$$.fragment, e), s = !1;
|
|
39
39
|
},
|
|
40
40
|
d(e) {
|
|
41
|
-
e &&
|
|
41
|
+
e && P(l), e && P(r), e && P(t), F(d), F(a), m = !1, v();
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
function Q(
|
|
47
|
-
let
|
|
45
|
+
const k = 800;
|
|
46
|
+
function Q(n, l, r) {
|
|
47
|
+
let t, d, u, p;
|
|
48
48
|
const c = H("hooks");
|
|
49
|
-
let { tag:
|
|
50
|
-
const
|
|
51
|
-
|
|
49
|
+
let { tag: i } = l, a, s = !1;
|
|
50
|
+
const m = () => {
|
|
51
|
+
a !== void 0 && clearTimeout(a), s = !0, a = setTimeout(
|
|
52
52
|
() => {
|
|
53
|
-
|
|
53
|
+
s = !1;
|
|
54
54
|
},
|
|
55
55
|
800
|
|
56
56
|
);
|
|
57
|
-
},
|
|
58
|
-
|
|
57
|
+
}, v = (e) => {
|
|
58
|
+
s || c.emit("click", { event: e, target: "TagPoint", tag: i });
|
|
59
59
|
};
|
|
60
|
-
return
|
|
61
|
-
"tag" in e &&
|
|
62
|
-
},
|
|
63
|
-
var e,
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
const
|
|
67
|
-
return typeof
|
|
60
|
+
return n.$$set = (e) => {
|
|
61
|
+
"tag" in e && r(5, i = e.tag);
|
|
62
|
+
}, n.$$.update = () => {
|
|
63
|
+
var e, o, f, S;
|
|
64
|
+
n.$$.dirty & 32 && r(0, t = (e = i.state) == null ? void 0 : e.unfolded), n.$$.dirty & 1 && r(3, d = !t), n.$$.dirty & 32 && r(2, u = (f = (o = i.style) == null ? void 0 : o.point) != null && f.url ? (S = i.style) == null ? void 0 : S.point : { url: L }), n.$$.dirty & 32 && r(1, p = (() => {
|
|
65
|
+
var z, C, D;
|
|
66
|
+
const h = (D = (C = (z = i.style) == null ? void 0 : z.point) == null ? void 0 : C.size) != null ? D : "S";
|
|
67
|
+
return typeof h == "number" ? h : h === "S" ? 20 : h === "M" ? 24 : 20;
|
|
68
68
|
})());
|
|
69
|
-
},
|
|
69
|
+
}, m(), [t, p, u, d, v, i];
|
|
70
70
|
}
|
|
71
|
-
class x extends
|
|
72
|
-
constructor(
|
|
73
|
-
super(),
|
|
71
|
+
class x extends M {
|
|
72
|
+
constructor(l) {
|
|
73
|
+
super(), U(this, l, Q, O, B, { tag: 5 }, N);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
export {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import { Tag as
|
|
1
|
+
import { SvelteComponent as M, init as N, safe_not_equal as O, append_styles as Q, element as q, space as R, attr as m, set_style as g, toggle_class as p, insert as U, append as D, transition_in as d, group_outros as L, transition_out as c, check_outros as j, detach as V, getContext as W, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Tag as X } from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
|
-
import { noTypecheck as
|
|
5
|
-
import { TagPoint as
|
|
6
|
-
function
|
|
7
|
-
|
|
4
|
+
import { noTypecheck as B } from "../utils/noTypecheck.js";
|
|
5
|
+
import { TagPoint as Y } from "./Common/TagPoint.js";
|
|
6
|
+
function Z(i) {
|
|
7
|
+
Q(i, "svelte-bdubcv", ".tag.hide.svelte-bdubcv{opacity:0;pointer-events:none}.tag.disable.svelte-bdubcv{display:none}.tag.withAnimation.svelte-bdubcv{transition:opacity 0.3s linear}.wrapper.svelte-bdubcv{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function E(i) {
|
|
10
10
|
let t, e;
|
|
11
|
-
return t = new
|
|
11
|
+
return t = new X({
|
|
12
12
|
props: {
|
|
13
13
|
mediaStore: i[2],
|
|
14
14
|
withAnimation: i[0],
|
|
15
|
-
tag:
|
|
16
|
-
hooks: i[
|
|
15
|
+
tag: B(i[1]),
|
|
16
|
+
hooks: i[14],
|
|
17
17
|
state: i[3],
|
|
18
18
|
temporaryState: i[4]
|
|
19
19
|
}
|
|
20
20
|
}), {
|
|
21
21
|
c() {
|
|
22
|
-
|
|
22
|
+
G(t.$$.fragment);
|
|
23
23
|
},
|
|
24
24
|
m(a, o) {
|
|
25
|
-
|
|
25
|
+
H(t, a, o), e = !0;
|
|
26
26
|
},
|
|
27
27
|
p(a, o) {
|
|
28
28
|
const n = {};
|
|
29
|
-
o & 4 && (n.mediaStore = a[2]), o & 1 && (n.withAnimation = a[0]), o & 2 && (n.tag =
|
|
29
|
+
o & 4 && (n.mediaStore = a[2]), o & 1 && (n.withAnimation = a[0]), o & 2 && (n.tag = B(a[1])), o & 8 && (n.state = a[3]), o & 16 && (n.temporaryState = a[4]), t.$set(n);
|
|
30
30
|
},
|
|
31
31
|
i(a) {
|
|
32
32
|
e || (d(t.$$.fragment, a), e = !0);
|
|
@@ -35,18 +35,18 @@ function B(i) {
|
|
|
35
35
|
c(t.$$.fragment, a), e = !1;
|
|
36
36
|
},
|
|
37
37
|
d(a) {
|
|
38
|
-
|
|
38
|
+
J(t, a);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function F(i) {
|
|
43
43
|
let t, e;
|
|
44
|
-
return t = new
|
|
44
|
+
return t = new Y({ props: { tag: i[1] } }), {
|
|
45
45
|
c() {
|
|
46
|
-
|
|
46
|
+
G(t.$$.fragment);
|
|
47
47
|
},
|
|
48
48
|
m(a, o) {
|
|
49
|
-
|
|
49
|
+
H(t, a, o), e = !0;
|
|
50
50
|
},
|
|
51
51
|
p(a, o) {
|
|
52
52
|
const n = {};
|
|
@@ -59,25 +59,25 @@ function E(i) {
|
|
|
59
59
|
c(t.$$.fragment, a), e = !1;
|
|
60
60
|
},
|
|
61
61
|
d(a) {
|
|
62
|
-
|
|
62
|
+
J(t, a);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
let t, e, a, o, n = i[
|
|
66
|
+
function x(i) {
|
|
67
|
+
let t, e, a, o, n = i[12] && E(i), f = i[13] && F(i);
|
|
68
68
|
return {
|
|
69
69
|
c() {
|
|
70
|
-
t =
|
|
70
|
+
t = q("div"), e = q("div"), n && n.c(), a = R(), f && f.c(), m(e, "class", "wrapper svelte-bdubcv"), m(e, "data-tag-id", i[11]), g(e, "left", i[7]), g(e, "top", i[6]), g(e, "z-index", i[5]), m(t, "class", "tag svelte-bdubcv"), m(t, "data-tag-id", i[11]), m(t, "data-tag-unfolded", i[8]), p(t, "disable", i[10]), p(t, "hide", i[9]), p(t, "withAnimation", i[0]);
|
|
71
71
|
},
|
|
72
72
|
m(r, l) {
|
|
73
|
-
|
|
73
|
+
U(r, t, l), D(t, e), n && n.m(e, null), D(e, a), f && f.m(e, null), o = !0;
|
|
74
74
|
},
|
|
75
75
|
p(r, [l]) {
|
|
76
|
-
r[
|
|
76
|
+
r[12] ? n ? (n.p(r, l), l & 4096 && d(n, 1)) : (n = E(r), n.c(), d(n, 1), n.m(e, a)) : n && (L(), c(n, 1, 1, () => {
|
|
77
77
|
n = null;
|
|
78
|
-
}),
|
|
78
|
+
}), j()), r[13] ? f ? (f.p(r, l), l & 8192 && d(f, 1)) : (f = F(r), f.c(), d(f, 1), f.m(e, null)) : f && (L(), c(f, 1, 1, () => {
|
|
79
79
|
f = null;
|
|
80
|
-
}),
|
|
80
|
+
}), j()), (!o || l & 2048) && m(e, "data-tag-id", r[11]), l & 128 && g(e, "left", r[7]), l & 64 && g(e, "top", r[6]), l & 32 && g(e, "z-index", r[5]), (!o || l & 2048) && m(t, "data-tag-id", r[11]), (!o || l & 256) && m(t, "data-tag-unfolded", r[8]), (!o || l & 1024) && p(t, "disable", r[10]), (!o || l & 512) && p(t, "hide", r[9]), (!o || l & 1) && p(t, "withAnimation", r[0]);
|
|
81
81
|
},
|
|
82
82
|
i(r) {
|
|
83
83
|
o || (d(n), d(f), o = !0);
|
|
@@ -86,24 +86,25 @@ function Z(i) {
|
|
|
86
86
|
c(n), c(f), o = !1;
|
|
87
87
|
},
|
|
88
88
|
d(r) {
|
|
89
|
-
r &&
|
|
89
|
+
r && V(t), n && n.d(), f && f.d();
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
let a, o, n, f, r, l, b, h, { withAnimation:
|
|
95
|
-
const
|
|
96
|
-
return i.$$set = (
|
|
97
|
-
"withAnimation" in
|
|
93
|
+
function $(i, t, e) {
|
|
94
|
+
let a, o, n, f, r, l, b, h, _, { withAnimation: S = !1 } = t, { tag: s } = t, { mediaStore: w } = t, { state: v } = t, { temporaryState: y } = t;
|
|
95
|
+
const K = W("hooks");
|
|
96
|
+
return i.$$set = (u) => {
|
|
97
|
+
"withAnimation" in u && e(0, S = u.withAnimation), "tag" in u && e(1, s = u.tag), "mediaStore" in u && e(2, w = u.mediaStore), "state" in u && e(3, v = u.state), "temporaryState" in u && e(4, y = u.temporaryState);
|
|
98
98
|
}, i.$$.update = () => {
|
|
99
|
-
var
|
|
100
|
-
i.$$.dirty & 2 && e(
|
|
99
|
+
var u, k, T, A, P, z, C, I;
|
|
100
|
+
i.$$.dirty & 2 && e(13, a = (() => !(s.contentType === "Link" || s.contentType === "Audio" && s.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => s.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, n = s.id), i.$$.dirty & 2 && e(10, f = !((u = s.pointTagStyle) != null && u.leftPercent) || !((k = s.pointTagStyle) != null && k.topPercent) || s.enabled === !1 || !s.state), i.$$.dirty & 2 && e(9, r = !((T = s.state) != null && T.visible) || ((A = s.temporaryState) == null ? void 0 : A.visible) === !1), i.$$.dirty & 2 && e(8, l = (P = s.state) == null ? void 0 : P.unfolded), i.$$.dirty & 2 && e(7, b = ((z = s.pointTagStyle) == null ? void 0 : z.leftPercent) + "%"), i.$$.dirty & 2 && e(6, h = ((C = s.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(5, _ = (I = s.state) != null && I.unfolded ? 1 : 0);
|
|
101
101
|
}, [
|
|
102
|
-
_,
|
|
103
|
-
s,
|
|
104
102
|
S,
|
|
103
|
+
s,
|
|
105
104
|
w,
|
|
106
105
|
v,
|
|
106
|
+
y,
|
|
107
|
+
_,
|
|
107
108
|
h,
|
|
108
109
|
b,
|
|
109
110
|
l,
|
|
@@ -112,17 +113,17 @@ function x(i, t, e) {
|
|
|
112
113
|
n,
|
|
113
114
|
o,
|
|
114
115
|
a,
|
|
115
|
-
|
|
116
|
+
K
|
|
116
117
|
];
|
|
117
118
|
}
|
|
118
|
-
class
|
|
119
|
+
class oe extends M {
|
|
119
120
|
constructor(t) {
|
|
120
|
-
super(),
|
|
121
|
+
super(), N(
|
|
121
122
|
this,
|
|
122
123
|
t,
|
|
124
|
+
$,
|
|
123
125
|
x,
|
|
124
|
-
|
|
125
|
-
N,
|
|
126
|
+
O,
|
|
126
127
|
{
|
|
127
128
|
withAnimation: 0,
|
|
128
129
|
tag: 1,
|
|
@@ -130,10 +131,10 @@ class ae extends K {
|
|
|
130
131
|
state: 3,
|
|
131
132
|
temporaryState: 4
|
|
132
133
|
},
|
|
133
|
-
|
|
134
|
+
Z
|
|
134
135
|
);
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
export {
|
|
138
|
-
|
|
139
|
+
oe as TagItem
|
|
139
140
|
};
|
|
@@ -7,6 +7,7 @@ export declare abstract class TagComputer extends TagCacheController {
|
|
|
7
7
|
globalConfig?: Tags['globalConfig'];
|
|
8
8
|
contentTypeConfig?: Tags['contentTypeConfig'];
|
|
9
9
|
};
|
|
10
|
+
protected get isPanorama(): boolean;
|
|
10
11
|
private raycaster;
|
|
11
12
|
protected constructor(five: Five);
|
|
12
13
|
getTagById(id: TagId): TagElement<TagContentType, StickType>;
|
|
@@ -2,22 +2,22 @@ var U = Object.defineProperty, j = Object.defineProperties;
|
|
|
2
2
|
var w = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var T = (u, c, e) => c in u ? U(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e, x = (u, c) => {
|
|
6
6
|
for (var e in c || (c = {}))
|
|
7
|
-
B.call(c, e) &&
|
|
7
|
+
B.call(c, e) && T(u, e, c[e]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var e of k(c))
|
|
10
|
-
A.call(c, e) &&
|
|
10
|
+
A.call(c, e) && T(u, e, c[e]);
|
|
11
11
|
return u;
|
|
12
12
|
}, D = (u, c) => j(u, w(c));
|
|
13
|
-
var y = (u, c, e) => (
|
|
14
|
-
import
|
|
13
|
+
var y = (u, c, e) => (T(u, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
import P from "object-assign-deep";
|
|
15
15
|
import * as I from "three";
|
|
16
16
|
import { DefaultConfig as E } from "../tag.config.js";
|
|
17
17
|
import { is3DTag as V, isPointTag as R } from "../utils/tag/tagCheck.js";
|
|
18
18
|
import { arrayPositionToVector3 as M, anyPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
19
19
|
import { planeNormal as $ } from "../utils/planeNormal.js";
|
|
20
|
-
import { tagPosition as
|
|
20
|
+
import { tagPosition as C } from "../utils/tagPosition.js";
|
|
21
21
|
import { checkRange as v } from "../utils/checkRange.js";
|
|
22
22
|
import { TagCacheController as z } from "./TagCacheController.js";
|
|
23
23
|
class q extends z {
|
|
@@ -27,6 +27,9 @@ class q extends z {
|
|
|
27
27
|
y(this, "config", E);
|
|
28
28
|
y(this, "raycaster", new I.Raycaster());
|
|
29
29
|
}
|
|
30
|
+
get isPanorama() {
|
|
31
|
+
return this.five.currentMode === "Panorama";
|
|
32
|
+
}
|
|
30
33
|
getTagById(e) {
|
|
31
34
|
const t = this.tags.find((i) => i.id === e);
|
|
32
35
|
if (!t) {
|
|
@@ -36,13 +39,13 @@ class q extends z {
|
|
|
36
39
|
return t;
|
|
37
40
|
}
|
|
38
41
|
changeConfig(e, t = !0) {
|
|
39
|
-
t ? this.config =
|
|
42
|
+
t ? this.config = P({}, this.config, e) : this.config = e, this.clearCache();
|
|
40
43
|
}
|
|
41
44
|
changeGlobalConfig(e, t = !0) {
|
|
42
|
-
t ? this.config.globalConfig =
|
|
45
|
+
t ? this.config.globalConfig = P({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.clearCache();
|
|
43
46
|
}
|
|
44
47
|
changeContentTypeConfig(e, t, i = !0) {
|
|
45
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
48
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = P({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache();
|
|
46
49
|
}
|
|
47
50
|
getVisibleByPanoIndex(e, t) {
|
|
48
51
|
var n;
|
|
@@ -51,7 +54,7 @@ class q extends z {
|
|
|
51
54
|
return i.visible;
|
|
52
55
|
{
|
|
53
56
|
const l = (() => {
|
|
54
|
-
var d, p,
|
|
57
|
+
var d, p, f;
|
|
55
58
|
const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, a = this.getDistance(e);
|
|
56
59
|
if (typeof o == "function")
|
|
57
60
|
return o(this.five, { tag: e, distance: a });
|
|
@@ -64,11 +67,11 @@ class q extends z {
|
|
|
64
67
|
if (o.intersectRaycaster !== !1 && o.intersectRaycaster) {
|
|
65
68
|
if (s === void 0)
|
|
66
69
|
return !1;
|
|
67
|
-
const
|
|
68
|
-
if (
|
|
69
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
70
|
-
const h =
|
|
71
|
-
this.raycaster.set(
|
|
70
|
+
const r = (f = this.five.work.observers[s]) == null ? void 0 : f.position;
|
|
71
|
+
if (r === void 0)
|
|
72
|
+
throw new Error(`getVisible(): observerPosition is ${r}`);
|
|
73
|
+
const h = C(e.position).sub(r).normalize();
|
|
74
|
+
this.raycaster.set(r, h);
|
|
72
75
|
const [g] = this.five.model.intersectRaycaster(this.raycaster), b = (() => {
|
|
73
76
|
var m;
|
|
74
77
|
return typeof o.intersectRaycaster == "object" && (m = o.intersectRaycaster.distanceAccuracy) != null ? m : 0.01;
|
|
@@ -126,19 +129,19 @@ class q extends z {
|
|
|
126
129
|
return !1;
|
|
127
130
|
}
|
|
128
131
|
if (n.autoUnfold.strategy === "MinimumDistance") {
|
|
129
|
-
const d = this.filterPointTag().filter((
|
|
130
|
-
const
|
|
131
|
-
if (!
|
|
132
|
+
const d = this.filterPointTag().filter((f) => this.getVisibleByPanoIndex(f)).filter((f) => {
|
|
133
|
+
const r = this.getTagProject(f);
|
|
134
|
+
if (!r)
|
|
132
135
|
return !1;
|
|
133
|
-
const { x: h, y: g, z: b } =
|
|
136
|
+
const { x: h, y: g, z: b } = r;
|
|
134
137
|
return !(Math.abs(b) > 1 || Math.abs(h) > 1 || Math.abs(g) > 1);
|
|
135
|
-
}).map((
|
|
138
|
+
}).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
|
|
136
139
|
var h, g;
|
|
137
|
-
return !(typeof
|
|
138
|
-
}).map((
|
|
140
|
+
return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance");
|
|
141
|
+
}).map((f) => D(x({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
|
|
139
142
|
var h, g;
|
|
140
|
-
return !(
|
|
141
|
-
}).sort((
|
|
143
|
+
return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((h = r.autoUnfold) == null ? void 0 : h.enable) === !1 || ((g = r.autoUnfold) == null ? void 0 : g.strategy) !== "MinimumDistance" || r.autoUnfold.distance && v(f, r.autoUnfold.distance) === !1);
|
|
144
|
+
}).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
|
|
142
145
|
if (d === -1 || d <= ((l = n.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
|
|
143
146
|
return !1;
|
|
144
147
|
}
|
|
@@ -158,7 +161,7 @@ class q extends z {
|
|
|
158
161
|
const a = (o = (l = this.five.work) == null ? void 0 : l.observers[i]) == null ? void 0 : o.position;
|
|
159
162
|
if (a === void 0)
|
|
160
163
|
throw new Error(`getDistance(): observerPosition is ${a}`);
|
|
161
|
-
const d = (() => R(e) ? M(e == null ? void 0 : e.position) :
|
|
164
|
+
const d = (() => R(e) ? M(e == null ? void 0 : e.position) : C(e.position))(), p = a.distanceTo(d);
|
|
162
165
|
return s.distance = p, p;
|
|
163
166
|
}
|
|
164
167
|
}
|
|
@@ -177,8 +180,8 @@ class q extends z {
|
|
|
177
180
|
const d = (() => e.stickType === "3DPoint" ? S(e.normal) : $(e.position))();
|
|
178
181
|
if (!d)
|
|
179
182
|
return;
|
|
180
|
-
const p = new I.Vector3().copy(a).sub(
|
|
181
|
-
return s.angle =
|
|
183
|
+
const p = new I.Vector3().copy(a).sub(C(e.position)), f = d.angleTo(p) * 180 / Math.PI;
|
|
184
|
+
return s.angle = f, s.angle;
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
getTagConfig(e) {
|
|
@@ -195,7 +198,7 @@ class q extends z {
|
|
|
195
198
|
const [a = "Any", d = "Any"] = o || [];
|
|
196
199
|
(e.stickType === a || a === "Any") && (e.contentType === d || d === "Any") && (t[l] = this.config.contentTypeConfig[l]);
|
|
197
200
|
});
|
|
198
|
-
const i =
|
|
201
|
+
const i = P({}, this.config.globalConfig, ...Object.values(t), e.config);
|
|
199
202
|
return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep }), i;
|
|
200
203
|
}
|
|
201
204
|
can(e, t) {
|
|
@@ -256,7 +259,7 @@ class q extends z {
|
|
|
256
259
|
getTagProject(e) {
|
|
257
260
|
if (!this.getVisibleByPanoIndex(e))
|
|
258
261
|
return;
|
|
259
|
-
const i =
|
|
262
|
+
const i = C(e.position), { x: s, y: n, z: l } = i.project(this.five.camera);
|
|
260
263
|
if (!(l > 1))
|
|
261
264
|
return { x: s, y: n, z: l };
|
|
262
265
|
}
|