Skip to main content

alphaTab.rendering.StaffSystemBounds

Represents the bounds of a staff system.

 class StaffSystemBounds

Propertiesโ€‹

barsโ€‹

Gets or sets the list of master bar bounds related to this staff system.

boundsLookupโ€‹

Gets or sets a reference to the parent bounds lookup.

boundsLookup: BoundsLookup;

indexโ€‹

Gets or sets the index of the bounds within the parent lookup. This allows fast access of the next/previous system.

index: number;

isFinishedโ€‹

Whether this system's bounds are already scaled and sorted, either via finish or because the renderer built them that way. Prevents double-scaling when the parent BoundsLookup is preserved across partial renders and finish is invoked again on a mix of systems.

isFinished: boolean;

realBoundsโ€‹

Gets or sets the actual bounds of the elements in this staff system including whitespace areas.

realBounds: Bounds;

visualBoundsโ€‹

Gets or sets the bounds covering all visually visible elements of this staff system.

visualBounds: Bounds;

Methodsโ€‹

addBarโ€‹

Adds a new master bar to this lookup.

addBar(bounds: MasterBarBounds): void
ParameterSummary
boundsAll

The master bar bounds to add.

findBarAtPosโ€‹

Tries to find the master bar bounds that are located at the given X-position.

findBarAtPos(x: number): MasterBarBounds | null
ParameterSummary
xAll

The X-position to find a master bar.

Returnsโ€‹

The master bounds at the given X-position.

finishโ€‹

Finished the lookup for optimized access. Idempotent: once finished, further calls are no-ops so preserved systems survive partial renders without being re-scaled.

finish(scale?: number): void
ParameterSummary
scaleAll

(no description)