demoman 0.7.3 → 0.8.1
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 +5 -2
- package/THIRD_PARTY_NOTICES +1 -1
- package/dist/demoman.mjs +15325 -11856
- package/dist/page/decode-probe-entry.js +23071 -0
- package/dist/page/mux-entry.js +171 -52
- package/dist/page/render-entry.js +1143 -472
- package/dist/recipe.md +110 -117
- package/dist/studio/assets/confirm-dialog-B20ZVWlP.css +1 -0
- package/dist/studio/assets/confirm-dialog-DgJ946Hc.js +72 -0
- package/dist/studio/assets/editor-BC4sLdWT.js +4 -0
- package/dist/studio/assets/library-DVubUJtn.js +1 -0
- package/dist/studio/assets/{library-inline-216fd6fd.css → library-inline-ff1b0c15.css} +3 -27
- package/dist/studio/assets/settings-DLH9VoT0.js +1 -0
- package/dist/studio/assets/{settings-inline-ff6d2eee.css → settings-inline-7bb8bf61.css} +8 -0
- package/dist/studio/assets/state-DyL2jOOv.js +1 -0
- package/dist/studio/assets/view-Df6XUnyO.js +1 -0
- package/dist/studio/editor.html +5 -5
- package/dist/studio/library.html +5 -5
- package/dist/studio/settings.html +5 -5
- package/dist/studio/studio-build.json +3 -3
- package/dist/studio/wallpapers/dark-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/dark-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/dark-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/dark-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/dark-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/dark-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/light-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/light-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/light-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/light-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/light-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/light-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-3-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-3-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-3-thumb.webp +0 -0
- package/dist/studio/wallpapers/muted-4-landscape.webp +0 -0
- package/dist/studio/wallpapers/muted-4-portrait.webp +0 -0
- package/dist/studio/wallpapers/muted-4-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-1-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-1-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-1-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-2-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-2-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-2-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-3-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-3-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-3-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-4-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-4-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-4-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-5-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-5-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-5-thumb.webp +0 -0
- package/dist/studio/wallpapers/vivid-6-landscape.webp +0 -0
- package/dist/studio/wallpapers/vivid-6-portrait.webp +0 -0
- package/dist/studio/wallpapers/vivid-6-thumb.webp +0 -0
- package/package.json +1 -1
- package/dist/studio/assets/confirm-dialog-DSKBZQdV.css +0 -1
- package/dist/studio/assets/confirm-dialog-DVfQ_GQr.js +0 -72
- package/dist/studio/assets/editor-lILLTndB.js +0 -4
- package/dist/studio/assets/library-CbMXa-ad.js +0 -1
- package/dist/studio/assets/settings-CetO1oeR.js +0 -1
- package/dist/studio/assets/state-tew-ACWl.js +0 -1
- package/dist/studio/assets/view-v5HQTLVP.js +0 -1
package/dist/page/mux-entry.js
CHANGED
|
@@ -15747,6 +15747,73 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15747
15747
|
userAgentMetadata: UserAgentMetadataSchema.optional()
|
|
15748
15748
|
});
|
|
15749
15749
|
|
|
15750
|
+
// ../../packages/scene-schema/dist/wallpapers.js
|
|
15751
|
+
var WALLPAPERS = [
|
|
15752
|
+
{
|
|
15753
|
+
id: "muted-1",
|
|
15754
|
+
family: "muted",
|
|
15755
|
+
swatch: { from: "#141422", to: "#26233e" }
|
|
15756
|
+
},
|
|
15757
|
+
{
|
|
15758
|
+
id: "muted-2",
|
|
15759
|
+
family: "muted",
|
|
15760
|
+
swatch: { from: "#bfb5aa", to: "#a19486" }
|
|
15761
|
+
},
|
|
15762
|
+
{
|
|
15763
|
+
id: "muted-3",
|
|
15764
|
+
family: "muted",
|
|
15765
|
+
swatch: { from: "#1b1e1d", to: "#51625d" }
|
|
15766
|
+
},
|
|
15767
|
+
{
|
|
15768
|
+
id: "muted-4",
|
|
15769
|
+
family: "muted",
|
|
15770
|
+
swatch: { from: "#a3a299", to: "#cfcbc3" }
|
|
15771
|
+
},
|
|
15772
|
+
{
|
|
15773
|
+
id: "vivid-1",
|
|
15774
|
+
family: "vivid",
|
|
15775
|
+
swatch: { from: "#3527bc", to: "#ce1676" }
|
|
15776
|
+
},
|
|
15777
|
+
{
|
|
15778
|
+
id: "vivid-2",
|
|
15779
|
+
family: "vivid",
|
|
15780
|
+
swatch: { from: "#0769ca", to: "#1e26b7" }
|
|
15781
|
+
},
|
|
15782
|
+
{
|
|
15783
|
+
id: "vivid-3",
|
|
15784
|
+
family: "vivid",
|
|
15785
|
+
swatch: { from: "#c90757", to: "#ed480d" }
|
|
15786
|
+
},
|
|
15787
|
+
{
|
|
15788
|
+
id: "vivid-4",
|
|
15789
|
+
family: "vivid",
|
|
15790
|
+
swatch: { from: "#0ba393", to: "#0575c7" }
|
|
15791
|
+
},
|
|
15792
|
+
{
|
|
15793
|
+
id: "vivid-5",
|
|
15794
|
+
family: "vivid",
|
|
15795
|
+
swatch: { from: "#f28b0a", to: "#df2d21" }
|
|
15796
|
+
},
|
|
15797
|
+
{
|
|
15798
|
+
id: "vivid-6",
|
|
15799
|
+
family: "vivid",
|
|
15800
|
+
swatch: { from: "#3d0dbf", to: "#133ac7" }
|
|
15801
|
+
},
|
|
15802
|
+
{
|
|
15803
|
+
id: "light-1",
|
|
15804
|
+
family: "light",
|
|
15805
|
+
swatch: { from: "#b7bff3", to: "#eda9c5" }
|
|
15806
|
+
},
|
|
15807
|
+
{
|
|
15808
|
+
id: "light-2",
|
|
15809
|
+
family: "light",
|
|
15810
|
+
swatch: { from: "#afe5f0", to: "#98c5e8" }
|
|
15811
|
+
},
|
|
15812
|
+
{ id: "dark-1", family: "dark", swatch: { from: "#150217", to: "#3d044b" } },
|
|
15813
|
+
{ id: "dark-2", family: "dark", swatch: { from: "#02576e", to: "#023758" } }
|
|
15814
|
+
];
|
|
15815
|
+
var DEFAULT_WALLPAPER_ID = "muted-1";
|
|
15816
|
+
|
|
15750
15817
|
// ../../packages/scene-schema/dist/document.js
|
|
15751
15818
|
var CURRENT_SCHEMA_VERSION = 13;
|
|
15752
15819
|
var Rect = external_exports.object({
|
|
@@ -16071,7 +16138,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16071
16138
|
* it came with the v10 bump all the same: a build from before would read
|
|
16072
16139
|
* `capture` without it and rebuild a phone take on the desktop.
|
|
16073
16140
|
*/
|
|
16074
|
-
device: CaptureDeviceSchema.optional()
|
|
16141
|
+
device: CaptureDeviceSchema.optional(),
|
|
16142
|
+
/**
|
|
16143
|
+
* The display scale the run filmed motion at: the scale screencast spans
|
|
16144
|
+
* follow, which `dpr` (the stills' scale) is not. Written by the run that
|
|
16145
|
+
* decided it (the CLI's browser session, at launch), so `keep` reads it
|
|
16146
|
+
* rather than guessing from the frames. Absent on takes filmed before it
|
|
16147
|
+
* and where the run could not know it (a visible window, whose scale is
|
|
16148
|
+
* the OS's). Widening with an optional field is backward compatible, as
|
|
16149
|
+
* `mode`'s was: `CURRENT_SCHEMA_VERSION` stays and no migration is owed.
|
|
16150
|
+
*/
|
|
16151
|
+
displayScale: external_exports.number().positive().optional()
|
|
16075
16152
|
}),
|
|
16076
16153
|
/**
|
|
16077
16154
|
* Which render this scene wants: `screen` serves the frames the take
|
|
@@ -16151,6 +16228,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16151
16228
|
aspect: "auto"
|
|
16152
16229
|
});
|
|
16153
16230
|
var BrandColorSchema = external_exports.string().regex(/^#[0-9a-f]{6}$/);
|
|
16231
|
+
var WallpaperBlurSchema = external_exports.number().min(0).max(1).optional();
|
|
16232
|
+
var DEFAULT_WALLPAPER_BLUR = 0;
|
|
16154
16233
|
var BackgroundSchema = external_exports.discriminatedUnion("kind", [
|
|
16155
16234
|
external_exports.object({ kind: external_exports.literal("solid"), color: BrandColorSchema }),
|
|
16156
16235
|
external_exports.object({
|
|
@@ -16159,6 +16238,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16159
16238
|
to: BrandColorSchema,
|
|
16160
16239
|
/** CSS convention: 0 = to top, 90 = to right, 180 = to bottom. */
|
|
16161
16240
|
angle: external_exports.number().int().min(0).max(359)
|
|
16241
|
+
}),
|
|
16242
|
+
// Not restricted to `WALLPAPERS`: a take naming an id a later build
|
|
16243
|
+
// removed still loads, and export says so. A script is checked against
|
|
16244
|
+
// the list in `DemoScriptSchema`.
|
|
16245
|
+
external_exports.object({
|
|
16246
|
+
kind: external_exports.literal("wallpaper"),
|
|
16247
|
+
id: external_exports.string().regex(/^[a-z0-9-]+$/),
|
|
16248
|
+
blur: WallpaperBlurSchema
|
|
16249
|
+
}),
|
|
16250
|
+
external_exports.object({
|
|
16251
|
+
kind: external_exports.literal("image"),
|
|
16252
|
+
ref: external_exports.string().min(1),
|
|
16253
|
+
blur: WallpaperBlurSchema
|
|
16162
16254
|
})
|
|
16163
16255
|
]);
|
|
16164
16256
|
var LOGO_CORNERS = [
|
|
@@ -16193,21 +16285,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16193
16285
|
angle: 150
|
|
16194
16286
|
});
|
|
16195
16287
|
var BRANDING_DEFAULTS = Object.freeze({
|
|
16196
|
-
background:
|
|
16288
|
+
background: Object.freeze({
|
|
16289
|
+
kind: "wallpaper",
|
|
16290
|
+
id: DEFAULT_WALLPAPER_ID,
|
|
16291
|
+
blur: DEFAULT_WALLPAPER_BLUR
|
|
16292
|
+
}),
|
|
16197
16293
|
logo: null,
|
|
16198
16294
|
/**
|
|
16199
|
-
*
|
|
16200
|
-
*
|
|
16201
|
-
*
|
|
16202
|
-
*
|
|
16203
|
-
*
|
|
16204
|
-
* `
|
|
16295
|
+
* 12%: the author's call on 2026-10-28, from a side-by-side with the
|
|
16296
|
+
* wallpapers, which want more of the frame to show. It was 8% from
|
|
16297
|
+
* 2026-10-05 (the margin of a polished recording, 8.4% measured), the
|
|
16298
|
+
* smallest padding that draws the default logo at full size; documents
|
|
16299
|
+
* migrated from v7 still get that 8% (`migrations.ts`), so nothing saved
|
|
16300
|
+
* changes. `placeLogo` keeps a mark 0.02 × short in from the edge and
|
|
16301
|
+
* clear of the recording, so a logo of size `s` fits only when the padding
|
|
16302
|
+
* is at least `s + 0.02`; `LOGO_DEFAULTS.size` is 0.06, well inside.
|
|
16205
16303
|
*
|
|
16206
16304
|
* Landscape exports used 15% until 2026-10-05 for zoom headroom: a
|
|
16207
16305
|
* smaller window leaves more source detail per output pixel. That trade
|
|
16208
16306
|
* is the author's now; `clampToSourceDetail` reports what it costs.
|
|
16209
16307
|
*/
|
|
16210
|
-
padding: 0.
|
|
16308
|
+
padding: 0.12
|
|
16211
16309
|
});
|
|
16212
16310
|
var LOGO_DEFAULTS = Object.freeze({
|
|
16213
16311
|
corner: "bottom-right",
|
|
@@ -16584,6 +16682,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16584
16682
|
path: ["scriptVersion"]
|
|
16585
16683
|
});
|
|
16586
16684
|
}
|
|
16685
|
+
const bg = script.look?.branding?.background;
|
|
16686
|
+
if (bg?.kind === "wallpaper" && !WALLPAPERS.some((w) => w.id === bg.id)) {
|
|
16687
|
+
ctx.addIssue({
|
|
16688
|
+
code: "custom",
|
|
16689
|
+
message: `unknown wallpaper "${bg.id}" \u2014 one of ${WALLPAPERS.map((w) => w.id).join(", ")}`,
|
|
16690
|
+
path: ["look", "branding", "background", "id"]
|
|
16691
|
+
});
|
|
16692
|
+
}
|
|
16587
16693
|
if (script.look?.motion !== void 0 && script.scriptVersion < SCRIPT_VERSION_MOTION) {
|
|
16588
16694
|
ctx.addIssue({
|
|
16589
16695
|
code: "custom",
|
|
@@ -16770,6 +16876,49 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16770
16876
|
}
|
|
16771
16877
|
};
|
|
16772
16878
|
|
|
16879
|
+
// ../../packages/compositor/dist/render/draw-cursor.js
|
|
16880
|
+
var CURSOR_UPRIGHT = Object.freeze({
|
|
16881
|
+
press: 1,
|
|
16882
|
+
angleRad: 0
|
|
16883
|
+
});
|
|
16884
|
+
var ARROW = [
|
|
16885
|
+
{ x: 0, y: 0 },
|
|
16886
|
+
{ x: 0, y: 0.75 },
|
|
16887
|
+
{ x: 0.19, y: 0.58 },
|
|
16888
|
+
{ x: 0.31, y: 0.87 },
|
|
16889
|
+
{ x: 0.45, y: 0.81 },
|
|
16890
|
+
{ x: 0.33, y: 0.53 },
|
|
16891
|
+
{ x: 0.56, y: 0.52 }
|
|
16892
|
+
];
|
|
16893
|
+
var TOUCH_RADIUS = 0.42;
|
|
16894
|
+
var CURSOR_ART = {
|
|
16895
|
+
light: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
|
|
16896
|
+
dark: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
|
|
16897
|
+
touch: {
|
|
16898
|
+
height: 40,
|
|
16899
|
+
hotspot: { x: 0.5, y: 0.5 },
|
|
16900
|
+
ink: {
|
|
16901
|
+
min: { x: 0.5 - TOUCH_RADIUS, y: 0.5 - TOUCH_RADIUS },
|
|
16902
|
+
max: { x: 0.5 + TOUCH_RADIUS, y: 0.5 + TOUCH_RADIUS }
|
|
16903
|
+
}
|
|
16904
|
+
}
|
|
16905
|
+
};
|
|
16906
|
+
function bounds(points) {
|
|
16907
|
+
const xs = points.map((p) => p.x);
|
|
16908
|
+
const ys = points.map((p) => p.y);
|
|
16909
|
+
return {
|
|
16910
|
+
min: { x: Math.min(...xs), y: Math.min(...ys) },
|
|
16911
|
+
max: { x: Math.max(...xs), y: Math.max(...ys) }
|
|
16912
|
+
};
|
|
16913
|
+
}
|
|
16914
|
+
|
|
16915
|
+
// ../../packages/compositor/dist/render/cursor-pose.js
|
|
16916
|
+
var TILT_MAX_RAD = 15 * Math.PI / 180;
|
|
16917
|
+
var TILT_VELOCITY_MS = 16;
|
|
16918
|
+
var TILT_TAPS = 8;
|
|
16919
|
+
var TILT_TAP_MS = 20;
|
|
16920
|
+
var TILT_SETTLE_MS = TILT_VELOCITY_MS + (TILT_TAPS - 1) * TILT_TAP_MS;
|
|
16921
|
+
|
|
16773
16922
|
// ../../node_modules/.pnpm/mediabunny@1.55.2/node_modules/mediabunny/dist/modules/src/misc.js
|
|
16774
16923
|
function assert2(x) {
|
|
16775
16924
|
if (!x) {
|
|
@@ -26548,50 +26697,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26548
26697
|
};
|
|
26549
26698
|
}
|
|
26550
26699
|
|
|
26551
|
-
// ../../packages/compositor/dist/render/draw-cursor.js
|
|
26552
|
-
var CURSOR_UPRIGHT = Object.freeze({
|
|
26553
|
-
press: 1,
|
|
26554
|
-
angleRad: 0
|
|
26555
|
-
});
|
|
26556
|
-
var ARROW = [
|
|
26557
|
-
{ x: 0, y: 0 },
|
|
26558
|
-
{ x: 0, y: 0.75 },
|
|
26559
|
-
{ x: 0.19, y: 0.58 },
|
|
26560
|
-
{ x: 0.31, y: 0.87 },
|
|
26561
|
-
{ x: 0.45, y: 0.81 },
|
|
26562
|
-
{ x: 0.33, y: 0.53 },
|
|
26563
|
-
{ x: 0.56, y: 0.52 }
|
|
26564
|
-
];
|
|
26565
|
-
var TOUCH_RADIUS = 0.42;
|
|
26566
|
-
var CURSOR_ART = {
|
|
26567
|
-
light: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
|
|
26568
|
-
dark: { height: 40, hotspot: { x: 0, y: 0 }, ink: bounds(ARROW) },
|
|
26569
|
-
touch: {
|
|
26570
|
-
height: 40,
|
|
26571
|
-
hotspot: { x: 0.5, y: 0.5 },
|
|
26572
|
-
ink: {
|
|
26573
|
-
min: { x: 0.5 - TOUCH_RADIUS, y: 0.5 - TOUCH_RADIUS },
|
|
26574
|
-
max: { x: 0.5 + TOUCH_RADIUS, y: 0.5 + TOUCH_RADIUS }
|
|
26575
|
-
}
|
|
26576
|
-
}
|
|
26577
|
-
};
|
|
26578
|
-
function bounds(points) {
|
|
26579
|
-
const xs = points.map((p) => p.x);
|
|
26580
|
-
const ys = points.map((p) => p.y);
|
|
26581
|
-
return {
|
|
26582
|
-
min: { x: Math.min(...xs), y: Math.min(...ys) },
|
|
26583
|
-
max: { x: Math.max(...xs), y: Math.max(...ys) }
|
|
26584
|
-
};
|
|
26585
|
-
}
|
|
26586
|
-
|
|
26587
|
-
// ../../packages/compositor/dist/render/cursor-pose.js
|
|
26588
|
-
var TILT_MAX_RAD = 15 * Math.PI / 180;
|
|
26589
|
-
var TILT_VELOCITY_MS = 16;
|
|
26590
|
-
var TILT_TAPS = 8;
|
|
26591
|
-
var TILT_TAP_MS = 20;
|
|
26592
|
-
var TILT_SETTLE_MS = TILT_VELOCITY_MS + (TILT_TAPS - 1) * TILT_TAP_MS;
|
|
26593
|
-
|
|
26594
26700
|
// ../../packages/compositor/dist/render/target.js
|
|
26701
|
+
var LANDSCAPE_4K = {
|
|
26702
|
+
format: "mp4",
|
|
26703
|
+
width: 3840,
|
|
26704
|
+
height: 2160,
|
|
26705
|
+
fps: 60,
|
|
26706
|
+
bitrate: 4e7,
|
|
26707
|
+
cornerRadius: 36,
|
|
26708
|
+
fit: "contain"
|
|
26709
|
+
};
|
|
26595
26710
|
var LANDSCAPE_1440P = {
|
|
26596
26711
|
format: "mp4",
|
|
26597
26712
|
width: 2560,
|
|
@@ -26619,6 +26734,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26619
26734
|
bitrate: HIGH_LANDSCAPE.bitrate
|
|
26620
26735
|
};
|
|
26621
26736
|
|
|
26737
|
+
// ../../packages/compositor/dist/render/wallpaper.js
|
|
26738
|
+
var WALLPAPER_LONG_SIDE = LANDSCAPE_4K.width * CAMERA_DEFAULTS.maxScale;
|
|
26739
|
+
var WALLPAPER_SHORT_SIDE = WALLPAPER_LONG_SIDE * 3 / 4;
|
|
26740
|
+
|
|
26622
26741
|
// dist/entry-globals.js
|
|
26623
26742
|
var MUX_ENTRY_GLOBAL = "__demomanMux";
|
|
26624
26743
|
|