docs(examples): add gallery of 5 canonical drawings#41
Merged
Conversation
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
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>
Merged
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a sample gallery under
examples/gallery/that exercises the fulldraw-coreAPI surface — every element type (rectangle, ellipse, diamond, line, arrow, freedraw, text), everyFillType(Solid, Hachure, CrossHatch, None), stroke/dash styles, arrowheads, and parametric freedraw curves.Five drawings committed as
.draw.json+.svg+.pngso reviewers see how rendering changes over time as a diff on the exported assets.FillTypeside by sideAll artifacts regenerated by a single runnable example:
pin_metadatapinsDocument.idand timestamps so regeneration is byte-idempotent (verified locally by regenerating twice and diffing SHA-256).Test plan
cargo run --example gallery -p dkdc-draw-coreproduces 5 × (json + svg + png)bin/checkgreen locallyrender.rslimitation; SVG exports contain real text elements)🤖 Generated with Claude Code