@3dwayfinder/wayfinder-vue-components 1.8.13 → 1.8.14
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.
|
@@ -101,7 +101,7 @@ var script$v = {
|
|
|
101
101
|
});
|
|
102
102
|
wayfinder.events.on("map-click", poi => {
|
|
103
103
|
if (poi) {
|
|
104
|
-
this.$emit('poiClicked', poi, true);
|
|
104
|
+
this.$emit('poiClicked', this.$store.getters["wf/freezePOI"](poi), true);
|
|
105
105
|
wayfinder.statistics.onClick(poi.id, "map");
|
|
106
106
|
}
|
|
107
107
|
});
|
|
@@ -342,8 +342,8 @@ var __vue_staticRenderFns__$v = [];
|
|
|
342
342
|
|
|
343
343
|
const __vue_inject_styles__$v = function (inject) {
|
|
344
344
|
if (!inject) return;
|
|
345
|
-
inject("data-v-
|
|
346
|
-
source: ".wf-map-container[data-v-
|
|
345
|
+
inject("data-v-729acfae_0", {
|
|
346
|
+
source: ".wf-map-container[data-v-729acfae]{position:relative;width:100%;height:100%}.wf-map-container canvas[data-v-729acfae]{width:100%;height:100%}.wf-map-container .wf-map-path-text[data-v-729acfae]{width:30ch;text-align:center;background-color:#fff;position:absolute;bottom:25%;margin:auto;left:50%;margin-left:-15ch;padding:.5em}",
|
|
347
347
|
map: undefined,
|
|
348
348
|
media: undefined
|
|
349
349
|
});
|
|
@@ -351,7 +351,7 @@ const __vue_inject_styles__$v = function (inject) {
|
|
|
351
351
|
/* scoped */
|
|
352
352
|
|
|
353
353
|
|
|
354
|
-
const __vue_scope_id__$v = "data-v-
|
|
354
|
+
const __vue_scope_id__$v = "data-v-729acfae";
|
|
355
355
|
/* module identifier */
|
|
356
356
|
|
|
357
357
|
const __vue_module_identifier__$v = undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var WayfinderVueComponents=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i,n=e(t);function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,a,o=[],s=!0,r=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){r=!0,a=t}finally{try{s||null==i.return||i.return()}finally{if(r)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var l={name:"Map",props:{project:{type:String},api:{type:String,default:"//api.3dwayfinder.com/"},assets:{type:String,default:"//static.3dwayfinder.com/shared/"},showPathText:{type:Boolean,default:!0}},mounted:function(){var t=this;this.load(),this.resize(),window.onresize=function(){t.resize()}},methods:{load:function(){var t=this;i=void 0!==this.$WF_MAP_TYPE&&"2d"==this.$WF_MAP_TYPE?new Wayfinder2D:new Wayfinder3D,n.default.prototype.$wayfinder=i,n.default.directive("wf-translate",{bind:function(t,e,n){if(i){var a="string"==typeof e.value?e.value:e.expression;t.setAttribute("data-translation-element",a),i.translator.translateElement(a,t)}}}),WayfinderAPI.LOCATION=this.api,i.options.assetsLocation=this.assets,console.log("this.project",this.project),this.project&&(i.options.project=this.project),i.open();var e=this,a=1e3*i.settings.getInt("path.message.duration",5);i.events.on("data-loaded",(function(){console.log("data-loaded",e.loaded),e.loaded||(e.$store.dispatch("wf/SET_CURRENT_FLOOR",i.getCurrentFloor()||null),e.$store.dispatch("wf/SET_INACTIVITY_TIME",i.settings.getInt("kiosk.max-inactivity",30)),e.update(i),e.$store.dispatch("wf/SET_INACTIVITY_TIME",i.settings.getInt("kiosk.max-inactivity",30)),e.$emit("loaded"))})),i.events.on("map-ready",(function(){i.resize()})),i.events.on("language-change",(function(){t.update(i)})),i.events.on("floor-change-before",(function(e,n,a){t.pathText=i.translator.get("go_to_floor",[e.getName(i.getLanguage()),a.getName(i.getLanguage()),n.getName(i.getLanguage())]),t.pathTextVisible=!0})),i.events.on("floor-change",(function(e){e&&(t.$store.dispatch("wf/SET_CURRENT_FLOOR",e),t.$emit("onTouch")),t.pathTextVisible&&setTimeout((function(){t.pathTextVisible=!1}),a)})),i.events.on("map-click",(function(e){e&&(t.$emit("poiClicked",e,!0),i.statistics.onClick(e.id,"map"))})),i.events.on("map-touch",(function(){t.$emit("onTouch")})),window.addEventListener("resize",(function(){i&&i.resize()}))},resize:function(){var t=window.matchMedia("(orientation: landscape)"),e=window.matchMedia("(max-height: 1024px) and (orientation: portrait)"),i=window.matchMedia("(max-width: 1024px) and (orientation: landscape)");this.landscape=!!t&&t.matches;var n=!!e&&e.matches||!!i&&i.matches;this.$store.dispatch("wf/SET_LANDSCAPE",this.landscape),this.$store.dispatch("wf/SET_PORTRAIT",!this.landscape),this.$store.dispatch("wf/SET_MOBILE",n)},update:function(){for(var t in this.$store._wrappedGetters)0===t.indexOf("wf")&&this.$store._wrappedGetters[t](this.$store.state);n.default.prototype.$wayfinder.update(),n.default.prototype.$wayfinder.resize(),n.default.prototype.$wayfinder.translator.translate()},reset:function(){i.restoreDefaultState()},start:function(){i.run(),i.statistics.onSessionStart()},pause:function(){i.pause(),i.statistics.onSessionEnd()},run:function(){i.run()},visibilityChanged:function(t){n.default.prototype.$wayfinder.resize()}},data:function(){return{loaded:!1,pathTextVisible:!1,pathText:""}}};function d(t,e,i,n,a,o,s,r,c,u){"boolean"!=typeof s&&(c=r,r=s,s=!1);const l="function"==typeof i?i.options:i;let d;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,a&&(l.functional=!0)),n&&(l._scopeId=n),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=d):e&&(d=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,r(t))}),d)if(l.functional){const t=l.render;l.render=function(e,i){return d.call(i),t(e,i)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,d):[d]}return i}const h="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function f(t){return(t,e)=>function(t,e){const i=h?e.media||"default":t,n=g[i]||(g[i]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===p&&(p=document.head||document.getElementsByTagName("head")[0]),p.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(i),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{const t=n.ids.size-1,e=document.createTextNode(i),a=n.element.childNodes;a[t]&&n.element.removeChild(a[t]),a.length?n.element.insertBefore(e,a[t]):n.element.appendChild(e)}}}(t,e)}let p;const g={};var m=d({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.visibilityChanged,expression:"visibilityChanged"}],staticClass:"wf-component wf-map-container"},[i("canvas",{attrs:{id:"map"}}),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showPathText&&t.pathTextVisible,expression:"(showPathText && pathTextVisible)"}],staticClass:"wf-map-path-text"},[t._v(t._s(t.pathText))])])},staticRenderFns:[]},(function(t){t&&t("data-v-9ce8b1d0_0",{source:".wf-map-container[data-v-9ce8b1d0]{position:relative;width:100%;height:100%}.wf-map-container canvas[data-v-9ce8b1d0]{width:100%;height:100%}.wf-map-container .wf-map-path-text[data-v-9ce8b1d0]{width:30ch;text-align:center;background-color:#fff;position:absolute;bottom:25%;margin:auto;left:50%;margin-left:-15ch;padding:.5em}",map:void 0,media:void 0})}),l,"data-v-9ce8b1d0",false,undefined,!1,f,void 0,void 0);var v=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function w(t,e){Object.keys(t).forEach((function(i){return e(t[i],i)}))}function y(t){return null!==t&&"object"==typeof t}var b=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"==typeof i?i():i)||{}},_={namespaced:{configurable:!0}};_.namespaced.get=function(){return!!this._rawModule.namespaced},b.prototype.addChild=function(t,e){this._children[t]=e},b.prototype.removeChild=function(t){delete this._children[t]},b.prototype.getChild=function(t){return this._children[t]},b.prototype.hasChild=function(t){return t in this._children},b.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},b.prototype.forEachChild=function(t){w(this._children,t)},b.prototype.forEachGetter=function(t){this._rawModule.getters&&w(this._rawModule.getters,t)},b.prototype.forEachAction=function(t){this._rawModule.actions&&w(this._rawModule.actions,t)},b.prototype.forEachMutation=function(t){this._rawModule.mutations&&w(this._rawModule.mutations,t)},Object.defineProperties(b.prototype,_);var C,I=function(t){this.register([],t,!1)};function k(t,e,i){if(e.update(i),i.modules)for(var n in i.modules){if(!e.getChild(n))return;k(t.concat(n),e.getChild(n),i.modules[n])}}I.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},I.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,i){return t+((e=e.getChild(i)).namespaced?i+"/":"")}),"")},I.prototype.update=function(t){k([],this.root,t)},I.prototype.register=function(t,e,i){var n=this;void 0===i&&(i=!0);var a=new b(e,i);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&w(e.modules,(function(e,a){n.register(t.concat(a),e,i)}))},I.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1],n=e.getChild(i);n&&n.runtime&&e.removeChild(i)},I.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return!!e&&e.hasChild(i)};var O=function(t){var e=this;void 0===t&&(t={}),!C&&"undefined"!=typeof window&&window.Vue&&function(t){if(C&&t===C)return;!
|
|
1
|
+
var WayfinderVueComponents=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i,n=e(t);function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,a,o=[],s=!0,r=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){r=!0,a=t}finally{try{s||null==i.return||i.return()}finally{if(r)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var l={name:"Map",props:{project:{type:String},api:{type:String,default:"//api.3dwayfinder.com/"},assets:{type:String,default:"//static.3dwayfinder.com/shared/"},showPathText:{type:Boolean,default:!0}},mounted:function(){var t=this;this.load(),this.resize(),window.onresize=function(){t.resize()}},methods:{load:function(){var t=this;i=void 0!==this.$WF_MAP_TYPE&&"2d"==this.$WF_MAP_TYPE?new Wayfinder2D:new Wayfinder3D,n.default.prototype.$wayfinder=i,n.default.directive("wf-translate",{bind:function(t,e,n){if(i){var a="string"==typeof e.value?e.value:e.expression;t.setAttribute("data-translation-element",a),i.translator.translateElement(a,t)}}}),WayfinderAPI.LOCATION=this.api,i.options.assetsLocation=this.assets,console.log("this.project",this.project),this.project&&(i.options.project=this.project),i.open();var e=this,a=1e3*i.settings.getInt("path.message.duration",5);i.events.on("data-loaded",(function(){console.log("data-loaded",e.loaded),e.loaded||(e.$store.dispatch("wf/SET_CURRENT_FLOOR",i.getCurrentFloor()||null),e.$store.dispatch("wf/SET_INACTIVITY_TIME",i.settings.getInt("kiosk.max-inactivity",30)),e.update(i),e.$store.dispatch("wf/SET_INACTIVITY_TIME",i.settings.getInt("kiosk.max-inactivity",30)),e.$emit("loaded"))})),i.events.on("map-ready",(function(){i.resize()})),i.events.on("language-change",(function(){t.update(i)})),i.events.on("floor-change-before",(function(e,n,a){t.pathText=i.translator.get("go_to_floor",[e.getName(i.getLanguage()),a.getName(i.getLanguage()),n.getName(i.getLanguage())]),t.pathTextVisible=!0})),i.events.on("floor-change",(function(e){e&&(t.$store.dispatch("wf/SET_CURRENT_FLOOR",e),t.$emit("onTouch")),t.pathTextVisible&&setTimeout((function(){t.pathTextVisible=!1}),a)})),i.events.on("map-click",(function(e){e&&(t.$emit("poiClicked",t.$store.getters["wf/freezePOI"](e),!0),i.statistics.onClick(e.id,"map"))})),i.events.on("map-touch",(function(){t.$emit("onTouch")})),window.addEventListener("resize",(function(){i&&i.resize()}))},resize:function(){var t=window.matchMedia("(orientation: landscape)"),e=window.matchMedia("(max-height: 1024px) and (orientation: portrait)"),i=window.matchMedia("(max-width: 1024px) and (orientation: landscape)");this.landscape=!!t&&t.matches;var n=!!e&&e.matches||!!i&&i.matches;this.$store.dispatch("wf/SET_LANDSCAPE",this.landscape),this.$store.dispatch("wf/SET_PORTRAIT",!this.landscape),this.$store.dispatch("wf/SET_MOBILE",n)},update:function(){for(var t in this.$store._wrappedGetters)0===t.indexOf("wf")&&this.$store._wrappedGetters[t](this.$store.state);n.default.prototype.$wayfinder.update(),n.default.prototype.$wayfinder.resize(),n.default.prototype.$wayfinder.translator.translate()},reset:function(){i.restoreDefaultState()},start:function(){i.run(),i.statistics.onSessionStart()},pause:function(){i.pause(),i.statistics.onSessionEnd()},run:function(){i.run()},visibilityChanged:function(t){n.default.prototype.$wayfinder.resize()}},data:function(){return{loaded:!1,pathTextVisible:!1,pathText:""}}};function d(t,e,i,n,a,o,s,r,c,u){"boolean"!=typeof s&&(c=r,r=s,s=!1);const l="function"==typeof i?i.options:i;let d;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,a&&(l.functional=!0)),n&&(l._scopeId=n),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=d):e&&(d=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,r(t))}),d)if(l.functional){const t=l.render;l.render=function(e,i){return d.call(i),t(e,i)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,d):[d]}return i}const h="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function f(t){return(t,e)=>function(t,e){const i=h?e.media||"default":t,n=g[i]||(g[i]={ids:new Set,styles:[]});if(!n.ids.has(t)){n.ids.add(t);let i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),n.element||(n.element=document.createElement("style"),n.element.type="text/css",e.media&&n.element.setAttribute("media",e.media),void 0===p&&(p=document.head||document.getElementsByTagName("head")[0]),p.appendChild(n.element)),"styleSheet"in n.element)n.styles.push(i),n.element.styleSheet.cssText=n.styles.filter(Boolean).join("\n");else{const t=n.ids.size-1,e=document.createTextNode(i),a=n.element.childNodes;a[t]&&n.element.removeChild(a[t]),a.length?n.element.insertBefore(e,a[t]):n.element.appendChild(e)}}}(t,e)}let p;const g={};var m=d({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.visibilityChanged,expression:"visibilityChanged"}],staticClass:"wf-component wf-map-container"},[i("canvas",{attrs:{id:"map"}}),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showPathText&&t.pathTextVisible,expression:"(showPathText && pathTextVisible)"}],staticClass:"wf-map-path-text"},[t._v(t._s(t.pathText))])])},staticRenderFns:[]},(function(t){t&&t("data-v-729acfae_0",{source:".wf-map-container[data-v-729acfae]{position:relative;width:100%;height:100%}.wf-map-container canvas[data-v-729acfae]{width:100%;height:100%}.wf-map-container .wf-map-path-text[data-v-729acfae]{width:30ch;text-align:center;background-color:#fff;position:absolute;bottom:25%;margin:auto;left:50%;margin-left:-15ch;padding:.5em}",map:void 0,media:void 0})}),l,"data-v-729acfae",false,undefined,!1,f,void 0,void 0);var v=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function w(t,e){Object.keys(t).forEach((function(i){return e(t[i],i)}))}function y(t){return null!==t&&"object"==typeof t}var b=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"==typeof i?i():i)||{}},_={namespaced:{configurable:!0}};_.namespaced.get=function(){return!!this._rawModule.namespaced},b.prototype.addChild=function(t,e){this._children[t]=e},b.prototype.removeChild=function(t){delete this._children[t]},b.prototype.getChild=function(t){return this._children[t]},b.prototype.hasChild=function(t){return t in this._children},b.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},b.prototype.forEachChild=function(t){w(this._children,t)},b.prototype.forEachGetter=function(t){this._rawModule.getters&&w(this._rawModule.getters,t)},b.prototype.forEachAction=function(t){this._rawModule.actions&&w(this._rawModule.actions,t)},b.prototype.forEachMutation=function(t){this._rawModule.mutations&&w(this._rawModule.mutations,t)},Object.defineProperties(b.prototype,_);var C,I=function(t){this.register([],t,!1)};function k(t,e,i){if(e.update(i),i.modules)for(var n in i.modules){if(!e.getChild(n))return;k(t.concat(n),e.getChild(n),i.modules[n])}}I.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},I.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,i){return t+((e=e.getChild(i)).namespaced?i+"/":"")}),"")},I.prototype.update=function(t){k([],this.root,t)},I.prototype.register=function(t,e,i){var n=this;void 0===i&&(i=!0);var a=new b(e,i);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&w(e.modules,(function(e,a){n.register(t.concat(a),e,i)}))},I.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1],n=e.getChild(i);n&&n.runtime&&e.removeChild(i)},I.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return!!e&&e.hasChild(i)};var O=function(t){var e=this;void 0===t&&(t={}),!C&&"undefined"!=typeof window&&window.Vue&&function(t){if(C&&t===C)return;!
|
|
2
2
|
/*!
|
|
3
3
|
* vuex v3.6.2
|
|
4
4
|
* (c) 2021 Evan You
|
|
@@ -228,7 +228,7 @@ var script$v = {
|
|
|
228
228
|
});
|
|
229
229
|
wayfinder.events.on("map-click", function (poi) {
|
|
230
230
|
if (poi) {
|
|
231
|
-
_this2.$emit('poiClicked', poi, true);
|
|
231
|
+
_this2.$emit('poiClicked', _this2.$store.getters["wf/freezePOI"](poi), true);
|
|
232
232
|
|
|
233
233
|
wayfinder.statistics.onClick(poi.id, "map");
|
|
234
234
|
}
|
|
@@ -423,9 +423,9 @@ var __vue_render__$v = function __vue_render__() {
|
|
|
423
423
|
expression: "visibilityChanged"
|
|
424
424
|
}],
|
|
425
425
|
staticClass: "wf-component wf-map-container"
|
|
426
|
-
}, [_vm._ssrNode("<canvas id=\"map\" data-v-
|
|
426
|
+
}, [_vm._ssrNode("<canvas id=\"map\" data-v-729acfae></canvas> <div class=\"wf-map-path-text\"" + _vm._ssrStyle(null, null, {
|
|
427
427
|
display: _vm.showPathText && _vm.pathTextVisible ? '' : 'none'
|
|
428
|
-
}) + " data-v-
|
|
428
|
+
}) + " data-v-729acfae>" + _vm._ssrEscape(_vm._s(_vm.pathText)) + "</div>")]);
|
|
429
429
|
};
|
|
430
430
|
|
|
431
431
|
var __vue_staticRenderFns__$v = [];
|
|
@@ -433,8 +433,8 @@ var __vue_staticRenderFns__$v = [];
|
|
|
433
433
|
|
|
434
434
|
var __vue_inject_styles__$v = function __vue_inject_styles__(inject) {
|
|
435
435
|
if (!inject) return;
|
|
436
|
-
inject("data-v-
|
|
437
|
-
source: ".wf-map-container[data-v-
|
|
436
|
+
inject("data-v-729acfae_0", {
|
|
437
|
+
source: ".wf-map-container[data-v-729acfae]{position:relative;width:100%;height:100%}.wf-map-container canvas[data-v-729acfae]{width:100%;height:100%}.wf-map-container .wf-map-path-text[data-v-729acfae]{width:30ch;text-align:center;background-color:#fff;position:absolute;bottom:25%;margin:auto;left:50%;margin-left:-15ch;padding:.5em}",
|
|
438
438
|
map: undefined,
|
|
439
439
|
media: undefined
|
|
440
440
|
});
|
|
@@ -442,10 +442,10 @@ var __vue_inject_styles__$v = function __vue_inject_styles__(inject) {
|
|
|
442
442
|
/* scoped */
|
|
443
443
|
|
|
444
444
|
|
|
445
|
-
var __vue_scope_id__$v = "data-v-
|
|
445
|
+
var __vue_scope_id__$v = "data-v-729acfae";
|
|
446
446
|
/* module identifier */
|
|
447
447
|
|
|
448
|
-
var __vue_module_identifier__$v = "data-v-
|
|
448
|
+
var __vue_module_identifier__$v = "data-v-729acfae";
|
|
449
449
|
/* functional template */
|
|
450
450
|
|
|
451
451
|
var __vue_is_functional_template__$v = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3dwayfinder/wayfinder-vue-components",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.14",
|
|
4
4
|
"description": "VueJS UI components for 3D Wayfinder floor plans",
|
|
5
5
|
"main": "dist/wayfinder-vue-components.ssr.js",
|
|
6
6
|
"browser": "dist/wayfinder-vue-components.esm.js",
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
|
|
112
112
|
wayfinder.events.on("map-click", (poi) => {
|
|
113
113
|
if (poi) {
|
|
114
|
-
this.$emit('poiClicked', poi, true);
|
|
114
|
+
this.$emit('poiClicked', this.$store.getters["wf/freezePOI"](poi), true);
|
|
115
115
|
wayfinder.statistics.onClick(poi.id, "map");
|
|
116
116
|
}
|
|
117
117
|
});
|