Skip to main content

ShapeId

Unique identifier for each shape, generated by the engine at creation time.

Vec3

A 2D point with optional pressure. The z field ranges from 0 to 1 and is present when drawn with a pressure-sensitive stylus.

DrawSegment

A segment of a stroke. The path field is a base64-encoded buffer of Vec3 points.

DrawShape

Style types

Shape type union

Currently, DrawShape is the only shape type. Additional types may be added in future versions.

Constants

Path codec utilities