@visualli/react 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.cjs +135 -167
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +104 -131
- package/dist/index.js.map +1 -1
- package/package.json +8 -6
- package/src/VisualliCanvas.tsx +13 -5
- package/src/VisualliRenderer.tsx +2 -2
- package/src/design/drawing.ts +27 -8
- package/src/design/measure.ts +1 -1
- package/src/design/runtime.ts +4 -3
- package/src/generated/specCss.ts +4 -4
- package/src/hooks/useKonvaRenderer.ts +28 -44
package/README.md
CHANGED
|
@@ -17,10 +17,10 @@ React canvas rendering for Visualli — powered by Konva. A high-performance com
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install @visualli/react
|
|
20
|
+
npm install @visualli/react konva react-konva
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
**Peer dependencies:** `react@^18`, `react-dom@^18`
|
|
23
|
+
**Peer dependencies:** `react@^18`, `react-dom@^18`, `konva@^9.3.6`, `react-konva@^18.2.10` - one copy each, shared with your app. `@visualli/core` and `zustand` come with the SDK.
|
|
24
24
|
|
|
25
25
|
## Quick Start
|
|
26
26
|
|