mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 00:56:12 +02:00
✨ Add export macro helper for properly reexport vars.
This reverts commit 45da7df4b4
.
Now with JVM/Clojure support.
This commit is contained in:
parent
45da7df4b4
commit
497c174d63
4 changed files with 81 additions and 48 deletions
|
@ -1576,38 +1576,36 @@
|
|||
|
||||
;; Transform
|
||||
|
||||
(def start-rotate dwt/start-rotate)
|
||||
(def start-resize dwt/start-resize)
|
||||
(def start-move-selected dwt/start-move-selected)
|
||||
(def move-selected dwt/move-selected)
|
||||
|
||||
(def set-rotation dwt/set-rotation)
|
||||
(def set-modifiers dwt/set-modifiers)
|
||||
(def apply-modifiers dwt/apply-modifiers)
|
||||
(d/export dwt/start-rotate)
|
||||
(d/export dwt/start-resize)
|
||||
(d/export dwt/start-move-selected)
|
||||
(d/export dwt/move-selected)
|
||||
(d/export dwt/set-rotation)
|
||||
(d/export dwt/set-modifiers)
|
||||
(d/export dwt/apply-modifiers)
|
||||
|
||||
;; Persistence
|
||||
|
||||
(def set-file-shared dwp/set-file-shared)
|
||||
(def fetch-shared-files dwp/fetch-shared-files)
|
||||
(def link-file-to-library dwp/link-file-to-library)
|
||||
(def unlink-file-from-library dwp/unlink-file-from-library)
|
||||
(def upload-media-objects dwp/upload-media-objects)
|
||||
(d/export dwp/set-file-shared)
|
||||
(d/export dwp/fetch-shared-files)
|
||||
(d/export dwp/link-file-to-library)
|
||||
(d/export dwp/unlink-file-from-library)
|
||||
(d/export dwp/upload-media-objects)
|
||||
|
||||
;; Selection
|
||||
|
||||
(def select-shape dws/select-shape)
|
||||
(def select-all dws/select-all)
|
||||
(def deselect-all dws/deselect-all)
|
||||
(def select-shapes dwc/select-shapes)
|
||||
(def duplicate-selected dws/duplicate-selected)
|
||||
(def handle-selection dws/handle-selection)
|
||||
(def select-inside-group dws/select-inside-group)
|
||||
(def select-for-drawing dwd/select-for-drawing)
|
||||
(def clear-edition-mode dwc/clear-edition-mode)
|
||||
(def add-shape dwc/add-shape)
|
||||
(def start-edition-mode dwc/start-edition-mode)
|
||||
|
||||
(defn start-path-edit [id] (dwdp/start-path-edit id))
|
||||
(d/export dws/select-shape)
|
||||
(d/export dws/select-all)
|
||||
(d/export dws/deselect-all)
|
||||
(d/export dwc/select-shapes)
|
||||
(d/export dws/duplicate-selected)
|
||||
(d/export dws/handle-selection)
|
||||
(d/export dws/select-inside-group)
|
||||
(d/export dwd/select-for-drawing)
|
||||
(d/export dwc/clear-edition-mode)
|
||||
(d/export dwc/add-shape)
|
||||
(d/export dwc/start-edition-mode)
|
||||
(d/export dwdp/start-path-edit)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Shortcuts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue