Manifest ReferenceSettings

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.

PropertyTypeDefaultConstraintsDescription
default_fontstring"Roboto"—Default font family for text
default_font_sizeinteger148–72Default font size in points
default_page_bg_colorColorHex—hex colorDefault background color for pages
balloon_configBalloonConfig——Default balloon styling for all speech bubbles in this work; start of the balloon cascade (work → character → bubble). See Speech Bubbles
panel_border_stylePanelBorderStyle#000000 / 2 / solid—The line players draw around every panel; Panel.border overrides it field by field. See Panel borders
gutter_widthinteger100–50Space between panels in pixels
textStylesmap of TextStyle—keys are IdentifiersSchema 1.3+. Named, reusable text style presets referenced by TextLayer.styleRef. See below
balloonPresetsmap of BalloonConfigOverride—keys are IdentifiersSchema 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).

FieldTypeDefaultConstraintsDescription
colorColorHex#000000hex colorLine colour
thicknessnumber20–10Line thickness in frame px (below). 0 = no border. An integer before 1.14
stylestringsolidsolid | dashed | dotted | double | rough | wavy | nonedashed: 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
radiusnumber00–2001.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, rough and wavy change the panel's outline: the artwork is clipped to it. rough and wavy are 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.

  • textStyles maps a preset name to a TextStyle (font, sizePt, color, strokeColor, strokeWidth). A text layer opts in with styleRef; its inline style fields override the preset field-by-field.
  • balloonPresets maps a preset name to a BalloonConfigOverride. A speech bubble opts in with styleRef; 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.

PropertyTypeDefaultConstraintsDescription
mangaModebooleanfalse—Right-to-left reading direction
autoplayDefaultbooleanfalse—Start in autoplay mode
secondsPerPanelnumber—0.5–120Autoplay dwell time per panel; a panel's own durationMs overrides this
speechDefaultbooleantrue—Initial state of the reader's speech-bubble toggle. Schema 1.3+: every speech bubble is implicitly gated by this toggle — see Speech Bubbles
audioDefaultbooleantrue—Music/ambient audio on by default
sfxDefaultbooleantrue—Sound effects on by default
voicesDefaultbooleanfalse—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
scrollingDefaultbooleantrue—Scrolling navigation enabled by default
videoPlayModeDefaultstring"once"once | loop | pingpong | loop-fromWork-level default for VideoLayer.playMode (schema 1.1+); cascades to per-layer overrides
videoStartModeDefaultstring"on-view"on-view | on-hover | on-clickWork-level default for VideoLayer.startMode (schema 1.1+)
videoMutedDefaultbooleantrue—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.

PropertyTypeDefaultConstraintsDescription
strategystring"lookahead"none | lookahead | aggressivePreload strategy
panelsAheadinteger2≥ 0How many panels ahead to prefetch (for lookahead)
maxConcurrentinteger4≥ 1Maximum 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

PropertyTypeDefaultDescription
panelViewbooleantrueAllow panel-by-panel viewing in this format
pageViewbooleanfalseAllow whole-page viewing in this format (requires page layouts)
canvasViewbooleanfalseEnable infinite-canvas view in this format (1.4+). Renders only for chapters that define a canvas; players fall back to panel view otherwise
defaultTransitionTransition—Default transition between panels in this format; individual edges override it
defaultCameraMoveCameraMove—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.