mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 21:11:38 +02:00
✨ Adds layers options to texts
This commit is contained in:
parent
ec217d8201
commit
7ac78cb103
2 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
[app.common.data :as d]
|
||||
[app.common.geom.shapes :as geom]
|
||||
[app.main.ui.context :as muc]
|
||||
[app.main.ui.shapes.attrs :as attrs]
|
||||
[app.main.ui.shapes.text.embed :as ste]
|
||||
[app.main.ui.shapes.text.styles :as sts]
|
||||
[app.util.color :as uc]
|
||||
|
@ -108,6 +109,7 @@
|
|||
:transform (geom/transform-matrix shape)
|
||||
:width (if (#{:auto-width} grow-type) 100000 width)
|
||||
:height (if (#{:auto-height :auto-width} grow-type) 100000 height)
|
||||
:style (-> (obj/new) (attrs/add-layer-props shape))
|
||||
:ref ref}
|
||||
[:& render-node {:index 0
|
||||
:shape shape
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue