Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not style the container #32

Closed
rbozan opened this issue Jul 6, 2023 · 0 comments
Closed

Can not style the container #32

rbozan opened this issue Jul 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rbozan
Copy link

rbozan commented Jul 6, 2023

const { start, end, top, left, width, height } = this.getSVGProportions();
this.svgElement.style.top = `${top}px`;
this.svgElement.style.left = `${left}px`;
this.svgElement.style.position = 'absolute';
this.svgElement.style.overflow = 'visible';
this.svgElement.setAttribute('width', `${width}`);
this.svgElement.setAttribute('height', `${height}`);

It seems it is not possible to style the "container element". It is useful to allow that, as I currently have the situation where I have a div with a z-index of 10 (for example), but the line draws under the element. I can't seem to supply a z-index: 11 style anywhere to allow the line to go over. The style attribute only styles the actual line, not the container.

Maybe we could just add a default class to the container so we can style however we please in CSS?

@tarkant tarkant self-assigned this Jul 10, 2023
@tarkant tarkant added the enhancement New feature or request label Jul 10, 2023
@tarkant tarkant closed this as completed Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants