mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 07:08:21 +02:00
✨ Expand api for plugins
This commit is contained in:
parent
6e409cbd47
commit
236ff06763
4 changed files with 210 additions and 29 deletions
|
@ -406,8 +406,12 @@
|
|||
[shape text]
|
||||
(let [content (:content shape)
|
||||
|
||||
paragraph-style (select-keys (->> content (node-seq is-paragraph-node?) first) text-all-attrs)
|
||||
text-style (select-keys (->> content (node-seq is-text-node?) first) text-all-attrs)
|
||||
paragraph-style (merge
|
||||
default-text-attrs
|
||||
(select-keys (->> content (node-seq is-paragraph-node?) first) text-all-attrs))
|
||||
text-style (merge
|
||||
default-text-attrs
|
||||
(select-keys (->> content (node-seq is-text-node?) first) text-all-attrs))
|
||||
|
||||
paragraph-texts (str/split text "\n")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue