Skip to content

Interface: KeyboardStops ​

Experimental

The stops of a trace: an array, or anything with a length that builds stop i on demand (a grid of many cells).

Properties ​

PropertyModifierTypeDescription
lengthreadonlynumberExperimental

Methods ​

at() ​

ts
at(i): KeyboardPoint | undefined;

Experimental

Parameters ​

ParameterType
inumber

Returns ​

KeyboardPoint | undefined


locate()? ​

ts
optional locate(point): number;

Experimental

For stops built on demand: where the cursor is among them, asked when the trace's stops are listed again after a pipeline run. point is the stop the cursor was on, the object at returned, from these stops or from the ones the trace listed before. Returns the index of the stop that stands for the same thing now, else of a stop near it (a graph node that is no longer drawn: the nearest ancestor that is), or -1 for the first stop. Without this method the cursor keeps its index. The runtime finds the cursor in an array of stops itself, by pointIndex and kind.

Parameters ​

ParameterType
pointKeyboardPoint

Returns ​

number

Released under the MIT License.