You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Considering layer.batchDraw()? May be outdated with konva@9
4. According to this, it may be useful set listening(false) by default and enforce the use of listening directives to enable only explicitely shape (or layer) listening.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With this guide in mind, I'll pin up some considerations for this library that may improve performances:
ChangeDetectionStrategy.OnPush
for comparing @input by reference and not by object content?layer.draw()
only when config actually changesngx-konva/projects/ngx-konva/src/lib/components/ko-layer.component.ts
Line 29 in bb94638
layer.batchDraw()
? May be outdated with konva@9listening(false)
by default and enforce the use of listening directives to enable only explicitely shape (or layer) listening.ngx-konva/projects/ngx-konva/src/lib/components/ko-shape.component.ts
Line 51 in bb94638
Konva.pixelRatio = 1
(automatically on Retina displays?)Beta Was this translation helpful? Give feedback.
All reactions