diff --git a/CHANGELOG.md b/CHANGELOG.md index 210d240..f94b63e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,14 @@ Types of changes: - ... ------------- +## 2.7.5 - 2022-01-08 +### Added +- update method to re-render or re-init the plugin +### Fixed +- drag speed on mobile +- error when drag speed is too high +- error in dependencies + ## 2.7.4 - 2022-01-26 ### Fixed - typo in documentation file diff --git a/README.md b/README.md index c301d6a..6f14c3a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Release](https://img.shields.io/badge/release-v2.7.4-blue.svg)](https://github.com/scaleflex/js-cloudimage-360-view/releases) +[![Release](https://img.shields.io/badge/release-v2.7.5-blue.svg)](https://github.com/scaleflex/js-cloudimage-360-view/releases) [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](#contributing) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Scaleflex team](https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg)](https://www.scaleflex.it/en/home) @@ -75,7 +75,7 @@ To see the Cloudimage 360 view plugin in action, please check out the Add script tag with CDN link to js-cloudimage-360-view lib after all content in body tag ```javascript - + ``` ## Step 2: Initialize diff --git a/build/js-cloudimage-360-view.min.js b/build/js-cloudimage-360-view.min.js index 7eeb13e..434fc06 100644 --- a/build/js-cloudimage-360-view.min.js +++ b/build/js-cloudimage-360-view.min.js @@ -1,11 +1,11 @@ /*! * - * js-cloudimage-360-view v2.7.4 + * js-cloudimage-360-view v2.7.5 * https://github.com/scaleflex/js-cloudimage-360-view * * Copyright (c) 2019 scaleflex * Released under the MIT license * - * Date: 2022-01-26T18:17:52.032Z + * Date: 2022-02-08T12:41:42.390Z * - */!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=118)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(61))},function(t,e,n){var i=n(18),o=Function.prototype,r=o.bind,s=o.call,a=i&&r.bind(s,s);t.exports=i?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},function(t,e,n){t.exports=n(111)},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){function n(t,e,n,i,o,r,s){try{var a=t[r](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(i,o)}t.exports=function(t){return function(){var e=this,i=arguments;return new Promise((function(o,r){var s=t.apply(e,i);function a(t){n(s,o,r,a,c,"next",t)}function c(t){n(s,o,r,a,c,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var i=n(4);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var i=n(1),o=n(38),r=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(o(t),e)}},function(t,e,n){var i=n(3);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},function(t,e,n){var i=n(0),o=n(37),r=n(7),s=n(39),a=n(34),c=n(33),u=o("wks"),l=i.Symbol,h=l&&l.for,f=c?l:l&&l.withoutSetter||s;t.exports=function(t){if(!r(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&r(l,t)?u[t]=l[t]:u[t]=c&&h?h(e):f(e)}return u[t]}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var i=n(0),o=n(3),r=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(i[t]):i[t]&&i[t][e]}},function(t,e,n){var i=n(29),o=n(30);t.exports=function(t){return i(o(t))}},function(t,e,n){var i=n(0),o=n(6),r=n(40),s=n(42),a=n(14),c=n(31),u=i.TypeError,l=Object.defineProperty,h=Object.getOwnPropertyDescriptor;e.f=o?s?function(t,e,n){if(a(t),e=c(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var i=h(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:i.configurable,enumerable:"enumerable"in n?n.enumerable:i.enumerable,writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=c(e),a(n),r)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(0),o=n(8),r=i.String,s=i.TypeError;t.exports=function(t){if(o(t))return t;throw s(r(t)+" is not an object")}},function(t,e,n){var i=n(112),o=n(113),r=n(50),s=n(114);t.exports=function(t){return i(t)||o(t)||r(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var i=n(0),o=n(27).f,r=n(22),s=n(70),a=n(21),c=n(74),u=n(80);t.exports=function(t,e){var n,l,h,f,d,p=t.target,v=t.global,m=t.stat;if(n=v?i:m?i[p]||a(p,{}):(i[p]||{}).prototype)for(l in e){if(f=e[l],h=t.noTargetGet?(d=o(n,l))&&d.value:n[l],!u(v?l:p+(m?".":"#")+l,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(t.sham||h&&h.sham)&&r(f,"sham",!0),s(n,l,f,t)}}},function(t,e,n){var i=n(18),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,n){var i=n(4);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){var i=n(1),o=i({}.toString),r=i("".slice);t.exports=function(t){return r(o(t),8,-1)}},function(t,e,n){var i=n(0),o=n(21),r=i["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=r},function(t,e,n){var i=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},function(t,e,n){var i=n(6),o=n(13),r=n(28);t.exports=i?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(1),o=n(3),r=n(20),s=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(t){return s(t)}),t.exports=r.inspectSource},function(t,e){t.exports={}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var i=n(0),o=n(1);t.exports=function(t,e){return o(i[t].prototype[e])}},function(t,e,n){var i=n(6),o=n(17),r=n(62),s=n(28),a=n(12),c=n(31),u=n(7),l=n(40),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=a(t),e=c(e),l)try{return h(t,e)}catch(t){}if(u(t,e))return s(!o(r.f,t,e),t[e])}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(0),o=n(1),r=n(4),s=n(19),a=i.Object,c=o("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?c(t,""):a(t)}:a},function(t,e,n){var i=n(0).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},function(t,e,n){var i=n(63),o=n(32);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},function(t,e,n){var i=n(0),o=n(11),r=n(3),s=n(64),a=n(33),c=i.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return r(e)&&s(e.prototype,c(t))}},function(t,e,n){var i=n(34);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var i=n(35),o=n(4);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},function(t,e,n){var i,o,r=n(0),s=n(65),a=r.process,c=r.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(o=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(o=+i[1]),t.exports=o},function(t,e,n){var i=n(0),o=n(3),r=n(67),s=i.TypeError;t.exports=function(t){if(o(t))return t;throw s(r(t)+" is not a function")}},function(t,e,n){var i=n(69),o=n(20);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.3",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,n){var i=n(0),o=n(30),r=i.Object;t.exports=function(t){return r(o(t))}},function(t,e,n){var i=n(1),o=0,r=Math.random(),s=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+r,36)}},function(t,e,n){var i=n(6),o=n(4),r=n(41);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(0),o=n(8),r=i.document,s=o(r)&&o(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},function(t,e,n){var i=n(6),o=n(4);t.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var i=n(37),o=n(39),r=i("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var i=n(1),o=n(7),r=n(12),s=n(45).indexOf,a=n(24),c=i([].push);t.exports=function(t,e){var n,i=r(t),u=0,l=[];for(n in i)!o(a,n)&&o(i,n)&&c(l,n);for(;e.length>u;)o(i,n=e[u++])&&(~s(l,n)||c(l,n));return l}},function(t,e,n){var i=n(12),o=n(77),r=n(47),s=function(t){return function(e,n,s){var a,c=i(e),u=r(c),l=o(s,u);if(t&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?i:n)(e)}},function(t,e,n){var i=n(78);t.exports=function(t){return i(t.length)}},function(t,e,n){var i=n(82),o=n(1),r=n(29),s=n(38),a=n(47),c=n(83),u=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,v,m,g){for(var y,w,b=s(p),x=r(b),I=i(v,m),S=a(x),E=0,k=g||c,O=e?k(p,S):n||f?k(p,0):void 0;S>E;E++)if((d||E in x)&&(w=I(y=x[E],E,b),t))if(e)O[E]=w;else if(w)switch(t){case 3:return!0;case 5:return y;case 6:return E;case 2:u(O,y)}else switch(t){case 4:return!1;case 7:u(O,y)}return h?-1:o||l?l:O}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0?o(i(t),9007199254740991):0}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(4),o=n(3),r=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==l||n!=u&&(o(e)?i(e):!!e)},a=s.normalize=function(t){return String(t).replace(r,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},function(t,e,n){"use strict";var i=n(48).forEach,o=n(89)("forEach");t.exports=o?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var i=n(1),o=n(36),r=n(18),s=i(i.bind);t.exports=function(t,e){return o(t),void 0===e?t:r?s(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(84);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},function(t,e,n){var i=n(0),o=n(85),r=n(86),s=n(8),a=n(9)("species"),c=i.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(r(e)&&(e===c||o(e.prototype))||s(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?c:e}},function(t,e,n){var i=n(19);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(1),o=n(4),r=n(3),s=n(87),a=n(11),c=n(23),u=function(){},l=[],h=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=i(f.exec),p=!f.exec(u),v=function(t){if(!r(t))return!1;try{return h(u,l,t),!0}catch(t){return!1}},m=function(t){if(!r(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,c(t))}catch(t){return!0}};m.sham=!0,t.exports=!h||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?m:v},function(t,e,n){var i=n(0),o=n(88),r=n(3),s=n(19),a=n(9)("toStringTag"),c=i.Object,u="Arguments"==s(function(){return arguments}());t.exports=o?s:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=c(t),a))?n:u?s(e):"Object"==(i=s(e))&&r(e.callee)?"Arguments":i}},function(t,e,n){var i={};i[n(9)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){"use strict";var i=n(4);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var i=n(91);t.exports=i},function(t,e,n){var i=n(92);t.exports=i},function(t,e,n){var i=n(93);t.exports=i},function(t,e,n){n(94);var i=n(26);t.exports=i("Array","filter")},function(t,e,n){"use strict";var i=n(16),o=n(48).filter;i({target:"Array",proto:!0,forced:!n(95)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var i=n(4),o=n(9),r=n(35),s=o("species");t.exports=function(t){return r>=51||!i((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var i=n(97);t.exports=i},function(t,e,n){var i=n(98);t.exports=i},function(t,e,n){var i=n(99);t.exports=i},function(t,e,n){n(100);var i=n(26);t.exports=i("Array","includes")},function(t,e,n){"use strict";var i=n(16),o=n(45).includes,r=n(101);i({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")},function(t,e,n){var i=n(9),o=n(102),r=n(13),s=i("unscopables"),a=Array.prototype;null==a[s]&&r.f(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},function(t,e,n){var i,o=n(14),r=n(103),s=n(25),a=n(24),c=n(105),u=n(41),l=n(43),h=l("IE_PROTO"),f=function(){},d=function(t){return"