Creates an instance of BasicCanvasRenderer.
The canvas element or its ID to render into.
The Fabric.js canvas instance, either interactive or static.
Protected
canvasThe height of the canvas in pixels.
Protected
canvasThe width of the canvas in pixels or a custom value.
Protected
canvasWhether to render a stroke around the canvas wrapper.
The color scheme used for rendering.
Protected
contentThe width of the left-side label area.
Protected
contentThe width allocated for labels.
Protected
contentThe width allocated for scoring content.
Protected
contentThe width of the content area.
Protected
fontThe font family for text rendering.
Protected
fontThe font size for text rendering.
Protected
fontThe font weight for text rendering.
Protected
logWhether to log skipped HSPs.
Protected
marginThe margin width around the canvas content.
Protected
numberThe number of hits to render.
Protected
numberThe number of HSPs (High-Scoring Pairs) to render.
Protected
scaleThe width allocated for scale labels.
The type of scale used in the canvas.
Protected
scaleThe width scale factor.
The type of scoring mechanism.
Protected
staticWhether to use a static (non-interactive) canvas.
A base class for rendering a Fabric.js canvas with customizable properties. BasicCanvasRenderer
Description
Provides foundational functionality for rendering a canvas, including frame sizing and content rendering.