diff --git a/badges/coverage-badge.svg b/badges/coverage-badge.svg index d7f457d4..c537428e 100644 --- a/badges/coverage-badge.svg +++ b/badges/coverage-badge.svg @@ -1 +1 @@ -Statements 51.23%Statements 51.23%Branches 40.96%Branches 40.96%Lines 51.97%Lines 51.97%Functions 58.29%Functions 58.29% +Statements 52.79%Statements 52.79%Branches 41.6%Branches 41.6%Lines 53.61%Lines 53.61%Functions 60.18%Functions 60.18% diff --git a/dist/editor/embedapi.js b/dist/editor/embedapi.js index 4e018cca..4e4af622 100644 --- a/dist/editor/embedapi.js +++ b/dist/editor/embedapi.js @@ -102,7 +102,7 @@ function getMessageListener (t) { * - Have an iframe somewhere pointing to a version of svg-edit > r1000. * @example // Initialize the magic with: -svgCanvas = new EmbeddedSVGEdit(window.frames.svgedit); +const svgCanvas = new EmbeddedSVGEdit(window.frames.svgedit); // Pass functions in this format: svgCanvas.setSvgString('string'); @@ -130,7 +130,7 @@ svgCanvas.setSvgString('string')(function (data, error) { // The only other difference is when handling returns: // the callback notation is used instead. -blah = new EmbeddedSVGEdit(window.frames.svgedit); +const blah = new EmbeddedSVGEdit(window.frames.svgedit); blah.clearSelection('woot', 'blah', 1337, [1, 2, 3, 4, 5, 'moo'], -42, { a: 'tree', b: 6, c: 9 })(function () { console.log('GET DATA', args); }); diff --git a/dist/editor/extensions/ext-arrows/ext-arrows.js b/dist/editor/extensions/ext-arrows/ext-arrows.js index 48eaf61b..e83e4775 100644 --- a/dist/editor/extensions/ext-arrows/ext-arrows.js +++ b/dist/editor/extensions/ext-arrows/ext-arrows.js @@ -1,4 +1,4 @@ -var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var check=function(t){return t&&t.Math==Math&&t},e=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},r=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i={f:o&&!n.call({1:2},1)?function propertyIsEnumerable(t){var e=o(this,t);return!!e&&e.enumerable}:n},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},a={}.toString,classofRaw=function(t){return a.call(t).slice(8,-1)},c="".split,u=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?c.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return u(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,e){if(!isObject(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!isObject(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!isObject(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!isObject(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},f={}.hasOwnProperty,has=function(t,e){return f.call(t,e)},l=e.document,s=isObject(l)&&isObject(l.createElement),documentCreateElement=function(t){return s?l.createElement(t):{}},p=!r&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),h=Object.getOwnPropertyDescriptor,d={f:r?h:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),p)try{return h(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!i.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},v=Object.defineProperty,y={f:r?v:function defineProperty(t,e,r){if(anObject(t),e=toPrimitive(e,!0),anObject(r),p)try{return v(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},g=r?function(t,e,r){return y.f(t,e,createPropertyDescriptor(1,r))}:function(t,e,r){return t[e]=r,t},setGlobal=function(t,r){try{g(e,t,r)}catch(n){e[t]=r}return r},m=e["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),b=Function.toString;"function"!=typeof m.inspectSource&&(m.inspectSource=function(t){return b.call(t)});var w,S,x,E=m.inspectSource,_=e.WeakMap,O="function"==typeof _&&/native code/.test(E(_)),j=createCommonjsModule((function(t){(t.exports=function(t,e){return m[t]||(m[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),k=0,P=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++k+P).toString(36)},A=j("keys"),sharedKey=function(t){return A[t]||(A[t]=uid(t))},T={},I=e.WeakMap;if(O){var L=new I,R=L.get,C=L.has,M=L.set;w=function(t,e){return M.call(L,t,e),e},S=function(t){return R.call(L,t)||{}},x=function(t){return C.call(L,t)}}else{var G=sharedKey("state");T[G]=!0,w=function(t,e){return g(t,G,e),e},S=function(t){return has(t,G)?t[G]:{}},x=function(t){return has(t,G)}}var N,D,U={set:w,get:S,has:x,enforce:function(t){return x(t)?S(t):w(t,{})},getterFor:function(t){return function(e){var r;if(!isObject(e)||(r=S(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},z=createCommonjsModule((function(t){var r=U.get,n=U.enforce,o=String(String).split("String");(t.exports=function(t,r,i,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof r||has(i,"name")||g(i,"name",r),n(i).source=o.join("string"==typeof r?r:"")),t!==e?(c?!f&&t[r]&&(u=!0):delete t[r],u?t[r]=i:g(t,r,i)):u?t[r]=i:setGlobal(r,i)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&r(this).source||E(this)}))})),W=e,aFunction=function(t){return"function"==typeof t?t:void 0},getBuiltIn=function(t,r){return arguments.length<2?aFunction(W[t])||aFunction(e[t]):W[t]&&W[t][r]||e[t]&&e[t][r]},$=Math.ceil,B=Math.floor,toInteger=function(t){return isNaN(t=+t)?0:(t>0?B:$)(t)},V=Math.min,toLength=function(t){return t>0?V(toInteger(t),9007199254740991):0},Y=Math.max,q=Math.min,toAbsoluteIndex=function(t,e){var r=toInteger(t);return r<0?Y(r+e,0):q(r,e)},createMethod=function(t){return function(e,r,n){var o,i=toIndexedObject(e),a=toLength(i.length),c=toAbsoluteIndex(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},H={includes:createMethod(!0),indexOf:createMethod(!1)},K=H.indexOf,objectKeysInternal=function(t,e){var r,n=toIndexedObject(t),o=0,i=[];for(r in n)!has(T,r)&&has(n,r)&&i.push(r);for(;e.length>o;)has(n,r=e[o++])&&(~K(i,r)||i.push(r));return i},J=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],X=J.concat("length","prototype"),Q={f:Object.getOwnPropertyNames||function getOwnPropertyNames(t){return objectKeysInternal(t,X)}},Z={f:Object.getOwnPropertySymbols},tt=getBuiltIn("Reflect","ownKeys")||function ownKeys(t){var e=Q.f(anObject(t)),r=Z.f;return r?e.concat(r(t)):e},copyConstructorProperties=function(t,e){for(var r=tt(e),n=y.f,o=d.f,i=0;i=74)&&(N=vt.match(/Chrome\/(\d+)/))&&(D=N[1]);var bt=D&&+D,wt=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(t){return bt>=51||!fails((function(){var e=[];return(e.constructor={})[wt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},St=wellKnownSymbol("isConcatSpreadable"),xt=bt>=51||!fails((function(){var t=[];return t[St]=!1,t.concat()[0]!==t})),Et=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(t){if(!isObject(t))return!1;var e=t[St];return void 0!==e?!!e:ut(t)};_export({target:"Array",proto:!0,forced:!xt||!Et},{concat:function concat(t){var e,r,n,o,i,a=toObject(this),c=arraySpeciesCreate(a,0),u=0;for(e=-1,n=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(c,u++,i)}return c.length=u,c}});var _t,Ot=Object.keys||function keys(t){return objectKeysInternal(t,J)},jt=r?Object.defineProperties:function defineProperties(t,e){anObject(t);for(var r,n=Ot(e),o=n.length,i=0;o>i;)y.f(t,r=n[i++],e[r]);return t},kt=getBuiltIn("document","documentElement"),Pt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"