Skip to content

@shbernal/ts-pptx


@shbernal/ts-pptx / index / GeometryPoint

Type Alias: GeometryPoint

GeometryPoint = { moveTo?: boolean; x: Coord; y: Coord; } | { curve: { hR: Coord; stAng: number; swAng: number; type: "arc"; wR: Coord; }; } | { curve: { type: "cubic"; x1: Coord; x2: Coord; y1: Coord; y2: Coord; }; x: Coord; y: Coord; } | { curve: { type: "quadratic"; x1: Coord; y1: Coord; }; x: Coord; y: Coord; } | { close: true; }

Defined in: src/types/core.ts:261

A single node of a freeform (custGeom) path.

  • coordinates are authored in the object's own inch/EMU space (0..width, 0..height), not slide-relative and not normalized
  • used by shapes (ShapeType.custGeom) and by images (clips the picture to the path)

The arc node carries no x/y: an <a:arcTo> has no explicit end point. The renderer derives it from the current pen position, the radii and the swept angle, so an end point authored here would be discarded (a warning is emitted if one is supplied).