advance

fun advance(elapsedTime: Float): Boolean

Advancing the artboard:

  • Updates the layout for all dirty components contained in the artboard

  • Updates the positions

  • Forces all components in the artboard to be laid out

Components are all the shapes, bones and groups of an artboard. Whenever components are added to an artboard, for example when an artboard is first loaded, they are considered dirty. Whenever animations change properties of components, move a shape, or change a color, they are marked as dirty.

Before any changes to components will be visible in the next rendered frame, the artboard needs to be advanced.

elapsedTime is currently not taken into account.