@bendyline/squisq-cli 2.3.0 → 2.3.2
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 +7 -5
- package/THIRD_PARTY_LICENSES.txt +4471 -0
- package/dist/{api-5SX73ZKT.js → api-A7FKMZY6.js} +1 -1
- package/dist/api.d.ts +6 -6
- package/dist/api.js +17 -8
- package/dist/{chunk-GYHQHKO5.js → chunk-ZEN42AFN.js} +19 -10
- package/dist/index.js +36 -21
- package/dist/squisq-player.global.js +575 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ squisq video doc.json -o out.mp4
|
|
|
77
77
|
| `--fps` | Frames per second (MP4 1–120; GIF 1–100) | MP4 30; GIF 10 |
|
|
78
78
|
| `--quality` | MP4-only quality: `draft`, `normal`, or `high` | normal |
|
|
79
79
|
| `--orientation` | `landscape` or `portrait` | landscape |
|
|
80
|
-
| `--captions` | `off`, `standard`, or `social` | off
|
|
80
|
+
| `--captions` | `off`, `standard`, or `social` | MP4 off; GIF standard |
|
|
81
81
|
| `--animations` / `--no-animations` | Enable/disable layer animations and block transitions | MP4 enabled; GIF disabled |
|
|
82
82
|
| `--loop` | GIF repeat count (`0` forever, `-1` no loop) | 0 |
|
|
83
83
|
| `--max-colors` | GIF palette size, 2–256 | 256 |
|
|
@@ -169,7 +169,7 @@ const result = await renderDocToMp4(doc, input.container, {
|
|
|
169
169
|
fps: 30, // default 30
|
|
170
170
|
quality: 'high', // 'draft' | 'normal' | 'high' (default 'normal')
|
|
171
171
|
orientation: 'landscape', // 'landscape' | 'portrait' (default 'landscape')
|
|
172
|
-
captionStyle: 'social', // 'standard' | 'social'
|
|
172
|
+
captionStyle: 'social', // 'off' | 'standard' | 'social' (default 'off')
|
|
173
173
|
animationsEnabled: false, // static slide changes; media/timing remain active
|
|
174
174
|
coverPreRoll: 2, // seconds of cover-slide pre-roll (default 0)
|
|
175
175
|
onProgress: (phase, pct) => console.log(`${phase}: ${pct}%`),
|
|
@@ -188,15 +188,17 @@ import { renderDocToGif } from '@bendyline/squisq-cli/api';
|
|
|
188
188
|
const result = await renderDocToGif(doc, input.container, {
|
|
189
189
|
outputPath: './output.gif',
|
|
190
190
|
fps: 10,
|
|
191
|
+
captionStyle: 'off', // override the default 'standard' captions
|
|
191
192
|
animationsEnabled: false,
|
|
192
193
|
maxColors: 256,
|
|
193
194
|
loop: 0,
|
|
194
195
|
});
|
|
195
196
|
```
|
|
196
197
|
|
|
197
|
-
GIF defaults to 960×540 landscape (540×960 portrait), 10 fps,
|
|
198
|
-
loop, and disabled slide animations/transitions.
|
|
199
|
-
|
|
198
|
+
GIF defaults to 960×540 landscape (540×960 portrait), 10 fps, standard
|
|
199
|
+
captions, an infinite loop, and disabled slide animations/transitions. Set
|
|
200
|
+
`captionStyle: 'off'` to omit captions. Embedded video still advances, but all
|
|
201
|
+
audio is omitted and reported through `result.warnings`.
|
|
200
202
|
|
|
201
203
|
### Native frame encoding
|
|
202
204
|
|