bugfix
parent
2f64ff0a36
commit
39d9b29e3c
|
@ -25,7 +25,7 @@ import mxUtils from '../util/mxUtils';
|
||||||
*/
|
*/
|
||||||
class mxSwimlane extends mxShape {
|
class mxSwimlane extends mxShape {
|
||||||
constructor(bounds, fill, stroke, strokewidth) {
|
constructor(bounds, fill, stroke, strokewidth) {
|
||||||
super(mxConstants.DO_NOTHING);
|
super();
|
||||||
this.bounds = bounds;
|
this.bounds = bounds;
|
||||||
this.fill = fill;
|
this.fill = fill;
|
||||||
this.stroke = stroke;
|
this.stroke = stroke;
|
||||||
|
|
|
@ -42,7 +42,7 @@ import mxDictionary from "./mxDictionary";
|
||||||
*/
|
*/
|
||||||
class mxCellState extends mxRectangle {
|
class mxCellState extends mxRectangle {
|
||||||
constructor(view: mxGraphView, cell: mxCell, style: {}) {
|
constructor(view: mxGraphView, cell: mxCell, style: {}) {
|
||||||
super(mxConstants.DO_NOTHING);
|
super();
|
||||||
|
|
||||||
this.view = view;
|
this.view = view;
|
||||||
this.cell = cell;
|
this.cell = cell;
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
import mxRectangle from './datatypes/mxRectangle';
|
import mxRectangle from './datatypes/mxRectangle';
|
||||||
|
|
||||||
const mxConstants = {
|
const mxConstants = {
|
||||||
DO_NOTHING: {},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class: mxConstants
|
* Class: mxConstants
|
||||||
*
|
*
|
||||||
|
|
|
@ -695,7 +695,7 @@ class mxCell {
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
if (typeof value.clone === 'function') {
|
if (typeof value.clone === 'function') {
|
||||||
value = value.clone();
|
value = value.clone();
|
||||||
} else if (!Number.isNaN(value.nodeType)) {
|
} else if (value.nodeType != null) {
|
||||||
value = value.cloneNode(true);
|
value = value.cloneNode(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue