It seems that due to
|
options.label.display = false; |
element.elements[0].options.display is set to false and never set back to the orig. value if the line annotation e.g. with zoom/pan is moved once out of the "inside" area.
Is this by design/intended? Is there any workaround?
I tried setting display back to true in e.g. the "enter" callback and that works but only if I access element.elements[0]... directly.
enter: ({ element }, event) => {
element.elements[0].options.display=true;
element.label.options.display=true; // <- this works as well
return true;
}
tested with version v2.0.0