Skip to content
Entangle UI v0.13.0

CurveBackgroundInfo

Defined in: src/components/controls/CurveEditor/CurveEditor.types.ts:279

Information passed to the renderBackground callback. Extends the shared CanvasBackgroundInfo — structurally identical, with CurveViewport (which has zoom/pan) instead of CanvasViewport.

  • CanvasBackgroundInfo

domainX: [number, number]

Defined in: src/components/primitives/canvas/canvas.types.ts:48

Domain X range

CanvasBackgroundInfo.domainX


domainY: [number, number]

Defined in: src/components/primitives/canvas/canvas.types.ts:50

Domain Y range

CanvasBackgroundInfo.domainY


height: number

Defined in: src/components/primitives/canvas/canvas.types.ts:44

Canvas height in CSS pixels

CanvasBackgroundInfo.height


viewport: CurveViewport

Defined in: src/components/controls/CurveEditor/CurveEditor.types.ts:281

Current viewport mapping (use with domainToCanvas)

CanvasBackgroundInfo.viewport


width: number

Defined in: src/components/primitives/canvas/canvas.types.ts:42

Canvas width in CSS pixels

CanvasBackgroundInfo.width