mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 22:57:17 +02:00
✨ Multiple fills in text shapes
This commit is contained in:
parent
a3063eb46d
commit
ec63d23666
19 changed files with 230 additions and 211 deletions
|
@ -95,6 +95,13 @@
|
|||
selected (impl/getSelectedBlocks state)]
|
||||
(reduce update-blocks state selected)))
|
||||
|
||||
(defn update-editor-current-inline-styles-fn
|
||||
[state update-fn]
|
||||
(let [attrs (-> (.getCurrentInlineStyle ^js state)
|
||||
(txt/styles-to-attrs)
|
||||
(update-fn))]
|
||||
(impl/applyInlineStyle state (txt/attrs-to-styles attrs))))
|
||||
|
||||
(defn editor-split-block
|
||||
[state]
|
||||
(impl/splitBlockPreservingData state))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue