kei-lisp-plugin-graphics 1.0.0 → 1.0.1
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 +9 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# kei-lisp-plugin-graphics
|
|
2
2
|
|
|
3
|
+
[](https://github.com/ike-keichan/kei-lisp-plugin-graphics/actions/workflows/ci.yml)
|
|
3
4
|
[](https://www.npmjs.com/package/kei-lisp-plugin-graphics)
|
|
4
5
|
[](./LICENSE)
|
|
5
6
|
[](https://nodejs.org/)
|
|
@@ -8,6 +9,13 @@ A Canvas2D drawing plugin for the [kei-lisp](https://github.com/ike-keichan/kei-
|
|
|
8
9
|
interpreter. Register it on a `LispInterpreter` and call drawing primitives
|
|
9
10
|
(`gopen`, `gline-to`, `gfill-rect`, ...) directly from Lisp source.
|
|
10
11
|
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- 43 Canvas2D drawing primitives (`g…` symbols) callable directly from Lisp source
|
|
15
|
+
- Works with `HTMLCanvasElement` and `OffscreenCanvas`
|
|
16
|
+
- ESM and CommonJS dual output with TypeScript types
|
|
17
|
+
- Zero runtime dependencies
|
|
18
|
+
|
|
11
19
|
## Installation
|
|
12
20
|
|
|
13
21
|
```sh
|
|
@@ -73,7 +81,7 @@ canvas's 2D rendering context.
|
|
|
73
81
|
Each function returns `t` on success. See [`docs/graphics.md`](./docs/graphics.md)
|
|
74
82
|
for argument signatures and side effects.
|
|
75
83
|
|
|
76
|
-
##
|
|
84
|
+
## Reference
|
|
77
85
|
|
|
78
86
|
- [API Reference](./docs/api.md) — TypeScript / JavaScript API
|
|
79
87
|
- [Graphics Reference](./docs/graphics.md) — every `g…` Lisp function
|
|
@@ -95,7 +103,6 @@ Requires [pnpm](https://pnpm.io/) and Node.js 24+
|
|
|
95
103
|
| `pnpm build` | Build for distribution (CJS + ESM + types) |
|
|
96
104
|
| `pnpm test` | Run tests |
|
|
97
105
|
| `pnpm test:watch` | Run tests in watch mode |
|
|
98
|
-
| `pnpm typecheck` | Type check (`tsc --noEmit`) |
|
|
99
106
|
| `pnpm check` | Run all checks (format, lint, spell, ...) |
|
|
100
107
|
| `pnpm fix` | Auto-fix format and lint issues |
|
|
101
108
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kei-lisp-plugin-graphics",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Canvas2D graphics plugin for the kei-lisp interpreter",
|
|
5
5
|
"author": "Keisuke Ikeda",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"typecheck": "tsc --noEmit",
|
|
78
78
|
"check": "run-s check:*",
|
|
79
79
|
"check:format": "prettier \"./src/**/*.ts\" --check",
|
|
80
|
-
"check:format-config": "prettier \"./*.{js,mjs,json,md}\" \"./.github/**/*.yml\" \"./configs/**/*.mjs\" --check",
|
|
80
|
+
"check:format-config": "prettier \"./*.{js,mjs,json,md}\" \"./docs/**/*.md\" \"./.github/**/*.yml\" \"./configs/**/*.mjs\" --check",
|
|
81
81
|
"check:lint": "eslint \"./src/**/*.ts\"",
|
|
82
82
|
"check:lint-config": "eslint ./*.{js,mjs} \"./configs/**/*.mjs\"",
|
|
83
83
|
"check:spell": "cspell \"./src/**/*.ts\"",
|
|
84
|
-
"check:spell-config": "cspell \"./*.{js,mjs,json,md}\" \"./.github/**/*.yml\" \"./configs/**/*.mjs\"",
|
|
84
|
+
"check:spell-config": "cspell \"./*.{js,mjs,json,md}\" \"./docs/**/*.md\" \"./.github/**/*.yml\" \"./configs/**/*.mjs\"",
|
|
85
85
|
"fix": "run-s fix:*",
|
|
86
86
|
"fix:format": "prettier \"./src/**/*.ts\" --write",
|
|
87
|
-
"fix:format-config": "prettier \"./*.{js,mjs,json,md}\" \"./.github/**/*.yml\" \"./configs/**/*.mjs\" --write",
|
|
87
|
+
"fix:format-config": "prettier \"./*.{js,mjs,json,md}\" \"./docs/**/*.md\" \"./.github/**/*.yml\" \"./configs/**/*.mjs\" --write",
|
|
88
88
|
"fix:lint": "eslint \"./src/**/*.ts\" --fix",
|
|
89
89
|
"fix:lint-config": "eslint ./*.{js,mjs} \"./configs/**/*.mjs\" --fix"
|
|
90
90
|
}
|