GhentCDH / vue_component_annotated_text

https://www.npmjs.com/package/@ghentcdh/vue-component-annotated-text
MIT License
0 stars 0 forks source link

Rename properties of public components #10

Open bovandersteene opened 1 week ago

bovandersteene commented 1 week ago

Describe the improvement Give a clear naming to the properties of public components, so it's clear when reading the property name

While renaming these annotations, a default class can be created to remember the state of highlighted and active annotations. Default functions can be implemented and if needed overwritten by another function

class DefaultAnnotations {
  highlighted: string[]
  selected: string[]

  onAnnotationMouseOver() // Default function
  onAnnotationMouseLeave() // Default function

  ... some other default functions
}

Additional context Add any other context about the problem here.