mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
simplify note
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user