Skip to content

Documentation / @ripl/terminal / ContourContext

Interface: ContourContext ​

Defined in: terminal/src/commands.ts:37

Contour-building state passed to a command's toContour handler.

Properties ​

PropertyTypeDescriptionDefined in
contoursVertex[][]The contours built so far.terminal/src/commands.ts:41
transformTerminalTransformThe logical-to-raster mapping in force for this pass.terminal/src/commands.ts:39

Methods ​

append() ​

append(point): void

Defined in: terminal/src/commands.ts:45

Appends a raster-space point to the contour under construction.

Parameters ​

ParameterType
pointVertex

Returns ​

void


flush() ​

flush(): void

Defined in: terminal/src/commands.ts:43

Closes the contour under construction and starts a new one.

Returns ​

void