Merge remote-tracking branch 'origin/main' into develop

This commit is contained in:
Andrey Antukh 2022-02-08 09:12:13 +01:00
commit 979f61df99
6 changed files with 55 additions and 2 deletions

View file

@ -43,6 +43,8 @@
svg-node (.createElementNS js/document "http://www.w3.org/2000/svg" "svg")
_ (.setAttribute svg-node "version" "1.1")
_ (.setAttribute svg-node "viewBox" (str (:x shape) " " (:y shape) " " (:width shape) " " (:height shape)))
_ (.setAttribute svg-node "width" (:width shape))
_ (.setAttribute svg-node "height" (:height shape))
_ (unchecked-set svg-node "innerHTML" frame-html)
xml (-> (js/XMLSerializer.)
(.serializeToString svg-node)