mirror of
https://github.com/penpot/penpot.git
synced 2026-05-27 19:03:39 +00:00
67 lines
2.4 KiB
Clojure
67 lines
2.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) UXBOX Labs SL
|
|
|
|
(ns app.common.pages.common
|
|
(:require
|
|
[app.common.colors :as clr]
|
|
[app.common.uuid :as uuid]))
|
|
|
|
(def file-version 12)
|
|
(def default-color clr/gray-20)
|
|
(def root uuid/zero)
|
|
|
|
(def component-sync-attrs
|
|
{:name :name-group
|
|
:fill-color :fill-group
|
|
:fill-opacity :fill-group
|
|
:fill-color-gradient :fill-group
|
|
:fill-color-ref-file :fill-group
|
|
:fill-color-ref-id :fill-group
|
|
:content :content-group
|
|
:hidden :visibility-group
|
|
:blocked :modifiable-group
|
|
:font-family :text-font-group
|
|
:font-size :text-font-group
|
|
:font-style :text-font-group
|
|
:font-weight :text-font-group
|
|
:letter-spacing :text-display-group
|
|
:line-height :text-display-group
|
|
:text-align :text-display-group
|
|
:stroke-color :stroke-group
|
|
:stroke-color-gradient :stroke-group
|
|
:stroke-color-ref-file :stroke-group
|
|
:stroke-color-ref-id :stroke-group
|
|
:stroke-opacity :stroke-group
|
|
:stroke-style :stroke-group
|
|
:stroke-width :stroke-group
|
|
:stroke-alignment :stroke-group
|
|
:stroke-cap-start :stroke-group
|
|
:stroke-cap-end :stroke-group
|
|
:rx :radius-group
|
|
:ry :radius-group
|
|
:r1 :radius-group
|
|
:r2 :radius-group
|
|
:r3 :radius-group
|
|
:r4 :radius-group
|
|
:selrect :geometry-group
|
|
:points :geometry-group
|
|
:locked :geometry-group
|
|
:proportion :geometry-group
|
|
:proportion-lock :geometry-group
|
|
:x :geometry-group
|
|
:y :geometry-group
|
|
:width :geometry-group
|
|
:height :geometry-group
|
|
:transform :geometry-group
|
|
:transform-inverse :geometry-group
|
|
:shadow :shadow-group
|
|
:blur :blur-group
|
|
:masked-group? :mask-group
|
|
:constraints-h :constraints-group
|
|
:constraints-v :constraints-group
|
|
:fixed-scroll :constraints-group})
|
|
|