kei-lisp-plugin-graphics 1.0.1 → 2.0.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 +12 -1
- package/dist/index.cjs +453 -409
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +77 -61
- package/dist/index.d.ts +77 -61
- package/dist/index.js +453 -409
- package/dist/index.js.map +1 -1
- package/package.json +10 -8
package/README.md
CHANGED
|
@@ -9,9 +9,19 @@ A Canvas2D drawing plugin for the [kei-lisp](https://github.com/ike-keichan/kei-
|
|
|
9
9
|
interpreter. Register it on a `LispInterpreter` and call drawing primitives
|
|
10
10
|
(`gopen`, `gline-to`, `gfill-rect`, ...) directly from Lisp source.
|
|
11
11
|
|
|
12
|
+
> [!WARNING]
|
|
13
|
+
> This is a **toy / hobby project** built for learning and experimentation.
|
|
14
|
+
> **Use in production (or any other serious product) is not recommended.**
|
|
15
|
+
> APIs may change without notice, and maintenance and support are provided
|
|
16
|
+
> on a best-effort basis only.
|
|
17
|
+
>
|
|
18
|
+
> It is also a **personal project**: issue reports (bugs, questions, ideas)
|
|
19
|
+
> are welcome, but external pull requests are generally **not accepted** —
|
|
20
|
+
> see [CONTRIBUTING.md](./CONTRIBUTING.md).
|
|
21
|
+
|
|
12
22
|
## Features
|
|
13
23
|
|
|
14
|
-
-
|
|
24
|
+
- 45 Canvas2D drawing primitives (`g…` symbols) callable directly from Lisp source
|
|
15
25
|
- Works with `HTMLCanvasElement` and `OffscreenCanvas`
|
|
16
26
|
- ESM and CommonJS dual output with TypeScript types
|
|
17
27
|
- Zero runtime dependencies
|
|
@@ -76,6 +86,7 @@ canvas's 2D rendering context.
|
|
|
76
86
|
| Shadow | `gshadow-color`, `gshadow-blur`, `gshadow-offsetx`, `gshadow-offsety` |
|
|
77
87
|
| Text | `gtext-font`, `gtext-align`, `gtext-line`, `gtext-dire` |
|
|
78
88
|
| Transform | `gtranslate`, `gscale`, `grotate` |
|
|
89
|
+
| State | `gsave`, `grestore` |
|
|
79
90
|
| Image / export | `gimage`, `gsave-png`, `gsave-jpeg` |
|
|
80
91
|
|
|
81
92
|
Each function returns `t` on success. See [`docs/graphics.md`](./docs/graphics.md)
|