Documentation / @ripl/terminal / ContourContext
Interface: ContourContext ​
Defined in: terminal/src/commands.ts:37
Contour-building state passed to a command's toContour handler.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
contours | Vertex[][] | The contours built so far. | terminal/src/commands.ts:41 |
transform | TerminalTransform | The 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 ​
| Parameter | Type |
|---|---|
point | Vertex |
Returns ​
void
flush() ​
flush():
void
Defined in: terminal/src/commands.ts:43
Closes the contour under construction and starts a new one.
Returns ​
void