Skip to content

@graphty/graphty-element / session / BindingStop

Interface: BindingStop ​

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

One point of a stops binding: what a number exactly at at paints, and what the stretches on either side of it start or end with.

Between two points the value moves from the left point's above to the right point's below (numbers linearly, colors per red, green, blue and alpha component). Below the first point every value paints the first point's below; above the last, the last point's above; exactly at a point, its value. below and above default to value, so a plain ramp names only at and value; giving them separately draws a jump at the point. Points need not be evenly spaced.

This is the model Cytoscape's continuous mappings use, so a mapping read from a Cytoscape file keeps its exact meaning.

Properties ​

above? ​

optional above?: string | number

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

What the stretch just above at starts with. Defaults to value.


at ​

at: number

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

Where the point sits, in the bound value's own units.


below? ​

optional below?: string | number

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

What the stretch just below at ends with. Defaults to value.


value ​

value: string | number

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

What a value exactly at at paints: a number for a numeric channel, a color for a color channel.