mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 06:21:39 +02:00
🐛 Round coordinates in viewport and paths
This commit is contained in:
parent
f89ccac567
commit
48615ca5b2
4 changed files with 57 additions and 15 deletions
|
@ -354,7 +354,7 @@
|
|||
(assoc :fills []))
|
||||
|
||||
|
||||
bounds (gsb/get-object-bounds objects object)
|
||||
{:keys [width height] :as bounds} (gsb/get-object-bounds objects object)
|
||||
vbox (format-viewbox bounds)
|
||||
fonts (ff/shape->fonts object objects)
|
||||
|
||||
|
@ -366,8 +366,8 @@
|
|||
[:& (mf/provider embed/context) {:value render-embed?}
|
||||
[:svg {:id (dm/str "screenshot-" object-id)
|
||||
:view-box vbox
|
||||
:width (:width bounds)
|
||||
:height (:height bounds)
|
||||
:width (ust/format-precision width viewbox-decimal-precision)
|
||||
:height (ust/format-precision height viewbox-decimal-precision)
|
||||
:version "1.1"
|
||||
:xmlns "http://www.w3.org/2000/svg"
|
||||
:xmlnsXlink "http://www.w3.org/1999/xlink"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue