Skip to content

API reference / Common / Engine types / Clip

Type Alias: Clip ​

ts
type Clip = 
  | {
  path: PathClip;
}
  | {
  text: TextClip;
};

A clipping region.

Path clips are filled regions bounded by a path; text clips are glyph outlines accumulated by PDF text-rendering mode 4–7.

A clip is stored in its owning object's local coordinate space (pre-transform). Multiple clips on the same object are intersected, not unioned.