Skip to content

Ploty.js in Shadow DOM did not handle CSS transform correctly #5760

Closed
@OpportunityLiu

Description

@OpportunityLiu

A chart in shadow DOM https://codepen.io/opportunityliu/pen/poeXjmr
A chart out of shadow DOM https://codepen.io/opportunityliu/pen/Rwpzrww

They are both applied same CSS transform

#plot {
  display: block;
  width: 50%;
  margin-left: 50%;
  transform: scale(2, 1);
  transform-origin: right;
}

and looks similar
image

But when interacting with the plot, seems the plot in shadow DOM has wrong coordinate of mouse events.
动画

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