@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.
10 lines • 12.6 kB
JavaScript
/*!
* filename: ej2-react-diagrams.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&&"object"==typeof module?module.exports=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionDiagrams")):"function"==typeof define&&define.amd?define(["SyncfusionReactBase","React","SyncfusionDiagrams"],e):"object"==typeof exports?exports.SyncfusionReactDiagrams=e(require("SyncfusionReactBase"),require("React"),require("SyncfusionDiagrams")):t.SyncfusionReactDiagrams=e(t.SyncfusionReactBase,t.React,t.SyncfusionDiagrams)}(self,(t,e,n)=>(()=>{"use strict";var o={806:(t,e,n)=>{n.d(e,{b3:()=>v,Em:()=>C,wx:()=>f,BV:()=>m,Dj:()=>h,Eg:()=>y,Lo:()=>a,XM:()=>p,ME:()=>H,A$:()=>c,_L:()=>s,_g:()=>A,B:()=>w,ax:()=>x,fk:()=>b,OK:()=>j,Yu:()=>D,XL:()=>R,AF:()=>g});var o,r=n(705),i=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="layer",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="layers",e.moduleName="layers",e}(r.ComplexBase),u=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.moduleName="customCursor",e}(r.ComplexBase),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.propertyName="customCursor",e.moduleName="customCursors",e}(r.ComplexBase),l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.moduleName="connector",e}(r.ComplexBase),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.propertyName="connectors",e.moduleName="connectors",e}(r.ComplexBase),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.moduleName="connectorFixedUserHandle",e}(r.ComplexBase),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.propertyName="fixedUserHandles",e.moduleName="connectorFixedUserHandles",e}(r.ComplexBase),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.moduleName="connectorAnnotation",e}(r.ComplexBase),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.propertyName="annotations",e.moduleName="connectorAnnotations",e}(r.ComplexBase),O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return O(e,t),e.moduleName="node",e}(r.ComplexBase),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return O(e,t),e.propertyName="nodes",e.moduleName="nodes",e}(r.ComplexBase),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.moduleName="nodeFixedUserHandle",e}(r.ComplexBase),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.propertyName="fixedUserHandles",e.moduleName="nodeFixedUserHandles",e}(r.ComplexBase),N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N(e,t),e.moduleName="nodeAnnotation",e}(r.ComplexBase),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N(e,t),e.propertyName="annotations",e.moduleName="nodeAnnotations",e}(r.ComplexBase),B=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.moduleName="port",e}(r.ComplexBase),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.propertyName="ports",e.moduleName="ports",e}(r.ComplexBase),F=n(24),U=n(724),M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),H=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.directivekeys={layers:"layer",customCursors:"customCursor",connectors:{connector:{connectorFixedUserHandles:"connectorFixedUserHandle",connectorAnnotations:"connectorAnnotation"}},nodes:{node:{nodeFixedUserHandles:"nodeFixedUserHandle",nodeAnnotations:"nodeAnnotation",ports:"port"}}},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!1,n.isReactMock=!0,n.portals=[],n}return M(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return F.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(U.Diagram);(0,r.applyMixins)(H,[r.ComponentBase,F.Component])},855:(t,e,n)=>{n.d(e,{C:()=>u});var o,r=n(24),i=n(724),c=n(705),s=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!1,n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return s(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return r.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(i.Overview);(0,c.applyMixins)(u,[c.ComponentBase,r.Component])},311:(t,e,n)=>{n.d(e,{Q9:()=>c,Xj:()=>s,n:()=>l});var o,r=n(705),i=(o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o(t,e)},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.moduleName="palette",e}(r.ComplexBase),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.propertyName="palettes",e.moduleName="palettes",e}(r.ComplexBase),u=n(24),a=n(724),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),l=function(t){function e(e){var n=t.call(this,e)||this;return n.initRenderCalled=!1,n.checkInjectedModules=!0,n.directivekeys={palettes:"palette"},n.statelessTemplateProps=null,n.templateProps=null,n.immediateRender=!0,n.isReactMock=!0,n.portals=[],n}return p(e,t),e.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return u.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));t.prototype.render.call(this),this.initRenderCalled=!0},e}(a.SymbolPalette);(0,r.applyMixins)(l,[r.ComponentBase,u.Component])},24:t=>{t.exports=e},724:t=>{t.exports=n},705:e=>{e.exports=t}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={exports:{}};return o[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var c={};return(()=>{i.r(c),i.d(c,{ConnectorAnnotationDirective:()=>t.b3,ConnectorAnnotationsDirective:()=>t.Em,ConnectorDirective:()=>t.wx,ConnectorFixedUserHandleDirective:()=>t.BV,ConnectorFixedUserHandlesDirective:()=>t.Dj,ConnectorsDirective:()=>t.Eg,CustomCursorDirective:()=>t.Lo,CustomCursorsDirective:()=>t.XM,DiagramComponent:()=>t.ME,Inject:()=>o.Inject,LayerDirective:()=>t.A$,LayersDirective:()=>t._L,NodeAnnotationDirective:()=>t._g,NodeAnnotationsDirective:()=>t.B,NodeDirective:()=>t.ax,NodeFixedUserHandleDirective:()=>t.fk,NodeFixedUserHandlesDirective:()=>t.OK,NodesDirective:()=>t.Yu,OverviewComponent:()=>n.C,PaletteDirective:()=>e.Q9,PalettesDirective:()=>e.Xj,PortDirective:()=>t.XL,PortsDirective:()=>t.AF,SymbolPaletteComponent:()=>e.n});var t=i(806),e=i(311),n=i(855),o=i(705),r=i(724),s={};for(const t in r)["default","Inject","ConnectorAnnotationDirective","ConnectorAnnotationsDirective","ConnectorDirective","ConnectorFixedUserHandleDirective","ConnectorFixedUserHandlesDirective","ConnectorsDirective","CustomCursorDirective","CustomCursorsDirective","DiagramComponent","LayerDirective","LayersDirective","NodeAnnotationDirective","NodeAnnotationsDirective","NodeDirective","NodeFixedUserHandleDirective","NodeFixedUserHandlesDirective","NodesDirective","PortDirective","PortsDirective","PaletteDirective","PalettesDirective","SymbolPaletteComponent","OverviewComponent"].indexOf(t)<0&&(s[t]=()=>r[t]);i.d(c,s)})(),c})());