@realsee/dnalogel 2.0.0-alpha.15 → 2.0.0-alpha.18
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 +10 -0
- package/dist/ModelItemLabelPlugin/index.js +27 -23
- package/dist/ModelItemLabelPlugin/typings.d.ts +2 -1
- package/dist/ModelRoomLabelPlugin/index.js +7 -6
- package/dist/PanoMeasurePlugin/index.js +1 -21
- package/dist/PanoSpatialTagPlugin/index.js +11 -11
- package/dist/floorplan/ModelFloorplanPlugin/index.js +37 -38
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +23 -24
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +37 -38
- package/dist/index.es.js +94 -110
- package/dist/index.js +94 -110
- package/dist/index.umd.js +94 -110
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/modules.html +12 -12
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +17 -15
- package/libs/ModelItemLabelPlugin/index.js +1 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +2 -1
- package/libs/ModelItemLabelPlugin/typings.js +1 -0
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/package.json +3 -1
package/dist/index.es.js
CHANGED
|
@@ -13,21 +13,6 @@ import TWEEN__default from '@tweenjs/tween.js';
|
|
|
13
13
|
import { writable } from 'svelte/store';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
|
|
16
|
-
function _mergeNamespaces(n, m) {
|
|
17
|
-
m.forEach(function (e) {
|
|
18
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
19
|
-
if (k !== 'default' && !(k in n)) {
|
|
20
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return e[k]; }
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
return Object.freeze(n);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
16
|
/**
|
|
32
17
|
* Five 模型插件
|
|
33
18
|
* @template ExportType 导出方法
|
|
@@ -478,7 +463,7 @@ const ROOM_LABEL_BG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAY
|
|
|
478
463
|
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.47.0 */
|
|
479
464
|
|
|
480
465
|
function add_css$l(target) {
|
|
481
|
-
append_styles(target, "svelte-
|
|
466
|
+
append_styles(target, "svelte-1ak9fbs", ".room-label-item.svelte-1ak9fbs{position:absolute;font-size:0.41667rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.room-label-item__text.svelte-1ak9fbs{position:absolute;left:0;top:-3.33333rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.04167rem;min-width:1.66667rem;padding:0 0.3125rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-1ak9fbs{position:absolute;top:-2.29167rem;height:2.5rem;width:1px;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-1ak9fbs{font-size:0.52083rem}");
|
|
482
467
|
}
|
|
483
468
|
|
|
484
469
|
function create_fragment$q(ctx) {
|
|
@@ -498,11 +483,11 @@ function create_fragment$q(ctx) {
|
|
|
498
483
|
t0 = text(t0_value);
|
|
499
484
|
t1 = space();
|
|
500
485
|
div0 = element("div");
|
|
501
|
-
attr(span, "class", "room-label-item__text svelte-
|
|
486
|
+
attr(span, "class", "room-label-item__text svelte-1ak9fbs");
|
|
502
487
|
set_style(span, "background-image", "url(" + ROOM_LABEL_BG + ")");
|
|
503
488
|
toggle_class(span, "wide", /*roomLabel*/ ctx[0].name.length > 3);
|
|
504
|
-
attr(div0, "class", "room-label-item__bar svelte-
|
|
505
|
-
attr(div1, "class", "room-label-item svelte-
|
|
489
|
+
attr(div0, "class", "room-label-item__bar svelte-1ak9fbs");
|
|
490
|
+
attr(div1, "class", "room-label-item svelte-1ak9fbs");
|
|
506
491
|
set_style(div1, "z-index", /*roomLabel*/ ctx[0].zIndex, false);
|
|
507
492
|
set_style(div1, "transform", /*roomLabel*/ ctx[0].transform, false);
|
|
508
493
|
set_style(div1, "opacity", /*roomLabel*/ ctx[0].visible ? 1 : 0, false);
|
|
@@ -578,7 +563,7 @@ class RoomLabelItem extends SvelteComponent {
|
|
|
578
563
|
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.47.0 */
|
|
579
564
|
|
|
580
565
|
function add_css$k(target) {
|
|
581
|
-
append_styles(target, "svelte-
|
|
566
|
+
append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
582
567
|
}
|
|
583
568
|
|
|
584
569
|
function get_each_context$8(ctx, list, i) {
|
|
@@ -659,7 +644,7 @@ function create_fragment$p(ctx) {
|
|
|
659
644
|
each_blocks[i].c();
|
|
660
645
|
}
|
|
661
646
|
|
|
662
|
-
attr(div, "class", "room-labels-container svelte-
|
|
647
|
+
attr(div, "class", "room-labels-container svelte-9eg4zi");
|
|
663
648
|
add_render_callback(() => /*div_elementresize_handler*/ ctx[4].call(div));
|
|
664
649
|
},
|
|
665
650
|
m(target, anchor) {
|
|
@@ -892,6 +877,7 @@ class ModelRoomLabelController {
|
|
|
892
877
|
this.container.style.pointerEvents = 'none';
|
|
893
878
|
this.container.style.left = '0';
|
|
894
879
|
this.container.style.top = '0';
|
|
880
|
+
this.container.style.zIndex = '5';
|
|
895
881
|
// five listener
|
|
896
882
|
this.five.once('dispose', () => this.dispose());
|
|
897
883
|
this.five.on('modeChange', this.onFiveModeChange);
|
|
@@ -1226,7 +1212,7 @@ function rad2Deg$1(rad) {
|
|
|
1226
1212
|
/* src/floorplan/ModelFloorplanPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
|
|
1227
1213
|
|
|
1228
1214
|
function add_css$j(target) {
|
|
1229
|
-
append_styles(target, "svelte-
|
|
1215
|
+
append_styles(target, "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%}");
|
|
1230
1216
|
}
|
|
1231
1217
|
|
|
1232
1218
|
function create_fragment$o(ctx) {
|
|
@@ -1237,7 +1223,7 @@ function create_fragment$o(ctx) {
|
|
|
1237
1223
|
c() {
|
|
1238
1224
|
div1 = element("div");
|
|
1239
1225
|
div0 = element("div");
|
|
1240
|
-
attr(div0, "class", "floorplan__camera-rotate svelte-
|
|
1226
|
+
attr(div0, "class", "floorplan__camera-rotate svelte-17cl35n");
|
|
1241
1227
|
set_style(div0, "background-image", `url(${/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE})`);
|
|
1242
1228
|
set_style(div0, "width", /*domSizeStyle*/ ctx[4], false);
|
|
1243
1229
|
set_style(div0, "height", /*domSizeStyle*/ ctx[4], false);
|
|
@@ -1245,7 +1231,7 @@ function create_fragment$o(ctx) {
|
|
|
1245
1231
|
set_style(div0, "top", '-' + /*domSizeStyle*/ ctx[4], false);
|
|
1246
1232
|
set_style(div0, "transform", `rotate(${/*rotate*/ ctx[3]}deg)`, false);
|
|
1247
1233
|
set_style(div0, "transform-origin", `${/*domSizeStyle*/ ctx[4]} ${/*domSizeStyle*/ ctx[4]}`, false);
|
|
1248
|
-
attr(div1, "class", "floorplan__camera-position svelte-
|
|
1234
|
+
attr(div1, "class", "floorplan__camera-position svelte-17cl35n");
|
|
1249
1235
|
set_style(div1, "left", /*positionLeft*/ ctx[1], false);
|
|
1250
1236
|
set_style(div1, "top", /*positionTop*/ ctx[2], false);
|
|
1251
1237
|
},
|
|
@@ -1331,7 +1317,7 @@ const COMPASS_IMAGE = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArUAAAB7CAM
|
|
|
1331
1317
|
/* src/floorplan/ModelFloorplanPlugin/Components/Compass.svelte generated by Svelte v3.47.0 */
|
|
1332
1318
|
|
|
1333
1319
|
function add_css$i(target) {
|
|
1334
|
-
append_styles(target, "svelte-
|
|
1320
|
+
append_styles(target, "svelte-1q44ru9", ".floorplan-plugin__compass.svelte-1q44ru9{position:absolute;left:50%;top:-2.39583rem;width:12.03125rem;height:2.13542rem;will-change:opacity;transform-origin:center 9.58333rem}.floorplan-plugin__compass-image.svelte-1q44ru9{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-1q44ru9{position:absolute;left:50%;top:0.78125rem;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:0.52083rem;color:#fff}");
|
|
1335
1321
|
}
|
|
1336
1322
|
|
|
1337
1323
|
// (13:0) {#if northRad}
|
|
@@ -1349,10 +1335,10 @@ function create_if_block$8(ctx) {
|
|
|
1349
1335
|
t0 = space();
|
|
1350
1336
|
span = element("span");
|
|
1351
1337
|
t1 = text(/*northDesc*/ ctx[0]);
|
|
1352
|
-
attr(div0, "class", "floorplan-plugin__compass-image svelte-
|
|
1338
|
+
attr(div0, "class", "floorplan-plugin__compass-image svelte-1q44ru9");
|
|
1353
1339
|
set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
|
|
1354
|
-
attr(span, "class", "floorplan-plugin__compass-text svelte-
|
|
1355
|
-
attr(div1, "class", "floorplan-plugin__compass svelte-
|
|
1340
|
+
attr(span, "class", "floorplan-plugin__compass-text svelte-1q44ru9");
|
|
1341
|
+
attr(div1, "class", "floorplan-plugin__compass svelte-1q44ru9");
|
|
1356
1342
|
set_style(div1, "transform", /*compassTransformStyle*/ ctx[2], false);
|
|
1357
1343
|
},
|
|
1358
1344
|
m(target, anchor) {
|
|
@@ -1430,7 +1416,7 @@ class Compass extends SvelteComponent {
|
|
|
1430
1416
|
/* src/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.47.0 */
|
|
1431
1417
|
|
|
1432
1418
|
function add_css$h(target) {
|
|
1433
|
-
append_styles(target, "svelte-
|
|
1419
|
+
append_styles(target, "svelte-i2nwuk", ".floorplan-plugin__room-label-item.svelte-i2nwuk{position:absolute;display:flex;flex-flow:column;align-items:center;line-height:0.78125rem;color:#fff;transform:translate(-50%, -50%);white-space:nowrap}.floorplan-plugin__room-size.svelte-i2nwuk{opacity:0.45}");
|
|
1434
1420
|
}
|
|
1435
1421
|
|
|
1436
1422
|
// (22:30)
|
|
@@ -1475,7 +1461,7 @@ function create_if_block$7(ctx) {
|
|
|
1475
1461
|
span1 = element("span");
|
|
1476
1462
|
span1.textContent = `${/*roomSizeDes*/ ctx[3]}`;
|
|
1477
1463
|
attr(span0, "class", "floorplan-plugin__room-name");
|
|
1478
|
-
attr(span1, "class", "floorplan-plugin__room-size svelte-
|
|
1464
|
+
attr(span1, "class", "floorplan-plugin__room-size svelte-i2nwuk");
|
|
1479
1465
|
},
|
|
1480
1466
|
m(target, anchor) {
|
|
1481
1467
|
insert(target, span0, anchor);
|
|
@@ -1509,7 +1495,7 @@ function create_fragment$m(ctx) {
|
|
|
1509
1495
|
c() {
|
|
1510
1496
|
div = element("div");
|
|
1511
1497
|
if (if_block) if_block.c();
|
|
1512
|
-
attr(div, "class", "floorplan-plugin__room-label-item svelte-
|
|
1498
|
+
attr(div, "class", "floorplan-plugin__room-label-item svelte-i2nwuk");
|
|
1513
1499
|
set_style(div, "left", /*left*/ ctx[4], false);
|
|
1514
1500
|
set_style(div, "top", /*top*/ ctx[5], false);
|
|
1515
1501
|
set_style(div, "font-size", /*fontSize*/ ctx[6], false);
|
|
@@ -1584,7 +1570,7 @@ class RoomLabel extends SvelteComponent {
|
|
|
1584
1570
|
/* src/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.47.0 */
|
|
1585
1571
|
|
|
1586
1572
|
function add_css$g(target) {
|
|
1587
|
-
append_styles(target, "svelte-
|
|
1573
|
+
append_styles(target, "svelte-vkeyjz", ".floorplan-plugin__room-labels.svelte-vkeyjz{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20}");
|
|
1588
1574
|
}
|
|
1589
1575
|
|
|
1590
1576
|
function get_each_context$7(ctx, list, i) {
|
|
@@ -1616,7 +1602,7 @@ function create_if_block$6(ctx) {
|
|
|
1616
1602
|
each_blocks[i].c();
|
|
1617
1603
|
}
|
|
1618
1604
|
|
|
1619
|
-
attr(div, "class", "floorplan-plugin__room-labels svelte-
|
|
1605
|
+
attr(div, "class", "floorplan-plugin__room-labels svelte-vkeyjz");
|
|
1620
1606
|
},
|
|
1621
1607
|
m(target, anchor) {
|
|
1622
1608
|
insert(target, div, anchor);
|
|
@@ -1836,7 +1822,7 @@ function notNil(value) {
|
|
|
1836
1822
|
/* src/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.47.0 */
|
|
1837
1823
|
|
|
1838
1824
|
function add_css$f(target) {
|
|
1839
|
-
append_styles(target, "svelte-
|
|
1825
|
+
append_styles(target, "svelte-1d5a0k4", ".floorplan-plugin__rule-labels.svelte-1d5a0k4{position:absolute;height:0.26042rem;display:flex;align-items:center}.floorplan-plugin__rule-labels-top.svelte-1d5a0k4{left:0;top:0}.floorplan-plugin__rule-labels-bottom.svelte-1d5a0k4{left:0;bottom:0}.floorplan-plugin__rule-labels-left.svelte-1d5a0k4{bottom:0;left:0}.floorplan-plugin__rule-labels-right.svelte-1d5a0k4{bottom:0;right:0}.floorplan-plugin__rule-line.svelte-1d5a0k4{background:#fff;opacity:0.05;width:100%;height:1px}.floorplan-plugin__rule-scale.svelte-1d5a0k4{position:absolute;background:#fff;opacity:0.05;transform-origin:center;width:1px;height:0.26042rem}.floorplan-plugin__text-wrapper.svelte-1d5a0k4{width:0;height:0;position:absolute}.floorplan-plugin__text-wrapper.floorplan-plugin__text-wrapper--is-left-or-top.svelte-1d5a0k4{top:0.52083rem}.floorplan-plugin__text-wrapper.floorplan-plugin__text-wrapper-is-right-or-bottom.svelte-1d5a0k4{bottom:0.52083rem}.floorplan-plugin__rule-text.svelte-1d5a0k4{position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;display:block;transform:translate(-50%, -50%) rotate(180deg);font-size:0.52083rem;color:#fff;opacity:0.2}.floorplan-plugin__rule-text.is-row.svelte-1d5a0k4{transform:translate(-50%, -50%)}");
|
|
1840
1826
|
}
|
|
1841
1827
|
|
|
1842
1828
|
function get_each_context$6(ctx, list, i) {
|
|
@@ -1863,7 +1849,7 @@ function create_each_block_1(key_1, ctx) {
|
|
|
1863
1849
|
first: null,
|
|
1864
1850
|
c() {
|
|
1865
1851
|
div = element("div");
|
|
1866
|
-
attr(div, "class", "floorplan-plugin__rule-scale svelte-
|
|
1852
|
+
attr(div, "class", "floorplan-plugin__rule-scale svelte-1d5a0k4");
|
|
1867
1853
|
set_style(div, "left", style_left, false);
|
|
1868
1854
|
this.first = div;
|
|
1869
1855
|
},
|
|
@@ -1896,9 +1882,9 @@ function create_each_block$6(key_1, ctx) {
|
|
|
1896
1882
|
span = element("span");
|
|
1897
1883
|
t0 = text(t0_value);
|
|
1898
1884
|
t1 = space();
|
|
1899
|
-
attr(span, "class", "floorplan-plugin__rule-text svelte-
|
|
1885
|
+
attr(span, "class", "floorplan-plugin__rule-text svelte-1d5a0k4");
|
|
1900
1886
|
toggle_class(span, "is-row", /*isRow*/ ctx[5]);
|
|
1901
|
-
attr(div, "class", "floorplan-plugin__text-wrapper svelte-
|
|
1887
|
+
attr(div, "class", "floorplan-plugin__text-wrapper svelte-1d5a0k4");
|
|
1902
1888
|
toggle_class(div, "floorplan-plugin__text-wrapper--is-left-or-top", /*isLeft*/ ctx[3] || /*isTop*/ ctx[1]);
|
|
1903
1889
|
toggle_class(div, "floorplan-plugin__text-wrapper-is-right-or-bottom", /*isRight*/ ctx[4] || /*isBottom*/ ctx[2]);
|
|
1904
1890
|
set_style(div, "left", style_left, false);
|
|
@@ -1963,8 +1949,8 @@ function create_fragment$k(ctx) {
|
|
|
1963
1949
|
each_blocks[i].c();
|
|
1964
1950
|
}
|
|
1965
1951
|
|
|
1966
|
-
attr(div0, "class", "floorplan-plugin__rule-line svelte-
|
|
1967
|
-
attr(div1, "class", div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-
|
|
1952
|
+
attr(div0, "class", "floorplan-plugin__rule-line svelte-1d5a0k4");
|
|
1953
|
+
attr(div1, "class", div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-1d5a0k4");
|
|
1968
1954
|
set_style(div1, "width", /*width*/ ctx[9], false);
|
|
1969
1955
|
set_style(div1, "transform", /*transform*/ ctx[7], false);
|
|
1970
1956
|
set_style(div1, "transform-origin", /*transformOrigin*/ ctx[8], false);
|
|
@@ -1995,7 +1981,7 @@ function create_fragment$k(ctx) {
|
|
|
1995
1981
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key_1, 1, ctx, each_value, each1_lookup, div1, destroy_block, create_each_block$6, null, get_each_context$6);
|
|
1996
1982
|
}
|
|
1997
1983
|
|
|
1998
|
-
if (dirty & /*type*/ 1 && div1_class_value !== (div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-
|
|
1984
|
+
if (dirty & /*type*/ 1 && div1_class_value !== (div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-1d5a0k4")) {
|
|
1999
1985
|
attr(div1, "class", div1_class_value);
|
|
2000
1986
|
}
|
|
2001
1987
|
},
|
|
@@ -2311,7 +2297,7 @@ class RuleLabels extends SvelteComponent {
|
|
|
2311
2297
|
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.47.0 */
|
|
2312
2298
|
|
|
2313
2299
|
function add_css$e(target) {
|
|
2314
|
-
append_styles(target, "svelte-
|
|
2300
|
+
append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
2315
2301
|
}
|
|
2316
2302
|
|
|
2317
2303
|
function create_fragment$i(ctx) {
|
|
@@ -2323,7 +2309,7 @@ function create_fragment$i(ctx) {
|
|
|
2323
2309
|
img = element("img");
|
|
2324
2310
|
if (!src_url_equal(img.src, img_src_value = /*url*/ ctx[0])) attr(img, "src", img_src_value);
|
|
2325
2311
|
attr(img, "alt", "floorplan iamge");
|
|
2326
|
-
attr(img, "class", "svelte-
|
|
2312
|
+
attr(img, "class", "svelte-1gfoniz");
|
|
2327
2313
|
},
|
|
2328
2314
|
m(target, anchor) {
|
|
2329
2315
|
insert(target, img, anchor);
|
|
@@ -2361,7 +2347,7 @@ class Normalmage extends SvelteComponent {
|
|
|
2361
2347
|
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.47.0 */
|
|
2362
2348
|
|
|
2363
2349
|
function add_css$d(target) {
|
|
2364
|
-
append_styles(target, "svelte-
|
|
2350
|
+
append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
2365
2351
|
}
|
|
2366
2352
|
|
|
2367
2353
|
function create_fragment$h(ctx) {
|
|
@@ -2378,7 +2364,7 @@ function create_fragment$h(ctx) {
|
|
|
2378
2364
|
html_tag_1 = new HtmlTag();
|
|
2379
2365
|
html_tag.a = t;
|
|
2380
2366
|
html_tag_1.a = null;
|
|
2381
|
-
attr(div, "class", "floorplan-plugin__base-image svelte-
|
|
2367
|
+
attr(div, "class", "floorplan-plugin__base-image svelte-ub47ya");
|
|
2382
2368
|
},
|
|
2383
2369
|
m(target, anchor) {
|
|
2384
2370
|
insert(target, div, anchor);
|
|
@@ -2408,8 +2394,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
2408
2394
|
}
|
|
2409
2395
|
svg [type='lineItemGroup'] g g g g {
|
|
2410
2396
|
stroke: #ffffff;
|
|
2411
|
-
}
|
|
2412
|
-
</style>
|
|
2397
|
+
}</style>
|
|
2413
2398
|
`;
|
|
2414
2399
|
|
|
2415
2400
|
$$self.$$set = $$props => {
|
|
@@ -2429,7 +2414,7 @@ class SvgImage extends SvelteComponent {
|
|
|
2429
2414
|
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.47.0 */
|
|
2430
2415
|
|
|
2431
2416
|
function add_css$c(target) {
|
|
2432
|
-
append_styles(target, "svelte-
|
|
2417
|
+
append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
2433
2418
|
}
|
|
2434
2419
|
|
|
2435
2420
|
// (13:22)
|
|
@@ -2525,7 +2510,7 @@ function create_fragment$g(ctx) {
|
|
|
2525
2510
|
c() {
|
|
2526
2511
|
div = element("div");
|
|
2527
2512
|
if (if_block) if_block.c();
|
|
2528
|
-
attr(div, "class", "floorplan-plugin__base-image svelte-
|
|
2513
|
+
attr(div, "class", "floorplan-plugin__base-image svelte-ozpg4a");
|
|
2529
2514
|
},
|
|
2530
2515
|
m(target, anchor) {
|
|
2531
2516
|
insert(target, div, anchor);
|
|
@@ -2894,7 +2879,7 @@ class RoomMaterial_2 extends SvelteComponent {
|
|
|
2894
2879
|
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.47.0 */
|
|
2895
2880
|
|
|
2896
2881
|
function add_css$b(target) {
|
|
2897
|
-
append_styles(target, "svelte-
|
|
2882
|
+
append_styles(target, "svelte-1d4xj70", "svg.svelte-1d4xj70{position:absolute;width:100%;height:100%;overflow:visible}");
|
|
2898
2883
|
}
|
|
2899
2884
|
|
|
2900
2885
|
function get_each_context$4(ctx, list, i) {
|
|
@@ -3027,7 +3012,7 @@ function create_each_block$4(ctx) {
|
|
|
3027
3012
|
c() {
|
|
3028
3013
|
svg = svg_element("svg");
|
|
3029
3014
|
if_block.c();
|
|
3030
|
-
attr(svg, "class", "svelte-
|
|
3015
|
+
attr(svg, "class", "svelte-1d4xj70");
|
|
3031
3016
|
},
|
|
3032
3017
|
m(target, anchor) {
|
|
3033
3018
|
insert(target, svg, anchor);
|
|
@@ -3196,7 +3181,7 @@ class RoomMaterial extends SvelteComponent {
|
|
|
3196
3181
|
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.47.0 */
|
|
3197
3182
|
|
|
3198
3183
|
function add_css$a(target) {
|
|
3199
|
-
append_styles(target, "svelte-
|
|
3184
|
+
append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
3200
3185
|
}
|
|
3201
3186
|
|
|
3202
3187
|
function create_fragment$b(ctx) {
|
|
@@ -3207,7 +3192,7 @@ function create_fragment$b(ctx) {
|
|
|
3207
3192
|
path = svg_element("path");
|
|
3208
3193
|
attr(path, "d", /*_pathD*/ ctx[0]);
|
|
3209
3194
|
attr(path, "fill", `#fff`);
|
|
3210
|
-
attr(path, "class", "svelte-
|
|
3195
|
+
attr(path, "class", "svelte-19uvvss");
|
|
3211
3196
|
},
|
|
3212
3197
|
m(target, anchor) {
|
|
3213
3198
|
insert(target, path, anchor);
|
|
@@ -3251,7 +3236,7 @@ class Room extends SvelteComponent {
|
|
|
3251
3236
|
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.47.0 */
|
|
3252
3237
|
|
|
3253
3238
|
function add_css$9(target) {
|
|
3254
|
-
append_styles(target, "svelte-
|
|
3239
|
+
append_styles(target, "svelte-klfhwd", ".floorplan-plugin__room-highlight.svelte-klfhwd{position:absolute;width:100%;height:100%;pointer-events:all}svg.svelte-klfhwd{width:100%;height:100%;overflow:visible}");
|
|
3255
3240
|
}
|
|
3256
3241
|
|
|
3257
3242
|
function get_each_context$3(ctx, list, i) {
|
|
@@ -3353,8 +3338,8 @@ function create_fragment$a(ctx) {
|
|
|
3353
3338
|
each_blocks[i].c();
|
|
3354
3339
|
}
|
|
3355
3340
|
|
|
3356
|
-
attr(svg, "class", "svelte-
|
|
3357
|
-
attr(div, "class", "floorplan-plugin__room-highlight svelte-
|
|
3341
|
+
attr(svg, "class", "svelte-klfhwd");
|
|
3342
|
+
attr(div, "class", "floorplan-plugin__room-highlight svelte-klfhwd");
|
|
3358
3343
|
add_render_callback(() => /*div_elementresize_handler*/ ctx[10].call(div));
|
|
3359
3344
|
},
|
|
3360
3345
|
m(target, anchor) {
|
|
@@ -3510,7 +3495,7 @@ class RoomHighlight extends SvelteComponent {
|
|
|
3510
3495
|
/* src/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.47.0 */
|
|
3511
3496
|
|
|
3512
3497
|
function add_css$8(target) {
|
|
3513
|
-
append_styles(target, "svelte-
|
|
3498
|
+
append_styles(target, "svelte-tlo7rk", ".floorplan-current-floor.svelte-tlo7rk{position:relative;width:100%;height:100%}");
|
|
3514
3499
|
}
|
|
3515
3500
|
|
|
3516
3501
|
// (19:2) {#if hoverEnable}
|
|
@@ -3744,7 +3729,7 @@ function create_fragment$9(ctx) {
|
|
|
3744
3729
|
if (if_block1) if_block1.c();
|
|
3745
3730
|
t3 = space();
|
|
3746
3731
|
if (if_block2) if_block2.c();
|
|
3747
|
-
attr(div, "class", "floorplan-current-floor svelte-
|
|
3732
|
+
attr(div, "class", "floorplan-current-floor svelte-tlo7rk");
|
|
3748
3733
|
},
|
|
3749
3734
|
m(target, anchor) {
|
|
3750
3735
|
insert(target, div, anchor);
|
|
@@ -3945,7 +3930,7 @@ class CurrentFloor$1 extends SvelteComponent {
|
|
|
3945
3930
|
/* src/floorplan/ModelFloorplanPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
|
|
3946
3931
|
|
|
3947
3932
|
function add_css$7(target) {
|
|
3948
|
-
append_styles(target, "svelte-
|
|
3933
|
+
append_styles(target, "svelte-q5wdnn", ".floorplan-main.svelte-q5wdnn{width:100%;height:100%}");
|
|
3949
3934
|
}
|
|
3950
3935
|
|
|
3951
3936
|
// (24:0) {#if visible}
|
|
@@ -4006,7 +3991,7 @@ function create_if_block$2(ctx) {
|
|
|
4006
3991
|
create_component(camera.$$.fragment);
|
|
4007
3992
|
t1 = space();
|
|
4008
3993
|
if (if_block) if_block.c();
|
|
4009
|
-
attr(div, "class", "floorplan-main svelte-
|
|
3994
|
+
attr(div, "class", "floorplan-main svelte-q5wdnn");
|
|
4010
3995
|
},
|
|
4011
3996
|
m(target, anchor) {
|
|
4012
3997
|
insert(target, div, anchor);
|
|
@@ -4636,7 +4621,7 @@ function throttle(func, wait = 200) {
|
|
|
4636
4621
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
|
|
4637
4622
|
|
|
4638
4623
|
function add_css$6(target) {
|
|
4639
|
-
append_styles(target, "svelte-
|
|
4624
|
+
append_styles(target, "svelte-1ty3s4p", ".plugin-radar__camera-wrapper.svelte-1ty3s4p{width:100%;height:100%;position:absolute;pointer-events:none}.plugin-radar__camera-position.svelte-1ty3s4p{position:absolute;left:0;top:0;width:0;height:0;transform:none;pointer-events:none;transition:transform 1s linear}.plugin-radar__camera-rotate.svelte-1ty3s4p{position:absolute;left:-0.78125rem;top:-0.78125rem;width:0.88542rem;height:0.88542rem;transform-origin:0.78125rem 0.78125rem;transform:rotate(45deg);background-repeat:no-repeat;background-size:100%}");
|
|
4640
4625
|
}
|
|
4641
4626
|
|
|
4642
4627
|
function create_fragment$7(ctx) {
|
|
@@ -4649,12 +4634,12 @@ function create_fragment$7(ctx) {
|
|
|
4649
4634
|
div2 = element("div");
|
|
4650
4635
|
div1 = element("div");
|
|
4651
4636
|
div0 = element("div");
|
|
4652
|
-
attr(div0, "class", "plugin-radar__camera-rotate svelte-
|
|
4637
|
+
attr(div0, "class", "plugin-radar__camera-rotate svelte-1ty3s4p");
|
|
4653
4638
|
set_style(div0, "background-image", "url(" + (/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE) + ")");
|
|
4654
4639
|
set_style(div0, "transform", /*rotateTransform*/ ctx[1], false);
|
|
4655
|
-
attr(div1, "class", "plugin-radar__camera-position svelte-
|
|
4640
|
+
attr(div1, "class", "plugin-radar__camera-position svelte-1ty3s4p");
|
|
4656
4641
|
set_style(div1, "transform", /*positionTransform*/ ctx[2], false);
|
|
4657
|
-
attr(div2, "class", "plugin-radar__camera-wrapper svelte-
|
|
4642
|
+
attr(div2, "class", "plugin-radar__camera-wrapper svelte-1ty3s4p");
|
|
4658
4643
|
},
|
|
4659
4644
|
m(target, anchor) {
|
|
4660
4645
|
insert(target, div2, anchor);
|
|
@@ -4770,7 +4755,7 @@ class Camera extends SvelteComponent {
|
|
|
4770
4755
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.47.0 */
|
|
4771
4756
|
|
|
4772
4757
|
function add_css$5(target) {
|
|
4773
|
-
append_styles(target, "svelte-
|
|
4758
|
+
append_styles(target, "svelte-1i87fz7", ".plugin-pano-floorplan__extra-objects.svelte-1i87fz7{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.plugin-pano-floorplan__extra-object-item--position.svelte-1i87fz7{position:absolute;width:0;height:0}.plugin-pano-floorplan__extra-object-item.svelte-1i87fz7{transform:translate(-50%, -50%)}");
|
|
4774
4759
|
}
|
|
4775
4760
|
|
|
4776
4761
|
function get_each_context$2(ctx, list, i) {
|
|
@@ -4796,11 +4781,11 @@ function create_each_block$2(key_1, ctx) {
|
|
|
4796
4781
|
div1 = element("div");
|
|
4797
4782
|
div0 = element("div");
|
|
4798
4783
|
t = space();
|
|
4799
|
-
attr(div0, "class", "plugin-pano-floorplan__extra-object-item svelte-
|
|
4784
|
+
attr(div0, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7");
|
|
4800
4785
|
set_style(div0, "background-image", `url(${/*extraObject*/ ctx[1].icon.url})`);
|
|
4801
4786
|
set_style(div0, "width", style_width, false);
|
|
4802
4787
|
set_style(div0, "height", style_height, false);
|
|
4803
|
-
attr(div1, "class", "plugin-pano-floorplan__extra-object-item--position svelte-
|
|
4788
|
+
attr(div1, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7");
|
|
4804
4789
|
set_style(div1, "top", style_top, false);
|
|
4805
4790
|
set_style(div1, "left", style_left, false);
|
|
4806
4791
|
this.first = div1;
|
|
@@ -4860,7 +4845,7 @@ function create_fragment$6(ctx) {
|
|
|
4860
4845
|
each_blocks[i].c();
|
|
4861
4846
|
}
|
|
4862
4847
|
|
|
4863
|
-
attr(div, "class", "plugin-pano-floorplan__extra-objects svelte-
|
|
4848
|
+
attr(div, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
|
|
4864
4849
|
},
|
|
4865
4850
|
m(target, anchor) {
|
|
4866
4851
|
insert(target, div, anchor);
|
|
@@ -5134,7 +5119,7 @@ class CurrentFloor extends SvelteComponent {
|
|
|
5134
5119
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
|
|
5135
5120
|
|
|
5136
5121
|
function add_css$4(target) {
|
|
5137
|
-
append_styles(target, "svelte-
|
|
5122
|
+
append_styles(target, "svelte-1mvqyqq", ".plugin-floorplan-radar.svelte-1mvqyqq{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.plugin-floorplan-radar-container.svelte-1mvqyqq{position:relative}");
|
|
5138
5123
|
}
|
|
5139
5124
|
|
|
5140
5125
|
// (41:2) {#if clientWidth !== 0}
|
|
@@ -5189,7 +5174,7 @@ function create_if_block(ctx) {
|
|
|
5189
5174
|
create_component(currentfloor.$$.fragment);
|
|
5190
5175
|
t = space();
|
|
5191
5176
|
create_component(camera.$$.fragment);
|
|
5192
|
-
attr(div, "class", "plugin-floorplan-radar-container svelte-
|
|
5177
|
+
attr(div, "class", "plugin-floorplan-radar-container svelte-1mvqyqq");
|
|
5193
5178
|
set_style(div, "width", style_width, false);
|
|
5194
5179
|
set_style(div, "height", style_height, false);
|
|
5195
5180
|
},
|
|
@@ -5266,7 +5251,7 @@ function create_fragment$4(ctx) {
|
|
|
5266
5251
|
c() {
|
|
5267
5252
|
div = element("div");
|
|
5268
5253
|
if (if_block) if_block.c();
|
|
5269
|
-
attr(div, "class", "plugin-floorplan-radar svelte-
|
|
5254
|
+
attr(div, "class", "plugin-floorplan-radar svelte-1mvqyqq");
|
|
5270
5255
|
add_render_callback(() => /*div_elementresize_handler*/ ctx[11].call(div));
|
|
5271
5256
|
},
|
|
5272
5257
|
m(target, anchor) {
|
|
@@ -10633,11 +10618,6 @@ if (typeof undefined$1 === 'function' && undefined$1.amd) {
|
|
|
10633
10618
|
|
|
10634
10619
|
var Hammer = hammer.exports;
|
|
10635
10620
|
|
|
10636
|
-
var Hammer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/_mergeNamespaces({
|
|
10637
|
-
__proto__: null,
|
|
10638
|
-
'default': Hammer
|
|
10639
|
-
}, [hammer.exports]));
|
|
10640
|
-
|
|
10641
10621
|
// uuid
|
|
10642
10622
|
function S4() {
|
|
10643
10623
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
@@ -11633,7 +11613,7 @@ class EditController extends BaseController {
|
|
|
11633
11613
|
const fiveElement = this.five.getElement();
|
|
11634
11614
|
if (fiveElement) {
|
|
11635
11615
|
this.fiveElement = fiveElement;
|
|
11636
|
-
const hammer = new Hammer
|
|
11616
|
+
const hammer = new Hammer(fiveElement);
|
|
11637
11617
|
this.hammer = hammer;
|
|
11638
11618
|
hammer.on('tap', this.onTap);
|
|
11639
11619
|
hammer.on('pan', this.onPan);
|
|
@@ -13196,7 +13176,7 @@ const currentTarget = writable(null);
|
|
|
13196
13176
|
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.47.0 */
|
|
13197
13177
|
|
|
13198
13178
|
function add_css$3(target) {
|
|
13199
|
-
append_styles(target, "svelte-
|
|
13179
|
+
append_styles(target, "svelte-1kuu68s", ".PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s{position:absolute;width:0.5rem;height:0.5rem;border-radius:50%;background:#fff;box-shadow:0 0 .6rem #fff;transform:translate(-50%, -50%) scale(1);transform-origin:center center;-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin 1.2s forwards;pointer-events:auto}.PanoSpatialTagPlugin__tag-origin.svelte-1kuu68s:after{content:'';position:absolute;top:50%;height:50%;width:2rem;height:2rem;transform:translate(-50%, -50%)}.PanoSpatialTagPlugin__tag-origin-destroy.svelte-1kuu68s{transform:translate(-50%, -50%) scale(0.6);-webkit-animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;animation:svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin{0%{transform:translate(-50%, -50%) scale(1);opacity:0}100%{transform:translate(-50%, -50%) scale(0.6);opacity:1 }}@-webkit-keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes svelte-1kuu68s-PanoSpatialTagPlugin__tag-origin-destroy{0%{transform:translate(-50%, -50%) scale(0.6);opacity:1}10%{transform:translate(-50%, -50%) scale(1);opacity:0.9}100%{transform:translate(-50%, -50%) scale(1);opacity:0}}");
|
|
13200
13180
|
}
|
|
13201
13181
|
|
|
13202
13182
|
function get_each_context$1(ctx, list, i) {
|
|
@@ -13220,7 +13200,7 @@ function create_each_block$1(ctx) {
|
|
|
13220
13200
|
return {
|
|
13221
13201
|
c() {
|
|
13222
13202
|
i = element("i");
|
|
13223
|
-
attr(i, "class", "svelte-
|
|
13203
|
+
attr(i, "class", "svelte-1kuu68s");
|
|
13224
13204
|
toggle_class(i, "PanoSpatialTagPlugin__tag-origin", true);
|
|
13225
13205
|
toggle_class(i, "PanoSpatialTagPlugin__tag-origin-destroy", /*origin*/ ctx[3].destroying);
|
|
13226
13206
|
set_style(i, "top", style_top, false);
|
|
@@ -13345,7 +13325,7 @@ class Origins extends SvelteComponent {
|
|
|
13345
13325
|
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.47.0 */
|
|
13346
13326
|
|
|
13347
13327
|
function add_css$2(target) {
|
|
13348
|
-
append_styles(target, "svelte-
|
|
13328
|
+
append_styles(target, "svelte-1wukaol", ".PanoSpatialTagPlugin__tag-x.svelte-1wukaol.svelte-1wukaol{position:relative;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1wukaol.svelte-1wukaol{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1wukaol.svelte-1wukaol{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1wukaol.svelte-1wukaol{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1wukaol.svelte-1wukaol{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1wukaol.svelte-1wukaol{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-line1.svelte-1wukaol{-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-line2.svelte-1wukaol{-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol.svelte-1wukaol{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol .PanoSpatialTagPlugin__tag-line.svelte-1wukaol{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1wukaol.svelte-1wukaol{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol .PanoSpatialTagPlugin__tag-animate.svelte-1wukaol{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1wukaol.svelte-1wukaol{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol .PanoSpatialTagPlugin__tag-content.svelte-1wukaol{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-flagpole.svelte-1wukaol{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1wukaol .PanoSpatialTagPlugin__tag-shadow.svelte-1wukaol{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-shadow.svelte-1wukaol{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1wukaol .PanoSpatialTagPlugin__tag-content.svelte-1wukaol{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-flagpole.svelte-1wukaol{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-shadow.svelte-1wukaol{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-content.svelte-1wukaol{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-content .svelte-1wukaol{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-line1.svelte-1wukaol{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1wukaol .PanoSpatialTagPlugin__tag-line2.svelte-1wukaol{opacity:0.5;transform:translate(-50%, 0) scaleY(0);-webkit-animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;animation:svelte-1wukaol-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@-webkit-keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@-webkit-keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@-webkit-keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@-webkit-keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1wukaol-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
13349
13329
|
}
|
|
13350
13330
|
|
|
13351
13331
|
function create_fragment$2(ctx) {
|
|
@@ -13379,19 +13359,19 @@ function create_fragment$2(ctx) {
|
|
|
13379
13359
|
t3 = space();
|
|
13380
13360
|
div3 = element("div");
|
|
13381
13361
|
div2 = element("div");
|
|
13382
|
-
attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-
|
|
13362
|
+
attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1wukaol");
|
|
13383
13363
|
set_style(div0, "transform", "translate(" + /*contentWidth*/ ctx[7] / 2 * /*contentZoom*/ ctx[3] * 3 + "px, " + /*contentHeight*/ ctx[8] / 2 * (/*upsideDown*/ ctx[1] ? -1 : 1) * /*contentZoom*/ ctx[3] * 3 + "px)");
|
|
13384
|
-
attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-
|
|
13364
|
+
attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1wukaol");
|
|
13385
13365
|
set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
|
|
13386
|
-
attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-
|
|
13387
|
-
attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-
|
|
13388
|
-
attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-
|
|
13389
|
-
attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-
|
|
13390
|
-
attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-
|
|
13366
|
+
attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1wukaol");
|
|
13367
|
+
attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1wukaol");
|
|
13368
|
+
attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-1wukaol");
|
|
13369
|
+
attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-1wukaol");
|
|
13370
|
+
attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-1wukaol");
|
|
13391
13371
|
set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
|
|
13392
13372
|
attr(div4, "id", div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0]);
|
|
13393
13373
|
set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
|
|
13394
|
-
attr(div4, "class", "svelte-
|
|
13374
|
+
attr(div4, "class", "svelte-1wukaol");
|
|
13395
13375
|
toggle_class(div4, "PanoSpatialTagPlugin__tag-x", true);
|
|
13396
13376
|
toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
|
|
13397
13377
|
toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
|
|
@@ -14252,12 +14232,13 @@ var DISPLAY_STRATEGY_TYPE;
|
|
|
14252
14232
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14253
14233
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14254
14234
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14235
|
+
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14255
14236
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14256
14237
|
|
|
14257
14238
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
14258
14239
|
|
|
14259
14240
|
function add_css$1(target) {
|
|
14260
|
-
append_styles(target, "svelte-
|
|
14241
|
+
append_styles(target, "svelte-1hzvil1", ".item-label-item.svelte-1hzvil1{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0}.item-label-item.visible.svelte-1hzvil1{opacity:1;-webkit-animation:svelte-1hzvil1-fadeIn .3s ease-in;animation:svelte-1hzvil1-fadeIn .3s ease-in}.item-label-item__text-wrap.svelte-1hzvil1::before{content:'';position:absolute;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);filter:blur(0.83333rem);z-index:-1}.item-label-item__text-wrap.svelte-1hzvil1{padding:0.3125rem 0.3125rem 0;position:absolute;height:1.04167rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap;line-height:0.52083rem;font-size:0.57292rem;font-weight:bold;color:#FFEAC0;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center}.item-label-item__text.svelte-1hzvil1{padding-bottom:0.20833rem;border-top:0 solid;border-left:0 solid;border-right:0 solid;border-bottom:1px solid;-o-border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;border-image:linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5}.item-label-item__bar.svelte-1hzvil1{position:absolute;bottom:0;width:1px;background-image:linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1))}@-webkit-keyframes svelte-1hzvil1-fadeIn{from{opacity:0\n }to{opacity:1\n }}@keyframes svelte-1hzvil1-fadeIn{from{opacity:0\n }to{opacity:1\n }}");
|
|
14261
14242
|
}
|
|
14262
14243
|
|
|
14263
14244
|
function create_fragment$1(ctx) {
|
|
@@ -14284,12 +14265,12 @@ function create_fragment$1(ctx) {
|
|
|
14284
14265
|
t0 = text(t0_value);
|
|
14285
14266
|
t1 = space();
|
|
14286
14267
|
div1 = element("div");
|
|
14287
|
-
attr(span, "class", "item-label-item__text svelte-
|
|
14288
|
-
attr(div0, "class", "item-label-item__text-wrap svelte-
|
|
14268
|
+
attr(span, "class", "item-label-item__text svelte-1hzvil1");
|
|
14269
|
+
attr(div0, "class", "item-label-item__text-wrap svelte-1hzvil1");
|
|
14289
14270
|
set_style(div0, "top", `-${/*itemLabel*/ ctx[0].strokeLength + 26}px`);
|
|
14290
|
-
attr(div1, "class", "item-label-item__bar svelte-
|
|
14271
|
+
attr(div1, "class", "item-label-item__bar svelte-1hzvil1");
|
|
14291
14272
|
set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
14292
|
-
attr(div2, "class", div2_class_value = "" + (null_to_empty(classNames("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-
|
|
14273
|
+
attr(div2, "class", div2_class_value = "" + (null_to_empty(classNames("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1hzvil1"));
|
|
14293
14274
|
set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
14294
14275
|
set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
14295
14276
|
},
|
|
@@ -14319,7 +14300,7 @@ function create_fragment$1(ctx) {
|
|
|
14319
14300
|
set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
14320
14301
|
}
|
|
14321
14302
|
|
|
14322
|
-
if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (null_to_empty(classNames("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-
|
|
14303
|
+
if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (null_to_empty(classNames("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1hzvil1"))) {
|
|
14323
14304
|
attr(div2, "class", div2_class_value);
|
|
14324
14305
|
}
|
|
14325
14306
|
|
|
@@ -14383,16 +14364,16 @@ function debounce(func, wait = 200) {
|
|
|
14383
14364
|
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
|
|
14384
14365
|
|
|
14385
14366
|
function add_css(target) {
|
|
14386
|
-
append_styles(target, "svelte-
|
|
14367
|
+
append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
14387
14368
|
}
|
|
14388
14369
|
|
|
14389
14370
|
function get_each_context(ctx, list, i) {
|
|
14390
14371
|
const child_ctx = ctx.slice();
|
|
14391
|
-
child_ctx[
|
|
14372
|
+
child_ctx[28] = list[i];
|
|
14392
14373
|
return child_ctx;
|
|
14393
14374
|
}
|
|
14394
14375
|
|
|
14395
|
-
// (
|
|
14376
|
+
// (162:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
|
|
14396
14377
|
function create_each_block(key_1, ctx) {
|
|
14397
14378
|
let first;
|
|
14398
14379
|
let itemlabelitem;
|
|
@@ -14400,7 +14381,7 @@ function create_each_block(key_1, ctx) {
|
|
|
14400
14381
|
|
|
14401
14382
|
itemlabelitem = new ItemLabelItem({
|
|
14402
14383
|
props: {
|
|
14403
|
-
itemLabel: /*itemLabelItem*/ ctx[
|
|
14384
|
+
itemLabel: /*itemLabelItem*/ ctx[28],
|
|
14404
14385
|
hooks: /*hooks*/ ctx[0]
|
|
14405
14386
|
}
|
|
14406
14387
|
});
|
|
@@ -14421,7 +14402,7 @@ function create_each_block(key_1, ctx) {
|
|
|
14421
14402
|
p(new_ctx, dirty) {
|
|
14422
14403
|
ctx = new_ctx;
|
|
14423
14404
|
const itemlabelitem_changes = {};
|
|
14424
|
-
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[
|
|
14405
|
+
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
|
|
14425
14406
|
if (dirty & /*hooks*/ 1) itemlabelitem_changes.hooks = /*hooks*/ ctx[0];
|
|
14426
14407
|
itemlabelitem.$set(itemlabelitem_changes);
|
|
14427
14408
|
},
|
|
@@ -14448,7 +14429,7 @@ function create_fragment(ctx) {
|
|
|
14448
14429
|
let div_resize_listener;
|
|
14449
14430
|
let current;
|
|
14450
14431
|
let each_value = /*renderItemLabels*/ ctx[1];
|
|
14451
|
-
const get_key = ctx => /*itemLabelItem*/ ctx[
|
|
14432
|
+
const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
|
|
14452
14433
|
|
|
14453
14434
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
14454
14435
|
let child_ctx = get_each_context(ctx, each_value, i);
|
|
@@ -14464,7 +14445,7 @@ function create_fragment(ctx) {
|
|
|
14464
14445
|
each_blocks[i].c();
|
|
14465
14446
|
}
|
|
14466
14447
|
|
|
14467
|
-
attr(div, "class", "item-labels-container svelte-
|
|
14448
|
+
attr(div, "class", "item-labels-container svelte-gk8s47");
|
|
14468
14449
|
add_render_callback(() => /*div_elementresize_handler*/ ctx[10].call(div));
|
|
14469
14450
|
set_style(div, "opacity", /*itemsVisible*/ ctx[4] ? 1 : 0, false);
|
|
14470
14451
|
},
|
|
@@ -14599,6 +14580,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14599
14580
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14600
14581
|
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14601
14582
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14583
|
+
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14584
|
+
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14602
14585
|
}
|
|
14603
14586
|
}
|
|
14604
14587
|
|
|
@@ -14645,16 +14628,17 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14645
14628
|
addDataUpdateListener();
|
|
14646
14629
|
});
|
|
14647
14630
|
|
|
14631
|
+
const handleCameraUpdateCallback = () => {
|
|
14632
|
+
$$invalidate(4, itemsVisible = false);
|
|
14633
|
+
handleCameraUpdate();
|
|
14634
|
+
};
|
|
14635
|
+
|
|
14648
14636
|
onMount(() => {
|
|
14649
14637
|
$$invalidate(1, renderItemLabels = itemLabels);
|
|
14650
14638
|
curItemLabels = itemLabels;
|
|
14651
14639
|
onItemLabelUpdate();
|
|
14652
14640
|
addResizeListener();
|
|
14653
|
-
|
|
14654
|
-
five.on('cameraUpdate', () => {
|
|
14655
|
-
$$invalidate(4, itemsVisible = false);
|
|
14656
|
-
handleCameraUpdate();
|
|
14657
|
-
});
|
|
14641
|
+
five.on('cameraUpdate', handleCameraUpdateCallback);
|
|
14658
14642
|
});
|
|
14659
14643
|
|
|
14660
14644
|
const handleCameraUpdate = debounce(
|
|
@@ -14695,12 +14679,11 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
14695
14679
|
});
|
|
14696
14680
|
|
|
14697
14681
|
onDestroy(() => {
|
|
14698
|
-
five.off('cameraUpdate');
|
|
14682
|
+
five.off('cameraUpdate', handleCameraUpdateCallback);
|
|
14699
14683
|
resizeObserver.unobserve(wrapper);
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
});
|
|
14684
|
+
}); // curItemLabels = null
|
|
14685
|
+
// renderItemLabels = null
|
|
14686
|
+
// wrapperSize = { width: 0, height: 0 }
|
|
14704
14687
|
|
|
14705
14688
|
function div_elementresize_handler() {
|
|
14706
14689
|
containerWidth = this.clientWidth;
|
|
@@ -14782,6 +14765,7 @@ const ModelItemLabelPlugin = (five, params) => {
|
|
|
14782
14765
|
top: 0;
|
|
14783
14766
|
width: 100%;
|
|
14784
14767
|
height: 100%;
|
|
14768
|
+
z-index: 5;
|
|
14785
14769
|
`;
|
|
14786
14770
|
pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
|
|
14787
14771
|
const appendTo = (wrapper) => {
|