@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,76 +1,79 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { safe_not_equal as _, noop as u } from "../../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
+
import { svg_element as h, space as w, attr as t, insert as l, append as m, detach as d } from "../../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { SvelteComponent as y, init as k } from "../../../vendor/svelte/src/runtime/internal/Component.js";
|
|
4
|
+
import "../../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
2
5
|
import { pathD as M } from "../../utils/formatPosition.js";
|
|
3
|
-
function
|
|
4
|
-
let
|
|
6
|
+
function g(r) {
|
|
7
|
+
let i, e, o, n, f, a;
|
|
5
8
|
return {
|
|
6
9
|
c() {
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
i = h("defs"), e = h("pattern"), o = h("rect"), n = h("path"), f = w(), a = h("path"), t(o, "x", "0"), t(o, "y", "0"), t(
|
|
11
|
+
o,
|
|
9
12
|
"width",
|
|
10
13
|
/*width*/
|
|
11
|
-
|
|
14
|
+
r[1]
|
|
12
15
|
), t(
|
|
13
|
-
|
|
16
|
+
o,
|
|
14
17
|
"height",
|
|
15
18
|
/*width*/
|
|
16
|
-
|
|
17
|
-
), t(
|
|
18
|
-
|
|
19
|
+
r[1]
|
|
20
|
+
), t(o, "fill", "#323747"), t(
|
|
21
|
+
n,
|
|
19
22
|
"d",
|
|
20
23
|
/*patternPathD*/
|
|
21
|
-
|
|
22
|
-
), t(
|
|
24
|
+
r[2]
|
|
25
|
+
), t(n, "stroke", "#ffffff"), t(n, "stroke-opacity", "0.06"), t(n, "stroke-width", "0.5"), t(n, "fill", "none"), t(e, "id", "fpm-room-pattern-0"), t(e, "x", "0"), t(e, "y", "0"), t(
|
|
23
26
|
e,
|
|
24
27
|
"width",
|
|
25
28
|
/*width*/
|
|
26
|
-
|
|
29
|
+
r[1]
|
|
27
30
|
), t(
|
|
28
31
|
e,
|
|
29
32
|
"height",
|
|
30
33
|
/*width*/
|
|
31
|
-
|
|
34
|
+
r[1]
|
|
32
35
|
), t(e, "patternUnits", "userSpaceOnUse"), t(e, "patternTransform", "scale(50 50)"), t(
|
|
33
|
-
|
|
36
|
+
a,
|
|
34
37
|
"d",
|
|
35
38
|
/*d*/
|
|
36
|
-
|
|
37
|
-
), t(
|
|
39
|
+
r[0]
|
|
40
|
+
), t(a, "fill", "url(#fpm-room-pattern-0)");
|
|
38
41
|
},
|
|
39
|
-
m(
|
|
40
|
-
l(
|
|
42
|
+
m(p, s) {
|
|
43
|
+
l(p, i, s), m(i, e), m(e, o), m(e, n), l(p, f, s), l(p, a, s);
|
|
41
44
|
},
|
|
42
|
-
p(
|
|
45
|
+
p(p, [s]) {
|
|
43
46
|
s & /*d*/
|
|
44
47
|
1 && t(
|
|
45
|
-
|
|
48
|
+
a,
|
|
46
49
|
"d",
|
|
47
50
|
/*d*/
|
|
48
|
-
|
|
51
|
+
p[0]
|
|
49
52
|
);
|
|
50
53
|
},
|
|
51
|
-
i:
|
|
52
|
-
o:
|
|
53
|
-
d(
|
|
54
|
-
|
|
54
|
+
i: u,
|
|
55
|
+
o: u,
|
|
56
|
+
d(p) {
|
|
57
|
+
p && (d(i), d(f), d(a));
|
|
55
58
|
}
|
|
56
59
|
};
|
|
57
60
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
let
|
|
61
|
-
const f =
|
|
62
|
-
return
|
|
63
|
-
"path" in
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
8 && e(0,
|
|
67
|
-
}, [
|
|
61
|
+
const c = 6;
|
|
62
|
+
function v(r, i, e) {
|
|
63
|
+
let o, { path: n } = i;
|
|
64
|
+
const f = c * 2, a = `M0 ${c} h ${f} M${c} 0 v ${f}`;
|
|
65
|
+
return r.$$set = (p) => {
|
|
66
|
+
"path" in p && e(3, n = p.path);
|
|
67
|
+
}, r.$$.update = () => {
|
|
68
|
+
r.$$.dirty & /*path*/
|
|
69
|
+
8 && e(0, o = M(n, { needZ: !0 }));
|
|
70
|
+
}, [o, f, a, n];
|
|
68
71
|
}
|
|
69
|
-
class
|
|
70
|
-
constructor(
|
|
71
|
-
super(),
|
|
72
|
+
class C extends y {
|
|
73
|
+
constructor(i) {
|
|
74
|
+
super(), k(this, i, v, g, _, { path: 3 });
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
export {
|
|
75
|
-
|
|
78
|
+
C as RoomMaterial_1
|
|
76
79
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { safe_not_equal as y, noop as U } from "../../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
+
import { svg_element as s, space as B, attr as t, insert as m, append as c, detach as d } from "../../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { SvelteComponent as S, init as x } from "../../../vendor/svelte/src/runtime/internal/Component.js";
|
|
4
|
+
import "../../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
2
5
|
import { pathD as D } from "../../utils/formatPosition.js";
|
|
3
6
|
function O(o) {
|
|
4
|
-
let
|
|
7
|
+
let l, r, p, e, a, w, f, _, h, k, u;
|
|
5
8
|
return {
|
|
6
9
|
c() {
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
l = s("defs"), r = s("pattern"), p = s("rect"), e = s("pattern"), a = s("rect"), w = B(), f = s("path"), _ = B(), h = s("path"), k = B(), u = s("path"), t(p, "x", "0"), t(p, "y", "0"), t(p, "width", "6"), t(p, "height", "50"), t(p, "fill", "none"), t(p, "stroke", "#4B4B57"), t(p, "stroke-width", "0.5"), t(r, "id", "room-material-pattern-1"), t(r, "x", "0"), t(r, "y", "0"), t(r, "width", "12"), t(r, "height", "50"), t(r, "patternUnits", "userSpaceOnUse"), t(r, "patternTransform", "scale(50 50)"), t(a, "x", "0"), t(a, "y", "0"), t(a, "width", "6"), t(a, "height", "50"), t(a, "fill", "none"), t(a, "stroke", "#4B4B57"), t(a, "stroke-width", "0.5"), t(e, "id", "room-material-pattern-2"), t(e, "x", "6"), t(e, "y", "25"), t(e, "width", "12"), t(e, "height", "50"), t(e, "patternUnits", "userSpaceOnUse"), t(e, "patternTransform", "scale(50 50)"), t(
|
|
11
|
+
f,
|
|
9
12
|
"d",
|
|
10
13
|
/*d*/
|
|
11
14
|
o[0]
|
|
12
|
-
), t(
|
|
15
|
+
), t(f, "fill", "#43434D"), t(
|
|
13
16
|
h,
|
|
14
17
|
"d",
|
|
15
18
|
/*d*/
|
|
@@ -21,51 +24,51 @@ function O(o) {
|
|
|
21
24
|
o[0]
|
|
22
25
|
), t(u, "fill", "url(#room-material-pattern-2)");
|
|
23
26
|
},
|
|
24
|
-
m(
|
|
25
|
-
|
|
27
|
+
m(i, n) {
|
|
28
|
+
m(i, l, n), c(l, r), c(r, p), c(l, e), c(e, a), m(i, w, n), m(i, f, n), m(i, _, n), m(i, h, n), m(i, k, n), m(i, u, n);
|
|
26
29
|
},
|
|
27
|
-
p(
|
|
28
|
-
|
|
30
|
+
p(i, [n]) {
|
|
31
|
+
n & /*d*/
|
|
29
32
|
1 && t(
|
|
30
|
-
|
|
33
|
+
f,
|
|
31
34
|
"d",
|
|
32
35
|
/*d*/
|
|
33
|
-
|
|
34
|
-
),
|
|
36
|
+
i[0]
|
|
37
|
+
), n & /*d*/
|
|
35
38
|
1 && t(
|
|
36
39
|
h,
|
|
37
40
|
"d",
|
|
38
41
|
/*d*/
|
|
39
|
-
|
|
40
|
-
),
|
|
42
|
+
i[0]
|
|
43
|
+
), n & /*d*/
|
|
41
44
|
1 && t(
|
|
42
45
|
u,
|
|
43
46
|
"d",
|
|
44
47
|
/*d*/
|
|
45
|
-
|
|
48
|
+
i[0]
|
|
46
49
|
);
|
|
47
50
|
},
|
|
48
|
-
i:
|
|
49
|
-
o:
|
|
50
|
-
d(
|
|
51
|
-
|
|
51
|
+
i: U,
|
|
52
|
+
o: U,
|
|
53
|
+
d(i) {
|
|
54
|
+
i && (d(l), d(w), d(f), d(_), d(h), d(k), d(u));
|
|
52
55
|
}
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
|
-
function T(o,
|
|
56
|
-
let p, { path:
|
|
57
|
-
return o.$$set = (
|
|
58
|
-
"path" in
|
|
58
|
+
function T(o, l, r) {
|
|
59
|
+
let p, { path: e } = l;
|
|
60
|
+
return o.$$set = (a) => {
|
|
61
|
+
"path" in a && r(1, e = a.path);
|
|
59
62
|
}, o.$$.update = () => {
|
|
60
63
|
o.$$.dirty & /*path*/
|
|
61
|
-
2 &&
|
|
62
|
-
}, [p,
|
|
64
|
+
2 && r(0, p = D(e, { needZ: !0 }));
|
|
65
|
+
}, [p, e];
|
|
63
66
|
}
|
|
64
|
-
class
|
|
65
|
-
constructor(
|
|
66
|
-
super(),
|
|
67
|
+
class Z extends S {
|
|
68
|
+
constructor(l) {
|
|
69
|
+
super(), x(this, l, T, O, y, { path: 1 });
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
export {
|
|
70
|
-
|
|
73
|
+
Z as RoomMaterial_2
|
|
71
74
|
};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { safe_not_equal as O, noop as T } from "../../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
+
import { append_styles as P, element as h, space as D, attr as d, toggle_class as R, set_style as j, insert as z, append as c, detach as W, destroy_each as S, text as X, set_data as Y } from "../../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { ensure_array_like as x, update_keyed_each as A, destroy_block as B } from "../../../vendor/svelte/src/runtime/internal/each.js";
|
|
4
|
+
import { SvelteComponent as E, init as F } from "../../../vendor/svelte/src/runtime/internal/Component.js";
|
|
5
|
+
import "../../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
6
|
+
function G(i) {
|
|
7
|
+
P(i, "svelte-djlmk4", ".floorplan-plugin__rule-labels.svelte-djlmk4.svelte-djlmk4{position:absolute;display:flex}.floorplan-plugin__rule-labels--top.svelte-djlmk4.svelte-djlmk4{left:0;top:-1.25rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4.svelte-djlmk4{left:0;bottom:-1.25rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4.svelte-djlmk4{top:0;left:-1.25rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4.svelte-djlmk4{top:0;right:-1.25rem}.floorplan-plugin__rule-line.svelte-djlmk4.svelte-djlmk4{background:#fff;opacity:0.05;width:100%;height:100%}.floorplan-plugin__rule-scale-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute;width:0.3125rem;height:100%;left:50%;top:0;transform:translateX(-50%)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale-wrapper.svelte-djlmk4{width:100%;height:0.3125rem;top:50%;left:0;transform:translateY(-50%)}.floorplan-plugin__rule-scale.svelte-djlmk4.svelte-djlmk4{position:absolute;background:#fff;opacity:0.05;width:100%;height:0.0625rem}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-scale.svelte-djlmk4{width:0.0625rem;height:100%}.floorplan-plugin__rule-text-wrapper.svelte-djlmk4.svelte-djlmk4{position:absolute}.floorplan-plugin__rule-labels--top.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;top:0.625rem}.floorplan-plugin__rule-labels--bottom.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:100%;height:0;bottom:0.625rem}.floorplan-plugin__rule-labels--left.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;left:0.625rem}.floorplan-plugin__rule-labels--right.svelte-djlmk4 .floorplan-plugin__rule-text-wrapper.svelte-djlmk4{width:0;height:100%;right:0.625rem}.floorplan-plugin__rule-text-item.svelte-djlmk4.svelte-djlmk4{width:0;height:0;position:absolute;transform:rotate(90deg)}.floorplan-plugin__rule-labels.is-row.svelte-djlmk4 .floorplan-plugin__rule-text-item.svelte-djlmk4{transform:rotate(0)}.floorplan-plugin__rule-text.svelte-djlmk4.svelte-djlmk4{width:-moz-max-content;width:max-content;transform:translate(-50%, -50%);font-size:0.625rem;color:#fff;opacity:0.2}");
|
|
4
8
|
}
|
|
5
|
-
function
|
|
9
|
+
function C(i, e, n) {
|
|
6
10
|
const s = i.slice();
|
|
7
11
|
return s[11] = e[n], s[13] = n, s;
|
|
8
12
|
}
|
|
9
|
-
function
|
|
13
|
+
function H(i, e, n) {
|
|
10
14
|
const s = i.slice();
|
|
11
15
|
return s[14] = e[n], s;
|
|
12
16
|
}
|
|
13
|
-
function
|
|
17
|
+
function I(i) {
|
|
14
18
|
let e;
|
|
15
19
|
return {
|
|
16
20
|
c() {
|
|
@@ -27,15 +31,15 @@ function H(i) {
|
|
|
27
31
|
);
|
|
28
32
|
},
|
|
29
33
|
m(n, s) {
|
|
30
|
-
|
|
34
|
+
z(n, e, s);
|
|
31
35
|
},
|
|
32
36
|
p: T,
|
|
33
37
|
d(n) {
|
|
34
|
-
n &&
|
|
38
|
+
n && W(e);
|
|
35
39
|
}
|
|
36
40
|
};
|
|
37
41
|
}
|
|
38
|
-
function
|
|
42
|
+
function L(i, e) {
|
|
39
43
|
let n, s, p = (
|
|
40
44
|
/*getRuleDistanceText*/
|
|
41
45
|
e[1](
|
|
@@ -47,7 +51,7 @@ function I(i, e) {
|
|
|
47
51
|
key: i,
|
|
48
52
|
first: null,
|
|
49
53
|
c() {
|
|
50
|
-
n = h("div"), s = h("div"), u =
|
|
54
|
+
n = h("div"), s = h("div"), u = X(p), m = D(), d(s, "class", "floorplan-plugin__rule-text svelte-djlmk4"), R(
|
|
51
55
|
s,
|
|
52
56
|
"is-row",
|
|
53
57
|
/*isRow*/
|
|
@@ -65,7 +69,7 @@ function I(i, e) {
|
|
|
65
69
|
), this.first = n;
|
|
66
70
|
},
|
|
67
71
|
m(r, _) {
|
|
68
|
-
|
|
72
|
+
z(r, n, _), c(n, s), c(s, u), c(n, m);
|
|
69
73
|
},
|
|
70
74
|
p(r, _) {
|
|
71
75
|
e = r, _ & /*getRuleDistanceText*/
|
|
@@ -73,21 +77,21 @@ function I(i, e) {
|
|
|
73
77
|
e[1](
|
|
74
78
|
/*textItem*/
|
|
75
79
|
e[11].distance
|
|
76
|
-
) + "") &&
|
|
80
|
+
) + "") && Y(u, p);
|
|
77
81
|
},
|
|
78
82
|
d(r) {
|
|
79
|
-
r &&
|
|
83
|
+
r && W(n);
|
|
80
84
|
}
|
|
81
85
|
};
|
|
82
86
|
}
|
|
83
|
-
function
|
|
84
|
-
let e, n, s, p, u, m, r = [], _ = /* @__PURE__ */ new Map(), g, f = (
|
|
87
|
+
function J(i) {
|
|
88
|
+
let e, n, s, p, u, m, r = [], _ = /* @__PURE__ */ new Map(), g, f = x(
|
|
85
89
|
/*rulerLabels*/
|
|
86
90
|
i[3]
|
|
87
91
|
), a = [];
|
|
88
92
|
for (let l = 0; l < f.length; l += 1)
|
|
89
|
-
a[l] = H(
|
|
90
|
-
let v = (
|
|
93
|
+
a[l] = I(H(i, f, l));
|
|
94
|
+
let v = x(
|
|
91
95
|
/*rulerTexts*/
|
|
92
96
|
i[4]
|
|
93
97
|
);
|
|
@@ -96,24 +100,24 @@ function G(i) {
|
|
|
96
100
|
l[13]
|
|
97
101
|
);
|
|
98
102
|
for (let l = 0; l < v.length; l += 1) {
|
|
99
|
-
let o =
|
|
100
|
-
_.set(t, r[l] =
|
|
103
|
+
let o = C(i, v, l), t = w(o);
|
|
104
|
+
_.set(t, r[l] = L(t, o));
|
|
101
105
|
}
|
|
102
106
|
return {
|
|
103
107
|
c() {
|
|
104
|
-
e = h("div"), n = h("div"), s =
|
|
108
|
+
e = h("div"), n = h("div"), s = D(), p = h("div");
|
|
105
109
|
for (let l = 0; l < a.length; l += 1)
|
|
106
110
|
a[l].c();
|
|
107
|
-
u =
|
|
111
|
+
u = D(), m = h("div");
|
|
108
112
|
for (let l = 0; l < r.length; l += 1)
|
|
109
113
|
r[l].c();
|
|
110
|
-
d(n, "class", "floorplan-plugin__rule-line svelte-djlmk4"), d(p, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"),
|
|
114
|
+
d(n, "class", "floorplan-plugin__rule-line svelte-djlmk4"), d(p, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), R(
|
|
111
115
|
p,
|
|
112
116
|
"is-row",
|
|
113
117
|
/*isRow*/
|
|
114
118
|
i[2]
|
|
115
119
|
), d(m, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), d(e, "class", g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/
|
|
116
|
-
i[0] + " svelte-djlmk4"),
|
|
120
|
+
i[0] + " svelte-djlmk4"), R(
|
|
117
121
|
e,
|
|
118
122
|
"is-row",
|
|
119
123
|
/*isRow*/
|
|
@@ -127,7 +131,7 @@ function G(i) {
|
|
|
127
131
|
i[2] ? 1 / 16 + "rem" : "100%");
|
|
128
132
|
},
|
|
129
133
|
m(l, o) {
|
|
130
|
-
|
|
134
|
+
z(l, e, o), c(e, n), c(e, s), c(e, p);
|
|
131
135
|
for (let t = 0; t < a.length; t += 1)
|
|
132
136
|
a[t] && a[t].m(p, null);
|
|
133
137
|
c(e, u), c(e, m);
|
|
@@ -137,23 +141,27 @@ function G(i) {
|
|
|
137
141
|
p(l, [o]) {
|
|
138
142
|
if (o & /*rulerLabels*/
|
|
139
143
|
8) {
|
|
140
|
-
f =
|
|
141
|
-
|
|
144
|
+
f = x(
|
|
145
|
+
/*rulerLabels*/
|
|
146
|
+
l[3]
|
|
147
|
+
);
|
|
142
148
|
let t;
|
|
143
149
|
for (t = 0; t < f.length; t += 1) {
|
|
144
|
-
const y =
|
|
145
|
-
a[t] ? a[t].p(y, o) : (a[t] =
|
|
150
|
+
const y = H(l, f, t);
|
|
151
|
+
a[t] ? a[t].p(y, o) : (a[t] = I(y), a[t].c(), a[t].m(p, null));
|
|
146
152
|
}
|
|
147
153
|
for (; t < a.length; t += 1)
|
|
148
154
|
a[t].d(1);
|
|
149
155
|
a.length = f.length;
|
|
150
156
|
}
|
|
151
157
|
o & /*rulerTexts, isRow, getRuleDistanceText*/
|
|
152
|
-
22 && (v =
|
|
153
|
-
|
|
158
|
+
22 && (v = x(
|
|
159
|
+
/*rulerTexts*/
|
|
160
|
+
l[4]
|
|
161
|
+
), r = A(r, o, w, 1, l, v, _, m, B, L, null, C)), o & /*type*/
|
|
154
162
|
1 && g !== (g = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + /*type*/
|
|
155
163
|
l[0] + " svelte-djlmk4") && d(e, "class", g), o & /*type, isRow*/
|
|
156
|
-
5 &&
|
|
164
|
+
5 && R(
|
|
157
165
|
e,
|
|
158
166
|
"is-row",
|
|
159
167
|
/*isRow*/
|
|
@@ -163,14 +171,14 @@ function G(i) {
|
|
|
163
171
|
i: T,
|
|
164
172
|
o: T,
|
|
165
173
|
d(l) {
|
|
166
|
-
l &&
|
|
174
|
+
l && W(e), S(a, l);
|
|
167
175
|
for (let o = 0; o < r.length; o += 1)
|
|
168
176
|
r[o].d();
|
|
169
177
|
}
|
|
170
178
|
};
|
|
171
179
|
}
|
|
172
180
|
const k = 1e3, b = 180;
|
|
173
|
-
function
|
|
181
|
+
function K(i, e, n) {
|
|
174
182
|
let { type: s } = e, { data: p } = e, { bounding: u } = e, { getRuleDistanceText: m } = e;
|
|
175
183
|
const r = s === "top" || s === "bottom", _ = u.max.x - u.min.x - (k - b) * 2, g = u.max.y - u.min.y - (k - b) * 2, f = p.map(([l, o]) => r ? [l.x, o.x] : [l.y, o.y]).flat().sort().filter((l, o, t) => o === 0 ? !0 : l !== t[o - 1]), a = f.map((l) => {
|
|
176
184
|
const o = r ? (l - u.min.x - k + b) / _ : 0, t = r ? 0 : (l - u.min.y - k + b) / g;
|
|
@@ -178,31 +186,31 @@ function J(i, e, n) {
|
|
|
178
186
|
});
|
|
179
187
|
a.unshift({ left: 0, bottom: 0 }), a.push(r ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
180
188
|
const v = f[f.length - 1] - f[0], w = f.map((l, o, t) => {
|
|
181
|
-
const y = o === 0 ? 0 : l - t[o - 1],
|
|
182
|
-
return { left:
|
|
189
|
+
const y = o === 0 ? 0 : l - t[o - 1], q = o === 0 ? 0 : (l + t[o - 1]) / 2, M = r ? (q - u.min.x - k + b) / _ : 0, N = r ? 0 : (q - u.min.y - k + b) / g;
|
|
190
|
+
return { left: M, bottom: N, distance: y };
|
|
183
191
|
}).filter(({ distance: l }) => l / v > 0.1);
|
|
184
192
|
return i.$$set = (l) => {
|
|
185
193
|
"type" in l && n(0, s = l.type), "data" in l && n(5, p = l.data), "bounding" in l && n(6, u = l.bounding), "getRuleDistanceText" in l && n(1, m = l.getRuleDistanceText);
|
|
186
194
|
}, [s, m, r, a, w, p, u];
|
|
187
195
|
}
|
|
188
|
-
class
|
|
196
|
+
class ll extends E {
|
|
189
197
|
constructor(e) {
|
|
190
|
-
super(),
|
|
198
|
+
super(), F(
|
|
191
199
|
this,
|
|
192
200
|
e,
|
|
201
|
+
K,
|
|
193
202
|
J,
|
|
194
|
-
|
|
195
|
-
P,
|
|
203
|
+
O,
|
|
196
204
|
{
|
|
197
205
|
type: 0,
|
|
198
206
|
data: 5,
|
|
199
207
|
bounding: 6,
|
|
200
208
|
getRuleDistanceText: 1
|
|
201
209
|
},
|
|
202
|
-
|
|
210
|
+
G
|
|
203
211
|
);
|
|
204
212
|
}
|
|
205
213
|
}
|
|
206
214
|
export {
|
|
207
|
-
|
|
215
|
+
ll as RuleItem
|
|
208
216
|
};
|