Skip to main content

alphaTab.rendering.MasterBarBounds

Represents the boundaries of a list of bars related to a single master bar.

 class MasterBarBounds

Propertiesโ€‹

barsโ€‹

Gets or sets the list of individual bars within this lookup.

bars: BarBounds[];

indexโ€‹

The MasterBar index within the data model represented by these bounds.

index: number;

isFirstOfLineโ€‹

Gets or sets a value indicating whether this bounds are the first of the line.

isFirstOfLine: boolean;

lineAlignedBoundsโ€‹

Gets or sets the actual bounds which are exactly aligned with the lines of the staffs.

lineAlignedBounds: Bounds;

realBoundsโ€‹

Gets or sets the actual bounds of the elements in this master bar including whitespace areas.

realBounds: Bounds;

staffSystemBoundsโ€‹

Gets or sets a reference to the parent staffSystemBounds .

staffSystemBounds: StaffSystemBounds | null;

staveGroupBoundsโ€‹

Deprecated

use staffSystemBounds

Gets or sets a reference to the parent staffSystemBounds .

readonly staveGroupBounds: StaffSystemBounds | null;

visualBoundsโ€‹

Gets or sets the bounds covering all visually visible elements spanning all bars of this master bar.

visualBounds: Bounds;

Methodsโ€‹

addBarโ€‹

Adds a new bar to this lookup.

addBar(bounds: BarBounds): void
ParameterSummary
boundsAll

The bar bounds to add to this lookup.

addBeatโ€‹

Adds a new beat to the lookup.

addBeat(bounds: BeatBounds): void
ParameterSummary
boundsAll

The beat bounds to add.

findBeatAtPosโ€‹

Tries to find a beat at the given location.

findBeatAtPos(x: number): Beat | null
ParameterSummary
xAll

The absolute X position where the beat spans across.

Returnsโ€‹

The beat that spans across the given point, or null if none of the contained bars had a beat at this position.

finishโ€‹

Finishes the lookup object and optimizes itself for fast access.

finish(scale?: number): void
ParameterSummary
scaleAll

(no description)