freegroup/draw2d

Properties of Locators are not serialized or cloned

Opened this issue · 0 comments

Proposed fix in draw2d.layout.locator.Locator:
clone: function () {
let clone = eval("new " + this.NAME + "();")
clone.attr(this.attr()) // also clone properties
return clone
}
(will not work if the legacy constructor of XYRelPortLocator is used, but let's stay pragmatic)