asciify-engine 1.0.105 → 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 +2 -0
- 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 +6 -4
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,6 +90,8 @@ 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. 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
|
+
|
|
93
95
|
Use top-level `asciifyVideo` layout options when the destination needs full-bleed framing. These affect the visible canvas only, not the sampled media:
|
|
94
96
|
|
|
95
97
|
```ts
|
|
@@ -111,7 +113,7 @@ Mental split:
|
|
|
111
113
|
- `sourceCrop` chooses the source window before ASCII conversion.
|
|
112
114
|
- CSS-like insets change the crop aspect naturally; the engine keeps ASCII proportions intact.
|
|
113
115
|
- `objectFit`, `objectPosition`, `scale`, `width`, and `height` place the rendered canvas in the page.
|
|
114
|
-
- Use `objectFit: 'cover'` for full-width/full-bleed heroes.
|
|
116
|
+
- Use `objectFit: 'cover'` for full-width/full-bleed heroes and backgrounds.
|
|
115
117
|
- Use `objectFit: 'contain'` for previews where the whole source should remain visible.
|
|
116
118
|
- Use `scale` for gentle overfill instead of CSS width hacks like `110vw`.
|
|
117
119
|
|
|
@@ -164,7 +166,7 @@ Recommended starting point:
|
|
|
164
166
|
```ts
|
|
165
167
|
{
|
|
166
168
|
fitTo: hero,
|
|
167
|
-
objectFit: '
|
|
169
|
+
objectFit: 'cover',
|
|
168
170
|
objectPosition: 'center bottom',
|
|
169
171
|
width: '100%',
|
|
170
172
|
height: '100%',
|