@syncfusion/ej2-react-diagrams
Version:
Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.
12 lines (11 loc) • 10.5 kB
JavaScript
/*!
* filename: ej2-react-diagrams.umd.min.js
* version : 30.2.5
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-react-base"),require("react"),require("@syncfusion/ej2-diagrams")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-react-base","react","@syncfusion/ej2-diagrams"],e):e((t=t||self).ej={},t.ej2ReactBase,t.React,t.ej2Diagrams)}(this,function(e,t,o,n){"use strict";k=function(t,e){return(k=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var k,r,I=function(t,e){function o(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},E=(r=t.ComplexBase,I(q,r),q.moduleName="layer",q);function q(){return null!==r&&r.apply(this,arguments)||this}i=t.ComplexBase,I(s,i),s.propertyName="layers",s.moduleName="layers";var i,I=s;function s(){return null!==i&&i.apply(this,arguments)||this}T=function(t,e){return(T=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var T,c,L=function(t,e){function o(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},S=(c=t.ComplexBase,L(z,c),z.moduleName="customCursor",z);function z(){return null!==c&&c.apply(this,arguments)||this}a=t.ComplexBase,L(p,a),p.propertyName="customCursor",p.moduleName="customCursors";var a,L=p;function p(){return null!==a&&a.apply(this,arguments)||this}G=function(t,e){return(G=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var G,u,J=function(t,e){function o(){this.constructor=t}G(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},K=(u=t.ComplexBase,J(Q,u),Q.moduleName="connector",Q);function Q(){return null!==u&&u.apply(this,arguments)||this}l=t.ComplexBase,J(f,l),f.propertyName="connectors",f.moduleName="connectors";var l,J=f;function f(){return null!==l&&l.apply(this,arguments)||this}V=function(t,e){return(V=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var V,y,W=function(t,e){function o(){this.constructor=t}V(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},X=(y=t.ComplexBase,W(Y,y),Y.moduleName="connectorFixedUserHandle",Y);function Y(){return null!==y&&y.apply(this,arguments)||this}d=t.ComplexBase,W(m,d),m.propertyName="fixedUserHandles",m.moduleName="connectorFixedUserHandles";var d,W=m;function m(){return null!==d&&d.apply(this,arguments)||this}Z=function(t,e){return(Z=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var Z,h,$=function(t,e){function o(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},tt=(h=t.ComplexBase,$(et,h),et.moduleName="connectorAnnotation",et);function et(){return null!==h&&h.apply(this,arguments)||this}_=t.ComplexBase,$(v,_),v.propertyName="annotations",v.moduleName="connectorAnnotations";var _,$=v;function v(){return null!==_&&_.apply(this,arguments)||this}ot=function(t,e){return(ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var ot,O,nt=function(t,e){function o(){this.constructor=t}ot(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},rt=(O=t.ComplexBase,nt(it,O),it.moduleName="node",it);function it(){return null!==O&&O.apply(this,arguments)||this}C=t.ComplexBase,nt(j,C),j.propertyName="nodes",j.moduleName="nodes";var C,nt=j;function j(){return null!==C&&C.apply(this,arguments)||this}st=function(t,e){return(st=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var st,P,ct=function(t,e){function o(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},at=(P=t.ComplexBase,ct(pt,P),pt.moduleName="nodeFixedUserHandle",pt);function pt(){return null!==P&&P.apply(this,arguments)||this}b=t.ComplexBase,ct(x,b),x.propertyName="fixedUserHandles",x.moduleName="nodeFixedUserHandles";var b,ct=x;function x(){return null!==b&&b.apply(this,arguments)||this}ut=function(t,e){return(ut=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var ut,N,lt=function(t,e){function o(){this.constructor=t}ut(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},ft=(N=t.ComplexBase,lt(yt,N),yt.moduleName="nodeAnnotation",yt);function yt(){return null!==N&&N.apply(this,arguments)||this}w=t.ComplexBase,lt(A,w),A.propertyName="annotations",A.moduleName="nodeAnnotations";var w,lt=A;function A(){return null!==w&&w.apply(this,arguments)||this}dt=function(t,e){return(dt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var dt,D,mt=function(t,e){function o(){this.constructor=t}dt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},ht=(D=t.ComplexBase,mt(_t,D),_t.moduleName="port",_t);function _t(){return null!==D&&D.apply(this,arguments)||this}B=t.ComplexBase,mt(R,B),R.propertyName="ports",R.moduleName="ports";var B,mt=R;function R(){return null!==B&&B.apply(this,arguments)||this}vt=function(t,e){return(vt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var vt,U,Ot=function(t,e){function o(){this.constructor=t}vt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},Ot=(U=n.Diagram,Ot(Ct,U),Ct.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));U.prototype.render.call(this),this.initRenderCalled=!0},Ct);function Ct(t){t=U.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!0,t.directivekeys={layers:"layer",customCursors:"customCursor",connectors:{connector:{connectorFixedUserHandles:"connectorFixedUserHandle",connectorAnnotations:"connectorAnnotation"}},nodes:{node:{nodeFixedUserHandles:"nodeFixedUserHandle",nodeAnnotations:"nodeAnnotation",ports:"port"}}},t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!1,t.isReactMock=!0,t.portals=[],t}t.applyMixins(Ot,[t.ComponentBase,o.Component]);jt=function(t,e){return(jt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var jt,F,Pt=function(t,e){function o(){this.constructor=t}jt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},bt=(F=t.ComplexBase,Pt(xt,F),xt.moduleName="palette",xt);function xt(){return null!==F&&F.apply(this,arguments)||this}H=t.ComplexBase,Pt(g,H),g.propertyName="palettes",g.moduleName="palettes";var H,Pt=g;function g(){return null!==H&&H.apply(this,arguments)||this}Nt=function(t,e){return(Nt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var Nt,M,wt=function(t,e){function o(){this.constructor=t}Nt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},wt=(M=n.SymbolPalette,wt(At,M),At.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));M.prototype.render.call(this),this.initRenderCalled=!0},At);function At(t){t=M.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!0,t.directivekeys={palettes:"palette"},t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}t.applyMixins(wt,[t.ComponentBase,o.Component]);Dt=function(t,e){return(Dt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])}))(t,e)};var Dt,Bt,Rt=function(t,e){function o(){this.constructor=t}Dt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)},Rt=(Bt=n.Overview,Rt(Ut,Bt),Ut.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return o.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));Bt.prototype.render.call(this),this.initRenderCalled=!0},Ut);function Ut(t){t=Bt.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}t.applyMixins(Rt,[t.ComponentBase,o.Component]),Object.keys(n).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),Object.defineProperty(e,"Inject",{enumerable:!0,get:function(){return t.Inject}}),e.ConnectorAnnotationDirective=tt,e.ConnectorAnnotationsDirective=$,e.ConnectorDirective=K,e.ConnectorFixedUserHandleDirective=X,e.ConnectorFixedUserHandlesDirective=W,e.ConnectorsDirective=J,e.CustomCursorDirective=S,e.CustomCursorsDirective=L,e.DiagramComponent=Ot,e.LayerDirective=E,e.LayersDirective=I,e.NodeAnnotationDirective=ft,e.NodeAnnotationsDirective=lt,e.NodeDirective=rt,e.NodeFixedUserHandleDirective=at,e.NodeFixedUserHandlesDirective=ct,e.NodesDirective=nt,e.OverviewComponent=Rt,e.PaletteDirective=bt,e.PalettesDirective=Pt,e.PortDirective=ht,e.PortsDirective=mt,e.SymbolPaletteComponent=wt,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-react-diagrams.umd.min.js.map