kei-lisp-plugin-graphics 1.0.0 → 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 CHANGED
@@ -1,5 +1,6 @@
1
1
  # kei-lisp-plugin-graphics
2
2
 
3
+ [![CI](https://github.com/ike-keichan/kei-lisp-plugin-graphics/actions/workflows/ci.yml/badge.svg)](https://github.com/ike-keichan/kei-lisp-plugin-graphics/actions/workflows/ci.yml)
3
4
  [![npm version](https://img.shields.io/npm/v/kei-lisp-plugin-graphics.svg)](https://www.npmjs.com/package/kei-lisp-plugin-graphics)
4
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
5
6
  [![Node.js](https://img.shields.io/badge/node-%3E%3D24.0.0-brightgreen.svg)](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
+ - 45 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
@@ -68,12 +76,13 @@ canvas's 2D rendering context.
68
76
  | Shadow | `gshadow-color`, `gshadow-blur`, `gshadow-offsetx`, `gshadow-offsety` |
69
77
  | Text | `gtext-font`, `gtext-align`, `gtext-line`, `gtext-dire` |
70
78
  | Transform | `gtranslate`, `gscale`, `grotate` |
79
+ | State | `gsave`, `grestore` |
71
80
  | Image / export | `gimage`, `gsave-png`, `gsave-jpeg` |
72
81
 
73
82
  Each function returns `t` on success. See [`docs/graphics.md`](./docs/graphics.md)
74
83
  for argument signatures and side effects.
75
84
 
76
- ## Documentation
85
+ ## Reference
77
86
 
78
87
  - [API Reference](./docs/api.md) — TypeScript / JavaScript API
79
88
  - [Graphics Reference](./docs/graphics.md) — every `g…` Lisp function
@@ -95,7 +104,6 @@ Requires [pnpm](https://pnpm.io/) and Node.js 24+
95
104
  | `pnpm build` | Build for distribution (CJS + ESM + types) |
96
105
  | `pnpm test` | Run tests |
97
106
  | `pnpm test:watch` | Run tests in watch mode |
98
- | `pnpm typecheck` | Type check (`tsc --noEmit`) |
99
107
  | `pnpm check` | Run all checks (format, lint, spell, ...) |
100
108
  | `pnpm fix` | Auto-fix format and lint issues |
101
109