Add static mixin to shape componet.

Improves dramatically the rendering performance
for huge number of objects.
This commit is contained in:
Andrey Antukh 2016-02-18 22:20:57 +02:00
parent 2d344f4701
commit 9c72cd8a3d

View File

@ -102,7 +102,7 @@
(mx/component (mx/component
{:render shape-render {:render shape-render
:name "shape" :name "shape"
:mixins [(mx/local {}) rum/reactive]})) :mixins [(mx/local {}) rum/reactive mx/static]}))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Canvas ;; Canvas