Skip to content

API reference / Common / Engine types / ShapePathCommand

Type Alias: ShapePathCommand ​

ts
type ShapePathCommand = 
  | {
  moveTo: ShapeAdjustPoint;
}
  | {
  lineTo: ShapeAdjustPoint;
}
  | {
  arcTo: {
     widthRadius: ShapeAdjustCoordinate;
     heightRadius: ShapeAdjustCoordinate;
     startAngle: ShapeAdjustAngle;
     swingAngle: ShapeAdjustAngle;
  };
}
  | {
  quadBezierTo: [ShapeAdjustPoint, ShapeAdjustPoint];
}
  | {
  cubicBezierTo: [ShapeAdjustPoint, ShapeAdjustPoint, ShapeAdjustPoint];
}
  | "close";

One path drawing command — a child element of a:path.