🎉 Initial work on multicanvas setup.

Preparing the workspace code to be able handle
multiple canvas in a single page.
This commit is contained in:
Andrey Antukh 2019-08-12 18:04:01 +02:00
parent f8ff79e23c
commit 8d03ff40ab
16 changed files with 176 additions and 271 deletions

View file

@ -71,7 +71,7 @@
stoper (->> ws/interaction-events
(rx/filter ws/mouse-up?)
(rx/take 1))
stream (->> ws/canvas-mouse-position
stream (->> ws/viewport-mouse-position
(rx/take-until stoper)
(rx/map apply-zoom)
(rx/mapcat apply-grid-alignment)