G-code Preview — API Reference
    Preparing search index...
    CanvasContext2DLike: Pick<
        CanvasRenderingContext2D,
        | "strokeStyle"
        | "lineWidth"
        | "lineCap"
        | "lineJoin"
        | "globalAlpha"
        | "beginPath"
        | "moveTo"
        | "lineTo"
        | "stroke"
        | "clearRect",
    >

    The subset of CanvasRenderingContext2D the layer view uses (a real context satisfies it).