/** * Copyright (c) 2006-2013, JGraph Ltd * * Schema example * * This example demonstrates implementing * a SQL schema editor. */ import React from 'react'; import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; import { error } from '../../packages/core/src/util/gui/MaxWindow'; import { load } from '../../packages/core/src/util/network/MaxXmlRequest'; import { htmlEntities } from '../../packages/core/src/util/stringUtils'; import { setOpacity } from '../../packages/core/src/util/utils'; import { write, writeln } from '../../packages/core/src/util/domUtils'; import { createXmlDocument, getPrettyXml } from '../../packages/core/src/util/xmlUtils'; import { makeDraggable } from '../../packages/core/src/util/gestureUtils'; import { clone } from '../../packages/core/src/util/cloneUtils'; const HTML_TEMPLATE = `