development
mcyph 2021-04-11 10:11:18 +10:00
parent 2f64ff0a36
commit 39d9b29e3c
4 changed files with 3 additions and 5 deletions

View File

@ -25,7 +25,7 @@ import mxUtils from '../util/mxUtils';
*/
class mxSwimlane extends mxShape {
constructor(bounds, fill, stroke, strokewidth) {
super(mxConstants.DO_NOTHING);
super();
this.bounds = bounds;
this.fill = fill;
this.stroke = stroke;

View File

@ -42,7 +42,7 @@ import mxDictionary from "./mxDictionary";
*/
class mxCellState extends mxRectangle {
constructor(view: mxGraphView, cell: mxCell, style: {}) {
super(mxConstants.DO_NOTHING);
super();
this.view = view;
this.cell = cell;

View File

@ -7,8 +7,6 @@
import mxRectangle from './datatypes/mxRectangle';
const mxConstants = {
DO_NOTHING: {},
/**
* Class: mxConstants
*

View File

@ -695,7 +695,7 @@ class mxCell {
if (value != null) {
if (typeof value.clone === 'function') {
value = value.clone();
} else if (!Number.isNaN(value.nodeType)) {
} else if (value.nodeType != null) {
value = value.cloneNode(true);
}
}