svgedit/dist/editor/system/extensions/ext-server_opensave/ext-server_opensave.js

2 lines
266 KiB
JavaScript
Raw Normal View History

Refactor canvas in multiple pieces to increase maintainability (#446) * #refactor-canvas getJsonFromSvgElement and svgroot code moved to separate file * #refactor-canvas build files changes * #refactor-canvas addSVGElementsFromJson move to json file * #refactor-canvas selected element option function move separate file * #refactor-canvas moveUpDownSelected move to select-elem * ##refactor-canvas build file updated * #refactor-canvas moveSelectedElements move to selected-elem * #refactor-canvas cloneSelectedElements move to slected-elem * #refactor-canvas alignSelectedElements move to selected-elem * #refactor-canvas deleteSelectedElements move to selected-elem * #refactor-canvas copySelectedElements and groupSelectedElements move to selected-elem * #refactor-canvas pushGroupProperty, ungroupSelectedElement move to selected-elem * #refactor-canvas comment changes * #refactor-canvas UndoManager move to separate file * #refactor-canvas event file move to mouseMove, mouseUpEvent and dblClickEvent * #refactor-canvas mouseDown move to event * #refactor-canvas move to undo file * #refactor alignment changes and set function revert return * #refactor-canvas textaction move to separate file * #refactor-canvas paste-element function move to separate file * #refactor-canvas set and get method move to separate file * #refactor-canvas set and get function moved changes * #refactor clear file import and regaring function moved changes changes * #refactor-canvas svg related function move to separate file * #refactor-canvas setBackground methos move to elem-get-set file * #refactor-canvas getBsplinePoint method move to event file * #refactor-canvas export functions move to svg-exec * #refactor-canvas svg related function moved separate file * #refactor-canvas updateCanvas, cycleElement move to selected-elem file * #refactor-canvas removeUnusedDefElems move to svg-exec file * #refactor-canvas blur method move to separate file blur-event.js * #refactor-canvas selection related function move to separate file slection.js * #refactor-canvas convertGradients, mousewheelmove event bind function move to other files * #refactor-canvas extension function move to selection file * #refactor-canvas svg tag long string changes to es6 format * eslint fixes * eslint and test fixes * add netlify logo per their requirements * #refactor-canvas path file separate to path-method.js and path-actions.js * #refactor-canvas lint issue fixed * #refactor-canvas path.js file class and const move to path-method.js * #refactor-canvas eslint issue fixed. 'jsdoc/check-examples': 'off' already so removed eslint-disable jsdoc/check-examples * #refactor-canvas path class moved changes and copy-elem.js file cypress test issue fixed * #refactor-canvas UI - Clipboard paste element cypress issue fixed * #refactor-canvas cypress test cases issue fixed changes * #refactor-canvas cypress test cases issue fixed changes * #refactor-canvas cypress test case issue fixed * npm update and fix a few eslint new errors * fix snapshot and run tests * add star tool to cypress * #refactor-canvas shapelibrary, star, polygon and panning tool issue fixed * build * Update layer.js * revert proper declarations Authored-by OptimistikSAS
2020-11-11 10:38:45 +00:00
System.register([],(function(h){"use strict";return{execute:function(){var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(h,d,g){return h(g={path:d,exports:{},require:function(h,d){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==d&&g.path)}},g.exports),g.exports}var check=function(h){return h&&h.Math==Math&&h},g=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof d&&d)||function(){return this}()||Function("return this")(),fails=function(h){try{return!!h()}catch(h){return!0}},x=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,w={f:S&&!b.call({1:2},1)?function propertyIsEnumerable(h){var d=S(this,h);return!!d&&d.enumerable}:b},createPropertyDescriptor=function(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}},E={}.toString,classofRaw=function(h){return E.call(h).slice(8,-1)},_="".split,P=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==classofRaw(h)?_.call(h,""):Object(h)}:Object,requireObjectCoercible=function(h){if(null==h)throw TypeError("Can't call method on "+h);return h},toIndexedObject=function(h){return P(requireObjectCoercible(h))},isObject=function(h){return"object"==typeof h?null!==h:"function"==typeof h},toPrimitive=function(h,d){if(!isObject(h))return h;var g,x;if(d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;if("function"==typeof(g=h.valueOf)&&!isObject(x=g.call(h)))return x;if(!d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;throw TypeError("Can't convert object to primitive value")},A={}.hasOwnProperty,has=function(h,d){return A.call(h,d)},k=g.document,C=isObject(k)&&isObject(k.createElement),documentCreateElement=function(h){return C?k.createElement(h):{}},R=!x&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,N={f:x?M:function getOwnPropertyDescriptor(h,d){if(h=toIndexedObject(h),d=toPrimitive(d,!0),R)try{return M(h,d)}catch(h){}if(has(h,d))return createPropertyDescriptor(!w.f.call(h,d),h[d])}},anObject=function(h){if(!isObject(h))throw TypeError(String(h)+" is not an object");return h},D=Object.defineProperty,V={f:x?D:function defineProperty(h,d,g){if(anObject(h),d=toPrimitive(d,!0),anObject(g),R)try{return D(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},L=x?function(h,d,g){return V.f(h,d,createPropertyDescriptor(1,g))}:function(h,d,g){return h[d]=g,h},setGlobal=function(h,d){try{L(g,h,d)}catch(x){g[h]=d}return d},j="__core-js_shared__",$=g[j]||setGlobal(j,{}),B=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(h){return B.call(h)});var z,U,G,X=$.inspectSource,Y=g.WeakMap,W="function"==typeof Y&&/native code/.test(X(Y)),q=createCommonjsModule((function(h){(h.exports=function(h,d){return $[h]||($[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Q=0,K=Math.random(),uid=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Q+K).toString(36)},Z=q("keys"),sharedKey=function(h){return Z[h]||(Z[h]=uid(h))},J={},tt=g.WeakMap;if(W){var et=$.state||($.state=new tt),rt=et.get,nt=et.has,it=et.set;z=function(h,d){return d.facade=h,it.call(et,h,d),d},U=function(h){return rt.call(et,h)||{}},G=function(h){return nt.call(et,h)}}else{var at=sharedKey("state");J[at]=!0,z=function(h,d){return d.facade=h,L(h,at,d),d},U=function(h){return has(h,at)?h[at]:{}},G=function(h){return has(h,at)}}var ot,ut,st={set:z,get:U,has:G,enforce:function(h){return G(h)?U(h):z(h,{})},getterFor:function(h){return function(d){var g;if(!isObject(d