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​

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)