Merge remote-tracking branch 'origin/main' into aso-plus
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
eeaccf44cf
10 changed files with 561 additions and 74 deletions
|
|
@ -146,6 +146,10 @@ export interface ShotSpec {
|
|||
/** Web: JS run in the page before the screenshot. */
|
||||
eval?: string[];
|
||||
device?: 'phone' | 'tablet' | 'both';
|
||||
/** Web, capture.session "per-language": how this shot is reached in the already booted page. "spa" (default):
|
||||
* history.pushState to its path + a popstate event, then waitFor / eval (switch scenes from those); "reload":
|
||||
* page.goto in the same page. A failing waitFor there falls back to a fresh page. */
|
||||
navigate?: 'spa' | 'reload';
|
||||
/** ios-sim: extra launch arguments, e.g. ["-shotScene", "{shot}", "-seed", "1"] (read them with UserDefaults / your engine). */
|
||||
args?: string[];
|
||||
/** android-emu: intent extras for `am start` (string / int / float / boolean), "{lang}" replaced in strings. */
|
||||
|
|
@ -194,6 +198,18 @@ export interface ShotsCapture {
|
|||
* every device, or per device class. Default: the frame's bar share of the height (phone 54 / 956 = 162 px on a 6.9"
|
||||
* iPhone, 13" iPad 24 / 1376 = 48 px). */
|
||||
cropTop?: number | { phone?: number; tablet?: number };
|
||||
/** Web: parallel browser contexts (one headless Chromium). Default min(3, CPU cores / 4): game boots are GPU-heavy.
|
||||
* `--concurrency N` overrides. */
|
||||
concurrency?: number;
|
||||
/** Web: "per-shot" (default: new context + full boot per frame) or "per-language" (one page per language and
|
||||
* device, booted once; shots switch in it, see ShotSpec.navigate). */
|
||||
session?: 'per-shot' | 'per-language';
|
||||
/** Web, per-language: how long a reused page may take to reach a shot's waitFor before a fresh page is used.
|
||||
* Default 15000 ms. */
|
||||
reuseTimeoutMs?: number;
|
||||
/** Web: files or folders of the app build (e.g. "apps/game/src" or "apps/game/dist") hashed into the capture cache,
|
||||
* so a code change re-captures. Default: the HTML at baseUrl and the scripts it loads. */
|
||||
build?: string | string[];
|
||||
shots: Record<string, ShotSpec>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue