cascade#
Classes#
Cascade#
Defined in: layout/src/cascade.ts:246
The rules of every layer, lowest rank first (section 2.5: layer,
addresses, within depth, class, facet or coordinates, element, inside, the count of domain
and modality, position). ancestry maps every timeline id to the ids
from its root down to it, so its length is the timeline’s depth (the
roots 1).
Constructors#
Constructor#
new Cascade(
layers,ancestry):Cascade
Defined in: layout/src/cascade.ts:254
Parameters#
layers#
readonly (Graphical | undefined)[]
ancestry#
ReadonlyMap<string, readonly string[]>
Returns#
Methods#
matches()#
matches(
select,element):boolean
Defined in: layout/src/cascade.ts:330
Whether an element matches every member present in a selector.
Parameters#
select#
Selector
element#
Returns#
boolean
resolve()#
resolve(
element,parent):Style
Defined in: layout/src/cascade.ts:339
The cascaded style of one drawing of an element: element its key, with
its holder chain; parent the cascaded style of its holder’s drawing,
undefined for the block (section 2.5).
Parameters#
element#
parent#
Style | undefined
Returns#
resolveUnaddressed()#
resolveUnaddressed(
element,parent):Style
Defined in: layout/src/cascade.ts:349
The cascaded style of an element that has no address, such as a position
an editor marks that no named timestamp holds: resolve without the
rules whose selector names addresses, which select addressed
elements only. element’s own address is not compared.
Parameters#
element#
parent#
Style | undefined
Returns#
Interfaces#
Style#
Defined in: layout/src/cascade.ts:39
The cascaded value of every property on one element.
Properties#
content#
readonlycontent:string
Defined in: layout/src/cascade.ts:49
display#
readonlydisplay:"inline"|"none"
Defined in: layout/src/cascade.ts:48
elision-depths#
readonlyelision-depths:string
Defined in: layout/src/cascade.ts:61
The depths an ancestor card derives its elisions on, auto or positive integers (section 8.9).
elision-display#
readonlyelision-display:string
Defined in: layout/src/cascade.ts:63
The display of every elision a card derives: none, or elision display words (section 8.9).
elision-mode#
readonlyelision-mode:"full"|"proportional"|"custom"|"auto"
Defined in: layout/src/cascade.ts:57
Which elisions a card or a frame draws (section 8.9), read by card, ancestor_card and frame.
elision-proportion#
readonlyelision-proportion:number|"auto"
Defined in: layout/src/cascade.ts:59
The proportion of the elisions an ancestor card derives, or auto (section 8.9).
fill#
readonlyfill:string
Defined in: layout/src/cascade.ts:43
font-size#
readonlyfont-size:number
Defined in: layout/src/cascade.ts:45
label-display#
readonlylabel-display:string
Defined in: layout/src/cascade.ts:68
Which labels of its stack a flow line or a jump draws, and whether a jump’s arcs draw their
labels: none, or the words name, id and label (section 6.4, Flow labels).
max-width#
readonlymax-width:number|"none"
Defined in: layout/src/cascade.ts:50
opacity#
readonlyopacity:number
Defined in: layout/src/cascade.ts:44
rotation#
readonlyrotation:number|null
Defined in: layout/src/cascade.ts:55
The degrees a wedge is turned about its tip (section 6.6); null where no rule sets it,
which the wedge reads as its initial value: −45 on a groupstamp’s wedge, 0 on any other.
rx#
readonlyrx:number
Defined in: layout/src/cascade.ts:46
shadow#
readonlyshadow:string
Defined in: layout/src/cascade.ts:47
stroke#
readonlystroke:string
Defined in: layout/src/cascade.ts:40
stroke-dasharray#
readonlystroke-dasharray:string
Defined in: layout/src/cascade.ts:42
stroke-width#
readonlystroke-width:number
Defined in: layout/src/cascade.ts:41
Variables#
INITIAL_STYLE#
constINITIAL_STYLE:Style
Defined in: layout/src/cascade.ts:75
The initial value of every property: what a drawing’s style holds for a property that no rule sets and that it does not inherit from its holder.