0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-02 20:39:09 -05:00

Add multicanvas data to sample data.

This commit is contained in:
Andrey Antukh 2019-08-21 20:58:23 +00:00
parent f45d687d2a
commit 882102245a

View file

@ -22,8 +22,8 @@
[uxbox.util.transit :as t])) [uxbox.util.transit :as t]))
(defn- mk-uuid (defn- mk-uuid
[prefix i] [prefix & args]
(uuid/v5 uuid/+namespace-oid+ (str prefix i))) (uuid/v5 uuid/+namespace-oid+ (apply str prefix args)))
(defn- data-encode (defn- data-encode
[data] [data]
@ -58,7 +58,19 @@
{:id (mk-uuid "page" i) {:id (mk-uuid "page" i)
:user (mk-uuid "user" ui) :user (mk-uuid "user" ui)
:project (mk-uuid "project" pi) :project (mk-uuid "project" pi)
:data nil :data {:canvas [{:id (mk-uuid "canvas" i 1)
:x 200
:y 200
:width 1024
:height 768}
{:id (mk-uuid "canvas" i 2)
:x 1324
:y 200
:width 1024
:height 768}
]
:shapes []
:shapes-map {}}
:metadata {:width 1024 :metadata {:width 1024
:height 768 :height 768
:layout "tablet"} :layout "tablet"}