mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 20:51:38 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
9c68432936
10 changed files with 181 additions and 110 deletions
|
@ -7,6 +7,7 @@
|
|||
(ns app.render
|
||||
"The main entry point for UI part needed by the exporter."
|
||||
(:require
|
||||
[app.common.geom.shapes.bounds :as gsb]
|
||||
[app.common.logging :as l]
|
||||
[app.common.math :as mth]
|
||||
[app.common.spec :as us]
|
||||
|
@ -125,10 +126,11 @@
|
|||
;; exportation process.
|
||||
(mf/with-effect [object]
|
||||
(when object
|
||||
(dom/set-page-style!
|
||||
{:size (str/concat
|
||||
(mth/ceil (:width object)) "px "
|
||||
(mth/ceil (:height object)) "px")})))
|
||||
(let [{:keys [width height]} (gsb/get-object-bounds [objects] object)]
|
||||
(dom/set-page-style!
|
||||
{:size (str/concat
|
||||
(mth/ceil width) "px "
|
||||
(mth/ceil height) "px")}))))
|
||||
|
||||
(when objects
|
||||
[:& render/object-svg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue