vue-svg-pan-zoom/dist/vue-svg-pan-zoom.js

1 line
7.3 KiB
JavaScript
Raw Normal View History

2018-01-23 00:58:33 +00:00
module.exports=function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=5)}([function(e,t){e.exports=function(e,t,n,o,i,a){var u,r=e=e||{},d=typeof e.default;"object"!==d&&"function"!==d||(u=e,r=e.default);var l="function"==typeof r?r.options:r;t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var s;if(a?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=s):o&&(s=o),s){var c=l.functional,f=c?l.render:l.beforeCreate;c?(l._injectStyles=s,l.render=function(e,t){return s.call(t),f(e,t)}):l.beforeCreate=f?[].concat(f,s):[s]}return{esModule:u,exports:r,options:l}}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=o(i),u=n(8),r=o(u),d=n(9),l=o(d),s=n(3),c=o(s);t.default={props:r.default,components:{SvgPanZoomThumbnail:c.default},computed:{has_thumbnail:function(){return this.$slots.thumbnail},options:function(){var e=this,t={},n=function(t){return void 0!==e[t]};return Object.keys(r.default).filter(n).forEach(function(n){return t[n]=e[n]}),t}},mounted:function(){var e=this,t={};Object.keys(r.default).filter(function(t){return void 0!==e[t]}).forEach(function(n){return t[n]=e[n]}),this.has_thumbnail?(this.$slots.thumbnail[0].elm.id="thumbView",(0,l.default)({mainViewId:this.$slots.default[0].elm.id,thumbViewId:"thumbView"})):(0,a.default)(this.$slots.default[0].elm,t)}}},function(e,t){e.exports=require("svg-pan-zoom")},function(e,t,n){"use strict";function o(e){n(10)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),a=n.n(i);for(var u in i)"default"!==u&&function(e){n.d(t,e,function(){return i[e]})}(u);var r=n(11),d=n(0),l=o,s=d(a.a,r.a,!1,l,null,null);t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.SvgPanZoomThumbnail={};t.default=o},function(e,t,n){e.exports=n(6)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SvgPanZoom=void 0;var i=n(7),a=o(i),u=n(3);o(u);t.SvgPanZoom=a.default,t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,function(){return o[e]})}(a);var u=n(12),r=n(0),d=r(i.a,u.a,!1,null,null,null);t.default=d.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={zoomEnabled:{type:Boolean,default:!0},controlIconsEnabled:{type:Boolean,default:!1},fit:{type:Boolean,default:!0},panEnabled:{type:Boolean,default:!0},dblClickZoomEnabled:{type:Boolean,default:!0},mouseWheelZoomEnabled:{type:Boolean,default:!0},preventMouseEventsDefault:{type:Boolean,default:!0},contain:{type:Boolean,default:!1},center:{type:Boolean,default:!0},viewportSelector:{default:".svg-pan-zoom_viewport"},zoomScaleSensitivity:{default:.2},minZoom:{default:.5},maxZoom:{default:10},refreshRate:{default:"auto"},beforeZoom:{},onZoom:{},beforePan:{},onPan:{},onUpdatedCTM:{},customEventsHandler:{},eventsListenerElement:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(e){var t=e.contentDocument;if(!t)try{t=e.getSVGDocument()}catch(n){t=e}return t},n=function(t,n){if(!window.main&&t&&(window.main=t),!window.thumb&&n&&(window.thumb=n),window.main&&window.thumb){var o;window.addEventListener("resize",funct