Support for fill,stroke,gradient,text

This commit is contained in:
alonso.torres 2021-06-03 15:01:24 +02:00
parent 8d703a3fb4
commit 83879fb931
5 changed files with 179 additions and 45 deletions

View 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)))