mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user