A base class for rendering a Fabric.js canvas with customizable properties. BasicCanvasRenderer

Provides foundational functionality for rendering a canvas, including frame sizing and content rendering.

Hierarchy (view full)

Constructors

Properties

canvas: Canvas | StaticCanvas

The Fabric.js canvas instance, either interactive or static.

canvasHeight: number

The height of the canvas in pixels.

canvasWidth: number

The width of the canvas in pixels or a custom value.

canvasWrapperStroke: boolean

Whether to render a stroke around the canvas wrapper.

colorScheme: ColorSchemeEnum

The color scheme used for rendering.

contentLabelLeftWidth: number

The width of the left-side label area.

contentLabelWidth: number

The width allocated for labels.

contentScoringWidth: number

The width allocated for scoring content.

contentWidth: number

The width of the content area.

fontFamily: string

The font family for text rendering.

fontSize: number

The font size for text rendering.

fontWeigth: string

The font weight for text rendering.

logSkippedHsps: boolean

Whether to log skipped HSPs.

marginWidth: number

The margin width around the canvas content.

numberHits: number

The number of hits to render.

numberHsps: number

The number of HSPs (High-Scoring Pairs) to render.

scaleLabelWidth: number

The width allocated for scale labels.

scaleType: ScaleTypeEnum

The type of scale used in the canvas.

scaleWidth: number

The width scale factor.

scoreType: ScoreTypeEnum

The type of scoring mechanism.

staticCanvas: boolean

Whether to use a static (non-interactive) canvas.

Methods