5.2 KiB
Line and arrow display — October 21, 2026
Vincent prioritized displaying lines and arrows ahead of dragging and reported
that they did not compile. The untouched line-initial.tex and
arrow-initial.tex compiled successfully with shared TinyTeX. The failure in
the editor was its rectangle-only parser. The implementation now recognizes
one absolute cm segment per \draw, with no arrow, ->, <-, or <->.
Observed checks
- The existing Qt 6.12.0 / MinGW 13.1.0 Debug build succeeded. CTest passed
core_foundations,rectangle_display, andsegment_display(3/3). - All six line/arrow fixtures load with the expected endpoints, kinds, direction flags, revision-scoped IDs, and numeric byte ranges. A line makes one scene item; each arrow, including both tips, also makes one item. Bounding paths remain separate calibration data. Opening/displaying preserves source and clean state; Save stays disabled.
- Tests cover negative coordinates, UTF-8/BOM/CRLF comments, signed decimals, reversed/vertical/horizontal segments, mixed rectangles/segments, alternate mapping, and a guarded replacement driven by parsed byte ranges.
- Unsupported tip styles, duplicate directions, curves, polylines, relative coordinates, transforms, macros and malformed paths refuse interpretation without a partial diagram. Zero-length segments are refused. Too-short arrows fail display with a diagnostic and no stale/partial scene.
- Independent mapping expectations for
line-initial.texare (100,350) to (300,250). The initial target arrow is (200,300) to (400,200); the backward arrow is (200,400) to (400,400), with the tip at the first endpoint; the double arrow is (200,100) to (400,100), with tips at both endpoints. - Default curved
toarrowhead geometry, round tip strokes, butt shaft caps, and shaft shortening follow the installed PGFpgfcorearrows.code.texdefault definition. TeX points convert using 72.27pt/in and 2.54cm/in. Custom tips remain unsupported. - Offscreen window checks open every line/arrow fixture through the startup-file route, checking canvas, source and status. Initial line/arrow window images were retained and visually reviewed. The existing rectangle Open-action test continues to pass. These are not native pointer gesture tests.
- All eight unchanged corpus documents compiled independently with TinyTeX. Their unchanged pictures were placed on fixed 7×5cm comparison pages. At 254dpi, both Poppler and Qt renders are 700×500 pixels. As in the previous check, dark means grayscale <128, with a one-pixel counterpart allowance in both directions. All eight had zero unmatched pixels. No fitted shift, rescale or independent tight crop was used. The four comparison sheets were visually reviewed. The threshold remains a prototype criterion.
- The rebuilt native application was launched with
arrow-initial.texalready loaded; the process remained running with that filename in its window title. This observation is not Vincent's acceptance of the result. - Report v1.52 was built in both editions with the complete TinyTeX sequence (initial pdfLaTeX, BibTeX, makeindex, three final pdfLaTeX passes; no-index glossaries). Final logs had no errors, missing files, undefined citations or references, or layout warnings. Rendered pages and internal destinations were checked before copying the reviewed PDFs to their final locations.
Reproduction and evidence
Use the existing build/CTest commands in code/README.md. With Qt and MinGW
DLL directories on PATH, from the repository root:
New-Item -ItemType Directory -Force work/line-arrow-display | Out-Null
$env:QT_QPA_PLATFORM = 'offscreen'
& ./code/build/tikzrefinery_rectangle_tests.exe work/line-arrow-display
& ./code/build/tikzrefinery_segment_tests.exe work/line-arrow-display
& 'C:/Users/vince/.cache/codex-runtimes/codex-primary-runtime/dependencies/python/python.exe' code/tests/CompareRectangles.py --work work/line-arrow-display --evidence code/tests/evidence --pdflatex 'C:/Users/vince/Documents/Projects/Tools/LaTeX/TinyTeX/bin/windows/pdflatex.exe' --pdftoppm 'C:/Users/vince/.cache/codex-runtimes/codex-primary-runtime/dependencies/native/poppler/Library/bin/pdftoppm.exe' --fixtures boxes-initial boxes-touching line-initial line-translated line-endpoint arrow-initial arrow-translated arrow-endpoint --output-stem subset-comparison-2026-10-21
Remove QT_QPA_PLATFORM from the shell environment before a visible launch.
The normal launcher uses the native Windows platform; offscreen applies only
to the test commands above. Retained evidence is subset-comparison-2026-10-21.json,
four numbered comparison PNGs, line-window-2026-10-21.png, and
arrow-window-2026-10-21.png. Historical rectangle evidence remains unchanged.
Limits
The accepted wrapper/coordinate/style boundary remains conservative. Source interpretation does not execute TeX. Compiler/PDF integration, selection, dragging, save/reopen after graphical edits, native gestures, zoom/pan, timing and product acceptance remain unfinished or unverified. Static expected-edit fixtures do not establish executed editing workflows. No requirement status is marked complete. Existing uncommitted work is preserved; no commit or push.