Skip to content

add get_start and get_end methods for Region annotaiton type (and subtypes) #253

@keighrim

Description

@keighrim

New Feature Summary

As Region types can have either (start & end) props or just targets prop, I'd like to provide helper functions to return the anchor points regardless of how those anchor are encoded as annotation properties. Namely, for annotations with start and end, this new methods simply return those. For those with targets`, it should grab the first and last elements from the targets list and return underlying anchor values.

Related

No response

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

✨NNew feature or request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions