Skip to content

docs(examples): add gallery of 5 canonical drawings#41

Merged
lostmygithubaccount merged 1 commit into
mainfrom
agent3/gallery
Apr 13, 2026
Merged

docs(examples): add gallery of 5 canonical drawings#41
lostmygithubaccount merged 1 commit into
mainfrom
agent3/gallery

Conversation

@lostmygithubaccount
Copy link
Copy Markdown
Member

Summary

Adds a sample gallery under examples/gallery/ that exercises the full draw-core API surface — every element type (rectangle, ellipse, diamond, line, arrow, freedraw, text), every FillType (Solid, Hachure, CrossHatch, None), stroke/dash styles, arrowheads, and parametric freedraw curves.

Five drawings committed as .draw.json + .svg + .png so reviewers see how rendering changes over time as a diff on the exported assets.

drawing features exercised
flowchart rectangles, diamond, ellipse, arrows with arrowheads
sticky solid-fill rectangles with rotation, multiline text
wireframe ellipses, dashed strokes, nested frames, diagonal lines
sketch freedraw curves (sine wave + parametric heart)
patterns every FillType side by side

All artifacts regenerated by a single runnable example:

cargo run --example gallery -p dkdc-draw-core

pin_metadata pins Document.id and timestamps so regeneration is byte-idempotent (verified locally by regenerating twice and diffing SHA-256).

Test plan

  • cargo run --example gallery -p dkdc-draw-core produces 5 × (json + svg + png)
  • Regeneration is byte-identical to committed artifacts (idempotent)
  • bin/check green locally
  • Visual spot-check on flowchart.png + patterns.png: shapes and fills render correctly (text is placeholder per the known render.rs limitation; SVG exports contain real text elements)

🤖 Generated with Claude Code

Adds a sample gallery under examples/gallery/ showing every element
type, fill pattern, stroke style, and freedraw curves. Each of the 5
drawings is committed as .draw.json + .svg + .png so reviewers see
exactly how rendering changes over time via the diff on the exported
assets.

Regenerated by a single runnable example:

  cargo run --example gallery -p dkdc-draw-core

The example pins Document id and timestamps, making regeneration
byte-idempotent (verified).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount merged commit a36c7c1 into main Apr 13, 2026
1 check passed
@lostmygithubaccount lostmygithubaccount deleted the agent3/gallery branch April 13, 2026 05:09
lostmygithubaccount added a commit that referenced this pull request Apr 13, 2026
Bumps all Rust crates and the Python package from 0.2.1 to 0.3.0. This
minor bump reflects one breaking change in the dkdc-draw-core public API
surface (pub -> pub(crate) demotions in #42), accumulated with the
non-breaking work from this cycle:

  - #35: arrow snap-to-shape connection points
  - #36: CONTRIBUTING.md + README badges
  - #37: integration tests for draw-core public API
  - #38: Rust + Python hello-world examples
  - #39: CHANGELOG.md scaffolding
  - #40: surgical clippy opt-ins workspace-wide
  - #41: sample gallery (5 drawings × json/svg/png)
  - #42: pub -> pub(crate) demotions (BREAKING)
  - #43: Python test coverage 5 -> 27

See CHANGELOG.md for the 0.3.0 section and migration notes for the
demoted symbols.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount mentioned this pull request Apr 13, 2026
4 tasks
lostmygithubaccount added a commit that referenced this pull request Apr 13, 2026
Bumps all Rust crates and the Python package from 0.2.1 to 0.3.0. This
minor bump reflects one breaking change in the dkdc-draw-core public API
surface (pub -> pub(crate) demotions in #42), accumulated with the
non-breaking work from this cycle:

  - #35: arrow snap-to-shape connection points
  - #36: CONTRIBUTING.md + README badges
  - #37: integration tests for draw-core public API
  - #38: Rust + Python hello-world examples
  - #39: CHANGELOG.md scaffolding
  - #40: surgical clippy opt-ins workspace-wide
  - #41: sample gallery (5 drawings × json/svg/png)
  - #42: pub -> pub(crate) demotions (BREAKING)
  - #43: Python test coverage 5 -> 27

See CHANGELOG.md for the 0.3.0 section and migration notes for the
demoted symbols.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant