asciify-engine 1.0.94 → 1.0.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asciify-engine",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "Framework-agnostic ASCII art engine. Convert images, videos, and GIFs into ASCII art rendered on canvas.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "files": [
22
22
  "dist",
23
- ".agents/skills/asciify-engine",
23
+ "skills/asciify-engine",
24
24
  "README.md",
25
25
  "LICENSE"
26
26
  ],
@@ -101,7 +101,7 @@
101
101
  "homepage": "https://asciify.org",
102
102
  "repository": {
103
103
  "type": "git",
104
- "url": "https://github.com/ayangabryl/asciify-engine"
104
+ "url": "git+https://github.com/ayangabryl/asciify-engine.git"
105
105
  },
106
106
  "dependencies": {
107
107
  "gifuct-js": "^2.1.2"
@@ -8,7 +8,7 @@ description: Convert images, videos, GIFs, webcam streams, text, and animated ba
8
8
  Use this skill for the `asciify-engine` npm package.
9
9
 
10
10
  **Package:** `asciify-engine`
11
- **Current version:** `1.0.93`
11
+ **Current version:** `1.0.96`
12
12
  **Playground:** https://asciify.org
13
13
  **GitHub:** https://github.com/ayangabryl/asciify-engine
14
14
 
@@ -36,7 +36,7 @@ npm install asciify-engine
36
36
  For existing apps, install the latest tested version:
37
37
 
38
38
  ```bash
39
- npm install asciify-engine@1.0.93
39
+ npm install asciify-engine@1.0.96
40
40
  ```
41
41
 
42
42
  ## Mental Model
@@ -64,15 +64,15 @@ Use legacy object frames only when you need per-cell mutation, dots mode, heavy
64
64
  - `gifToAsciiFrames()`
65
65
  - `renderFrameToCanvas()`
66
66
 
67
- Use `options.sourceCrop` when the source media has empty edges or needs tighter framing without changing the destination canvas size. Percent values are normalized `0–1` by default:
67
+ Use `options.sourceCrop` when the source media has empty edges or needs tighter framing without changing the destination canvas size. Percent values are normalized `0–1` by default. Passing only `height` or only `width` preserves source proportions and centers the crop:
68
68
 
69
69
  ```ts
70
70
  options: {
71
- sourceCrop: { y: 0.16, height: 0.62 },
71
+ sourceCrop: { height: 0.7 },
72
72
  }
73
73
  ```
74
74
 
75
- `sourceCrop` is opt-in. When omitted, the engine samples the full source exactly as older versions did.
75
+ Set `x`, `y`, `width`, and `height` together only when manual framing is needed. `sourceCrop` is opt-in; when omitted, the engine samples the full source exactly as older versions did.
76
76
 
77
77
  ## Visual Target
78
78
 
@@ -221,7 +221,7 @@ await asciifyVideo(video, canvas, {
221
221
  fitTo: hero,
222
222
  options: {
223
223
  chromaKey: true,
224
- sourceCrop: { y: 0.16, height: 0.62 },
224
+ sourceCrop: { height: 0.7 },
225
225
  },
226
226
  });
227
227
  ```