simplify note

This commit is contained in:
Anton Lavrevov
2025-08-24 08:26:14 -05:00
parent 9369874c0d
commit 0a993c0d5d

View File

@@ -28,7 +28,7 @@ import Konva from 'konva';
import 'konva/canvas-backend'; import 'konva/canvas-backend';
``` ```
Motivation of this change: I see more frequent usage of `konva` library in SSR environments such as `Next.js`. Loading "native canvas render" on this enviromemnt doesn't make much sense, because we don't do server-side rendering of canvas content. So dropping requirement to mess with native modules when you don't really need them will simplify setup and usage a lot! Motivation: With increased usage of `konva` in SSR environments like Next.js, loading native canvas rendering on the server is unnecessary since we don't render canvas content server-side. Removing this requirement simplifies setup by avoiding native modules when they aren't needed.
- Improved text positioning to match DOM/CSS rendering. To restore previous behaviour use `Konva.legacyTextRendering = true`. This should NOT break major part of the apps. But if you care about pixel-perfect position of text elements, that change may effect you. - Improved text positioning to match DOM/CSS rendering. To restore previous behaviour use `Konva.legacyTextRendering = true`. This should NOT break major part of the apps. But if you care about pixel-perfect position of text elements, that change may effect you.