mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 17:51:39 +02:00
✨ Add spec for new text data
This commit is contained in:
parent
bbf91a8957
commit
e183d67e2a
10 changed files with 93 additions and 54 deletions
|
@ -35,8 +35,7 @@
|
|||
;; the property it's known.
|
||||
;; `inline-flex` is similar to flex but `overflows` outside the bounds of the
|
||||
;; parent
|
||||
(let [auto-width? (= grow-type :auto-width)
|
||||
auto-height? (= grow-type :auto-height)]
|
||||
(let [auto-width? (= grow-type :auto-width)]
|
||||
#js {:display "inline-flex"
|
||||
:flexDirection "column"
|
||||
:justifyContent "inherit"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
[props]
|
||||
|
||||
(let [render-id (mf/use-ctx muc/render-ctx)
|
||||
{:keys [id x y width height position-data] :as shape} (obj/get props "shape")
|
||||
{:keys [position-data] :as shape} (obj/get props "shape")
|
||||
transform (str (gsh/transform-matrix shape))
|
||||
group-props (-> #js {:transform transform}
|
||||
(attrs/add-style-attrs shape render-id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue