asciify-engine 1.0.106 → 1.0.107
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/asciify-engine/SKILL.md +5 -5
package/package.json
CHANGED
|
@@ -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.
|
|
11
|
+
**Current version:** `1.0.107`
|
|
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.
|
|
39
|
+
npm install asciify-engine@1.0.107
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Mental Model
|
|
@@ -90,7 +90,7 @@ options: {
|
|
|
90
90
|
|
|
91
91
|
For centered crops, `sourceCrop: { height: 0.7 }` keeps 70% of the source and preserves the original source aspect. `preserveAspect` is only for single-dimension `width`/`height` crops; do not use it to force hero bands. For wide heroes, crop with `top`/`bottom` and let the engine derive the cropped aspect. `sourceCrop` is opt-in; when omitted, the engine samples the full source exactly as older versions did.
|
|
92
92
|
|
|
93
|
-
When `sourceCrop` and `chromaKey` are both enabled for video, `asciifyVideo` does a one-time foreground trim inside the crop window. This removes keyed empty margins before layout sizing, which is the right fix when the canvas is full width but the visible ASCII subject still appears short on one side.
|
|
93
|
+
When `sourceCrop` and `chromaKey` are both enabled for video, `asciifyVideo` does a one-time foreground trim inside the crop window. For scrubbed or trimmed video it samples the playback range and uses the union of the keyed foreground bounds. This removes keyed empty margins before layout sizing, which is the right fix when the canvas is full width but the visible ASCII subject still appears short on one side.
|
|
94
94
|
|
|
95
95
|
Use top-level `asciifyVideo` layout options when the destination needs full-bleed framing. These affect the visible canvas only, not the sampled media:
|
|
96
96
|
|
|
@@ -113,7 +113,7 @@ Mental split:
|
|
|
113
113
|
- `sourceCrop` chooses the source window before ASCII conversion.
|
|
114
114
|
- CSS-like insets change the crop aspect naturally; the engine keeps ASCII proportions intact.
|
|
115
115
|
- `objectFit`, `objectPosition`, `scale`, `width`, and `height` place the rendered canvas in the page.
|
|
116
|
-
- Use `objectFit: 'cover'` for full-width/full-bleed heroes.
|
|
116
|
+
- Use `objectFit: 'cover'` for full-width/full-bleed heroes and backgrounds.
|
|
117
117
|
- Use `objectFit: 'contain'` for previews where the whole source should remain visible.
|
|
118
118
|
- Use `scale` for gentle overfill instead of CSS width hacks like `110vw`.
|
|
119
119
|
|
|
@@ -166,7 +166,7 @@ Recommended starting point:
|
|
|
166
166
|
```ts
|
|
167
167
|
{
|
|
168
168
|
fitTo: hero,
|
|
169
|
-
objectFit: '
|
|
169
|
+
objectFit: 'cover',
|
|
170
170
|
objectPosition: 'center bottom',
|
|
171
171
|
width: '100%',
|
|
172
172
|
height: '100%',
|