vue-window-size
Advanced tools
Comparing version 0.6.0-0 to 0.6.0-1
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var windowResizeSubject=require("window-resize-subject"),Vue=_interopDefault(require("vue")),createInitailValue=function(){return{width:800,height:600}},createVm=function(){return"function"==typeof Vue.observable?Vue.observable(createInitailValue()):new Vue({data:createInitailValue()})},createMixin=function(e){var n=createVm();return e.addObserver("option",function(e){var i=e.width,t=e.height;n.width=i,n.height=t}).subscribe(),{computed:{windowWidth:function(){return n.width},windowHeight:function(){return n.height}}}},createPublicAPI=function(i){return{setDelay:function(e){i.setDelay(e)},init:function(){i.subscribe()},destroy:function(){i.unsubscribe()}}},subject=new windowResizeSubject.WindowResizeSubject,vueWindowSizeMixin=createMixin(subject),vueWindowSize=createPublicAPI(subject),state={installed:!1};function install(e,i){var t=(void 0===i?{}:i).delay,n=void 0===t?50:t;state.installed||(state.installed=!0,subject.setDelay(n),e.mixin({mixins:[vueWindowSizeMixin]}))}var plugin={install:install},GlobalVue=null;"undefined"!=typeof window?GlobalVue=window.Vue:"undefined"!=typeof global&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin),exports.default=plugin,exports.vueWindowSize=vueWindowSize,exports.vueWindowSizeMixin=vueWindowSizeMixin; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var windowResizeSubject=require("window-resize-subject"),Vue=_interopDefault(require("vue")),createInitailValue=function(){return{width:800,height:600}},createVm=function(){return"function"==typeof Vue.observable?Vue.observable(createInitailValue()):new Vue({data:createInitailValue()})},createMixin=function(e){var n=createVm();return e.addObserver("option",function(e){var i=e.width,t=e.height;n.width=i,n.height=t}).subscribe(),{computed:{windowWidth:function(){return n.width},windowHeight:function(){return n.height}}}},createPublicAPI=function(i){return{setDelay:function(e){i.setDelay(e)},init:function(){i.subscribe()},destroy:function(){i.unsubscribe()}}},subject=new windowResizeSubject.WindowResizeSubject,vueWindowSizeMixin=createMixin(subject),vueWindowSize=createPublicAPI(subject),state={installed:!1};function install(e,i){var t=(void 0===i?{}:i).delay,n=void 0===t?33:t;state.installed||(state.installed=!0,subject.setDelay(n),e.mixin({mixins:[vueWindowSizeMixin]}))}var plugin={install:install},GlobalVue=null;"undefined"!=typeof window?GlobalVue=window.Vue:"undefined"!=typeof global&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin),exports.default=plugin,exports.vueWindowSize=vueWindowSize,exports.vueWindowSizeMixin=vueWindowSizeMixin; |
@@ -1,1 +0,1 @@ | ||
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("window-resize-subject"),require("vue")):"function"==typeof define&&define.amd?define(["exports","window-resize-subject","vue"],i):i(((e="undefined"!=typeof globalThis?globalThis:e||self).bundle=e.bundle||{},e.bundle.umd=e.bundle.umd||{},e.bundle.umd.js={}),e.windowResizeSubject,e.Vue)}(this,function(e,i,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;function t(){return{width:800,height:600}}var u,d,o,l=new i.WindowResizeSubject,s=(u=l,d="function"==typeof n.observable?n.observable(t()):new n({data:t()}),u.addObserver("option",function(e){var i=e.width,n=e.height;d.width=i,d.height=n}).subscribe(),{computed:{windowWidth:function(){return d.width},windowHeight:function(){return d.height}}}),r=(o=l,{setDelay:function(e){o.setDelay(e)},init:function(){o.subscribe()},destroy:function(){o.unsubscribe()}}),f={installed:!1};var a={install:function(e,i){var n=(void 0===i?{}:i).delay,t=void 0===n?50:n;f.installed||(f.installed=!0,l.setDelay(t),e.mixin({mixins:[s]}))}},b=null;"undefined"!=typeof window?b=window.Vue:"undefined"!=typeof global&&(b=global.Vue),b&&b.use(a),e.default=a,e.vueWindowSize=r,e.vueWindowSizeMixin=s,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("window-resize-subject"),require("vue")):"function"==typeof define&&define.amd?define(["exports","window-resize-subject","vue"],i):i(((e="undefined"!=typeof globalThis?globalThis:e||self).bundle=e.bundle||{},e.bundle.umd=e.bundle.umd||{},e.bundle.umd.js={}),e.windowResizeSubject,e.Vue)}(this,function(e,i,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;function t(){return{width:800,height:600}}var u,d,o,l=new i.WindowResizeSubject,s=(u=l,d="function"==typeof n.observable?n.observable(t()):new n({data:t()}),u.addObserver("option",function(e){var i=e.width,n=e.height;d.width=i,d.height=n}).subscribe(),{computed:{windowWidth:function(){return d.width},windowHeight:function(){return d.height}}}),r=(o=l,{setDelay:function(e){o.setDelay(e)},init:function(){o.subscribe()},destroy:function(){o.unsubscribe()}}),f={installed:!1};var a={install:function(e,i){var n=(void 0===i?{}:i).delay,t=void 0===n?33:n;f.installed||(f.installed=!0,l.setDelay(t),e.mixin({mixins:[s]}))}},b=null;"undefined"!=typeof window?b=window.Vue:"undefined"!=typeof global&&(b=global.Vue),b&&b.use(a),e.default=a,e.vueWindowSize=r,e.vueWindowSizeMixin=s,Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "vue-window-size", | ||
"version": "0.6.0-0", | ||
"version": "0.6.0-1", | ||
"description": "Reactivity window size for Vue.js.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.common.js", |
@@ -72,3 +72,4 @@ # vue-window-size | ||
- type: `Number` | ||
- default: `50` | ||
- default: `33` | ||
- About 30 FPS | ||
@@ -75,0 +76,0 @@ Change delay time of resize event. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8791
137