Add frozen TikZRefinery demo baseline and build pipeline
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-11-25 22:46:33 -05:00
parent 6064cce05e
commit 27b82c169e
456 changed files with 66509 additions and 0 deletions
@@ -0,0 +1,78 @@
# Initial explicit-coordinate reference corpus
Vincent selected explicit coordinates and individual drawing commands as the
first feasibility inputs on October 1, 2026. These are reference sources and
expected revisions, not results produced by an implemented editor.
## Syntax boundary
Each editable element has one `\draw` command using absolute numeric Cartesian
coordinates with explicit `cm` units. The examples use solid black outlines
with `line width=0.6pt`, straight `--` segments, the arrow options `->`, `<-`,
and `<->`, and `rectangle` between opposite corners. Whitespace, line breaks,
comments, and the order of allowed options do not define different geometry.
The `\path[use as bounding box]` declaration is fixed calibration data.
It keeps every picture's extent at (-2,-2) to (5,3) cm, so rendering each
picture cannot recenter the changed geometry through independent tight crops.
It is not a movable element. Preserve it, the wrapper, and unrelated source.
Nodes, named coordinates, relative coordinates, other units, coordinate
expressions, transformations, macros, loops, fills, and custom styles await
later coverage. This initial boundary is not a mandatory input format for
all future diagrams. Instructor examples may guide expansion when available.
## Reference edits
| Planned test | Initial source | Gesture and expected geometry (cm) | Expected source |
|---|---|---|---|
| TC-021 | `line-initial.tex` | Translate by (0.5,0.5): (-1,-0.5), (1,0.5) become (-0.5,0), (1.5,1). | `line-translated.tex` |
| TC-023 | `line-initial.tex` | Move only the second endpoint from (1,0.5) to (1,1.5). | `line-endpoint.tex` |
| TC-022 | `arrow-initial.tex` | Translate only the first arrow by (0.5,0.5): (0,0), (2,1) become (0.5,0.5), (2.5,1.5). | `arrow-translated.tex` |
| TC-024 | `arrow-initial.tex` | Move only the first arrow's second endpoint from (2,1) to (2,1.5). | `arrow-endpoint.tex` |
| TC-025, TC-029 | `boxes-initial.tex` | Move only the right box left by 1 cm: corners (2,0), (3,1) become (1,0), (2,1). | `boxes-touching.tex` |
The arrow sample contains unchanged backward and double arrows to detect
unintended edits. Repeat body and endpoint gestures on those variants during
TC-022/TC-024 coverage. Expected files define numeric geometry and changes
limited to the target coordinates; an editor may preserve a different valid
decimal spelling while keeping comments, whitespace, and unrelated bytes.
For TC-029, the initial boxes are 1 cm square with a 1 cm gap between edge
centerlines. After movement, their edge centerlines coincide at x=1 cm;
the left box and both sizes remain unchanged. Account for stroke thickness
when judging visible contact.
Use the same fixed extent, origin, and scale for canvas/PDF overlays (TC-027)
and document the zoom range and geometric/rendering tolerances before product
test execution (TC-026). Compile and visually review these sources with the
shared TinyTeX toolchain; put output and intermediates under task-local `work`.
The report contains the box illustrations, so no separate fixture PDFs need
to be tracked. Rendering a fixture does not verify graphical editing.
## Independent coordinate checks (TC-028)
One proposed test configuration places the TikZ origin at scene position
(200,300) and uses 100 scene units per cm, with scene y increasing downward:
`x_scene = 200 + 100*x_cm`, `y_scene = 300 - 100*y_cm`.
| TikZ point (cm) | Independently expected scene position |
|---|---|
| (0,0) | (200,300) |
| (1,0) | (300,300) |
| (0,1) | (200,200) |
| (-1,-0.5) | (100,350) |
These constants are test inputs, not mandated application settings. Check
forward and inverse conversions against the listed values, then round trips.
Changing zoom or pan must not change those scene positions or source bytes.
Map view/pointer coordinates into the scene before interpreting a drag.
## Later syntax coverage
Equivalent shapes expressed as nodes, named or relative coordinates,
transformations, and generated loop instances need separate interpretation
and edit tests. A successful compile can establish rendering even when
graphical editing remains unsupported. Preserve source and provide a clear
diagnostic in that case; do not infer safe editing from appearance alone.