Skip to content
This repository was archived by the owner on Sep 15, 2026. It is now read-only.
This repository was archived by the owner on Sep 15, 2026. It is now read-only.

Better rotate and delete #613

Description

@argyleink

https://github.com/daybrush/moveable

shows a great interaction for removing and rotating elements

Activity

  1. hchiam commented on Feb 19, 2025

    @hchiam
    Contributor

    removing elements can already be done by selecting and hitting the delete key, unless you were thinking of deleting multiple elements simultaneously at the time of writing this issue? (which i tested doesn't currently work in VisBug 0.4.6 for Firefox but does work in VisBug 0.4.10 for Chrome)

    and were you thinking of using Rotatable under the Position Tool?

  2. argyleink commented on Feb 19, 2025

    @argyleink
    ContributorAuthor
    Image

    ^ it's got the rotation handle there and the delete button

    could be part of the Position Tool yep, and the delete button could just always be there.

  3. hchiam commented on Feb 19, 2025

    @hchiam
    Contributor

    nice! i plan to work on this hopefully sometime next week

  4. hchiam commented on Feb 27, 2025

    @hchiam
    Contributor

    minimal demo: https://codepen.io/hchiam/pen/xbxReqy

    i can't seem to find a built-in delete button for moveable rotatable, so i'm assuming you got that working with some custom code with the ables option? https://daybrush.com/moveable/release/latest/doc/Moveable.html#.DefaultOptions-ables

  5. argyleink commented on Feb 27, 2025

    @argyleink
    ContributorAuthor

    i found it via their demo page https://daybrush.com/moveable/, not sure what settings are needed

  6. hchiam commented on Feb 27, 2025

    @hchiam
    Contributor

    for reference / note to self as i try to figure this out for vanilla js: daybrush/moveable#246 (comment)

  7. hchiam commented on Feb 27, 2025

    @hchiam
    Contributor
  8. hchiam commented on Feb 28, 2025

    @hchiam
    Contributor

    i'm almost ready to make a PR, just need to figure out how to ignore selecting the delete button (the code that adds visbug-labels) and some other final tweaks (UPDATE: seems like editing notList in strings.js doesn't do anything, but isOffBounds in common.js does)

  9. added a commit that references this issue on Mar 19, 2025
    bb65179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions