Settings
The Settings section — typography defaults, reader UI defaults, preload strategy, and per-output-format presets in a PanelWave manifest.
settings is an optional top-level section holding work-wide defaults: typography and balloon styling, reader UI behavior, asset preloading, and per-output-format presets. Everything here is a default — many values cascade down and can be overridden at more specific levels (character, panel, layer).
Settings has four optional property groups: typography, ui, preload, and outputPresets.
settings.typography
Global text and page styling defaults for the work.
| Property | Type | Default | Constraints | Description |
|---|---|---|---|---|
default_font | string | "Roboto" | — | Default font family for text |
default_font_size | integer | 14 | 8–72 | Default font size in points |
default_page_bg_color | ColorHex | — | hex color | Default background color for pages |
balloon_config | BalloonConfig | — | — | Default balloon styling for all speech bubbles in this work; start of the balloon cascade (work → character → bubble). See Speech Bubbles |
panel_border_style | PanelBorderStyle | #000000 / 2 / solid | — | The line players draw around every panel; Panel.border overrides it field by field. See Panel borders |
gutter_width | integer | 10 | 0–50 | Space between panels in pixels |
textStyles | map of TextStyle | — | keys are Identifiers | Schema 1.3+. Named, reusable text style presets referenced by TextLayer.styleRef. See below |
balloonPresets | map of BalloonConfigOverride | — | keys are Identifiers | Schema 1.3+. Named, reusable balloon presets referenced by SpeechBubble.styleRef. See below |
Panel borders
Format 1.14+. panel_border_style is a PanelBorderStyle object. Every field is optional; a field left out uses the format default, and a work without the object gets that default too (players before 1.14 drew no configured border).
| Field | Type | Default | Constraints | Description |
|---|---|---|---|---|
color | ColorHex | #000000 | hex color | Line colour |
thickness | number | 2 | 0–10 | Line thickness in frame px (below). 0 = no border. An integer before 1.14 |
style | string | solid | solid | dashed | dotted | double | rough | wavy | none | dashed: dashes 3 × thickness, gaps 2 ×. dotted: round dots of the thickness, 2 × thickness apart. double: two lines of the thickness, a thickness apart. rough: a hand-inked, slightly wobbly line. wavy: an undulating dream / cloud outline. none: no line. double, rough, wavy since 1.14 |
radius | number | 0 | 0–200 | 1.14+. Corner radius in frame px; rounds the line and the artwork's corners, also on a panel without a line |
How players draw it:
- Units. Lengths are px of the page's output-format frame — the page at its authoring size: A4 portrait 794 × 1123, A4 landscape 1123 × 794, US Letter 816 × 1056, mobile 375 × 667, tablet 768 × 1024, square 1024 × 1024, flex 1280 × 800, desktop / video 1920 × 1080, big screen 3840 × 2160. The line scales with the page: page view multiplies by rendered page width ÷ frame width; panel view by the scale the page would have on the same screen; canvas view treats them as world px. In print (A4 at 794 × 1123 CSS px) a thickness of 2 is about 0.5 mm.
- Inside the frame. The outer edge of the line is the panel frame's edge, so the line is never cut by the page edge, and layouts do not move. It is drawn above the artwork and the balloons.
- Outlines. A
radius,roughandwavychange the panel's outline: the artwork is clipped to it.roughandwavyare seeded by the panel id, so a panel looks the same on every render. - Players that do not know a style draw
solid.
Reusable style presets
Both maps work like CSS classes for the manifest: define shared styling once, reference it by name, and restyle every referencing element by editing the preset in one place.
textStylesmaps a preset name to aTextStyle(font,sizePt,color,strokeColor,strokeWidth). A text layer opts in withstyleRef; its inlinestylefields override the preset field-by-field.balloonPresetsmaps a preset name to aBalloonConfigOverride. A speech bubble opts in withstyleRef; the preset slots into the balloon cascade as work → character → preset → bubble.
{
"settings": {
"typography": {
"textStyles": {
"caption": { "font": "CrimsonPro", "sizePt": 14, "color": "#fdf6e3", "strokeColor": "#0a1a24", "strokeWidth": 3 }
},
"balloonPresets": {
"speech-down-right": { "tail": { "position": 150, "length": 50 } },
"shout-down-right": { "balloonType": "shout", "strokeWidth": 4, "tail": { "position": 150, "length": 50 } }
}
}
}
}
Before presets, restyling the captions of a 61-page album meant editing 100+ identical inline style blocks. Sample 11 uses one caption text style and six balloon presets for all of its 104 captions and 79 bubbles.
A styleRef that names no existing preset is ignored by consumers (the element renders as if styleRef were unset). Authoring tools should warn about dangling references — the CMS validation panel does.
settings.ui
Reader-behavior defaults. The player exposes matching toggles (controlled via UI settings); these values seed them.
| Property | Type | Default | Constraints | Description |
|---|---|---|---|---|
mangaMode | boolean | false | — | Right-to-left reading direction |
autoplayDefault | boolean | false | — | Start in autoplay mode |
secondsPerPanel | number | — | 0.5–120 | Autoplay dwell time per panel; a panel's own durationMs overrides this |
speechDefault | boolean | true | — | Initial state of the reader's speech-bubble toggle. Schema 1.3+: every speech bubble is implicitly gated by this toggle — see Speech Bubbles |
audioDefault | boolean | true | — | Music/ambient audio on by default |
sfxDefault | boolean | true | — | Sound effects on by default |
voicesDefault | boolean | false | — | Initial state of the reader's Voices toggle (schema 1.12+): the spoken lines of the balloons and voiceover tracks. Off by default (voices can be intrusive) — a work with spoken lines sets it to true. The Speech toggle only hides the balloons, so a reader can listen without reading. Players before 1.12 ignore it and gate voiceover audio by the speech toggle |
scrollingDefault | boolean | true | — | Scrolling navigation enabled by default |
videoPlayModeDefault | string | "once" | once | loop | pingpong | loop-from | Work-level default for VideoLayer.playMode (schema 1.1+); cascades to per-layer overrides |
videoStartModeDefault | string | "on-view" | on-view | on-hover | on-click | Work-level default for VideoLayer.startMode (schema 1.1+) |
videoMutedDefault | boolean | true | — | Work-level default for VideoLayer.muted (schema 1.1+) |
The three video*Default fields follow the same cascade pattern as balloon config: the work default applies whenever a video layer does not specify its own value.
settings.preload
Controls how aggressively the player prefetches upcoming panel assets.
| Property | Type | Default | Constraints | Description |
|---|---|---|---|---|
strategy | string | "lookahead" | none | lookahead | aggressive | Preload strategy |
panelsAhead | integer | 2 | ≥ 0 | How many panels ahead to prefetch (for lookahead) |
maxConcurrent | integer | 4 | ≥ 1 | Maximum parallel asset downloads |
Panels can additionally hint specific assets via preloadHints — see Panels.
settings.outputPresets and FormatPreset
outputPresets maps an OutputFormat name to a FormatPreset. The schema lists the eight classic formats as named properties (flex-landscape, mobile-portrait, bigscreen-landscape, a4-portrait, a4-landscape, us-portrait, us-landscape, video-16-9) and additionally accepts any other key with a FormatPreset value (covering square, desktop-landscape, tablet-portrait).
FormatPreset
| Property | Type | Default | Description |
|---|---|---|---|
panelView | boolean | true | Allow panel-by-panel viewing in this format |
pageView | boolean | false | Allow whole-page viewing in this format (requires page layouts) |
canvasView | boolean | false | Enable infinite-canvas view in this format (1.4+). Renders only for chapters that define a canvas; players fall back to panel view otherwise |
defaultTransition | Transition | — | Default transition between panels in this format; individual edges override it |
defaultCameraMove | CameraMove | — | Default canvas-view camera move for edges without an explicit cameraMove (1.4+) |
Individual panels can further restrict views per format with formatViews (allowPageView / allowPanelView / minimalFocusRect) — see Panels.
Example
{
"settings": {
"typography": {
"default_font": "Roboto",
"default_font_size": 14,
"default_page_bg_color": "#111111",
"gutter_width": 10,
"panel_border_style": { "color": "#1b1b1b", "thickness": 3, "style": "solid", "radius": 0 },
"textStyles": {
"caption": { "font": "Roboto", "sizePt": 14, "color": "#ffffff", "strokeColor": "#000000", "strokeWidth": 3 }
},
"balloonPresets": {
"whisper-soft": { "balloonType": "whisper", "strokeWidth": 1 }
}
},
"ui": {
"mangaMode": false,
"autoplayDefault": false,
"secondsPerPanel": 4,
"speechDefault": true,
"audioDefault": true,
"sfxDefault": true,
"voicesDefault": true,
"scrollingDefault": true,
"videoPlayModeDefault": "once",
"videoStartModeDefault": "on-view",
"videoMutedDefault": true
},
"preload": {
"strategy": "lookahead",
"panelsAhead": 2,
"maxConcurrent": 4
},
"outputPresets": {
"bigscreen-landscape": {
"panelView": true,
"pageView": true,
"defaultTransition": { "type": "slide", "dir": "left", "durationMs": 400 }
},
"mobile-portrait": {
"panelView": true,
"pageView": false,
"defaultTransition": { "type": "fade", "durationMs": 200 }
}
}
}
}
How the player applies these defaults at runtime is described in Player Configuration.