@svgsketch/core 0.1.0

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 ADDED
@@ -0,0 +1,31 @@
1
+ # @svgsketch/core
2
+
3
+ Core SDK and document engine for SVGSketch.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @svgsketch/core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { Document, Circle } from '@svgsketch/core';
15
+
16
+ const doc = new Document({ width: 400, height: 300 }).add(
17
+ new Circle(200, 150, 80).fill('#2563eb')
18
+ );
19
+
20
+ const svg = doc.toSVG();
21
+ const svgsJson = doc.toJSON();
22
+ ```
23
+
24
+ ## What It Includes
25
+
26
+ - `types`: `.svgs` schema and shared type definitions
27
+ - `format`: parse, stringify, migrate, validate, template helpers
28
+ - `renderer`: headless SVG rendering
29
+ - `sdk`: fluent `Document`, shape, style, and animation builders
30
+ - `codegen`: SVG, React, Vue, D3, and CSS+SVG output generators
31
+