diff --git a/src/pages/JsonData.js b/src/pages/JsonData.js index 4770d5de2..38d7fd290 100644 --- a/src/pages/JsonData.js +++ b/src/pages/JsonData.js @@ -1,16 +1,27 @@ /** * Copyright (c) 2006-2013, JGraph Ltd - - JSON data example for mxGraph. This example demonstrates using - JSON to encode/decode parts of the graph model in mxCodec. + + JSON data example for mxGraph. This example demonstrates using + JSON to encode/decode parts of the graph model in mxCodec. */ import React from 'react'; import mxEvent from '../mxgraph/util/mxEvent'; import mxGraph from '../mxgraph/view/mxGraph'; import mxRubberband from '../mxgraph/handler/mxRubberband'; +import mxCodecRegistry from '../mxgraph/io/mxCodecRegistry'; +import mxObjectCodec from '../mxgraph/io/mxObjectCodec'; +import mxUtils from '../mxgraph/util/mxUtils'; +import mxCodec from '../mxgraph/io/mxCodec'; + +class JsonData extends React.Component { + // Adds an option to view the XML of the graph + document; + + body; + + 'View XML'; -class MYNAMEHERE extends React.Component { constructor(props) { super(props); } @@ -20,126 +31,82 @@ class MYNAMEHERE extends React.Component { return ( <>