@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.umd.js
CHANGED
|
@@ -24,21 +24,6 @@
|
|
|
24
24
|
return Object.freeze(n);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
function _mergeNamespaces(n, m) {
|
|
28
|
-
m.forEach(function (e) {
|
|
29
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
30
|
-
if (k !== 'default' && !(k in n)) {
|
|
31
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
32
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return e[k]; }
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
return Object.freeze(n);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
27
|
var THREE__namespace = /*#__PURE__*/_interopNamespace(THREE);
|
|
43
28
|
var TWEEN__namespace = /*#__PURE__*/_interopNamespace(TWEEN);
|
|
44
29
|
var TWEEN__default = /*#__PURE__*/_interopDefaultLegacy(TWEEN);
|
|
@@ -494,7 +479,7 @@
|
|
|
494
479
|
/* src/ModelRoomLabelPlugin/RoomLabelItem.svelte generated by Svelte v3.47.0 */
|
|
495
480
|
|
|
496
481
|
function add_css$l(target) {
|
|
497
|
-
internal.append_styles(target, "svelte-
|
|
482
|
+
internal.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}");
|
|
498
483
|
}
|
|
499
484
|
|
|
500
485
|
function create_fragment$q(ctx) {
|
|
@@ -514,11 +499,11 @@
|
|
|
514
499
|
t0 = internal.text(t0_value);
|
|
515
500
|
t1 = internal.space();
|
|
516
501
|
div0 = internal.element("div");
|
|
517
|
-
internal.attr(span, "class", "room-label-item__text svelte-
|
|
502
|
+
internal.attr(span, "class", "room-label-item__text svelte-1ak9fbs");
|
|
518
503
|
internal.set_style(span, "background-image", "url(" + ROOM_LABEL_BG + ")");
|
|
519
504
|
internal.toggle_class(span, "wide", /*roomLabel*/ ctx[0].name.length > 3);
|
|
520
|
-
internal.attr(div0, "class", "room-label-item__bar svelte-
|
|
521
|
-
internal.attr(div1, "class", "room-label-item svelte-
|
|
505
|
+
internal.attr(div0, "class", "room-label-item__bar svelte-1ak9fbs");
|
|
506
|
+
internal.attr(div1, "class", "room-label-item svelte-1ak9fbs");
|
|
522
507
|
internal.set_style(div1, "z-index", /*roomLabel*/ ctx[0].zIndex, false);
|
|
523
508
|
internal.set_style(div1, "transform", /*roomLabel*/ ctx[0].transform, false);
|
|
524
509
|
internal.set_style(div1, "opacity", /*roomLabel*/ ctx[0].visible ? 1 : 0, false);
|
|
@@ -594,7 +579,7 @@
|
|
|
594
579
|
/* src/ModelRoomLabelPlugin/RoomLabelItems.svelte generated by Svelte v3.47.0 */
|
|
595
580
|
|
|
596
581
|
function add_css$k(target) {
|
|
597
|
-
internal.append_styles(target, "svelte-
|
|
582
|
+
internal.append_styles(target, "svelte-9eg4zi", ".room-labels-container.svelte-9eg4zi{width:100%;height:100%;position:relative;color:#fff}");
|
|
598
583
|
}
|
|
599
584
|
|
|
600
585
|
function get_each_context$8(ctx, list, i) {
|
|
@@ -675,7 +660,7 @@
|
|
|
675
660
|
each_blocks[i].c();
|
|
676
661
|
}
|
|
677
662
|
|
|
678
|
-
internal.attr(div, "class", "room-labels-container svelte-
|
|
663
|
+
internal.attr(div, "class", "room-labels-container svelte-9eg4zi");
|
|
679
664
|
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[4].call(div));
|
|
680
665
|
},
|
|
681
666
|
m(target, anchor) {
|
|
@@ -908,6 +893,7 @@
|
|
|
908
893
|
this.container.style.pointerEvents = 'none';
|
|
909
894
|
this.container.style.left = '0';
|
|
910
895
|
this.container.style.top = '0';
|
|
896
|
+
this.container.style.zIndex = '5';
|
|
911
897
|
// five listener
|
|
912
898
|
this.five.once('dispose', () => this.dispose());
|
|
913
899
|
this.five.on('modeChange', this.onFiveModeChange);
|
|
@@ -1242,7 +1228,7 @@
|
|
|
1242
1228
|
/* src/floorplan/ModelFloorplanPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
|
|
1243
1229
|
|
|
1244
1230
|
function add_css$j(target) {
|
|
1245
|
-
internal.append_styles(target, "svelte-
|
|
1231
|
+
internal.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%}");
|
|
1246
1232
|
}
|
|
1247
1233
|
|
|
1248
1234
|
function create_fragment$o(ctx) {
|
|
@@ -1253,7 +1239,7 @@
|
|
|
1253
1239
|
c() {
|
|
1254
1240
|
div1 = internal.element("div");
|
|
1255
1241
|
div0 = internal.element("div");
|
|
1256
|
-
internal.attr(div0, "class", "floorplan__camera-rotate svelte-
|
|
1242
|
+
internal.attr(div0, "class", "floorplan__camera-rotate svelte-17cl35n");
|
|
1257
1243
|
internal.set_style(div0, "background-image", `url(${/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE})`);
|
|
1258
1244
|
internal.set_style(div0, "width", /*domSizeStyle*/ ctx[4], false);
|
|
1259
1245
|
internal.set_style(div0, "height", /*domSizeStyle*/ ctx[4], false);
|
|
@@ -1261,7 +1247,7 @@
|
|
|
1261
1247
|
internal.set_style(div0, "top", '-' + /*domSizeStyle*/ ctx[4], false);
|
|
1262
1248
|
internal.set_style(div0, "transform", `rotate(${/*rotate*/ ctx[3]}deg)`, false);
|
|
1263
1249
|
internal.set_style(div0, "transform-origin", `${/*domSizeStyle*/ ctx[4]} ${/*domSizeStyle*/ ctx[4]}`, false);
|
|
1264
|
-
internal.attr(div1, "class", "floorplan__camera-position svelte-
|
|
1250
|
+
internal.attr(div1, "class", "floorplan__camera-position svelte-17cl35n");
|
|
1265
1251
|
internal.set_style(div1, "left", /*positionLeft*/ ctx[1], false);
|
|
1266
1252
|
internal.set_style(div1, "top", /*positionTop*/ ctx[2], false);
|
|
1267
1253
|
},
|
|
@@ -1347,7 +1333,7 @@
|
|
|
1347
1333
|
/* src/floorplan/ModelFloorplanPlugin/Components/Compass.svelte generated by Svelte v3.47.0 */
|
|
1348
1334
|
|
|
1349
1335
|
function add_css$i(target) {
|
|
1350
|
-
internal.append_styles(target, "svelte-
|
|
1336
|
+
internal.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}");
|
|
1351
1337
|
}
|
|
1352
1338
|
|
|
1353
1339
|
// (13:0) {#if northRad}
|
|
@@ -1365,10 +1351,10 @@
|
|
|
1365
1351
|
t0 = internal.space();
|
|
1366
1352
|
span = internal.element("span");
|
|
1367
1353
|
t1 = internal.text(/*northDesc*/ ctx[0]);
|
|
1368
|
-
internal.attr(div0, "class", "floorplan-plugin__compass-image svelte-
|
|
1354
|
+
internal.attr(div0, "class", "floorplan-plugin__compass-image svelte-1q44ru9");
|
|
1369
1355
|
internal.set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
|
|
1370
|
-
internal.attr(span, "class", "floorplan-plugin__compass-text svelte-
|
|
1371
|
-
internal.attr(div1, "class", "floorplan-plugin__compass svelte-
|
|
1356
|
+
internal.attr(span, "class", "floorplan-plugin__compass-text svelte-1q44ru9");
|
|
1357
|
+
internal.attr(div1, "class", "floorplan-plugin__compass svelte-1q44ru9");
|
|
1372
1358
|
internal.set_style(div1, "transform", /*compassTransformStyle*/ ctx[2], false);
|
|
1373
1359
|
},
|
|
1374
1360
|
m(target, anchor) {
|
|
@@ -1446,7 +1432,7 @@
|
|
|
1446
1432
|
/* src/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte generated by Svelte v3.47.0 */
|
|
1447
1433
|
|
|
1448
1434
|
function add_css$h(target) {
|
|
1449
|
-
internal.append_styles(target, "svelte-
|
|
1435
|
+
internal.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}");
|
|
1450
1436
|
}
|
|
1451
1437
|
|
|
1452
1438
|
// (22:30)
|
|
@@ -1491,7 +1477,7 @@
|
|
|
1491
1477
|
span1 = internal.element("span");
|
|
1492
1478
|
span1.textContent = `${/*roomSizeDes*/ ctx[3]}`;
|
|
1493
1479
|
internal.attr(span0, "class", "floorplan-plugin__room-name");
|
|
1494
|
-
internal.attr(span1, "class", "floorplan-plugin__room-size svelte-
|
|
1480
|
+
internal.attr(span1, "class", "floorplan-plugin__room-size svelte-i2nwuk");
|
|
1495
1481
|
},
|
|
1496
1482
|
m(target, anchor) {
|
|
1497
1483
|
internal.insert(target, span0, anchor);
|
|
@@ -1525,7 +1511,7 @@
|
|
|
1525
1511
|
c() {
|
|
1526
1512
|
div = internal.element("div");
|
|
1527
1513
|
if (if_block) if_block.c();
|
|
1528
|
-
internal.attr(div, "class", "floorplan-plugin__room-label-item svelte-
|
|
1514
|
+
internal.attr(div, "class", "floorplan-plugin__room-label-item svelte-i2nwuk");
|
|
1529
1515
|
internal.set_style(div, "left", /*left*/ ctx[4], false);
|
|
1530
1516
|
internal.set_style(div, "top", /*top*/ ctx[5], false);
|
|
1531
1517
|
internal.set_style(div, "font-size", /*fontSize*/ ctx[6], false);
|
|
@@ -1600,7 +1586,7 @@
|
|
|
1600
1586
|
/* src/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte generated by Svelte v3.47.0 */
|
|
1601
1587
|
|
|
1602
1588
|
function add_css$g(target) {
|
|
1603
|
-
internal.append_styles(target, "svelte-
|
|
1589
|
+
internal.append_styles(target, "svelte-vkeyjz", ".floorplan-plugin__room-labels.svelte-vkeyjz{width:100%;height:100%;position:absolute;left:0;top:0;z-index:20}");
|
|
1604
1590
|
}
|
|
1605
1591
|
|
|
1606
1592
|
function get_each_context$7(ctx, list, i) {
|
|
@@ -1632,7 +1618,7 @@
|
|
|
1632
1618
|
each_blocks[i].c();
|
|
1633
1619
|
}
|
|
1634
1620
|
|
|
1635
|
-
internal.attr(div, "class", "floorplan-plugin__room-labels svelte-
|
|
1621
|
+
internal.attr(div, "class", "floorplan-plugin__room-labels svelte-vkeyjz");
|
|
1636
1622
|
},
|
|
1637
1623
|
m(target, anchor) {
|
|
1638
1624
|
internal.insert(target, div, anchor);
|
|
@@ -1852,7 +1838,7 @@
|
|
|
1852
1838
|
/* src/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte generated by Svelte v3.47.0 */
|
|
1853
1839
|
|
|
1854
1840
|
function add_css$f(target) {
|
|
1855
|
-
internal.append_styles(target, "svelte-
|
|
1841
|
+
internal.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%)}");
|
|
1856
1842
|
}
|
|
1857
1843
|
|
|
1858
1844
|
function get_each_context$6(ctx, list, i) {
|
|
@@ -1879,7 +1865,7 @@
|
|
|
1879
1865
|
first: null,
|
|
1880
1866
|
c() {
|
|
1881
1867
|
div = internal.element("div");
|
|
1882
|
-
internal.attr(div, "class", "floorplan-plugin__rule-scale svelte-
|
|
1868
|
+
internal.attr(div, "class", "floorplan-plugin__rule-scale svelte-1d5a0k4");
|
|
1883
1869
|
internal.set_style(div, "left", style_left, false);
|
|
1884
1870
|
this.first = div;
|
|
1885
1871
|
},
|
|
@@ -1912,9 +1898,9 @@
|
|
|
1912
1898
|
span = internal.element("span");
|
|
1913
1899
|
t0 = internal.text(t0_value);
|
|
1914
1900
|
t1 = internal.space();
|
|
1915
|
-
internal.attr(span, "class", "floorplan-plugin__rule-text svelte-
|
|
1901
|
+
internal.attr(span, "class", "floorplan-plugin__rule-text svelte-1d5a0k4");
|
|
1916
1902
|
internal.toggle_class(span, "is-row", /*isRow*/ ctx[5]);
|
|
1917
|
-
internal.attr(div, "class", "floorplan-plugin__text-wrapper svelte-
|
|
1903
|
+
internal.attr(div, "class", "floorplan-plugin__text-wrapper svelte-1d5a0k4");
|
|
1918
1904
|
internal.toggle_class(div, "floorplan-plugin__text-wrapper--is-left-or-top", /*isLeft*/ ctx[3] || /*isTop*/ ctx[1]);
|
|
1919
1905
|
internal.toggle_class(div, "floorplan-plugin__text-wrapper-is-right-or-bottom", /*isRight*/ ctx[4] || /*isBottom*/ ctx[2]);
|
|
1920
1906
|
internal.set_style(div, "left", style_left, false);
|
|
@@ -1979,8 +1965,8 @@
|
|
|
1979
1965
|
each_blocks[i].c();
|
|
1980
1966
|
}
|
|
1981
1967
|
|
|
1982
|
-
internal.attr(div0, "class", "floorplan-plugin__rule-line svelte-
|
|
1983
|
-
internal.attr(div1, "class", div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-
|
|
1968
|
+
internal.attr(div0, "class", "floorplan-plugin__rule-line svelte-1d5a0k4");
|
|
1969
|
+
internal.attr(div1, "class", div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-1d5a0k4");
|
|
1984
1970
|
internal.set_style(div1, "width", /*width*/ ctx[9], false);
|
|
1985
1971
|
internal.set_style(div1, "transform", /*transform*/ ctx[7], false);
|
|
1986
1972
|
internal.set_style(div1, "transform-origin", /*transformOrigin*/ ctx[8], false);
|
|
@@ -2011,7 +1997,7 @@
|
|
|
2011
1997
|
each_blocks = internal.update_keyed_each(each_blocks, dirty, get_key_1, 1, ctx, each_value, each1_lookup, div1, internal.destroy_block, create_each_block$6, null, get_each_context$6);
|
|
2012
1998
|
}
|
|
2013
1999
|
|
|
2014
|
-
if (dirty & /*type*/ 1 && div1_class_value !== (div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-
|
|
2000
|
+
if (dirty & /*type*/ 1 && div1_class_value !== (div1_class_value = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels-" + /*type*/ ctx[0] + " svelte-1d5a0k4")) {
|
|
2015
2001
|
internal.attr(div1, "class", div1_class_value);
|
|
2016
2002
|
}
|
|
2017
2003
|
},
|
|
@@ -2327,7 +2313,7 @@
|
|
|
2327
2313
|
/* src/floorplan/Components/Normalmage.svelte generated by Svelte v3.47.0 */
|
|
2328
2314
|
|
|
2329
2315
|
function add_css$e(target) {
|
|
2330
|
-
internal.append_styles(target, "svelte-
|
|
2316
|
+
internal.append_styles(target, "svelte-1gfoniz", "img.svelte-1gfoniz{width:100%;height:100%}");
|
|
2331
2317
|
}
|
|
2332
2318
|
|
|
2333
2319
|
function create_fragment$i(ctx) {
|
|
@@ -2339,7 +2325,7 @@
|
|
|
2339
2325
|
img = internal.element("img");
|
|
2340
2326
|
if (!internal.src_url_equal(img.src, img_src_value = /*url*/ ctx[0])) internal.attr(img, "src", img_src_value);
|
|
2341
2327
|
internal.attr(img, "alt", "floorplan iamge");
|
|
2342
|
-
internal.attr(img, "class", "svelte-
|
|
2328
|
+
internal.attr(img, "class", "svelte-1gfoniz");
|
|
2343
2329
|
},
|
|
2344
2330
|
m(target, anchor) {
|
|
2345
2331
|
internal.insert(target, img, anchor);
|
|
@@ -2377,7 +2363,7 @@
|
|
|
2377
2363
|
/* src/floorplan/Components/SvgImage.svelte generated by Svelte v3.47.0 */
|
|
2378
2364
|
|
|
2379
2365
|
function add_css$d(target) {
|
|
2380
|
-
internal.append_styles(target, "svelte-
|
|
2366
|
+
internal.append_styles(target, "svelte-ub47ya", ".floorplan-plugin__base-image.svelte-ub47ya{width:100%;height:100%}");
|
|
2381
2367
|
}
|
|
2382
2368
|
|
|
2383
2369
|
function create_fragment$h(ctx) {
|
|
@@ -2394,7 +2380,7 @@
|
|
|
2394
2380
|
html_tag_1 = new internal.HtmlTag();
|
|
2395
2381
|
html_tag.a = t;
|
|
2396
2382
|
html_tag_1.a = null;
|
|
2397
|
-
internal.attr(div, "class", "floorplan-plugin__base-image svelte-
|
|
2383
|
+
internal.attr(div, "class", "floorplan-plugin__base-image svelte-ub47ya");
|
|
2398
2384
|
},
|
|
2399
2385
|
m(target, anchor) {
|
|
2400
2386
|
internal.insert(target, div, anchor);
|
|
@@ -2424,8 +2410,7 @@
|
|
|
2424
2410
|
}
|
|
2425
2411
|
svg [type='lineItemGroup'] g g g g {
|
|
2426
2412
|
stroke: #ffffff;
|
|
2427
|
-
}
|
|
2428
|
-
</style>
|
|
2413
|
+
}</style>
|
|
2429
2414
|
`;
|
|
2430
2415
|
|
|
2431
2416
|
$$self.$$set = $$props => {
|
|
@@ -2445,7 +2430,7 @@
|
|
|
2445
2430
|
/* src/floorplan/Components/BaseImage.svelte generated by Svelte v3.47.0 */
|
|
2446
2431
|
|
|
2447
2432
|
function add_css$c(target) {
|
|
2448
|
-
internal.append_styles(target, "svelte-
|
|
2433
|
+
internal.append_styles(target, "svelte-ozpg4a", ".floorplan-plugin__base-image.svelte-ozpg4a{position:absolute;z-index:10;width:100%;height:100%;pointer-events:none}");
|
|
2449
2434
|
}
|
|
2450
2435
|
|
|
2451
2436
|
// (13:22)
|
|
@@ -2541,7 +2526,7 @@
|
|
|
2541
2526
|
c() {
|
|
2542
2527
|
div = internal.element("div");
|
|
2543
2528
|
if (if_block) if_block.c();
|
|
2544
|
-
internal.attr(div, "class", "floorplan-plugin__base-image svelte-
|
|
2529
|
+
internal.attr(div, "class", "floorplan-plugin__base-image svelte-ozpg4a");
|
|
2545
2530
|
},
|
|
2546
2531
|
m(target, anchor) {
|
|
2547
2532
|
internal.insert(target, div, anchor);
|
|
@@ -2910,7 +2895,7 @@
|
|
|
2910
2895
|
/* src/floorplan/Components/RoomMaterials/RoomMaterial.svelte generated by Svelte v3.47.0 */
|
|
2911
2896
|
|
|
2912
2897
|
function add_css$b(target) {
|
|
2913
|
-
internal.append_styles(target, "svelte-
|
|
2898
|
+
internal.append_styles(target, "svelte-1d4xj70", "svg.svelte-1d4xj70{position:absolute;width:100%;height:100%;overflow:visible}");
|
|
2914
2899
|
}
|
|
2915
2900
|
|
|
2916
2901
|
function get_each_context$4(ctx, list, i) {
|
|
@@ -3043,7 +3028,7 @@
|
|
|
3043
3028
|
c() {
|
|
3044
3029
|
svg = internal.svg_element("svg");
|
|
3045
3030
|
if_block.c();
|
|
3046
|
-
internal.attr(svg, "class", "svelte-
|
|
3031
|
+
internal.attr(svg, "class", "svelte-1d4xj70");
|
|
3047
3032
|
},
|
|
3048
3033
|
m(target, anchor) {
|
|
3049
3034
|
internal.insert(target, svg, anchor);
|
|
@@ -3212,7 +3197,7 @@
|
|
|
3212
3197
|
/* src/floorplan/Components/RoomHighlight/Room.svelte generated by Svelte v3.47.0 */
|
|
3213
3198
|
|
|
3214
3199
|
function add_css$a(target) {
|
|
3215
|
-
internal.append_styles(target, "svelte-
|
|
3200
|
+
internal.append_styles(target, "svelte-19uvvss", "path.svelte-19uvvss{opacity:0}path.svelte-19uvvss:hover{opacity:0.1}");
|
|
3216
3201
|
}
|
|
3217
3202
|
|
|
3218
3203
|
function create_fragment$b(ctx) {
|
|
@@ -3223,7 +3208,7 @@
|
|
|
3223
3208
|
path = internal.svg_element("path");
|
|
3224
3209
|
internal.attr(path, "d", /*_pathD*/ ctx[0]);
|
|
3225
3210
|
internal.attr(path, "fill", `#fff`);
|
|
3226
|
-
internal.attr(path, "class", "svelte-
|
|
3211
|
+
internal.attr(path, "class", "svelte-19uvvss");
|
|
3227
3212
|
},
|
|
3228
3213
|
m(target, anchor) {
|
|
3229
3214
|
internal.insert(target, path, anchor);
|
|
@@ -3267,7 +3252,7 @@
|
|
|
3267
3252
|
/* src/floorplan/Components/RoomHighlight/RoomHighlight.svelte generated by Svelte v3.47.0 */
|
|
3268
3253
|
|
|
3269
3254
|
function add_css$9(target) {
|
|
3270
|
-
internal.append_styles(target, "svelte-
|
|
3255
|
+
internal.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}");
|
|
3271
3256
|
}
|
|
3272
3257
|
|
|
3273
3258
|
function get_each_context$3(ctx, list, i) {
|
|
@@ -3369,8 +3354,8 @@
|
|
|
3369
3354
|
each_blocks[i].c();
|
|
3370
3355
|
}
|
|
3371
3356
|
|
|
3372
|
-
internal.attr(svg, "class", "svelte-
|
|
3373
|
-
internal.attr(div, "class", "floorplan-plugin__room-highlight svelte-
|
|
3357
|
+
internal.attr(svg, "class", "svelte-klfhwd");
|
|
3358
|
+
internal.attr(div, "class", "floorplan-plugin__room-highlight svelte-klfhwd");
|
|
3374
3359
|
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[10].call(div));
|
|
3375
3360
|
},
|
|
3376
3361
|
m(target, anchor) {
|
|
@@ -3526,7 +3511,7 @@
|
|
|
3526
3511
|
/* src/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte generated by Svelte v3.47.0 */
|
|
3527
3512
|
|
|
3528
3513
|
function add_css$8(target) {
|
|
3529
|
-
internal.append_styles(target, "svelte-
|
|
3514
|
+
internal.append_styles(target, "svelte-tlo7rk", ".floorplan-current-floor.svelte-tlo7rk{position:relative;width:100%;height:100%}");
|
|
3530
3515
|
}
|
|
3531
3516
|
|
|
3532
3517
|
// (19:2) {#if hoverEnable}
|
|
@@ -3760,7 +3745,7 @@
|
|
|
3760
3745
|
if (if_block1) if_block1.c();
|
|
3761
3746
|
t3 = internal.space();
|
|
3762
3747
|
if (if_block2) if_block2.c();
|
|
3763
|
-
internal.attr(div, "class", "floorplan-current-floor svelte-
|
|
3748
|
+
internal.attr(div, "class", "floorplan-current-floor svelte-tlo7rk");
|
|
3764
3749
|
},
|
|
3765
3750
|
m(target, anchor) {
|
|
3766
3751
|
internal.insert(target, div, anchor);
|
|
@@ -3961,7 +3946,7 @@
|
|
|
3961
3946
|
/* src/floorplan/ModelFloorplanPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
|
|
3962
3947
|
|
|
3963
3948
|
function add_css$7(target) {
|
|
3964
|
-
internal.append_styles(target, "svelte-
|
|
3949
|
+
internal.append_styles(target, "svelte-q5wdnn", ".floorplan-main.svelte-q5wdnn{width:100%;height:100%}");
|
|
3965
3950
|
}
|
|
3966
3951
|
|
|
3967
3952
|
// (24:0) {#if visible}
|
|
@@ -4022,7 +4007,7 @@
|
|
|
4022
4007
|
internal.create_component(camera.$$.fragment);
|
|
4023
4008
|
t1 = internal.space();
|
|
4024
4009
|
if (if_block) if_block.c();
|
|
4025
|
-
internal.attr(div, "class", "floorplan-main svelte-
|
|
4010
|
+
internal.attr(div, "class", "floorplan-main svelte-q5wdnn");
|
|
4026
4011
|
},
|
|
4027
4012
|
m(target, anchor) {
|
|
4028
4013
|
internal.insert(target, div, anchor);
|
|
@@ -4652,7 +4637,7 @@
|
|
|
4652
4637
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte generated by Svelte v3.47.0 */
|
|
4653
4638
|
|
|
4654
4639
|
function add_css$6(target) {
|
|
4655
|
-
internal.append_styles(target, "svelte-
|
|
4640
|
+
internal.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%}");
|
|
4656
4641
|
}
|
|
4657
4642
|
|
|
4658
4643
|
function create_fragment$7(ctx) {
|
|
@@ -4665,12 +4650,12 @@
|
|
|
4665
4650
|
div2 = internal.element("div");
|
|
4666
4651
|
div1 = internal.element("div");
|
|
4667
4652
|
div0 = internal.element("div");
|
|
4668
|
-
internal.attr(div0, "class", "plugin-radar__camera-rotate svelte-
|
|
4653
|
+
internal.attr(div0, "class", "plugin-radar__camera-rotate svelte-1ty3s4p");
|
|
4669
4654
|
internal.set_style(div0, "background-image", "url(" + (/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE) + ")");
|
|
4670
4655
|
internal.set_style(div0, "transform", /*rotateTransform*/ ctx[1], false);
|
|
4671
|
-
internal.attr(div1, "class", "plugin-radar__camera-position svelte-
|
|
4656
|
+
internal.attr(div1, "class", "plugin-radar__camera-position svelte-1ty3s4p");
|
|
4672
4657
|
internal.set_style(div1, "transform", /*positionTransform*/ ctx[2], false);
|
|
4673
|
-
internal.attr(div2, "class", "plugin-radar__camera-wrapper svelte-
|
|
4658
|
+
internal.attr(div2, "class", "plugin-radar__camera-wrapper svelte-1ty3s4p");
|
|
4674
4659
|
},
|
|
4675
4660
|
m(target, anchor) {
|
|
4676
4661
|
internal.insert(target, div2, anchor);
|
|
@@ -4786,7 +4771,7 @@
|
|
|
4786
4771
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte generated by Svelte v3.47.0 */
|
|
4787
4772
|
|
|
4788
4773
|
function add_css$5(target) {
|
|
4789
|
-
internal.append_styles(target, "svelte-
|
|
4774
|
+
internal.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%)}");
|
|
4790
4775
|
}
|
|
4791
4776
|
|
|
4792
4777
|
function get_each_context$2(ctx, list, i) {
|
|
@@ -4812,11 +4797,11 @@
|
|
|
4812
4797
|
div1 = internal.element("div");
|
|
4813
4798
|
div0 = internal.element("div");
|
|
4814
4799
|
t = internal.space();
|
|
4815
|
-
internal.attr(div0, "class", "plugin-pano-floorplan__extra-object-item svelte-
|
|
4800
|
+
internal.attr(div0, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7");
|
|
4816
4801
|
internal.set_style(div0, "background-image", `url(${/*extraObject*/ ctx[1].icon.url})`);
|
|
4817
4802
|
internal.set_style(div0, "width", style_width, false);
|
|
4818
4803
|
internal.set_style(div0, "height", style_height, false);
|
|
4819
|
-
internal.attr(div1, "class", "plugin-pano-floorplan__extra-object-item--position svelte-
|
|
4804
|
+
internal.attr(div1, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7");
|
|
4820
4805
|
internal.set_style(div1, "top", style_top, false);
|
|
4821
4806
|
internal.set_style(div1, "left", style_left, false);
|
|
4822
4807
|
this.first = div1;
|
|
@@ -4876,7 +4861,7 @@
|
|
|
4876
4861
|
each_blocks[i].c();
|
|
4877
4862
|
}
|
|
4878
4863
|
|
|
4879
|
-
internal.attr(div, "class", "plugin-pano-floorplan__extra-objects svelte-
|
|
4864
|
+
internal.attr(div, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
|
|
4880
4865
|
},
|
|
4881
4866
|
m(target, anchor) {
|
|
4882
4867
|
internal.insert(target, div, anchor);
|
|
@@ -5150,7 +5135,7 @@
|
|
|
5150
5135
|
/* src/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte generated by Svelte v3.47.0 */
|
|
5151
5136
|
|
|
5152
5137
|
function add_css$4(target) {
|
|
5153
|
-
internal.append_styles(target, "svelte-
|
|
5138
|
+
internal.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}");
|
|
5154
5139
|
}
|
|
5155
5140
|
|
|
5156
5141
|
// (41:2) {#if clientWidth !== 0}
|
|
@@ -5205,7 +5190,7 @@
|
|
|
5205
5190
|
internal.create_component(currentfloor.$$.fragment);
|
|
5206
5191
|
t = internal.space();
|
|
5207
5192
|
internal.create_component(camera.$$.fragment);
|
|
5208
|
-
internal.attr(div, "class", "plugin-floorplan-radar-container svelte-
|
|
5193
|
+
internal.attr(div, "class", "plugin-floorplan-radar-container svelte-1mvqyqq");
|
|
5209
5194
|
internal.set_style(div, "width", style_width, false);
|
|
5210
5195
|
internal.set_style(div, "height", style_height, false);
|
|
5211
5196
|
},
|
|
@@ -5282,7 +5267,7 @@
|
|
|
5282
5267
|
c() {
|
|
5283
5268
|
div = internal.element("div");
|
|
5284
5269
|
if (if_block) if_block.c();
|
|
5285
|
-
internal.attr(div, "class", "plugin-floorplan-radar svelte-
|
|
5270
|
+
internal.attr(div, "class", "plugin-floorplan-radar svelte-1mvqyqq");
|
|
5286
5271
|
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[11].call(div));
|
|
5287
5272
|
},
|
|
5288
5273
|
m(target, anchor) {
|
|
@@ -10649,11 +10634,6 @@
|
|
|
10649
10634
|
|
|
10650
10635
|
var Hammer = hammer.exports;
|
|
10651
10636
|
|
|
10652
|
-
var Hammer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/_mergeNamespaces({
|
|
10653
|
-
__proto__: null,
|
|
10654
|
-
'default': Hammer
|
|
10655
|
-
}, [hammer.exports]));
|
|
10656
|
-
|
|
10657
10637
|
// uuid
|
|
10658
10638
|
function S4() {
|
|
10659
10639
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
@@ -11649,7 +11629,7 @@
|
|
|
11649
11629
|
const fiveElement = this.five.getElement();
|
|
11650
11630
|
if (fiveElement) {
|
|
11651
11631
|
this.fiveElement = fiveElement;
|
|
11652
|
-
const hammer = new Hammer
|
|
11632
|
+
const hammer = new Hammer(fiveElement);
|
|
11653
11633
|
this.hammer = hammer;
|
|
11654
11634
|
hammer.on('tap', this.onTap);
|
|
11655
11635
|
hammer.on('pan', this.onPan);
|
|
@@ -13212,7 +13192,7 @@
|
|
|
13212
13192
|
/* src/PanoSpatialTagPlugin/Components/origins.svelte generated by Svelte v3.47.0 */
|
|
13213
13193
|
|
|
13214
13194
|
function add_css$3(target) {
|
|
13215
|
-
internal.append_styles(target, "svelte-
|
|
13195
|
+
internal.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}}");
|
|
13216
13196
|
}
|
|
13217
13197
|
|
|
13218
13198
|
function get_each_context$1(ctx, list, i) {
|
|
@@ -13236,7 +13216,7 @@
|
|
|
13236
13216
|
return {
|
|
13237
13217
|
c() {
|
|
13238
13218
|
i = internal.element("i");
|
|
13239
|
-
internal.attr(i, "class", "svelte-
|
|
13219
|
+
internal.attr(i, "class", "svelte-1kuu68s");
|
|
13240
13220
|
internal.toggle_class(i, "PanoSpatialTagPlugin__tag-origin", true);
|
|
13241
13221
|
internal.toggle_class(i, "PanoSpatialTagPlugin__tag-origin-destroy", /*origin*/ ctx[3].destroying);
|
|
13242
13222
|
internal.set_style(i, "top", style_top, false);
|
|
@@ -13361,7 +13341,7 @@
|
|
|
13361
13341
|
/* src/PanoSpatialTagPlugin/Components/tag.svelte generated by Svelte v3.47.0 */
|
|
13362
13342
|
|
|
13363
13343
|
function add_css$2(target) {
|
|
13364
|
-
internal.append_styles(target, "svelte-
|
|
13344
|
+
internal.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)}}");
|
|
13365
13345
|
}
|
|
13366
13346
|
|
|
13367
13347
|
function create_fragment$2(ctx) {
|
|
@@ -13395,19 +13375,19 @@
|
|
|
13395
13375
|
t3 = internal.space();
|
|
13396
13376
|
div3 = internal.element("div");
|
|
13397
13377
|
div2 = internal.element("div");
|
|
13398
|
-
internal.attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-
|
|
13378
|
+
internal.attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1wukaol");
|
|
13399
13379
|
internal.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)");
|
|
13400
|
-
internal.attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-
|
|
13380
|
+
internal.attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1wukaol");
|
|
13401
13381
|
internal.set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
|
|
13402
|
-
internal.attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-
|
|
13403
|
-
internal.attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-
|
|
13404
|
-
internal.attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-
|
|
13405
|
-
internal.attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-
|
|
13406
|
-
internal.attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-
|
|
13382
|
+
internal.attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1wukaol");
|
|
13383
|
+
internal.attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1wukaol");
|
|
13384
|
+
internal.attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-1wukaol");
|
|
13385
|
+
internal.attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-1wukaol");
|
|
13386
|
+
internal.attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-1wukaol");
|
|
13407
13387
|
internal.set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
|
|
13408
13388
|
internal.attr(div4, "id", div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0]);
|
|
13409
13389
|
internal.set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
|
|
13410
|
-
internal.attr(div4, "class", "svelte-
|
|
13390
|
+
internal.attr(div4, "class", "svelte-1wukaol");
|
|
13411
13391
|
internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-x", true);
|
|
13412
13392
|
internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
|
|
13413
13393
|
internal.toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
|
|
@@ -14268,12 +14248,13 @@
|
|
|
14268
14248
|
DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
|
|
14269
14249
|
DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
|
|
14270
14250
|
DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
|
|
14251
|
+
DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
|
|
14271
14252
|
})(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
|
|
14272
14253
|
|
|
14273
14254
|
/* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
|
|
14274
14255
|
|
|
14275
14256
|
function add_css$1(target) {
|
|
14276
|
-
internal.append_styles(target, "svelte-
|
|
14257
|
+
internal.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 }}");
|
|
14277
14258
|
}
|
|
14278
14259
|
|
|
14279
14260
|
function create_fragment$1(ctx) {
|
|
@@ -14300,12 +14281,12 @@
|
|
|
14300
14281
|
t0 = internal.text(t0_value);
|
|
14301
14282
|
t1 = internal.space();
|
|
14302
14283
|
div1 = internal.element("div");
|
|
14303
|
-
internal.attr(span, "class", "item-label-item__text svelte-
|
|
14304
|
-
internal.attr(div0, "class", "item-label-item__text-wrap svelte-
|
|
14284
|
+
internal.attr(span, "class", "item-label-item__text svelte-1hzvil1");
|
|
14285
|
+
internal.attr(div0, "class", "item-label-item__text-wrap svelte-1hzvil1");
|
|
14305
14286
|
internal.set_style(div0, "top", `-${/*itemLabel*/ ctx[0].strokeLength + 26}px`);
|
|
14306
|
-
internal.attr(div1, "class", "item-label-item__bar svelte-
|
|
14287
|
+
internal.attr(div1, "class", "item-label-item__bar svelte-1hzvil1");
|
|
14307
14288
|
internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
14308
|
-
internal.attr(div2, "class", div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-
|
|
14289
|
+
internal.attr(div2, "class", div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1hzvil1"));
|
|
14309
14290
|
internal.set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
14310
14291
|
internal.set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
14311
14292
|
},
|
|
@@ -14335,7 +14316,7 @@
|
|
|
14335
14316
|
internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
14336
14317
|
}
|
|
14337
14318
|
|
|
14338
|
-
if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-
|
|
14319
|
+
if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]("item-label-item", { visible: /*itemLabel*/ ctx[0].visible })) + " svelte-1hzvil1"))) {
|
|
14339
14320
|
internal.attr(div2, "class", div2_class_value);
|
|
14340
14321
|
}
|
|
14341
14322
|
|
|
@@ -14399,16 +14380,16 @@
|
|
|
14399
14380
|
/* src/ModelItemLabelPlugin/ItemLabelComponent.svelte generated by Svelte v3.47.0 */
|
|
14400
14381
|
|
|
14401
14382
|
function add_css(target) {
|
|
14402
|
-
internal.append_styles(target, "svelte-
|
|
14383
|
+
internal.append_styles(target, "svelte-gk8s47", ".item-labels-container.svelte-gk8s47{width:100%;height:100%;position:relative}");
|
|
14403
14384
|
}
|
|
14404
14385
|
|
|
14405
14386
|
function get_each_context(ctx, list, i) {
|
|
14406
14387
|
const child_ctx = ctx.slice();
|
|
14407
|
-
child_ctx[
|
|
14388
|
+
child_ctx[28] = list[i];
|
|
14408
14389
|
return child_ctx;
|
|
14409
14390
|
}
|
|
14410
14391
|
|
|
14411
|
-
// (
|
|
14392
|
+
// (162:1) {#each renderItemLabels as itemLabelItem (itemLabelItem.id)}
|
|
14412
14393
|
function create_each_block(key_1, ctx) {
|
|
14413
14394
|
let first;
|
|
14414
14395
|
let itemlabelitem;
|
|
@@ -14416,7 +14397,7 @@
|
|
|
14416
14397
|
|
|
14417
14398
|
itemlabelitem = new ItemLabelItem({
|
|
14418
14399
|
props: {
|
|
14419
|
-
itemLabel: /*itemLabelItem*/ ctx[
|
|
14400
|
+
itemLabel: /*itemLabelItem*/ ctx[28],
|
|
14420
14401
|
hooks: /*hooks*/ ctx[0]
|
|
14421
14402
|
}
|
|
14422
14403
|
});
|
|
@@ -14437,7 +14418,7 @@
|
|
|
14437
14418
|
p(new_ctx, dirty) {
|
|
14438
14419
|
ctx = new_ctx;
|
|
14439
14420
|
const itemlabelitem_changes = {};
|
|
14440
|
-
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[
|
|
14421
|
+
if (dirty & /*renderItemLabels*/ 2) itemlabelitem_changes.itemLabel = /*itemLabelItem*/ ctx[28];
|
|
14441
14422
|
if (dirty & /*hooks*/ 1) itemlabelitem_changes.hooks = /*hooks*/ ctx[0];
|
|
14442
14423
|
itemlabelitem.$set(itemlabelitem_changes);
|
|
14443
14424
|
},
|
|
@@ -14464,7 +14445,7 @@
|
|
|
14464
14445
|
let div_resize_listener;
|
|
14465
14446
|
let current;
|
|
14466
14447
|
let each_value = /*renderItemLabels*/ ctx[1];
|
|
14467
|
-
const get_key = ctx => /*itemLabelItem*/ ctx[
|
|
14448
|
+
const get_key = ctx => /*itemLabelItem*/ ctx[28].id;
|
|
14468
14449
|
|
|
14469
14450
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
14470
14451
|
let child_ctx = get_each_context(ctx, each_value, i);
|
|
@@ -14480,7 +14461,7 @@
|
|
|
14480
14461
|
each_blocks[i].c();
|
|
14481
14462
|
}
|
|
14482
14463
|
|
|
14483
|
-
internal.attr(div, "class", "item-labels-container svelte-
|
|
14464
|
+
internal.attr(div, "class", "item-labels-container svelte-gk8s47");
|
|
14484
14465
|
internal.add_render_callback(() => /*div_elementresize_handler*/ ctx[10].call(div));
|
|
14485
14466
|
internal.set_style(div, "opacity", /*itemsVisible*/ ctx[4] ? 1 : 0, false);
|
|
14486
14467
|
},
|
|
@@ -14615,6 +14596,8 @@
|
|
|
14615
14596
|
return Math.ceil(-38.9 * itemSpaceHeight + 130);
|
|
14616
14597
|
case DISPLAY_STRATEGY_TYPE.LARGE:
|
|
14617
14598
|
return Math.ceil(-44.44 * itemSpaceHeight + 140);
|
|
14599
|
+
case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
|
|
14600
|
+
return Math.ceil(-92.59 * itemSpaceHeight + 300);
|
|
14618
14601
|
}
|
|
14619
14602
|
}
|
|
14620
14603
|
|
|
@@ -14661,16 +14644,17 @@
|
|
|
14661
14644
|
addDataUpdateListener();
|
|
14662
14645
|
});
|
|
14663
14646
|
|
|
14647
|
+
const handleCameraUpdateCallback = () => {
|
|
14648
|
+
$$invalidate(4, itemsVisible = false);
|
|
14649
|
+
handleCameraUpdate();
|
|
14650
|
+
};
|
|
14651
|
+
|
|
14664
14652
|
svelte.onMount(() => {
|
|
14665
14653
|
$$invalidate(1, renderItemLabels = itemLabels);
|
|
14666
14654
|
curItemLabels = itemLabels;
|
|
14667
14655
|
onItemLabelUpdate();
|
|
14668
14656
|
addResizeListener();
|
|
14669
|
-
|
|
14670
|
-
five.on('cameraUpdate', () => {
|
|
14671
|
-
$$invalidate(4, itemsVisible = false);
|
|
14672
|
-
handleCameraUpdate();
|
|
14673
|
-
});
|
|
14657
|
+
five.on('cameraUpdate', handleCameraUpdateCallback);
|
|
14674
14658
|
});
|
|
14675
14659
|
|
|
14676
14660
|
const handleCameraUpdate = debounce(
|
|
@@ -14711,12 +14695,11 @@
|
|
|
14711
14695
|
});
|
|
14712
14696
|
|
|
14713
14697
|
svelte.onDestroy(() => {
|
|
14714
|
-
five.off('cameraUpdate');
|
|
14698
|
+
five.off('cameraUpdate', handleCameraUpdateCallback);
|
|
14715
14699
|
resizeObserver.unobserve(wrapper);
|
|
14716
|
-
|
|
14717
|
-
|
|
14718
|
-
|
|
14719
|
-
});
|
|
14700
|
+
}); // curItemLabels = null
|
|
14701
|
+
// renderItemLabels = null
|
|
14702
|
+
// wrapperSize = { width: 0, height: 0 }
|
|
14720
14703
|
|
|
14721
14704
|
function div_elementresize_handler() {
|
|
14722
14705
|
containerWidth = this.clientWidth;
|
|
@@ -14798,6 +14781,7 @@
|
|
|
14798
14781
|
top: 0;
|
|
14799
14782
|
width: 100%;
|
|
14800
14783
|
height: 100%;
|
|
14784
|
+
z-index: 5;
|
|
14801
14785
|
`;
|
|
14802
14786
|
pluginState.container.style.pointerEvents = 'none'; // 写到 cssText 里不生效
|
|
14803
14787
|
const appendTo = (wrapper) => {
|