@3dwayfinder/wayfinder-vue-components 1.24.0 → 1.24.2
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.
|
@@ -1482,6 +1482,9 @@ var script$C = {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
// WayfinderAPI.LOCATION = 'http://localhost:8080/api/';
|
|
1484
1484
|
Vue$1.prototype.$wayfinder = wayfinder;
|
|
1485
|
+
if (window) {
|
|
1486
|
+
window.wayfinder = wayfinder;
|
|
1487
|
+
}
|
|
1485
1488
|
Vue$1.directive('wf-translate', {
|
|
1486
1489
|
bind: function (el, binding, vnode) {
|
|
1487
1490
|
if (wayfinder) {
|
|
@@ -1533,7 +1536,6 @@ var script$C = {
|
|
|
1533
1536
|
wayfinder.events.on("floor-change", floor => {
|
|
1534
1537
|
// console.log('cbOnFloorChange', floor, wayfinder.settings.getInt('path.message.duration', 1))
|
|
1535
1538
|
if (floor) {
|
|
1536
|
-
this.$store.dispatch('wf/SET_CURRENT_BUILDING', wayfinder.getCurrentBuilding().copy());
|
|
1537
1539
|
this.$store.dispatch('wf/SET_CURRENT_FLOOR', wayfinder.getCurrentFloor().copy());
|
|
1538
1540
|
this.$emit('onTouch');
|
|
1539
1541
|
}
|
|
@@ -1568,8 +1570,7 @@ var script$C = {
|
|
|
1568
1570
|
}
|
|
1569
1571
|
});
|
|
1570
1572
|
wayfinder.events.on("building-change", () => {
|
|
1571
|
-
this
|
|
1572
|
-
this.$store.dispatch('wf/SET_CURRENT_FLOOR', wayfinder.getCurrentFloor().copy());
|
|
1573
|
+
this.updateBuilding();
|
|
1573
1574
|
});
|
|
1574
1575
|
window.addEventListener('resize', () => {
|
|
1575
1576
|
if (wayfinder) {
|
|
@@ -1587,6 +1588,15 @@ var script$C = {
|
|
|
1587
1588
|
Vue$1.prototype.$wayfinder.resize();
|
|
1588
1589
|
Vue$1.prototype.$wayfinder.translator.translate();
|
|
1589
1590
|
},
|
|
1591
|
+
updateBuilding() {
|
|
1592
|
+
this.updateStoreGetter("wf/xBuilding", this.$store.state);
|
|
1593
|
+
this.updateStoreGetter("wf/xFloors", this.$store.state);
|
|
1594
|
+
},
|
|
1595
|
+
updateStoreGetter(key, state) {
|
|
1596
|
+
if (this.$store._wrappedGetters[key]) {
|
|
1597
|
+
this.$store._wrappedGetters[key](state);
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1590
1600
|
reset() {
|
|
1591
1601
|
wayfinder.restoreDefaultState();
|
|
1592
1602
|
},
|
|
@@ -1710,10 +1720,10 @@ var __vue_render__$C = function () {
|
|
|
1710
1720
|
name: "show",
|
|
1711
1721
|
rawName: "v-show",
|
|
1712
1722
|
value: _vm.showPathText && _vm.pathTextVisible,
|
|
1713
|
-
expression: "
|
|
1723
|
+
expression: "showPathText && pathTextVisible"
|
|
1714
1724
|
}],
|
|
1715
1725
|
staticClass: "wf-map-path-text"
|
|
1716
|
-
}, [_vm._v(_vm._s(_vm.pathText))]), _vm._v(" "), _c('div', {
|
|
1726
|
+
}, [_vm._v("\n " + _vm._s(_vm.pathText) + "\n ")]), _vm._v(" "), _c('div', {
|
|
1717
1727
|
directives: [{
|
|
1718
1728
|
name: "show",
|
|
1719
1729
|
rawName: "v-show",
|
|
@@ -1750,14 +1760,14 @@ var __vue_staticRenderFns__$C = [];
|
|
|
1750
1760
|
/* style */
|
|
1751
1761
|
const __vue_inject_styles__$C = function (inject) {
|
|
1752
1762
|
if (!inject) return;
|
|
1753
|
-
inject("data-v-
|
|
1754
|
-
source: ".wf-map-container[data-v-
|
|
1763
|
+
inject("data-v-73ea309f_0", {
|
|
1764
|
+
source: ".wf-map-container[data-v-73ea309f]{position:relative;width:100%;height:100%}.wf-map-container canvas[data-v-73ea309f]{width:100%;height:100%;position:relative}.wf-map-container .wf-map-path-text[data-v-73ea309f]{width:30ch;text-align:center;background-color:#fff;position:absolute;bottom:25%;margin:auto;left:50%;margin-left:-15ch;padding:.5em}#wf-poi-popup[data-v-73ea309f]{position:absolute;top:0;left:0;z-index:10;width:15.5rem;height:auto;background-color:#fff;text-align:center;transform-origin:bottom;animation-duration:.5s;animation-iteration-count:2;cursor:pointer}.wf-poi-popup-content[data-v-73ea309f]{display:flex;flex-direction:column;justify-content:stretch;height:100%}.wf-poi-popup-content>label[data-v-73ea309f]{flex-grow:1;font-size:1.6rem;margin-top:.6rem;text-align:center;line-height:1.2;font-weight:600;margin-bottom:1.6rem}.wf-pin-down[data-v-73ea309f]{background-color:#fff;width:1rem;height:1rem;position:absolute;bottom:-.5rem;border-radius:1rem 0 0 0;transform:rotate(45deg);left:50%;margin-left:-.75rem}.wf-pin-left .wf-pin-down[data-v-73ea309f]{left:1rem}.wf-pin-right .wf-pin-down[data-v-73ea309f]{right:1rem;left:auto}.wf-pin-up .wf-poi-popup-content[data-v-73ea309f]{margin-bottom:0}.wf-pin-up .wf-pin-down[data-v-73ea309f]{top:-.5rem;bottom:auto;transform:rotate(-45deg)}",
|
|
1755
1765
|
map: undefined,
|
|
1756
1766
|
media: undefined
|
|
1757
1767
|
});
|
|
1758
1768
|
};
|
|
1759
1769
|
/* scoped */
|
|
1760
|
-
const __vue_scope_id__$C = "data-v-
|
|
1770
|
+
const __vue_scope_id__$C = "data-v-73ea309f";
|
|
1761
1771
|
/* module identifier */
|
|
1762
1772
|
const __vue_module_identifier__$C = undefined;
|
|
1763
1773
|
/* functional template */
|
|
@@ -3549,6 +3559,11 @@ var script$q = {
|
|
|
3549
3559
|
count: 0
|
|
3550
3560
|
};
|
|
3551
3561
|
},
|
|
3562
|
+
watch: {
|
|
3563
|
+
floors() {
|
|
3564
|
+
console.log('floors', this.floors);
|
|
3565
|
+
}
|
|
3566
|
+
},
|
|
3552
3567
|
computed: {
|
|
3553
3568
|
...mapState('wf', ['floors', 'language']),
|
|
3554
3569
|
filteredFloors() {
|
|
@@ -3623,14 +3638,14 @@ var __vue_staticRenderFns__$q = [];
|
|
|
3623
3638
|
/* style */
|
|
3624
3639
|
const __vue_inject_styles__$q = function (inject) {
|
|
3625
3640
|
if (!inject) return;
|
|
3626
|
-
inject("data-v-
|
|
3627
|
-
source: ".wf-floors-menu .wf-list-item[data-v-
|
|
3641
|
+
inject("data-v-72c3d430_0", {
|
|
3642
|
+
source: ".wf-floors-menu .wf-list-item[data-v-72c3d430]{text-overflow:ellipsis;list-style:none}",
|
|
3628
3643
|
map: undefined,
|
|
3629
3644
|
media: undefined
|
|
3630
3645
|
});
|
|
3631
3646
|
};
|
|
3632
3647
|
/* scoped */
|
|
3633
|
-
const __vue_scope_id__$q = "data-v-
|
|
3648
|
+
const __vue_scope_id__$q = "data-v-72c3d430";
|
|
3634
3649
|
/* module identifier */
|
|
3635
3650
|
const __vue_module_identifier__$q = undefined;
|
|
3636
3651
|
/* functional template */
|
|
@@ -7659,7 +7674,6 @@ var store = {
|
|
|
7659
7674
|
if (keys.length > 0) {
|
|
7660
7675
|
let curSetting = state.template;
|
|
7661
7676
|
keys.forEach(key => {
|
|
7662
|
-
console.log('reduce', key, value, state.template);
|
|
7663
7677
|
if (!curSetting[key]) {
|
|
7664
7678
|
curSetting[key] = {};
|
|
7665
7679
|
}
|
|
@@ -7679,7 +7693,6 @@ var store = {
|
|
|
7679
7693
|
setSettings(keys, camelize(name), wfSettings.get(s));
|
|
7680
7694
|
}
|
|
7681
7695
|
}
|
|
7682
|
-
console.log("template", state.template);
|
|
7683
7696
|
}
|
|
7684
7697
|
},
|
|
7685
7698
|
xPOIAdvertisements: state => {
|