sharplispers / cxml

Closure XML - A Common Lisp XML Parser
http://common-lisp.net/project/cxml/
Other
12 stars 5 forks source link

Element.getBoundingClientRect() #8

Open ghost opened 4 years ago

ghost commented 4 years ago

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 commented 4 years ago

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

slyrus commented 4 years ago

What about:

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