@diagrampilot/render-svg 0.2.16 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +12 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,13 +1,19 @@
1
1
  # @diagrampilot/render-svg
2
2
 
3
- SVG rendering and PNG rasterization adapter for DiagramPilot.
3
+ SVG rendering adapter for validated DiagramSpec data.
4
4
 
5
- This package renders validated DiagramSpec data to review-stable SVG through
6
- DiagramPilot's SVG rendering path, and rasterizes that SVG output to PNG for
7
- the CLI PNG render format. Most users should use
8
- `diagrampilot render <path> --out <path>` or
9
- `diagrampilot render <path> --format png --out <path>` through the CLI.
5
+ Most users should call the CLI:
6
+
7
+ ```bash
8
+ diagrampilot render <path> --out <artifact.svg>
9
+ diagrampilot render <path> --format png --out <artifact.png>
10
+ ```
11
+
12
+ SVG remains the default render format. PNG rendering is part of the v0.3.0
13
+ Alpha Capability Release and rasterizes the SVG render path so SVG and PNG stay
14
+ visually aligned.
10
15
 
11
16
  Public documentation:
12
17
 
13
18
  - https://diagrampilot.com/docs/agents/quickstart.md
19
+ - https://diagrampilot.com/docs/agents/spec.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagrampilot/render-svg",
3
- "version": "0.2.16",
3
+ "version": "0.3.0",
4
4
  "description": "SVG rendering and PNG rasterization adapter for DiagramPilot.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -44,8 +44,8 @@
44
44
  "build": "tsc -b"
45
45
  },
46
46
  "dependencies": {
47
- "@diagrampilot/core": "0.2.16",
48
- "@diagrampilot/export-d2": "0.2.16",
47
+ "@diagrampilot/core": "0.3.0",
48
+ "@diagrampilot/export-d2": "0.3.0",
49
49
  "@resvg/resvg-js": "2.6.2",
50
50
  "@terrastruct/d2": "0.1.33"
51
51
  }