Module canvas::canvas_data

source ·

Structs

  • A wrapper around a stored PathBuilder and an optional transformation that should be applied to any points to ensure they are in the matching device space.

Enums

  • PathState 🔒
    The canvas data stores a state machine for the current status of the path data and any relevant transformations that are applied to it. The Azure drawing API expects the path to be in userspace. However, when a path is being built but the canvas’ transform changes, we choose to transform the path and perform further operations to it in device space. When it’s time to draw the path, we convert it back to userspace and draw it with the correct transform applied. TODO: De-abstract now that Azure is removed?

Constants

Traits

Functions

Type Aliases