Interface defining global rendering options for a Fabric.js canvas. RenderOptions

Configures rendering parameters for a Fabric.js canvas, used in BasicCanvasRenderer. All width and height values are in pixels (px).

BasicCanvasRenderer - Class utilizing these options.

interface RenderOptions {
    canvasHeight?: number;
    canvasWidth?: number;
    canvasWrapperStroke?: boolean;
    colorScheme?: ColorSchemeEnum;
    contentLabelLeftWidth?: number;
    contentLabelRightWidth?: number;
    contentLabelWidth?: number;
    contentScoringWidth?: number;
    contentWidth?: number;
    currentColor?: string;
    currentDisabled?: boolean;
    currentDomainDatabase?: string;
    fontFamily?: string;
    fontSize?: number;
    fontWeigth?: string;
    jobId?: string;
    logSkippedHsps?: boolean;
    marginWidth?: number;
    numberHits?: number;
    numberHsps?: number;
    scaleLabelWidth?: number;
    scaleType?: ScaleTypeEnum;
    scaleWidth?: number;
    scoreType?: ScoreTypeEnum;
    staticCanvas?: boolean;
    strokeDashArray?: [number, number];
    strokeWidth?: number;
}

Properties

canvasHeight?: number

Canvas height in pixels.

canvasWidth?: number

Canvas width in pixels.

canvasWrapperStroke?: boolean

Whether to stroke the canvas wrapper.

colorScheme?: ColorSchemeEnum

Color scheme for rendering.

contentLabelLeftWidth?: number

Width for left-side sequence/domain info.

contentLabelRightWidth?: number

Width for right-side sequence/domain info.

contentLabelWidth?: number

Width for sequence information.

contentScoringWidth?: number

Width for scoring information.

contentWidth?: number

Width of the visualization content.

currentColor?: string

Current color value.

currentDisabled?: boolean

Whether rendering is disabled.

currentDomainDatabase?: string

Current domain database name.

fontFamily?: string

Font family.

fontSize?: number

Font size in pixels.

fontWeigth?: string

Font weight (likely a typo, should be fontWeight).

jobId?: string

Job identifier for the data.

logSkippedHsps?: boolean

Whether to log skipped HSPs.

marginWidth?: number

Margin space around objects.

numberHits?: number

Number of hits to display.

numberHsps?: number

Number of HSPs to display.

scaleLabelWidth?: number

Width for color score information.

scaleType?: ScaleTypeEnum

Scale type for visualization.

scaleWidth?: number

Width of the color scale.

scoreType?: ScoreTypeEnum

Score type for visualization.

staticCanvas?: boolean

Whether to use a static canvas (no interactivity).

strokeDashArray?: [number, number]

Dash array for strokes.

strokeWidth?: number

Stroke width in pixels.