penpot/frontend/src/uxbox/main/constants.cljs
Andrey Antukh 8d03ff40ab 🎉 Initial work on multicanvas setup.
Preparing the workspace code to be able handle
multiple canvas in a single page.
2019-08-12 18:05:08 +02:00

62 lines
1.4 KiB
Clojure

;; 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) 2015-2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.main.constants)
(def viewport-width 4000)
(def viewport-height 4000)
(def canvas-start-x 1200)
(def canvas-start-y 1200)
(def grid-x-axis 10)
(def grid-y-axis 10)
(def page-metadata
"Default data for page metadata."
{:grid-x-axis grid-x-axis
:grid-y-axis grid-y-axis
:grid-color "#cccccc"
:grid-alignment true
:background "#ffffff"})
(def zoom-levels
[0.20 0.21 0.22 0.23 0.24 0.25 0.27 0.28 0.30 0.32 0.34
0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.51 0.54 0.57 0.60
0.63 0.66 0.69 0.73 0.77 0.81 0.85 0.90 0.95 1.00 1.05
1.10 1.15 1.21 1.27 1.33 1.40 1.47 1.54 1.62 1.70 1.78
1.87 1.96 2.06 2.16 2.27 2.38 2.50 2.62 2.75 2.88 3.00])
(def page-defaults
{:width 1366
:height 768
:layout "notebook"})
(def project-defaults
(merge {:name ""} page-defaults))
(def page-layouts
{"mobile"
{:name "Mobile"
:id "mobile"
:width 320
:height 480}
"tablet"
{:name "Tablet"
:id "tablet"
:width 1024
:height 768}
"notebook"
{:name "Notebook"
:id "notebook"
:width 1366
:height 768}
"desktop"
{:name "Desktop"
:id "desktop"
:width 1920
:height 1080}})