react-design-editor 0.0.63 → 0.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory(require("react"), require("react-dom"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define("react-design-editor
|
|
5
|
+
define("react-design-editor", ["react", "react-dom"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["react-design-editor
|
|
7
|
+
exports["react-design-editor"] = factory(require("react"), require("react-dom"));
|
|
8
8
|
else
|
|
9
|
-
root["react-design-editor
|
|
9
|
+
root["react-design-editor"] = factory(root["react"], root["react-dom"]);
|
|
10
10
|
})(self, (__WEBPACK_EXTERNAL_MODULE__39155__, __WEBPACK_EXTERNAL_MODULE__69514__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
@@ -142483,7 +142483,6 @@ var Canvas = /*#__PURE__*/external_react_default().forwardRef(function (props, r
|
|
|
142483
142483
|
|
|
142484
142484
|
|
|
142485
142485
|
|
|
142486
|
-
|
|
142487
142486
|
/***/ }),
|
|
142488
142487
|
|
|
142489
142488
|
/***/ 49442:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("react-design-editor.js",["react","react-dom"],e):"object"==typeof exports?exports["react-design-editor.js"]=e(require("react"),require("react-dom")):t["react-design-editor.js"]=e(t.react,t["react-dom"])}(self,((t,e)=>(()=>{var n={17:(t,e,n)=>{"use strict";var i=n(51605),r=n(91344).filter;i({target:"Array",proto:!0,forced:!n(45634)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},41:(t,e,n)=>{"use strict";let i=n(4570),r=n(4809).uniqueId;t.exports={run:function(t){("greedy"===t.graph().acyclicer?i(t,function(t){return e=>t.edge(e).weight}(t)):function(t){let e=[],n={},i={};function r(a){Object.hasOwn(i,a)||(i[a]=!0,n[a]=!0,t.outEdges(a).forEach((t=>{Object.hasOwn(n,t.w)?e.push(t):r(t.w)})),delete n[a])}return t.nodes().forEach(r),e}(t)).forEach((e=>{let n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r("rev"))}))},undo:function(t){t.edges().forEach((e=>{let n=t.edge(e);if(n.reversed){t.removeEdge(e);let i=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,i)}}))}}},105:(t,e,n)=>{var i=n(87190),r=n(58656).buildTransformer,a="___zrEVENTSAVED",o=[];function s(t,e,n,o,s){if(e.getBoundingClientRect&&i.domSupported&&!c(e)){var u=e[a]||(e[a]={}),l=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,c=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[c]+":0",i[1-s]+":auto",r[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}(e,u),h=function(t,e,n){for(var i=n?"invTrans":"trans",a=e[i],o=e.srcCoords,s=!0,c=[],u=[],l=0;l<4;l++){var h=t[l].getBoundingClientRect(),f=2*l,d=h.left,g=h.top;c.push(d,g),s=s&&o&&d===o[f]&&g===o[f+1],u.push(t[l].offsetLeft,t[l].offsetTop)}return s&&a?a:(e.srcCoords=c,e[i]=n?r(u,c):r(c,u))}(l,u,s);if(h)return h(t,n,o),!0}return!1}function c(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,n,i,r){return s(o,e,i,r,!0)&&s(t,n,o[0],o[1])},e.transformCoordWithViewport=s,e.isCanvasEl=c},258:(t,e,n)=>{var i=n(51605),r=n(30200);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},533:(t,e,n)=>{"use strict";var i=n(51605),r=n(52237).left,a=n(92349),o=n(6845),s=n(75223);i({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},613:(t,e,n)=>{var i=n(85532),r=n(18328),a=n(49442).detectSourceFormat,o=n(90642).SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:o,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),r.extend({type:"dataset"})},659:(t,e,n)=>{var i=n(51873),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=o.call(t);return i&&(e?t[s]=n:delete t[s]),r}},778:(t,e,n)=>{var i=n(95289),r=n(44261),a=n(64601),o=n(96748),s=i.each,c=r.asc,u=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function l(t,e){var n=t.getAxisModel(),i=t._percentWindow,a=t._valueWindow;if(i){var o=r.getPixelPrecision(a,[0,500]);o=Math.min(o,20);var s=e||0===i[0]&&100===i[1];n.setRange(s?null:+a[0].toFixed(o),s?null:+a[1].toFixed(o))}}u.prototype={constructor:u,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(n){if(a.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,a=this.getAxisModel();return"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(a.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),u=[0,100],l=[],h=[];s(["start","end"],(function(o,s){var c=t[o],f=t[o+"Value"];"percent"===a[s]?(null==c&&(c=u[s]),f=i.parse(r.linearMap(c,u,n))):(e=!0,f=null==f?n[s]:i.parse(f),c=r.linearMap(f,n,u)),h[s]=f,l[s]=c})),c(h),c(l);var f=this._minMaxSpan;function d(t,e,n,a,s){var c=s?"Span":"ValueSpan";o(0,t,n,"all",f["min"+c],f["max"+c]);for(var u=0;u<2;u++)e[u]=r.linearMap(t[u],n,a,!0),s&&(e[u]=i.parse(e[u]))}return e?d(h,l,n,u,!1):d(l,h,u,n,!0),{valueWindow:h,percentWindow:l}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];s(n,(function(t){var n=t.getData();n&&s(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])}))})),i[1]<i[0]&&(i=[NaN,NaN]);return function(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),a=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!=typeof i?e[0]=i:r&&(e[0]=a>0?0:NaN);var o=n.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:r&&(e[1]=a>0?a-1:NaN);n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,i),i}(this,this._dimName,e),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;s(["min","max"],(function(a){var o=n.get(a+"Span"),s=n.get(a+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?o=r.linearMap(i[0]+s,i,[0,100],!0):null!=o&&(s=r.linearMap(o,[0,100],i,!0)-i[0]),e[a+"Span"]=o,e[a+"ValueSpan"]=s}))}(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,l(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,l(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&s(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf((function(t){for(var n,r,o,s=0;s<i.length;s++){var c=e.get(i[s],t),u=!isNaN(c),l=c<a[0],h=c>a[1];if(u&&!l&&!h)return!0;u&&(o=!0),l&&(n=!0),h&&(r=!0)}return o&&n&&r})):s(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=a[0]&&t<=a[1]}(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}})),s(i,(function(t){e.setApproximateExtent(a,t)})))}))}}};var h=u;t.exports=h},820:(t,e,n)=>{var i=n(33358),r=n(80565),a=n(95289),o=n(8595).encodeHTML,s=n(65840),c=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){c.superApply(this,"init",arguments),this.legendVisualProvider=new s(a.bind(this.getData,this),a.bind(this.getRawData,this))},getInitialData:function(t,e){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t,e,n,i){var r=this.getData(),s=this.coordinateSystem.getIndicatorAxes(),c=this.getData().getName(t),u="html"===i?"<br/>":"\n";return o(""===c?this.name:c)+u+a.map(s,(function(e,n){var i=r.get(r.mapDimension(e.dim),t);return o(e.name+" : "+i)})).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(a.map(n.dimensions,(function(t){return e.mapDimension(t)})),t,!0),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var s=n.getIndicatorAxes();return n.coordToPoint(s[r].dataToCoord(i[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=c;t.exports=u},956:(t,e,n)=>{var i=n(51605),r=Math.hypot,a=Math.abs,o=Math.sqrt;i({target:"Math",stat:!0,arity:2,forced:!!r&&r(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,i,r=0,s=0,c=arguments.length,u=0;s<c;)u<(n=a(arguments[s++]))?(r=r*(i=u/n)*i+1,u=n):r+=n>0?(i=n/u)*i:n;return u===1/0?1/0:u*o(r)}})},1032:t=>{function e(t){return t}function n(t,n,i,r,a){this._old=t,this._new=n,this._oldKeyGetter=i||e,this._newKeyGetter=r||e,this.context=a}function i(t,e,n,i,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[i](t[a],a),s=e[o];null==s?(n.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},r=[],a=[];for(i(t,{},r,"_oldKeyGetter",this),i(e,n,a,"_newKeyGetter",this),o=0;o<t.length;o++){if(null!=(c=n[s=r[o]]))(l=c.length)?(1===l&&(n[s]=null),c=c.shift()):n[s]=null,this._update&&this._update(c,o);else this._remove&&this._remove(o)}for(var o=0;o<a.length;o++){var s=a[o];if(n.hasOwnProperty(s)){var c;if(null==(c=n[s]))continue;if(c.length)for(var u=0,l=c.length;u<l;u++)this._add&&this._add(c[u]);else this._add&&this._add(c)}}}};var r=n;t.exports=r},1200:t=>{var e=2311;t.exports=function(){return e++}},1466:(t,e,n)=>{var i=n(30281),r=n(92074),a=n(78420),o=n(83062),s=n(56492),c=n(69965),u=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=i(f.exec),g=!f.exec(u),p=function(t){if(!a(t))return!1;try{return h(u,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(f,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!h||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},1610:(t,e,n)=>{var i=n(51605),r=n(92074),a=n(76709),o=Math.abs,s=Math.exp,c=Math.E;i({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return o(e)<1?(a(e)-a(-e))/2:(s(e-1)-s(-e-1))*(c/2)}})},1635:(t,e,n)=>{var i=n(44232),r=n(39587),a=n(95289),o=n(30098);function s(t){i.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=o.createOrUpdateImage(i,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=n.x||0,s=n.y||0,c=n.width,u=n.height,l=r.width/r.height;if(null==c&&null!=u?c=u*l:null==u&&null!=c?u=c/l:null==c&&null==u&&(c=r.width,u=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,f=n.sy||0;t.drawImage(r,h,f,n.sWidth,n.sHeight,a,s,c,u)}else if(n.sx&&n.sy){var d=c-(h=n.sx),g=u-(f=n.sy);t.drawImage(r,h,f,d,g,a,s,c,u)}else t.drawImage(r,a,s,c,u);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(s,i);var c=s;t.exports=c},1772:(t,e,n)=>{"use strict";var i=n(51605),r=n(30281),a=n(92074),o=n(24497),s=n(73938),c=n(6539),u=n(33747),l=n(23444),h=o.ArrayBuffer,f=o.DataView,d=f.prototype,g=r(h.prototype.slice),p=r(d.getUint8),v=r(d.setUint8);i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,i=c(t,n),r=c(void 0===e?n:e,n),a=new(l(this,h))(u(r-i)),o=new f(this),d=new f(a),b=0;i<r;)v(d,b++,p(o,i++));return a}})},1811:(t,e,n)=>{"use strict";var i,r,a,o=n(51605),s=n(6926),c=n(75223),u=n(30200),l=n(72368),h=n(7485),f=n(39686),d=n(75282),g=n(93524),p=n(24601),v=n(78420),b=n(65335),m=n(65190),w=n(23444),y=n(74922).set,x=n(47462),_=n(69778),S=n(50242),k=n(97600),T=n(99206),C=n(2413),M=n(39053),E=n(39836),I="Promise",A=M.CONSTRUCTOR,O=M.REJECTION_EVENT,P=M.SUBCLASSING,L=T.getterFor(I),j=T.set,D=C&&C.prototype,N=C,R=D,F=u.TypeError,B=u.document,z=u.process,H=E.f,G=H,V=!!(B&&B.createEvent&&u.dispatchEvent),W="unhandledrejection",U=function(t){var e;return!(!b(t)||!v(e=t.then))&&e},$=function(t,e){var n,i,r,a=e.value,o=1==e.state,s=o?t.ok:t.fail,c=t.resolve,u=t.reject,h=t.domain;try{s?(o||(2===e.rejection&&K(e),e.rejection=1),!0===s?n=a:(h&&h.enter(),n=s(a),h&&(h.exit(),r=!0)),n===t.promise?u(F("Promise-chain cycle")):(i=U(n))?l(i,n,c,u):c(n)):u(a)}catch(t){h&&!r&&h.exit(),u(t)}},X=function(t,e){t.notified||(t.notified=!0,x((function(){for(var n,i=t.reactions;n=i.get();)$(n,t);t.notified=!1,e&&!t.rejection&&J(t)})))},q=function(t,e,n){var i,r;V?((i=B.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:n},!O&&(r=u["on"+t])?r(i):t===W&&_("Unhandled promise rejection",n)},J=function(t){l(y,u,(function(){var e,n=t.facade,i=t.value;if(Y(t)&&(e=S((function(){c?z.emit("unhandledRejection",i,n):q(W,n,i)})),t.rejection=c||Y(t)?2:1,e.error))throw e.value}))},Y=function(t){return 1!==t.rejection&&!t.parent},K=function(t){l(y,u,(function(){var e=t.facade;c?z.emit("rejectionHandled",e):q("rejectionhandled",e,t.value)}))},Z=function(t,e,n){return function(i){t(e,i,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,X(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var i=U(e);i?x((function(){var n={done:!1};try{l(i,e,Z(tt,n,t),Z(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,X(t,!1))}catch(e){Q({done:!1},e,t)}}};if(A&&(R=(N=function(t){m(this,R),p(t),l(i,this);var e=L(this);try{t(Z(tt,e),Z(Q,e))}catch(t){Q(e,t)}}).prototype,(i=function(t){j(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=h(R,"then",(function(t,e){var n=L(this),i=H(w(this,N));return n.parent=!0,i.ok=!v(t)||t,i.fail=v(e)&&e,i.domain=c?z.domain:void 0,0==n.state?n.reactions.add(i):x((function(){$(i,n)})),i.promise})),r=function(){var t=new i,e=L(t);this.promise=t,this.resolve=Z(tt,e),this.reject=Z(Q,e)},E.f=H=function(t){return t===N||undefined===t?new r(t):G(t)},!s&&v(C)&&D!==Object.prototype)){a=D.then,P||h(D,"then",(function(t,e){var n=this;return new N((function(t,e){l(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}f&&f(D,R)}o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:N}),d(N,I,!1,!0),g(I)},1882:(t,e,n)=>{var i=n(72552),r=n(23805);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1906:(t,e,n)=>{var i=n(89231);n(59350),n(44026);var r=n(39784),a=n(32493),o=n(99610);n(48807),i.registerVisual(r("line","circle","line")),i.registerLayout(a("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o("line"))},2054:(t,e,n)=>{var i=n(95289),r=n(61570).getLayoutRect;e.getItemAlign=function(t,e,n){var i=t.option,a=i.align;if(null!=a&&"auto"!==a)return a;for(var o={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,c=[["left","right","width"],["top","bottom","height"]],u=c[s],l=[0,null,10],h={},f=0;f<3;f++)h[c[1-s][f]]=l[f],h[u[f]]=2===f?n[0]:i[u[f]];var d=[["x","width",3],["y","height",0]][s],g=r(h,o,i.padding);return u[(g.margin[d[2]]||0)+g[d[0]]+.5*g[d[1]]<.5*o[d[1]]?0:1]},e.makeHighDownBatch=function(t,e){return i.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},2404:(t,e,n)=>{var i=n(60270);t.exports=function(t,e){return i(t,e)}},2413:(t,e,n)=>{var i=n(30200);t.exports=i.Promise},2458:(t,e,n)=>{var i=n(31138),r=i.scaleAndAdd;e.forceLayout=function(t,e,n){for(var a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,l=0;l<t.length;l++){var h=t[l];h.p||(h.p=i.create(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1])),h.pp=i.clone(h.p),h.edges=null}var f=null==n.friction?.6:n.friction,d=f;return{warmUp:function(){d=.8*f},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(n){for(var a=[],o=t.length,s=0;s<e.length;s++){var l=e[s];if(!l.ignoreForceLayout){var h=l.n1,f=l.n2;i.sub(a,f.p,h.p);var g=i.len(a)-l.d,p=f.w/(h.w+f.w);isNaN(p)&&(p=0),i.normalize(a,a),!h.fixed&&r(h.p,h.p,a,p*g*d),!f.fixed&&r(f.p,f.p,a,-(1-p)*g*d)}}for(s=0;s<o;s++){(w=t[s]).fixed||(i.sub(a,c,w.p),r(w.p,w.p,a,u*d))}for(s=0;s<o;s++){h=t[s];for(var v=s+1;v<o;v++){f=t[v];i.sub(a,f.p,h.p),0===(g=i.len(a))&&(i.set(a,Math.random()-.5,Math.random()-.5),g=1);var b=(h.rep+f.rep)/g/g;!h.fixed&&r(h.pp,h.pp,a,b),!f.fixed&&r(f.pp,f.pp,a,-b)}}var m=[];for(s=0;s<o;s++){var w;(w=t[s]).fixed||(i.sub(m,w.p,w.pp),r(w.p,w.p,m,d),i.copy(w.pp,w.p))}d*=.992,n&&n(t,e,d<.01)}}}},2543:function(t,e,n){var i;
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("react-design-editor",["react","react-dom"],e):"object"==typeof exports?exports["react-design-editor"]=e(require("react"),require("react-dom")):t["react-design-editor"]=e(t.react,t["react-dom"])}(self,((t,e)=>(()=>{var n={17:(t,e,n)=>{"use strict";var i=n(51605),r=n(91344).filter;i({target:"Array",proto:!0,forced:!n(45634)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},41:(t,e,n)=>{"use strict";let i=n(4570),r=n(4809).uniqueId;t.exports={run:function(t){("greedy"===t.graph().acyclicer?i(t,function(t){return e=>t.edge(e).weight}(t)):function(t){let e=[],n={},i={};function r(a){Object.hasOwn(i,a)||(i[a]=!0,n[a]=!0,t.outEdges(a).forEach((t=>{Object.hasOwn(n,t.w)?e.push(t):r(t.w)})),delete n[a])}return t.nodes().forEach(r),e}(t)).forEach((e=>{let n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r("rev"))}))},undo:function(t){t.edges().forEach((e=>{let n=t.edge(e);if(n.reversed){t.removeEdge(e);let i=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,i)}}))}}},105:(t,e,n)=>{var i=n(87190),r=n(58656).buildTransformer,a="___zrEVENTSAVED",o=[];function s(t,e,n,o,s){if(e.getBoundingClientRect&&i.domSupported&&!c(e)){var u=e[a]||(e[a]={}),l=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,c=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[c]+":0",i[1-s]+":auto",r[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}(e,u),h=function(t,e,n){for(var i=n?"invTrans":"trans",a=e[i],o=e.srcCoords,s=!0,c=[],u=[],l=0;l<4;l++){var h=t[l].getBoundingClientRect(),f=2*l,d=h.left,g=h.top;c.push(d,g),s=s&&o&&d===o[f]&&g===o[f+1],u.push(t[l].offsetLeft,t[l].offsetTop)}return s&&a?a:(e.srcCoords=c,e[i]=n?r(u,c):r(c,u))}(l,u,s);if(h)return h(t,n,o),!0}return!1}function c(t){return"CANVAS"===t.nodeName.toUpperCase()}e.transformLocalCoord=function(t,e,n,i,r){return s(o,e,i,r,!0)&&s(t,n,o[0],o[1])},e.transformCoordWithViewport=s,e.isCanvasEl=c},258:(t,e,n)=>{var i=n(51605),r=n(30200);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},533:(t,e,n)=>{"use strict";var i=n(51605),r=n(52237).left,a=n(92349),o=n(6845),s=n(75223);i({target:"Array",proto:!0,forced:!a("reduce")||!s&&o>79&&o<83},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},613:(t,e,n)=>{var i=n(85532),r=n(18328),a=n(49442).detectSourceFormat,o=n(90642).SERIES_LAYOUT_BY_COLUMN;i.extend({type:"dataset",defaultOption:{seriesLayoutBy:o,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),r.extend({type:"dataset"})},659:(t,e,n)=>{var i=n(51873),r=Object.prototype,a=r.hasOwnProperty,o=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=o.call(t);return i&&(e?t[s]=n:delete t[s]),r}},778:(t,e,n)=>{var i=n(95289),r=n(44261),a=n(64601),o=n(96748),s=i.each,c=r.asc,u=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=n};function l(t,e){var n=t.getAxisModel(),i=t._percentWindow,a=t._valueWindow;if(i){var o=r.getPixelPrecision(a,[0,500]);o=Math.min(o,20);var s=e||0===i[0]&&100===i[1];n.setRange(s?null:+a[0].toFixed(o),s?null:+a[1].toFixed(o))}}u.prototype={constructor:u,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(n){if(a.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n,i=this._dimName,r=this.ecModel,a=this.getAxisModel();return"x"===i||"y"===i?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle"),r.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(a.get(e)||0)&&(n=t)})),n},getMinMaxSpan:function(){return i.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),u=[0,100],l=[],h=[];s(["start","end"],(function(o,s){var c=t[o],f=t[o+"Value"];"percent"===a[s]?(null==c&&(c=u[s]),f=i.parse(r.linearMap(c,u,n))):(e=!0,f=null==f?n[s]:i.parse(f),c=r.linearMap(f,n,u)),h[s]=f,l[s]=c})),c(h),c(l);var f=this._minMaxSpan;function d(t,e,n,a,s){var c=s?"Span":"ValueSpan";o(0,t,n,"all",f["min"+c],f["max"+c]);for(var u=0;u<2;u++)e[u]=r.linearMap(t[u],n,a,!0),s&&(e[u]=i.parse(e[u]))}return e?d(h,l,n,u,!1):d(l,h,u,n,!0),{valueWindow:h,percentWindow:l}},reset:function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];s(n,(function(t){var n=t.getData();n&&s(n.mapDimension(e,!0),(function(t){var e=n.getApproximateExtent(t);e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1])}))})),i[1]<i[0]&&(i=[NaN,NaN]);return function(t,e){var n=t.getAxisModel(),i=n.getMin(!0),r="category"===n.get("type"),a=r&&n.getCategories().length;null!=i&&"dataMin"!==i&&"function"!=typeof i?e[0]=i:r&&(e[0]=a>0?0:NaN);var o=n.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:r&&(e[1]=a>0?a-1:NaN);n.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,i),i}(this,this._dimName,e),function(t){var e=t._minMaxSpan={},n=t._dataZoomModel,i=t._dataExtent;s(["min","max"],(function(a){var o=n.get(a+"Span"),s=n.get(a+"ValueSpan");null!=s&&(s=t.getAxisModel().axis.scale.parse(s)),null!=s?o=r.linearMap(i[0]+s,i,[0,100],!0):null!=o&&(s=r.linearMap(o,[0,100],i,!0)-i[0]),e[a+"Span"]=o,e[a+"ValueSpan"]=s}))}(this);var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,l(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,l(this,!0))},filterData:function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._valueWindow;"none"!==r&&s(i,(function(t){var e=t.getData(),i=e.mapDimension(n,!0);i.length&&("weakFilter"===r?e.filterSelf((function(t){for(var n,r,o,s=0;s<i.length;s++){var c=e.get(i[s],t),u=!isNaN(c),l=c<a[0],h=c>a[1];if(u&&!l&&!h)return!0;u&&(o=!0),l&&(n=!0),h&&(r=!0)}return o&&n&&r})):s(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=a[0]&&t<=a[1]}(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}})),s(i,(function(t){e.setApproximateExtent(a,t)})))}))}}};var h=u;t.exports=h},820:(t,e,n)=>{var i=n(33358),r=n(80565),a=n(95289),o=n(8595).encodeHTML,s=n(65840),c=i.extend({type:"series.radar",dependencies:["radar"],init:function(t){c.superApply(this,"init",arguments),this.legendVisualProvider=new s(a.bind(this.getData,this),a.bind(this.getRawData,this))},getInitialData:function(t,e){return r(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(t,e,n,i){var r=this.getData(),s=this.coordinateSystem.getIndicatorAxes(),c=this.getData().getName(t),u="html"===i?"<br/>":"\n";return o(""===c?this.name:c)+u+a.map(s,(function(e,n){var i=r.get(r.mapDimension(e.dim),t);return o(e.name+" : "+i)})).join(u)},getTooltipPosition:function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(a.map(n.dimensions,(function(t){return e.mapDimension(t)})),t,!0),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var s=n.getIndicatorAxes();return n.coordToPoint(s[r].dataToCoord(i[r]),r)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=c;t.exports=u},956:(t,e,n)=>{var i=n(51605),r=Math.hypot,a=Math.abs,o=Math.sqrt;i({target:"Math",stat:!0,arity:2,forced:!!r&&r(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,i,r=0,s=0,c=arguments.length,u=0;s<c;)u<(n=a(arguments[s++]))?(r=r*(i=u/n)*i+1,u=n):r+=n>0?(i=n/u)*i:n;return u===1/0?1/0:u*o(r)}})},1032:t=>{function e(t){return t}function n(t,n,i,r,a){this._old=t,this._new=n,this._oldKeyGetter=i||e,this._newKeyGetter=r||e,this.context=a}function i(t,e,n,i,r){for(var a=0;a<t.length;a++){var o="_ec_"+r[i](t[a],a),s=e[o];null==s?(n.push(o),e[o]=a):(s.length||(e[o]=s=[s]),s.push(a))}}n.prototype={constructor:n,add:function(t){return this._add=t,this},update:function(t){return this._update=t,this},remove:function(t){return this._remove=t,this},execute:function(){var t=this._old,e=this._new,n={},r=[],a=[];for(i(t,{},r,"_oldKeyGetter",this),i(e,n,a,"_newKeyGetter",this),o=0;o<t.length;o++){if(null!=(c=n[s=r[o]]))(l=c.length)?(1===l&&(n[s]=null),c=c.shift()):n[s]=null,this._update&&this._update(c,o);else this._remove&&this._remove(o)}for(var o=0;o<a.length;o++){var s=a[o];if(n.hasOwnProperty(s)){var c;if(null==(c=n[s]))continue;if(c.length)for(var u=0,l=c.length;u<l;u++)this._add&&this._add(c[u]);else this._add&&this._add(c)}}}};var r=n;t.exports=r},1200:t=>{var e=2311;t.exports=function(){return e++}},1466:(t,e,n)=>{var i=n(30281),r=n(92074),a=n(78420),o=n(83062),s=n(56492),c=n(69965),u=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=i(f.exec),g=!f.exec(u),p=function(t){if(!a(t))return!1;try{return h(u,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(f,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!h||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},1610:(t,e,n)=>{var i=n(51605),r=n(92074),a=n(76709),o=Math.abs,s=Math.exp,c=Math.E;i({target:"Math",stat:!0,forced:r((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return o(e)<1?(a(e)-a(-e))/2:(s(e-1)-s(-e-1))*(c/2)}})},1635:(t,e,n)=>{var i=n(44232),r=n(39587),a=n(95289),o=n(30098);function s(t){i.call(this,t)}s.prototype={constructor:s,type:"image",brush:function(t,e){var n=this.style,i=n.image;n.bind(t,this,e);var r=this._image=o.createOrUpdateImage(i,this._image,this,this.onload);if(r&&o.isImageReady(r)){var a=n.x||0,s=n.y||0,c=n.width,u=n.height,l=r.width/r.height;if(null==c&&null!=u?c=u*l:null==u&&null!=c?u=c/l:null==c&&null==u&&(c=r.width,u=r.height),this.setTransform(t),n.sWidth&&n.sHeight){var h=n.sx||0,f=n.sy||0;t.drawImage(r,h,f,n.sWidth,n.sHeight,a,s,c,u)}else if(n.sx&&n.sy){var d=c-(h=n.sx),g=u-(f=n.sy);t.drawImage(r,h,f,d,g,a,s,c,u)}else t.drawImage(r,a,s,c,u);null!=n.text&&(this.restoreTransform(t),this.drawRectText(t,this.getBoundingRect()))}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new r(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},a.inherits(s,i);var c=s;t.exports=c},1772:(t,e,n)=>{"use strict";var i=n(51605),r=n(30281),a=n(92074),o=n(24497),s=n(73938),c=n(6539),u=n(33747),l=n(23444),h=o.ArrayBuffer,f=o.DataView,d=f.prototype,g=r(h.prototype.slice),p=r(d.getUint8),v=r(d.setUint8);i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new h(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,i=c(t,n),r=c(void 0===e?n:e,n),a=new(l(this,h))(u(r-i)),o=new f(this),d=new f(a),b=0;i<r;)v(d,b++,p(o,i++));return a}})},1811:(t,e,n)=>{"use strict";var i,r,a,o=n(51605),s=n(6926),c=n(75223),u=n(30200),l=n(72368),h=n(7485),f=n(39686),d=n(75282),g=n(93524),p=n(24601),v=n(78420),b=n(65335),m=n(65190),w=n(23444),y=n(74922).set,x=n(47462),_=n(69778),S=n(50242),k=n(97600),T=n(99206),C=n(2413),M=n(39053),E=n(39836),I="Promise",A=M.CONSTRUCTOR,O=M.REJECTION_EVENT,P=M.SUBCLASSING,L=T.getterFor(I),j=T.set,D=C&&C.prototype,N=C,R=D,F=u.TypeError,B=u.document,z=u.process,H=E.f,G=H,V=!!(B&&B.createEvent&&u.dispatchEvent),W="unhandledrejection",U=function(t){var e;return!(!b(t)||!v(e=t.then))&&e},$=function(t,e){var n,i,r,a=e.value,o=1==e.state,s=o?t.ok:t.fail,c=t.resolve,u=t.reject,h=t.domain;try{s?(o||(2===e.rejection&&K(e),e.rejection=1),!0===s?n=a:(h&&h.enter(),n=s(a),h&&(h.exit(),r=!0)),n===t.promise?u(F("Promise-chain cycle")):(i=U(n))?l(i,n,c,u):c(n)):u(a)}catch(t){h&&!r&&h.exit(),u(t)}},X=function(t,e){t.notified||(t.notified=!0,x((function(){for(var n,i=t.reactions;n=i.get();)$(n,t);t.notified=!1,e&&!t.rejection&&J(t)})))},q=function(t,e,n){var i,r;V?((i=B.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),u.dispatchEvent(i)):i={promise:e,reason:n},!O&&(r=u["on"+t])?r(i):t===W&&_("Unhandled promise rejection",n)},J=function(t){l(y,u,(function(){var e,n=t.facade,i=t.value;if(Y(t)&&(e=S((function(){c?z.emit("unhandledRejection",i,n):q(W,n,i)})),t.rejection=c||Y(t)?2:1,e.error))throw e.value}))},Y=function(t){return 1!==t.rejection&&!t.parent},K=function(t){l(y,u,(function(){var e=t.facade;c?z.emit("rejectionHandled",e):q("rejectionhandled",e,t.value)}))},Z=function(t,e,n){return function(i){t(e,i,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,X(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var i=U(e);i?x((function(){var n={done:!1};try{l(i,e,Z(tt,n,t),Z(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,X(t,!1))}catch(e){Q({done:!1},e,t)}}};if(A&&(R=(N=function(t){m(this,R),p(t),l(i,this);var e=L(this);try{t(Z(tt,e),Z(Q,e))}catch(t){Q(e,t)}}).prototype,(i=function(t){j(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=h(R,"then",(function(t,e){var n=L(this),i=H(w(this,N));return n.parent=!0,i.ok=!v(t)||t,i.fail=v(e)&&e,i.domain=c?z.domain:void 0,0==n.state?n.reactions.add(i):x((function(){$(i,n)})),i.promise})),r=function(){var t=new i,e=L(t);this.promise=t,this.resolve=Z(tt,e),this.reject=Z(Q,e)},E.f=H=function(t){return t===N||undefined===t?new r(t):G(t)},!s&&v(C)&&D!==Object.prototype)){a=D.then,P||h(D,"then",(function(t,e){var n=this;return new N((function(t,e){l(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete D.constructor}catch(t){}f&&f(D,R)}o({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:N}),d(N,I,!1,!0),g(I)},1882:(t,e,n)=>{var i=n(72552),r=n(23805);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1906:(t,e,n)=>{var i=n(89231);n(59350),n(44026);var r=n(39784),a=n(32493),o=n(99610);n(48807),i.registerVisual(r("line","circle","line")),i.registerLayout(a("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,o("line"))},2054:(t,e,n)=>{var i=n(95289),r=n(61570).getLayoutRect;e.getItemAlign=function(t,e,n){var i=t.option,a=i.align;if(null!=a&&"auto"!==a)return a;for(var o={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,c=[["left","right","width"],["top","bottom","height"]],u=c[s],l=[0,null,10],h={},f=0;f<3;f++)h[c[1-s][f]]=l[f],h[u[f]]=2===f?n[0]:i[u[f]];var d=[["x","width",3],["y","height",0]][s],g=r(h,o,i.padding);return u[(g.margin[d[2]]||0)+g[d[0]]+.5*g[d[1]]<.5*o[d[1]]?0:1]},e.makeHighDownBatch=function(t,e){return i.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},2404:(t,e,n)=>{var i=n(60270);t.exports=function(t,e){return i(t,e)}},2413:(t,e,n)=>{var i=n(30200);t.exports=i.Promise},2458:(t,e,n)=>{var i=n(31138),r=i.scaleAndAdd;e.forceLayout=function(t,e,n){for(var a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,l=0;l<t.length;l++){var h=t[l];h.p||(h.p=i.create(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1])),h.pp=i.clone(h.p),h.edges=null}var f=null==n.friction?.6:n.friction,d=f;return{warmUp:function(){d=.8*f},setFixed:function(e){t[e].fixed=!0},setUnfixed:function(e){t[e].fixed=!1},step:function(n){for(var a=[],o=t.length,s=0;s<e.length;s++){var l=e[s];if(!l.ignoreForceLayout){var h=l.n1,f=l.n2;i.sub(a,f.p,h.p);var g=i.len(a)-l.d,p=f.w/(h.w+f.w);isNaN(p)&&(p=0),i.normalize(a,a),!h.fixed&&r(h.p,h.p,a,p*g*d),!f.fixed&&r(f.p,f.p,a,-(1-p)*g*d)}}for(s=0;s<o;s++){(w=t[s]).fixed||(i.sub(a,c,w.p),r(w.p,w.p,a,u*d))}for(s=0;s<o;s++){h=t[s];for(var v=s+1;v<o;v++){f=t[v];i.sub(a,f.p,h.p),0===(g=i.len(a))&&(i.set(a,Math.random()-.5,Math.random()-.5),g=1);var b=(h.rep+f.rep)/g/g;!h.fixed&&r(h.pp,h.pp,a,b),!f.fixed&&r(f.pp,f.pp,a,-b)}}var m=[];for(s=0;s<o;s++){var w;(w=t[s]).fixed||(i.sub(m,w.p,w.pp),r(w.p,w.p,m,d),i.copy(w.pp,w.p))}d*=.992,n&&n(t,e,d<.01)}}}},2543:function(t,e,n){var i;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Lodash <https://lodash.com/>
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -18,7 +18,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.CanvasObject = exports.Canvas = void 0;
|
|
21
|
-
__exportStar(require("./Canvas"), exports);
|
|
22
21
|
var Canvas_1 = require("./Canvas");
|
|
23
22
|
Object.defineProperty(exports, "Canvas", { enumerable: true, get: function () { return __importDefault(Canvas_1).default; } });
|
|
24
23
|
var CanvasObject_1 = require("./CanvasObject");
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* MediaElement.js
|
|
3
|
-
* http://www.mediaelementjs.com/
|
|
4
|
-
*
|
|
5
|
-
* Wrapper that mimics native HTML5 MediaElement (audio and video)
|
|
6
|
-
* using a variety of technologies (pure JavaScript, Flash, iframe)
|
|
7
|
-
*
|
|
8
|
-
* Copyright 2010-2017, John Dyer (http://j.hn/)
|
|
9
|
-
* License: MIT
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
|
14
|
-
|
|
15
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @license
|
|
19
|
-
* Lodash <https://lodash.com/>
|
|
20
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
21
|
-
* Released under MIT license <https://lodash.com/license>
|
|
22
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
23
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
24
|
-
*/
|