mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 13:39:02 +00:00
Merge pull request #2213 from penpot/superalex-fix-export-simple-path
🐛 Fix export simple path
This commit is contained in:
commit
2ecf33d7bb
@ -7,6 +7,7 @@
|
|||||||
- Fix problem with multi-user text editing [Taiga #3446](https://tree.taiga.io/project/penpot/issue/3446)
|
- Fix problem with multi-user text editing [Taiga #3446](https://tree.taiga.io/project/penpot/issue/3446)
|
||||||
- Fix path tools blocking elements underneath [#2050](https://github.com/penpot/penpot/issues/2050)
|
- Fix path tools blocking elements underneath [#2050](https://github.com/penpot/penpot/issues/2050)
|
||||||
- Fix frame titles deforming when resize [#2207](https://github.com/penpot/penpot/issues/2207)
|
- Fix frame titles deforming when resize [#2207](https://github.com/penpot/penpot/issues/2207)
|
||||||
|
- Fix export simple line path [#3890](https://tree.taiga.io/project/penpot/issue/3890)
|
||||||
|
|
||||||
## 1.15.1-beta
|
## 1.15.1-beta
|
||||||
|
|
||||||
|
|||||||
@ -117,7 +117,11 @@
|
|||||||
[bounds padding]
|
[bounds padding]
|
||||||
(-> bounds
|
(-> bounds
|
||||||
(update :x - (:horizontal padding))
|
(update :x - (:horizontal padding))
|
||||||
|
(update :x1 - (:horizontal padding))
|
||||||
|
(update :x2 + (:horizontal padding))
|
||||||
(update :y - (:vertical padding))
|
(update :y - (:vertical padding))
|
||||||
|
(update :y1 - (:vertical padding))
|
||||||
|
(update :y2 + (:vertical padding))
|
||||||
(update :width + (* 2 (:horizontal padding)))
|
(update :width + (* 2 (:horizontal padding)))
|
||||||
(update :height + (* 2 (:vertical padding)))))
|
(update :height + (* 2 (:vertical padding)))))
|
||||||
|
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
(ns app.render
|
(ns app.render
|
||||||
"The main entry point for UI part needed by the exporter."
|
"The main entry point for UI part needed by the exporter."
|
||||||
(:require
|
(:require
|
||||||
|
[app.common.geom.shapes.bounds :as gsb]
|
||||||
[app.common.logging :as l]
|
[app.common.logging :as l]
|
||||||
[app.common.math :as mth]
|
[app.common.math :as mth]
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
@ -122,10 +123,11 @@
|
|||||||
;; exportation process.
|
;; exportation process.
|
||||||
(mf/with-effect [object]
|
(mf/with-effect [object]
|
||||||
(when object
|
(when object
|
||||||
(dom/set-page-style!
|
(let [{:keys [width height]} (gsb/get-object-bounds [objects] object)]
|
||||||
{:size (str/concat
|
(dom/set-page-style!
|
||||||
(mth/ceil (:width object)) "px "
|
{:size (str/concat
|
||||||
(mth/ceil (:height object)) "px")})))
|
(mth/ceil width) "px "
|
||||||
|
(mth/ceil height) "px")}))))
|
||||||
|
|
||||||
(when objects
|
(when objects
|
||||||
[:& render/object-svg
|
[:& render/object-svg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user