feat(shapes): custom shapes with several paths, holes, text areas and connection points (#3539)

- `paths` draws a custom shape from several paths, each filled with the
  shape's fill, not at all, or lighter or darker, and with or without its line
- A closed part of a path inside another is a hole, whichever way round it
  is drawn: parts are turned round so both fill rules cut the same holes
- `textArea` sets where a custom shape's text goes, and "fitText" fits it
- `connectionPoints` gives a custom shape its own connection points
- Connection sites and text areas are guides that keep their share of the
  shape when it is resized, as PowerPoint writes freeforms
- Demo 120, with a reference render, and docs in shapes.md


Claude-Session: https://claude.ai/code/session_01TmyffPd5QMJYjXiMBQ3EnZ

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dolan
2026-09-25 16:10:17 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 4fd78fc206
commit e7b568f4e6
18 changed files with 1345 additions and 116 deletions
+2
View File
@@ -265,3 +265,5 @@ jobs:
# - uses: "./.github/actions/validate-docx"
- run: npm run run-ts -- ./demo/119-theme-colors.ts
- uses: "./.github/actions/validate-docx"
- run: npm run run-ts -- ./demo/120-custom-shapes.ts
# - uses: "./.github/actions/validate-docx"