Skip to main content

alphaTab.rendering.RenderHints

Additional hints which should be respected during layout and rendering of the score.

 interface RenderHints

Properties​

firstChangedMasterBar​

Indicates the index of the first masterbar which was modified in the data model. AlphaTab will try to optimize the rendering and other updates to keep unchanged parts. At this point only the rendering is affected and the generated MIDI has to be updated separately.

firstChangedMasterBar?: number;

reuseViewport​

A value indicating whether the currently rendered viewport can be reused when rendering the score. Set this property to true in cases of live-editing where the rendered score changes from an object perspective, but remains the similar from a content perspective. This way the visual update will appear more smooth than a full clearing.

internally it might still be decided to clear the viewport.

reuseViewport?: boolean;