Minor refactor on shapes and canvas rendering on viewport.

This commit is contained in:
Andrey Antukh 2019-09-21 20:13:40 +02:00
parent 163e102bcf
commit ddaf6bfc92
5 changed files with 111 additions and 130 deletions

View file

@ -29,7 +29,7 @@
[uxbox.main.ui.workspace.scroll :as scroll]
[uxbox.main.ui.workspace.shortcuts :as shortcuts]
[uxbox.main.ui.workspace.sidebar :refer [left-sidebar right-sidebar]]
[uxbox.main.ui.workspace.sidebar.history :refer [history-dialog]]
;; [uxbox.main.ui.workspace.sidebar.history :refer [history-dialog]]
[uxbox.main.ui.workspace.streams :as uws]
[uxbox.util.data :refer [classnames]]
[uxbox.util.dom :as dom]
@ -99,7 +99,7 @@
:on-scroll on-scroll
:on-wheel #(on-wheel % canvas)}
(history-dialog)
;; (history-dialog)
;; Rules
(when (contains? flags :rules)
@ -128,8 +128,6 @@
{:deps #js [project-id page-id]
:fn #(st/emit! (dw/initialize project-id page-id))})
;; (prn "workspace-page.render" (:id page) props)
[:> rdnd/provider {:backend rdnd/html5}
(when page
[:& workspace {:page page}])]))