mirror of
https://github.com/penpot/penpot.git
synced 2025-07-29 09:27:22 +02:00
✨ Support for fill,stroke,gradient,text
This commit is contained in:
parent
8d703a3fb4
commit
83879fb931
5 changed files with 179 additions and 45 deletions
19
frontend/src/app/util/json.cljs
Normal file
19
frontend/src/app/util/json.cljs
Normal file
|
@ -0,0 +1,19 @@
|
|||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) UXBOX Labs SL
|
||||
|
||||
(ns app.util.json)
|
||||
|
||||
(defn decode
|
||||
[data]
|
||||
(-> data
|
||||
(js/JSON.parse)
|
||||
(js->clj :keywordize-keys true)))
|
||||
|
||||
(defn encode
|
||||
[data]
|
||||
(-> data
|
||||
(clj->js)
|
||||
(js/JSON.stringify)))
|
Loading…
Add table
Add a link
Reference in a new issue