lgleim / mxgraph-typings

Typescript Type Definitions / Typings for https://github.com/jgraph/mxgraph
MIT License
25 stars 28 forks source link

How to extend mxGraph classes? #11

Closed awesomenkj closed 4 years ago

awesomenkj commented 4 years ago

image

// Overrides zIndex for dragElement mx.mxDragSource.prototype.dragElementZIndex = mx.mxPopupMenu.prototype.zIndex;

How to extend mxGraph classes? I tried the above method. But it doesn't work.

lgleim commented 4 years ago

This is really a TypeScript question rather then a question related to this project.

Refer e.g. to https://www.pluralsight.com/blog/software-development/extending-classes-and-interfaces-using-typescript