Skip to content

@graphty/graphty-element / session / CombineMode

Type Alias: CombineMode ​

CombineMode = "replace" | "multiply" | "add"

Defined in: graphty-element/src/catalog/types.ts:919

How a number a layer writes meets the number the layers beneath it painted. "replace" (the default) writes over it; "multiply" and "add" scale or offset it, so a layer that asks for twice the width doubles whatever width each element already had. Where nothing beneath painted the channel, its default is what is scaled; the result is clamped to what the channel draws. Only number channels take a mode other than "replace".

Since ​

3.26.0