From 9c72cd8a3df654700020782ea876c1201e6f3b76 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 18 Feb 2016 22:20:57 +0200 Subject: [PATCH] Add static mixin to shape componet. Improves dramatically the rendering performance for huge number of objects. --- src/uxbox/ui/workspace/canvas.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxbox/ui/workspace/canvas.cljs b/src/uxbox/ui/workspace/canvas.cljs index f94186cb1b..e5f1c23a7d 100644 --- a/src/uxbox/ui/workspace/canvas.cljs +++ b/src/uxbox/ui/workspace/canvas.cljs @@ -102,7 +102,7 @@ (mx/component {:render shape-render :name "shape" - :mixins [(mx/local {}) rum/reactive]})) + :mixins [(mx/local {}) rum/reactive mx/static]})) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Canvas