Adds layers options to texts

This commit is contained in:
alonso.torres 2021-03-24 11:34:54 +01:00
parent ec217d8201
commit 7ac78cb103
2 changed files with 9 additions and 0 deletions

View file

@ -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