@realsee/dnalogel 3.31.1-dev.0 → 3.32.0-dev.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/CHANGELOG.md +3 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagCache.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/index.cjs.js +66 -66
- package/dist/index.js +5849 -5666
- package/dist/index.umd.js +59 -59
- package/libs/AreaMakerPlugin/Controller.js +54 -44
- package/libs/AreaMakerPlugin/index.js +13 -3
- package/libs/AreaMakerPlugin/utils/Item.js +13 -3
- package/libs/CruisePlugin/Move.js +50 -37
- package/libs/CruisePlugin/Work.js +19 -6
- package/libs/CruisePlugin/index.js +23 -10
- package/libs/GuideLinePlugin/Components/Tag.js +58 -48
- package/libs/GuideLinePlugin/Controller.js +46 -33
- package/libs/GuideLinePlugin/GuideLineItem.js +19 -6
- package/libs/GuideLinePlugin/GuideLineModeItem.js +19 -6
- package/libs/GuideLinePlugin/index.js +23 -10
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +152 -139
- package/libs/ItemLabelPlugin/ItemLabelItem.js +67 -57
- package/libs/ItemLabelPlugin/Plugin.js +37 -26
- package/libs/ItemLabelPlugin/index.js +16 -5
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +116 -103
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +45 -35
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +35 -24
- package/libs/ModelItemLabelPlugin/index.js +16 -5
- package/libs/ModelMakerPlugin/Controller.js +33 -23
- package/libs/ModelMakerPlugin/index.js +13 -3
- package/libs/ModelMakerPlugin/utils/Text.js +43 -33
- package/libs/ModelMakerPlugin/utils/tagRenderer.js +28 -18
- package/libs/ModelRoomLabelPlugin/Controller.js +20 -8
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +52 -42
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +75 -61
- package/libs/ModelRoomLabelPlugin/index.js +17 -5
- package/libs/PanoDoorLabelPlugin/Controller.js +38 -28
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +55 -45
- package/libs/PanoDoorLabelPlugin/index.js +14 -4
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +70 -60
- package/libs/PanoMeasurePlugin/Components/Common/Exit.js +32 -22
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +75 -62
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +110 -97
- package/libs/PanoMeasurePlugin/Components/Controller0.js +72 -61
- package/libs/PanoMeasurePlugin/Components/Controller1.js +33 -22
- package/libs/PanoMeasurePlugin/Components/Tip.js +76 -66
- package/libs/PanoMeasurePlugin/Controller/index.js +28 -17
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +26 -16
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +34 -23
- package/libs/PanoMeasurePlugin/index.js +27 -16
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/RulerItem.js +94 -79
- package/libs/PanoRulerProPlugin/RulerItems.js +95 -82
- package/libs/PanoRulerProPlugin/index.js +15 -4
- package/libs/PanoSpatialTagPlugin/Components/origins.js +51 -38
- package/libs/PanoSpatialTagPlugin/Components/tag.js +32 -22
- package/libs/PanoSpatialTagPlugin/Plugin.js +115 -104
- package/libs/PanoSpatialTagPlugin/index.js +13 -2
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +44 -34
- package/libs/PanoTagPlugin/Components/Common/Audio.js +99 -89
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +123 -112
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +55 -45
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +59 -49
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -69
- package/libs/PanoTagPlugin/Components/Common/Media.js +145 -131
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +35 -25
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +58 -48
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +35 -24
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +97 -86
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +109 -96
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +128 -118
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +59 -49
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +100 -90
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +92 -81
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +68 -57
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +45 -35
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +122 -110
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +53 -42
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +130 -115
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +66 -54
- package/libs/PanoTagPlugin/Components/Tag/PanoramaTag.js +62 -52
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +66 -56
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +109 -98
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +54 -43
- package/libs/PanoTagPlugin/Components/Tag/index.js +161 -148
- package/libs/PanoTagPlugin/Components/TagContainer.js +77 -62
- package/libs/PanoTagPlugin/Components/TagItem.js +182 -169
- package/libs/PanoTagPlugin/controller/TagCache.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +5 -5
- package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +56 -43
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +78 -70
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +84 -65
- package/libs/PanoTagPlugin/index.js +28 -15
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/components/AreaLabel/LabelItem.js +56 -51
- package/libs/floorplan/Components/BaseImage.js +43 -39
- package/libs/floorplan/Components/Camera.js +41 -32
- package/libs/floorplan/Components/Compass.js +27 -24
- package/libs/floorplan/Components/CurrentFloor.js +167 -162
- package/libs/floorplan/Components/Main.js +85 -76
- package/libs/floorplan/Components/MissingFloor.js +24 -21
- package/libs/floorplan/Components/Normalmage.js +25 -22
- package/libs/floorplan/Components/RoomHighlight/Room.js +28 -25
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +69 -61
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +104 -101
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +65 -57
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +125 -118
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +25 -22
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +43 -40
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +32 -29
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +49 -41
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +102 -94
- package/libs/floorplan/Components/SvgImage.js +30 -27
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +18 -6
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -7
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +58 -46
- package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -7
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +77 -65
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +95 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +70 -53
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +112 -100
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +40 -28
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +30 -18
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -7
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +143 -129
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/svelte/src/runtime/internal/Component.js +122 -0
- package/libs/vendor/svelte/src/runtime/internal/ResizeObserverSingleton.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/animations.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/await_block.js +47 -0
- package/libs/vendor/svelte/src/runtime/internal/dev.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/disclose-version/index.js +2 -0
- package/libs/vendor/svelte/src/runtime/internal/dom.js +214 -0
- package/libs/vendor/svelte/src/runtime/internal/each.js +46 -0
- package/libs/vendor/svelte/src/runtime/internal/environment.js +7 -0
- package/libs/vendor/svelte/src/runtime/internal/globals.js +7 -0
- package/libs/vendor/svelte/src/runtime/internal/index.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/lifecycle.js +63 -0
- package/libs/vendor/svelte/src/runtime/internal/loop.js +21 -0
- package/libs/vendor/svelte/src/runtime/internal/scheduler.js +66 -0
- package/libs/vendor/svelte/src/runtime/internal/spread.js +26 -0
- package/libs/vendor/svelte/src/runtime/internal/ssr.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/style_manager.js +48 -0
- package/libs/vendor/svelte/src/runtime/internal/transitions.js +192 -0
- package/libs/vendor/svelte/src/runtime/internal/utils.js +110 -0
- package/libs/vendor/svelte/{store → src/runtime/store}/index.js +5 -5
- package/libs/vendor/svelte/{transition → src/runtime/transition}/index.js +1 -1
- package/libs/vendor/svelte/src/shared/boolean_attributes.js +1 -0
- package/libs/vendor/svelte/src/shared/utils/names.js +1 -0
- package/libs/vendor/svelte/src/shared/version.js +4 -0
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +29 -25
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +197 -225
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +16 -12
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +65 -59
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +32 -29
- package/package.json +5 -6
- package/libs/vendor/svelte/internal/index.js +0 -749
- /package/libs/vendor/svelte/{easing → src/runtime/easing}/index.js +0 -0
- /package/libs/vendor/svelte/{index.js → src/runtime/index.js} +0 -0
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { safe_not_equal as d } from "../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
+
import { append_styles as b, element as v, attr as k, insert as h, detach as y } from "../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { group_outros as I, transition_out as u, check_outros as D, transition_in as c } from "../../vendor/svelte/src/runtime/internal/transitions.js";
|
|
4
|
+
import { SvelteComponent as x, init as z, create_component as p, mount_component as _, destroy_component as g } from "../../vendor/svelte/src/runtime/internal/Component.js";
|
|
5
|
+
import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
2
6
|
import { Normalmage as w } from "./Normalmage.js";
|
|
3
7
|
import { SvgImage as C } from "./SvgImage.js";
|
|
4
|
-
function S(
|
|
5
|
-
|
|
8
|
+
function S(i) {
|
|
9
|
+
b(i, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
6
10
|
}
|
|
7
|
-
function $(
|
|
11
|
+
function $(i) {
|
|
8
12
|
let n, t;
|
|
9
13
|
return n = new w({ props: { url: (
|
|
10
14
|
/*imageData*/
|
|
11
|
-
|
|
15
|
+
i[1].url
|
|
12
16
|
) } }), {
|
|
13
17
|
c() {
|
|
14
|
-
|
|
18
|
+
p(n.$$.fragment);
|
|
15
19
|
},
|
|
16
20
|
m(e, r) {
|
|
17
|
-
|
|
21
|
+
_(n, e, r), t = !0;
|
|
18
22
|
},
|
|
19
23
|
p(e, r) {
|
|
20
|
-
const
|
|
24
|
+
const l = {};
|
|
21
25
|
r & /*imageData*/
|
|
22
|
-
2 && (
|
|
23
|
-
e[1].url), n.$set(
|
|
26
|
+
2 && (l.url = /*imageData*/
|
|
27
|
+
e[1].url), n.$set(l);
|
|
24
28
|
},
|
|
25
29
|
i(e) {
|
|
26
30
|
t || (c(n.$$.fragment, e), t = !0);
|
|
@@ -29,29 +33,29 @@ function $(l) {
|
|
|
29
33
|
u(n.$$.fragment, e), t = !1;
|
|
30
34
|
},
|
|
31
35
|
d(e) {
|
|
32
|
-
|
|
36
|
+
g(n, e);
|
|
33
37
|
}
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
|
-
function q(
|
|
40
|
+
function q(i) {
|
|
37
41
|
let n, t;
|
|
38
42
|
return n = new C({
|
|
39
43
|
props: { content: (
|
|
40
44
|
/*svgContent*/
|
|
41
|
-
|
|
45
|
+
i[0]
|
|
42
46
|
) }
|
|
43
47
|
}), {
|
|
44
48
|
c() {
|
|
45
|
-
|
|
49
|
+
p(n.$$.fragment);
|
|
46
50
|
},
|
|
47
51
|
m(e, r) {
|
|
48
|
-
|
|
52
|
+
_(n, e, r), t = !0;
|
|
49
53
|
},
|
|
50
54
|
p(e, r) {
|
|
51
|
-
const
|
|
55
|
+
const l = {};
|
|
52
56
|
r & /*svgContent*/
|
|
53
|
-
1 && (
|
|
54
|
-
e[0]), n.$set(
|
|
57
|
+
1 && (l.content = /*svgContent*/
|
|
58
|
+
e[0]), n.$set(l);
|
|
55
59
|
},
|
|
56
60
|
i(e) {
|
|
57
61
|
t || (c(n.$$.fragment, e), t = !0);
|
|
@@ -60,13 +64,13 @@ function q(l) {
|
|
|
60
64
|
u(n.$$.fragment, e), t = !1;
|
|
61
65
|
},
|
|
62
66
|
d(e) {
|
|
63
|
-
|
|
67
|
+
g(n, e);
|
|
64
68
|
}
|
|
65
69
|
};
|
|
66
70
|
}
|
|
67
|
-
function B(
|
|
71
|
+
function B(i) {
|
|
68
72
|
let n, t, e, r;
|
|
69
|
-
const
|
|
73
|
+
const l = [q, $], a = [];
|
|
70
74
|
function f(o, s) {
|
|
71
75
|
return (
|
|
72
76
|
/*svgContent*/
|
|
@@ -76,18 +80,18 @@ function B(l) {
|
|
|
76
80
|
)
|
|
77
81
|
);
|
|
78
82
|
}
|
|
79
|
-
return ~(t = f(
|
|
83
|
+
return ~(t = f(i)) && (e = a[t] = l[t](i)), {
|
|
80
84
|
c() {
|
|
81
|
-
n =
|
|
85
|
+
n = v("div"), e && e.c(), k(n, "class", "floorplan-plugin__base-image svelte-ozpg4a");
|
|
82
86
|
},
|
|
83
87
|
m(o, s) {
|
|
84
|
-
|
|
88
|
+
h(o, n, s), ~t && a[t].m(n, null), r = !0;
|
|
85
89
|
},
|
|
86
90
|
p(o, [s]) {
|
|
87
91
|
let m = t;
|
|
88
|
-
t = f(o), t === m ? ~t && a[t].p(o, s) : (e && (
|
|
92
|
+
t = f(o), t === m ? ~t && a[t].p(o, s) : (e && (I(), u(a[m], 1, 1, () => {
|
|
89
93
|
a[m] = null;
|
|
90
|
-
}),
|
|
94
|
+
}), D()), ~t ? (e = a[t], e ? e.p(o, s) : (e = a[t] = l[t](o), e.c()), c(e, 1), e.m(n, null)) : e = null);
|
|
91
95
|
},
|
|
92
96
|
i(o) {
|
|
93
97
|
r || (c(e), r = !0);
|
|
@@ -96,26 +100,26 @@ function B(l) {
|
|
|
96
100
|
u(e), r = !1;
|
|
97
101
|
},
|
|
98
102
|
d(o) {
|
|
99
|
-
o &&
|
|
103
|
+
o && y(n), ~t && a[t].d();
|
|
100
104
|
}
|
|
101
105
|
};
|
|
102
106
|
}
|
|
103
|
-
function N(
|
|
104
|
-
let e, r, { floorIndex:
|
|
105
|
-
return
|
|
106
|
-
"floorIndex" in f && t(2,
|
|
107
|
-
},
|
|
107
|
+
function N(i, n, t) {
|
|
108
|
+
let e, r, { floorIndex: l } = n, { floorplanData: a } = n;
|
|
109
|
+
return i.$$set = (f) => {
|
|
110
|
+
"floorIndex" in f && t(2, l = f.floorIndex), "floorplanData" in f && t(3, a = f.floorplanData);
|
|
111
|
+
}, i.$$.update = () => {
|
|
108
112
|
var f, o;
|
|
109
|
-
|
|
110
|
-
12 && t(1, e = a.outlines[
|
|
111
|
-
12 && t(0, r = (o = (f = a.outlines) == null ? void 0 : f[
|
|
112
|
-
}, [r, e,
|
|
113
|
+
i.$$.dirty & /*floorplanData, floorIndex*/
|
|
114
|
+
12 && t(1, e = a.outlines[l]), i.$$.dirty & /*floorplanData, floorIndex*/
|
|
115
|
+
12 && t(0, r = (o = (f = a.outlines) == null ? void 0 : f[l]) == null ? void 0 : o.svgContent);
|
|
116
|
+
}, [r, e, l, a];
|
|
113
117
|
}
|
|
114
|
-
class
|
|
118
|
+
class K extends x {
|
|
115
119
|
constructor(n) {
|
|
116
|
-
super(),
|
|
120
|
+
super(), z(this, n, N, B, d, { floorIndex: 2, floorplanData: 3 }, S);
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
export {
|
|
120
|
-
|
|
124
|
+
K as BaseImage
|
|
121
125
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { safe_not_equal as k, noop as f } from "../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
+
import { append_styles as z, element as c, attr as d, set_style as t, insert as P, append as U, detach as w } from "../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { SvelteComponent as A, init as C } from "../../vendor/svelte/src/runtime/internal/Component.js";
|
|
4
|
+
import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
2
5
|
import { CAMERA_IMAGE as g } from "../Assets/camera.js";
|
|
3
|
-
import { rad2Deg as
|
|
4
|
-
function R(a) {
|
|
5
|
-
P(a, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
6
|
-
}
|
|
6
|
+
import { rad2Deg as R } from "../../shared-utils/math/rad2Deg.js";
|
|
7
7
|
function S(a) {
|
|
8
|
+
z(a, "svelte-17cl35n", ".floorplan__camera-position.svelte-17cl35n{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-17cl35n{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
9
|
+
}
|
|
10
|
+
function y(a) {
|
|
8
11
|
let n, e;
|
|
9
12
|
return {
|
|
10
13
|
c() {
|
|
11
|
-
n =
|
|
14
|
+
n = c("div"), e = c("div"), d(e, "class", "floorplan__camera-rotate svelte-17cl35n"), t(e, "background-image", `url(${/*cameraImageUrl*/
|
|
12
15
|
a[0] || g})`), t(
|
|
13
16
|
e,
|
|
14
17
|
"width",
|
|
@@ -36,73 +39,79 @@ function S(a) {
|
|
|
36
39
|
a[2]
|
|
37
40
|
);
|
|
38
41
|
},
|
|
39
|
-
m(o,
|
|
40
|
-
|
|
42
|
+
m(o, i) {
|
|
43
|
+
P(o, n, i), U(n, e);
|
|
41
44
|
},
|
|
42
|
-
p(o, [
|
|
43
|
-
|
|
45
|
+
p(o, [i]) {
|
|
46
|
+
i & /*cameraImageUrl*/
|
|
44
47
|
1 && t(e, "background-image", `url(${/*cameraImageUrl*/
|
|
45
48
|
o[0] || g})`);
|
|
46
|
-
const
|
|
49
|
+
const r = i & /*cameraImageUrl*/
|
|
47
50
|
1;
|
|
48
|
-
i
|
|
51
|
+
(i & /*cameraImageUrl*/
|
|
52
|
+
1 || r) && t(
|
|
49
53
|
e,
|
|
50
54
|
"width",
|
|
51
55
|
/*domSizeStyle*/
|
|
52
56
|
o[4]
|
|
53
|
-
), i
|
|
57
|
+
), (i & /*cameraImageUrl*/
|
|
58
|
+
1 || r) && t(
|
|
54
59
|
e,
|
|
55
60
|
"height",
|
|
56
61
|
/*domSizeStyle*/
|
|
57
62
|
o[4]
|
|
58
|
-
), i
|
|
59
|
-
|
|
60
|
-
o[4]), i
|
|
61
|
-
|
|
63
|
+
), (i & /*cameraImageUrl*/
|
|
64
|
+
1 || r) && t(e, "left", "-" + /*domSizeStyle*/
|
|
65
|
+
o[4]), (i & /*cameraImageUrl*/
|
|
66
|
+
1 || r) && t(e, "top", "-" + /*domSizeStyle*/
|
|
67
|
+
o[4]), (i & /*cameraImageUrl*/
|
|
68
|
+
1 || r) && t(e, "transform", `rotate(${/*rotate*/
|
|
69
|
+
o[3]}deg)`), (i & /*cameraImageUrl*/
|
|
70
|
+
1 || r) && t(e, "transform-origin", `${/*domSizeStyle*/
|
|
62
71
|
o[4]} ${/*domSizeStyle*/
|
|
63
72
|
o[4]}`);
|
|
64
73
|
},
|
|
65
|
-
i:
|
|
66
|
-
o:
|
|
74
|
+
i: f,
|
|
75
|
+
o: f,
|
|
67
76
|
d(o) {
|
|
68
|
-
o &&
|
|
77
|
+
o && w(n);
|
|
69
78
|
}
|
|
70
79
|
};
|
|
71
80
|
}
|
|
72
81
|
function E(a, n, e) {
|
|
73
|
-
let { panoIndex: o } = n, { floorplanData:
|
|
74
|
-
const { observers:
|
|
82
|
+
let { panoIndex: o } = n, { floorplanData: i } = n, { lastPanoramaLongitude: r } = n, { cameraImageUrl: s } = n;
|
|
83
|
+
const { observers: p } = i, m = p[o], u = m.positionInImage.x, h = m.positionInImage.y, _ = u * 100 + "%", I = h * 100 + "%", b = -R(r) + 45, v = document.body.clientWidth, D = document.body.clientHeight, L = `${(v < 500 || D < 500 ? 17 : 37) / 16}rem`;
|
|
75
84
|
return a.$$set = (l) => {
|
|
76
|
-
"panoIndex" in l && e(5, o = l.panoIndex), "floorplanData" in l && e(6,
|
|
85
|
+
"panoIndex" in l && e(5, o = l.panoIndex), "floorplanData" in l && e(6, i = l.floorplanData), "lastPanoramaLongitude" in l && e(7, r = l.lastPanoramaLongitude), "cameraImageUrl" in l && e(0, s = l.cameraImageUrl);
|
|
77
86
|
}, [
|
|
78
87
|
s,
|
|
79
88
|
_,
|
|
80
89
|
I,
|
|
81
90
|
b,
|
|
82
|
-
|
|
91
|
+
L,
|
|
83
92
|
o,
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
i,
|
|
94
|
+
r
|
|
86
95
|
];
|
|
87
96
|
}
|
|
88
|
-
class
|
|
97
|
+
class B extends A {
|
|
89
98
|
constructor(n) {
|
|
90
|
-
super(),
|
|
99
|
+
super(), C(
|
|
91
100
|
this,
|
|
92
101
|
n,
|
|
93
102
|
E,
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
y,
|
|
104
|
+
k,
|
|
96
105
|
{
|
|
97
106
|
panoIndex: 5,
|
|
98
107
|
floorplanData: 6,
|
|
99
108
|
lastPanoramaLongitude: 7,
|
|
100
109
|
cameraImageUrl: 0
|
|
101
110
|
},
|
|
102
|
-
|
|
111
|
+
S
|
|
103
112
|
);
|
|
104
113
|
}
|
|
105
114
|
}
|
|
106
115
|
export {
|
|
107
|
-
|
|
116
|
+
B as Camera
|
|
108
117
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { safe_not_equal as k, noop as u } from "../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
+
import { append_styles as b, empty as v, insert as d, detach as g, element as f, space as D, text as y, attr as c, set_style as _, append as p, set_data as w } from "../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { SvelteComponent as S, init as C } from "../../vendor/svelte/src/runtime/internal/Component.js";
|
|
4
|
+
import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
2
5
|
import { COMPASS_IMAGE as x } from "../Assets/compass.js";
|
|
3
6
|
function M(a) {
|
|
4
|
-
|
|
7
|
+
b(a, "svelte-rpkaro", ".floorplan-plugin__compass.svelte-rpkaro{position:absolute;left:50%;top:-2.875rem;width:14.4375rem;height:2.5625rem;will-change:opacity;transform-origin:center 11.5rem}.floorplan-plugin__compass-image.svelte-rpkaro{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-rpkaro{position:absolute;left:50%;top:0.9375rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.625rem;color:#fff}");
|
|
5
8
|
}
|
|
6
9
|
function z(a) {
|
|
7
|
-
let t, e,
|
|
10
|
+
let t, o, e, r, n;
|
|
8
11
|
return {
|
|
9
12
|
c() {
|
|
10
|
-
t =
|
|
13
|
+
t = f("div"), o = f("div"), e = D(), r = f("span"), n = y(
|
|
11
14
|
/*northDesc*/
|
|
12
15
|
a[0]
|
|
13
|
-
),
|
|
16
|
+
), c(o, "class", "floorplan-plugin__compass-image svelte-rpkaro"), _(o, "background-image", `url(${x})`), c(r, "class", "floorplan-plugin__compass-text svelte-rpkaro"), c(t, "class", "floorplan-plugin__compass svelte-rpkaro"), _(
|
|
14
17
|
t,
|
|
15
18
|
"transform",
|
|
16
19
|
/*compassTransformStyle*/
|
|
@@ -18,12 +21,12 @@ function z(a) {
|
|
|
18
21
|
);
|
|
19
22
|
},
|
|
20
23
|
m(s, l) {
|
|
21
|
-
d(s, t, l), p(t,
|
|
24
|
+
d(s, t, l), p(t, o), p(t, e), p(t, r), p(r, n);
|
|
22
25
|
},
|
|
23
26
|
p(s, l) {
|
|
24
27
|
l & /*northDesc*/
|
|
25
|
-
1 &&
|
|
26
|
-
|
|
28
|
+
1 && w(
|
|
29
|
+
n,
|
|
27
30
|
/*northDesc*/
|
|
28
31
|
s[0]
|
|
29
32
|
);
|
|
@@ -34,44 +37,44 @@ function z(a) {
|
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
function A(a) {
|
|
37
|
-
let t,
|
|
40
|
+
let t, o = (
|
|
38
41
|
/*canCompassShow*/
|
|
39
42
|
a[1] && z(a)
|
|
40
43
|
);
|
|
41
44
|
return {
|
|
42
45
|
c() {
|
|
43
|
-
|
|
46
|
+
o && o.c(), t = v();
|
|
44
47
|
},
|
|
45
|
-
m(
|
|
46
|
-
|
|
48
|
+
m(e, r) {
|
|
49
|
+
o && o.m(e, r), d(e, t, r);
|
|
47
50
|
},
|
|
48
|
-
p(
|
|
51
|
+
p(e, [r]) {
|
|
49
52
|
/*canCompassShow*/
|
|
50
|
-
|
|
53
|
+
e[1] && o.p(e, r);
|
|
51
54
|
},
|
|
52
55
|
i: u,
|
|
53
56
|
o: u,
|
|
54
|
-
d(
|
|
55
|
-
e &&
|
|
57
|
+
d(e) {
|
|
58
|
+
e && g(t), o && o.d(e);
|
|
56
59
|
}
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
function I(a) {
|
|
60
63
|
return a / Math.PI * 180;
|
|
61
64
|
}
|
|
62
|
-
function P(a, t,
|
|
65
|
+
function P(a, t, o) {
|
|
63
66
|
var m;
|
|
64
|
-
let { floorplanData:
|
|
65
|
-
const
|
|
67
|
+
let { floorplanData: e } = t, { northDesc: r } = t;
|
|
68
|
+
const n = (m = e.entrance) == null ? void 0 : m.northRad, s = typeof n == "number", h = `translateX(-50%) translateZ(10px) rotate(${-(n ? I(n) : 0) + 90}deg)`;
|
|
66
69
|
return a.$$set = (i) => {
|
|
67
|
-
"floorplanData" in i &&
|
|
68
|
-
}, [
|
|
70
|
+
"floorplanData" in i && o(3, e = i.floorplanData), "northDesc" in i && o(0, r = i.northDesc);
|
|
71
|
+
}, [r, s, h, e];
|
|
69
72
|
}
|
|
70
|
-
class
|
|
73
|
+
class O extends S {
|
|
71
74
|
constructor(t) {
|
|
72
|
-
super(),
|
|
75
|
+
super(), C(this, t, P, A, k, { floorplanData: 3, northDesc: 0 }, M);
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
export {
|
|
76
|
-
|
|
79
|
+
O as Compass
|
|
77
80
|
};
|