Skip to content

API reference / Common / Engine types / PathSegment

Type Alias: PathSegment ​

ts
type PathSegment = 
  | {
  moveTo: Point;
}
  | {
  lineTo: Point;
}
  | {
  quadTo: {
     control: Point;
     end: Point;
  };
}
  | {
  cubicTo: {
     control1: Point;
     control2: Point;
     end: Point;
  };
}
  | "close";