feat(examples): EngineShowcase flagship + persistent rasterizer (Phase B+C)#102
Conversation
8e1b840 to
dee0bf7
Compare
|
Pivot: replaced the meta-narrative CV flagship with Render: Doc + version guards: Branch force-pushed: |
dee0bf7 to
808a5fc
Compare
|
Content tightened per directive: all about engine capabilities + performance + the logo. Headline lockup — KPI cards now report engine scale (all verifiable counts, no manufactured latency):
Capability columns:
The brand artwork is the hero asset — semantic-graph → polished-PDFs visual metaphor in the 516×280 rounded clip-frame. Re-rasterised |
808a5fc to
1c0f33a
Compare
|
Visual polish round:
Re-rasterised |
1c0f33a to
be076b8
Compare
|
Уголки фикс. Артефакт был от взаимодействия thick stroke на rounded path с clipPolicy(CLIP_PATH) — на углах виден square notch вместо чистого скругления. Решение: убрал stroke полностью, заменил на два вложенных rounded-rect'а:
Видимый 3pt оранжевый бордюр по периметру — равномерный, углы идеально круглые, никаких stroke-vs-clip конфликтов. Это и есть canonical-pattern для thick borders на rounded shapes в GraphCompose: nested fills вместо thick stroke. Branch |
…ge (Phase B + C)
Wires up Phases B and C of the pre-v1.6.6 presentation polish plan.
Phase B - new flagship example: examples/src/main/java/com/demcha/examples/flagships/EngineShowcase.java (~330 LOC) renders a single-page cinematic brand promo - not a CV, not a business document - that shows the visual register the engine can hit when an author cares about presentation as much as data. Navy + electric-orange palette, A4 portrait. Composition: top marquee band (brand + version), thin orange rule, 516x280 rounded clip frame holding pre-rendered hero artwork (semantic-graph -> polished-PDFs visual metaphor) via ShapeContainerNode + ClipPolicy.CLIP_PATH, magazine-headline lockup ("Documents as code. / Cinematic by default."), three KPI cards (Templates v2 / 1,033 tests / v1.6.6 Maven Central) via softPanel + stroked card rings, three-column capability grid (Semantic DSL / Deterministic Layout / Cinematic Themes) with accentLeft rules, footer brand stripe. Hero image (examples/src/main/resources/engine-hero.png, 1.8 MB) loaded over the classpath so the example needs no filesystem assumptions. Added to examples gallery README under "Start here" tier.
Phase C - persistent rasteriser + hero image swap: examples/src/main/java/com/demcha/examples/support/PdfPageRasterizer.java (60 LOC) is a tiny PDFBox-based CLI that converts one page of a PDF to PNG at a chosen DPI. Lets the repo regenerate hero/social-card images without depending on Ghostscript, ImageMagick, or pdftoppm - none of which are reliably available on Windows Git Bash. assets/readme/repository_showcase_render.png replaced with EngineShowcase page 1 (2.1 MB, 1653x2338 px at 200 DPI).
Iteration story: first attempt was a meta-narrative CV via the MintEditorial preset, but visual review (read PNG inline, three sidebar labels wrapped mid-letter) flagged it as the wrong register for the hero asset - a hero CV competes with the actual CV gallery rather than complementing it. Pivoted to a cinematic engine-capability promo using a pre-rendered brand artwork, which lands as the engine's brand register rather than another template render.
Doc + version guards green (CanonicalSurfaceGuardTest + DocumentationExamplesTest + DocumentationCoverageTest + VersionConsistencyGuardTest = 30/0/0). CHANGELOG entry rewritten under v1.6.6 Planned ### Documentation subsection.
be076b8 to
776847d
Compare
|
Tab-on-left callout фикс: левые углы капабилити-панелей теперь square (где сидит оранжевая полоска), правые остаются rounded. Замена: Этот pattern — Branch |
Summary
Phases B + C of the pre-v1.6.6 presentation polish plan. Phase A (the broken
docs/index.htmlasset paths) merged earlier as #101.Before the Maven Central debut an external visual-presentation audit flagged two things on the README hero asset (
assets/readme/repository_showcase_render.png):This PR fixes both with one flagship example + a tiny persistent helper.
Phase B —
RepositoryHeroShowcaseflagshipexamples/src/main/java/com/demcha/examples/flagships/RepositoryHeroShowcase.java(~200 LOC) renders a two-page editorial CV via the MintEditorial v2 preset, driven by a meta-narrative dataset:The engine renders its own author's CV. The data is substantive — no Lorem ipsum, no template-fill repeats — so a reader who lands on the README hero sees what the engine actually produces, not what a preset's placeholder looks like.
What the hero shows in one glance:
pageBackgrounds+ theme tokens)v2layered slots)Listed in the examples gallery README under the 🚀 Start here tier.
Phase C —
PdfPageRasterizerhelper + hero swapexamples/src/main/java/com/demcha/examples/support/PdfPageRasterizer.java(~60 LOC) is a tiny PDFBox-based CLI that rasterises one page of a PDF into a PNG at a chosen DPI. Lets the repo regenerate any hero / social-card image without depending on Ghostscript, ImageMagick, orpdftoppm— none of which are reliably available on a stock Windows Git Bash. Reused for any future README image regeneration../mvnw -B -ntp -f examples/pom.xml -DskipTests exec:java \ -Dexec.mainClass=com.demcha.examples.support.PdfPageRasterizer \ -Dexec.args="<inputPdf> <outputPng> [pageIndex0=0] [dpi=200]"assets/readme/repository_showcase_render.pngregenerated from page 1 of the new flagship (1818 × 2572 px at 220 DPI; 358 KB — down from 478 KB).Visual verification cycle
Rendered the PDF, rasterised page 1 to PNG, opened the PNG directly through Claude:
DETERMINISTIC RENDERIN/G,OPEN-SOURCE STEWARDSH/IP,M.SC. COMPUTER SCIENC/E,B.SC. SOFTWARE ENGINE/ERINGDETERMINISM,OSS STEWARDSHIP,MSC COMPUTER SCIENCE,BSC SOFTWARE ENG.What this doesn't do
docs/index.htmlpath repair, #101).Verification
Doc guards green. CHANGELOG entry added to
v1.6.6 — Planned ### Documentation.Test plan
assets/readme/examples/README.md