Skip to content

Label from line annotation disappear after once being outside the visible area. #789

@mbehr1

Description

@mbehr1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions