Skip to content

API reference / Common / Engine types / GraphicsObjectContent

Type Alias: GraphicsObjectContent ​

ts
type GraphicsObjectContent = 
  | {
  path: PathObject;
}
  | {
  text: TextObject;
}
  | {
  image: ImageObject;
}
  | {
  shading: ShadingObject;
}
  | {
  group: GroupObject;
}
  | {
  form: FormObject;
}
  | {
  markedContentPoint: MarkedContent;
};

What a [GraphicsObject] paints.

Variants are boxed so the enum stays small relative to the largest variant ([PathObject] in particular dominates because of its inline [Path] and the two *Style structs it carries).