moved mxCellState to view/cell

development
mcyph 2021-04-11 13:53:20 +10:00
parent 1f4fed2313
commit 7ae4fda979
19 changed files with 28 additions and 26 deletions

View File

@ -7,7 +7,7 @@
import mxConstants from '../util/mxConstants';
import mxEvent from '../util/event/mxEvent';
import mxRectangle from '../util/datatypes/mxRectangle';
import mxCellState from '../util/datatypes/mxCellState';
import mxCellState from '../view/cell/mxCellState';
import mxGraph from '../view/graph/mxGraph';
import mxShape from '../shape/mxShape';

View File

@ -128,8 +128,10 @@ class mxGraphHandler {
}
};
mxEvent.addListener(document, 'keydown', this.keyHandler);
mxEvent.addListener(document, 'keyup', this.keyHandler);
if (typeof document !== 'undefined') {
mxEvent.addListener(document, 'keydown', this.keyHandler);
mxEvent.addListener(document, 'keyup', this.keyHandler);
}
}
/**

View File

@ -11,7 +11,7 @@ import mxPoint from '../util/datatypes/mxPoint';
import mxSvgCanvas2D from '../util/canvas/mxSvgCanvas2D';
import mxEvent from '../util/event/mxEvent';
import mxClient from '../mxClient';
import mxCellState from '../util/datatypes/mxCellState';
import mxCellState from '../view/cell/mxCellState';
import mxAbstractCanvas2D from '../util/canvas/mxAbstractCanvas2D';
import mxStencil from './node/mxStencil';
import mxCellOverlay from "../view/cell/mxCellOverlay";

View File

@ -12,7 +12,7 @@ import mxPoint from '../util/datatypes/mxPoint';
import mxSvgCanvas2D from '../util/canvas/mxSvgCanvas2D';
import mxShape from './mxShape';
import mxRectangle from '../util/datatypes/mxRectangle';
import mxCellState from '../util/datatypes/mxCellState';
import mxCellState from '../view/cell/mxCellState';
/**
* Extends mxShape to implement a text shape.

View File

@ -9,7 +9,7 @@ import mxUtils from '../../util/mxUtils';
import mxConstants from '../../util/mxConstants';
import mxRectangleShape from './mxRectangleShape';
import mxRectangle from '../../util/datatypes/mxRectangle';
import mxCellState from '../../util/datatypes/mxCellState';
import mxCellState from '../../view/cell/mxCellState';
import mxSvgCanvas2D from '../../util/canvas/mxSvgCanvas2D';
import mxCellOverlay from '../../view/cell/mxCellOverlay';

View File

@ -7,7 +7,7 @@
import mxUtils from '../../mxUtils';
import mxPoint from '../mxPoint';
import mxCellState from '../mxCellState';
import mxCellState from '../../../view/cell/mxCellState';
import mxConstants from '../../mxConstants';
import mxRectangle from '../mxRectangle';

View File

@ -9,7 +9,7 @@ import mxUtils from '../../mxUtils';
import mxPoint from '../mxPoint';
import mxConstants from '../../mxConstants';
import mxRectangle from '../mxRectangle';
import mxCellState from '../mxCellState';
import mxCellState from '../../../view/cell/mxCellState';
/**
* @class mxPerimeter

View File

@ -8,7 +8,7 @@
import mxConstants from './mxConstants';
import mxPoint from './datatypes/mxPoint';
import mxPolyline from '../shape/edge/mxPolyline';
import mxCellState from './datatypes/mxCellState';
import mxCellState from '../view/cell/mxCellState';
import mxShape from '../shape/mxShape';
import mxRectangle from './datatypes/mxRectangle';
import mxGraph from '../view/graph/mxGraph';

View File

@ -14,7 +14,7 @@ import mxText from '../../shape/mxText';
import mxGraph from '../graph/mxGraph';
import mxCell from './mxCell';
import mxMouseEvent from '../../util/event/mxMouseEvent';
import mxCellState from '../../util/datatypes/mxCellState';
import mxCellState from './mxCellState';
import mxShape from "../../shape/mxShape";
import mxEventObject from "../../util/event/mxEventObject";

View File

@ -9,7 +9,7 @@ import mxPoint from '../../util/datatypes/mxPoint';
import mxRectangle from '../../util/datatypes/mxRectangle';
import mxEventSource from '../../util/event/mxEventSource';
import mxImage from '../../util/image/mxImage';
import mxCellState from "../../util/datatypes/mxCellState";
import mxCellState from "./mxCellState";
/**
* Class: mxCellOverlay

View File

@ -31,7 +31,7 @@ import mxDictionary from '../../util/datatypes/mxDictionary';
import mxEventObject from '../../util/event/mxEventObject';
import mxPoint from '../../util/datatypes/mxPoint';
import mxShape from '../../shape/mxShape';
import mxCellState from '../../util/datatypes/mxCellState';
import mxCellState from './mxCellState';
import mxCell from './mxCell';
import mxGraphModel from "../graph/mxGraphModel";
import mxCellOverlay from "./mxCellOverlay";

View File

@ -5,15 +5,15 @@
* Type definitions from the typed-mxgraph project
*/
import mxPoint from './mxPoint';
import mxRectangle from './mxRectangle';
import mxConstants from '../mxConstants';
import mxCell from '../../view/cell/mxCell';
import mxGraphView from '../../view/graph/mxGraphView';
import mxPoint from '../../util/datatypes/mxPoint';
import mxRectangle from '../../util/datatypes/mxRectangle';
import mxConstants from '../../util/mxConstants';
import mxCell from './mxCell';
import mxGraphView from '../graph/mxGraphView';
import mxShape from '../../shape/mxShape';
import mxText from '../../shape/mxText';
import mxGraph from "../../view/graph/mxGraph";
import mxDictionary from "./mxDictionary";
import mxGraph from "../graph/mxGraph";
import mxDictionary from "../../util/datatypes/mxDictionary";
/**
* Class: mxCellState

View File

@ -8,7 +8,7 @@
import mxUtils from '../../util/mxUtils';
import mxPoint from '../../util/datatypes/mxPoint';
import mxDictionary from '../../util/datatypes/mxDictionary';
import mxCellState from '../../util/datatypes/mxCellState';
import mxCellState from './mxCellState';
import mxCell from './mxCell';
import mxGraph from '../graph/mxGraph';
import mxGraphView from "../graph/mxGraphView";

View File

@ -12,7 +12,7 @@ import mxRectangle from '../../util/datatypes/mxRectangle';
import mxDictionary from '../../util/datatypes/mxDictionary';
import mxGraphView from '../graph/mxGraphView';
import mxCell from './mxCell';
import mxCellState from '../../util/datatypes/mxCellState';
import mxCellState from './mxCellState';
import mxShape from "../../shape/mxShape";
import mxGraph from "../graph/mxGraph";

View File

@ -48,7 +48,7 @@ import mxStyleChange from '../../atomic_changes/mxStyleChange';
import mxTerminalChange from '../../atomic_changes/mxTerminalChange';
import mxValueChange from '../../atomic_changes/mxValueChange';
import mxPolyline from '../../shape/edge/mxPolyline';
import mxCellState from '../../util/datatypes/mxCellState';
import mxCellState from '../cell/mxCellState';
import mxImageBundle from "../../util/image/mxImageBundle";
import mxCodecRegistry from "../../serialization/mxCodecRegistry";
import mxShape from "../../shape/mxShape";

View File

@ -17,7 +17,7 @@ import mxEvent from '../../util/event/mxEvent';
import mxUtils from '../../util/mxUtils';
import mxLog from '../../util/gui/mxLog';
import mxResources from '../../util/mxResources';
import mxCellState from '../../util/datatypes/mxCellState';
import mxCellState from '../cell/mxCellState';
import mxUndoableEdit from '../../util/undo/mxUndoableEdit';
import mxImageShape from '../../shape/node/mxImageShape';
import mxMouseEvent from '../../util/event/mxMouseEvent';

View File

@ -11,7 +11,7 @@ import mxShape from '../../mxgraph/shape/mxShape';
import mxConnectionConstraint from '../../mxgraph/view/connection/mxConnectionConstraint';
import mxPoint from '../../mxgraph/util/datatypes/mxPoint';
import mxPolyline from '../../mxgraph/shape/edge/mxPolyline';
import mxCellState from '../../mxgraph/util/datatypes/mxCellState';
import mxCellState from '../../mxgraph/view/cell/mxCellState';
import mxGeometry from '../../mxgraph/util/datatypes/mxGeometry';
import mxConnectionHandler from '../../mxgraph/handler/mxConnectionHandler';

View File

@ -12,7 +12,7 @@ import mxConnectionHandler from '../../mxgraph/handler/mxConnectionHandler';
import mxEdgeHandler from '../../mxgraph/handler/mxEdgeHandler';
import mxConnectionConstraint from '../../mxgraph/view/connection/mxConnectionConstraint';
import mxPoint from '../../mxgraph/util/datatypes/mxPoint';
import mxCellState from '../../mxgraph/util/datatypes/mxCellState';
import mxCellState from '../../mxgraph/view/cell/mxCellState';
class FixedPoints extends React.Component {
constructor(props) {

View File

@ -13,7 +13,7 @@ import mxEdgeHandler from '../../mxgraph/handler/mxEdgeHandler';
import mxConnectionHandler from '../../mxgraph/handler/mxConnectionHandler';
import mxGraphView from '../../mxgraph/view/graph/mxGraphView';
import mxPoint from '../../mxgraph/util/datatypes/mxPoint';
import mxCellState from '../../mxgraph/util/datatypes/mxCellState';
import mxCellState from '../../mxgraph/view/cell/mxCellState';
class Orthogonal extends React.Component {
constructor(props) {