Skip to content

editorGlobalsCutlineTextureDrawer

Class: CutlineTextureDrawer

Similar to EngravingTextureDrawer, only draws cut lines and implements an early return.

Hierarchy

  • CutlineTextureDrawer

Index

Methods

Methods

Static Private _drawCutLines

_drawCutLines(context: CanvasRenderingContext2D, cutLines: any, scaleFactor: any): void

Defined in src/model/visualization/textures/CutlineTextureDrawer.ts:66

Parameters:

Name Type
context CanvasRenderingContext2D
cutLines any
scaleFactor any

Returns: void


Static getTexture

getTexture(plate: Plate, polygon: MultiPolygon, plateCoordinatesToTexturize: AABB, oldCanvas: HTMLCanvasElement, oldTexture: Texture): Texture

Defined in src/model/visualization/textures/CutlineTextureDrawer.ts:18

Parameters:

Name Type
plate Plate
polygon MultiPolygon
plateCoordinatesToTexturize AABB
oldCanvas HTMLCanvasElement
oldTexture Texture

Returns: Texture