Skip to content

Function: fill() ​

ts
function fill(v, target): number | undefined;

Defined in: pwl.ts:417

The σ ≥ 0 at which a claim v fills a slot of target pixels: the one rule for a claim in its slot, which ScopeRegistry.fit and ScopeRegistry.solveFixed both take.

  1. The σ at which v is target (solve).
  2. Else, where v at σ = 0, its fixed parts, already fills the slot up to rounding (overflows), σ = 0: nothing is left for what grows with σ.
  3. Else, where its fixed parts are longer than the slot, the σ at which the part of v that grows with σ alone fills it (rising): v drawn as if its fixed parts took no room.

Undefined when none of these does (a claim that does not grow and is shorter than the slot).

Parameters ​

v ​

Pwl

target ​

number

Returns ​

number | undefined