Skip to main content

Module layout

Module layout 

Source
Expand description

the heatsync.org /m/<layout> share-link grammar, parse + build.

layout := tab (‘+’ tab)* tabs, one chat column each (8 max) tab := pc (‘,’ pc)* simulcast: platforms merged into one tab pc := (‘t’|‘k’|‘y’) ‘:’ name

mirrors server/lib/multichat-layout.ts. parsing is total: junk is dropped, never an error. an over-long layout parses to nothing, like the site.

Structs§

Tab

Constants§

MAX_LEN
MAX_TABS

Functions§

build
serialise tabs. invalid legs are skipped, at most 8 tabs, and tail tabs are dropped until the whole thing fits the 400-char cap (so it parses intact).
parse