GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] In Handles and Stencils stories, the rotation handle is always located on the right of the vertex · Issue #482 · maxGraph/maxGraph

[BUG] In Handles and Stencils stories, the rotation handle is always located on the right of the vertex #482

New issue
Copy link
New issue
Copy link
Closed
#592
Closed
[BUG] In Handles and Stencils stories, the rotation handle is always located on the right of the vertex#482
#592
Copy link
Assignees
HalilFocic
Labels
bugSomething isn't working
Milestone
0.15.0

Description

@tbouffard
tbouffard
opened on Jun 29, 2024
Issue body actions

Describe the bug

Note: this is visible in Stories but the problem probably occurs in all applications.

The "rotation handle" is always located on the right of the vertex, even after having done some rotation.
So, on a next rotation, the initial orientation of the preview does not match the current orientation of the vertex.

To Reproduce

For the Handles story, see https://maxgraph.github.io/maxGraph/demo/?path=/story/layouts-handles--default or run the story locally.
Same for the Stencils story.

Expected behavior

In mxGraph examples

Handles

https://jgraph.github.io/mxgraph/javascript/examples/handles.html

mxGraph_example_handles.mp4

Stencils

https://jgraph.github.io/mxgraph/javascript/examples/stencils.html

mxgraph_example_stencils.mp4

Screenshots

Handles

story_handles.mp4

Stencils

story_stencils.mp4

Environment

  • Desktop
  • OS and version: Ubuntu 20.04
  • Browser and version: Firefox 126.0.1, Chrome 126.0.6478.126
  • commit 50eb99b with the commit of feat!: ease the configuration to rotate the selected vertex #480

Activity

  1. tbouffard
    added
    bugSomething isn't working
    triageIssue/PR under review for categorization
    and removed
    triageIssue/PR under review for categorization
    on Jun 29, 2024
  2. sunnyTaner commented on Aug 16, 2024

    @sunnyTaner
    sunnyTaner
    on Aug 16, 2024
    More actions

    I also encountered this problem.

  3. HalilFocic commented on Nov 21, 2024

    @HalilFocic
    HalilFocic
    on Nov 21, 2024
    More actions

    @tbouffard I wanna try to fix this, just wondering if the handle should go above the rectangle like in mX graph or do we want to keep it inside. I think this this will make much difference but would like to know your opinion.

  4. HalilFocic commented on Nov 21, 2024

    @HalilFocic
    HalilFocic
    on Nov 21, 2024
    More actions

    This seems to work fine at first glance but I will have to check again.I tweaked one thing that I'm not 100% certain what is does but basically regular sizers were using proper alpha based on rotation of the object while rotation sizer used total different one even tho logic should be the same. I will make PR tomorrow morning regarding this

    rotation-fix.mov
    Reacted by Thomas Bouffard
    Reacted by Thomas Bouffard
  5. tbouffard commented on Nov 21, 2024

    @tbouffard
    tbouffard
    on Nov 21, 2024
    MemberAuthor
    More actions

    Hi @HalilFocic great to hear you are working on this. I have assigned you to this issue.
    About the handle position, I suggest to keep the mxGraph behavior to restore the feature.
    It will be possible in the future to add options to change the existing behavior.

  6. tbouffard
    assigned
    HalilFocic
    on Nov 21, 2024
  7. HalilFocic
    added a commit that references this issue on Nov 22, 2024

    fix(vertex-handler): correct rotation handle positioning during verte…

    This issue will close once commit 27679fc is merged into the 'main' branch.
    27679fc
  8. tbouffard
    changed the title [-][BUG] In Handles and Stencils stories, the handle is always located on the right of the vertex[/-] [+][BUG] In Handles and Stencils stories, the rotation handle is always located on the right of the vertex[/+] on Nov 24, 2024
  9. tbouffard
    added this to the 0.15.0 milestone on Nov 29, 2024
  10. tbouffard
    closed this as completedin #592on Dec 10, 2024
  11. tbouffard
    added a parent issue on Jan 20, 2025
    • Ensure that the stories work as the mxGraph examples #505
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @HalilFocic
    HalilFocic

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    • 0.15.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.