compOf(id: string) → any
| arg | type | description |
|---|
| id | string | |
readFields(id: string) → any
| arg | type | description |
|---|
| id | string | |
addStandInPrefix(prefix: string) → void
Let a kit that draws an object's model as its own root entity named `<prefix><object id>` have that model take the object's channel.
| arg | type | description |
|---|
| prefix | string | |
standInsOf(id: string) → void
Every stand-in in the scene by the id of the owner it stands for: one glob
search per prefix, kept until anything spawns or despawns. (A search per
owner cost 0.023 ms each even in a 158-thing scene, so 14 ms a sweep with
600 owners, growing with the scene.)
| arg | type | description |
|---|
| id | string | |
readDesc(id: string) → void
| arg | type | description |
|---|
| id | string | |
_noteOwner(id: string) → void
Called by the StyleChannel component when it arrives or one of its own fields changes (on this machine or from another player). A note that changes nothing (the same values written again) moves nothing.
| arg | type | description |
|---|
| id | string | |
_dropOwner(id: string) → void
Called by the StyleChannel component when it goes.
| arg | type | description |
|---|
| id | string | |
revision( ) → number
A number that moves whenever a channel, its role or the objects under it change.
stats( ) → void
Where the channels' script time went since load: { seed, sweep, dirty, reach, frame } in milliseconds, how many field reads (dirtyN), reach and frame builds, and calls.
resolve(f: any, set: any) → any
What a channel's fields ask for once its role is read through `set` (a role set, or nil): { role, variant, asRendered, line, marks = { line, tone, fill, paper }, value, ink }.
| arg | type | description |
|---|
| f | any | |
| set | any | |
buildReach(set: any) → void
Which object every channel reaches: an owner and (unless it says not to)
everything under it; a child carrying its own channel keeps its own. An
ancestor always holds more descendants than any of its descendants, so
owners are laid largest subtree first and nearer owners overwrite.
q(v: number, step: number) → number
| arg | type | description |
|---|
| v | number | |
| step | number | |
reach(set: any, setKey: string, lazy: boolean?) → void
Every object a channel reaches, with what it asks for (see `resolve`), read through `set`; and a revision that moves when that changes. `setKey` names the set (so a new set builds again). With `lazy`, a change of channels alone is taken at most every quarter second (the per-frame path); reads for one object always see the latest.
| arg | type | description |
|---|
| set | any | |
| setKey | string | |
| lazy | boolean? | |
of(id: string, set: any, setKey: string) → void
The object a given entity takes its channel from (itself or an ancestor), and what it asks for; nil when no channel reaches it.
| arg | type | description |
|---|
| id | string | |
| set | any | |
| setKey | string | |
packed(eff: any, vIndex: number) → void
The packed values the stack's object mask holds for one setting (see
skCommon: r excluded bit and four 2-bit mark levels, g tagged bit and
variant index, b line weight, a free value).
| arg | type | description |
|---|
| eff | any | |
| vIndex | number | |
isPlain(eff: any, vIndex: number) → boolean
| arg | type | description |
|---|
| eff | any | |
| vIndex | number | |
frame(set: any, setKey: string, claimed: { string }) → any
The settings the stack draws into its object mask this frame: { buckets = { { sel = { ids }, v = { r, g, line, value }, key, count } }, variants = { name -> index 1..7 }, live, dropped, rev }. `claimed` lists the variant names stack entries target (at most seven get an index).
| arg | type | description |
|---|
| set | any | |
| setKey | string | |
| claimed | { string } | |
owners( ) → void
The owner ids this machine knows (for tools and tests).