Skip to content

drag_state needs some types #181

@joshua-dean

Description

@joshua-dean

When index.js is moved to Typescript (#180), the drag_state needs some types.
See here:

ulabel/src/index.js

Lines 1033 to 1042 in fe138c8

"annotation": {
"mouse_start": null, // Screen coordinates where the current mouse drag started
"offset_start": null, // Scroll values where the current mouse drag started
"zoom_val_start": null // zoom_val when the dragging interaction started
},
"brush": {
"mouse_start": null, // Screen coordinates where the current mouse drag started
"offset_start": null, // Scroll values where the current mouse drag started
"zoom_val_start": null // zoom_val when the dragging interaction started
},

The same object declaration exists 7 times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions