kei-lisp-plugin-graphics 1.0.1 → 1.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 +2 -1
- package/dist/index.cjs +375 -376
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -59
- package/dist/index.d.ts +65 -59
- package/dist/index.js +375 -376
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ interpreter. Register it on a `LispInterpreter` and call drawing primitives
|
|
|
11
11
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
14
|
-
-
|
|
14
|
+
- 45 Canvas2D drawing primitives (`g…` symbols) callable directly from Lisp source
|
|
15
15
|
- Works with `HTMLCanvasElement` and `OffscreenCanvas`
|
|
16
16
|
- ESM and CommonJS dual output with TypeScript types
|
|
17
17
|
- Zero runtime dependencies
|
|
@@ -76,6 +76,7 @@ canvas's 2D rendering context.
|
|
|
76
76
|
| Shadow | `gshadow-color`, `gshadow-blur`, `gshadow-offsetx`, `gshadow-offsety` |
|
|
77
77
|
| Text | `gtext-font`, `gtext-align`, `gtext-line`, `gtext-dire` |
|
|
78
78
|
| Transform | `gtranslate`, `gscale`, `grotate` |
|
|
79
|
+
| State | `gsave`, `grestore` |
|
|
79
80
|
| Image / export | `gimage`, `gsave-png`, `gsave-jpeg` |
|
|
80
81
|
|
|
81
82
|
Each function returns `t` on success. See [`docs/graphics.md`](./docs/graphics.md)
|