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

Element.getBoundingClientRect() #8

Open
ghost opened this issue Apr 1, 2020 · 2 comments
Open

Element.getBoundingClientRect() #8

ghost opened this issue Apr 1, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2020

Is it possible to call DOM's getBoundingClientRect() on an Element which i get by:

(aref (dom:get-elements-by-tag-name
       (cxml:parse-file "./test.svg" (cxml-dom:make-dom-builder))
       "path") 0)

This returns a #<RUNE-DOM::ELEMENT path {10042A87A3}> from the SVG file test.svg.

@scymtym
Copy link
Member

scymtym commented Apr 2, 2020

I don't think that is implemented. cxml only covers the XML document model, not the HTML DOM or SVG.

@slyrus
Copy link
Member

slyrus commented Apr 2, 2020

What about:

(aref (dom:get-elements-by-tag-name
       (cxml:parse-file "./test.svg" (cxml-dom:make-dom-builder))
       "svg:path") 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants