1.9.0
LuaTikZ 1.9.0
Visual editor
Draw TikZ by hand. The floating preview now has an Edit mode that expands into a full visual editor - sketch with mouse, finger, or Apple Pencil, and every stroke is written into your existing ```tikz fence as clean, native TikZ.
- Press Edit on the floating preview and it animates into a full-pane editor; Done collapses it back. The fence in your note remains the only source of truth, and every operation is a normal, undoable edit.
- 18 tools: Select, Pan, Line, Arrow, Path, Bézier, Freehand, Rectangle, Rounded rectangle, Circle, Ellipse, Arc, Grid, Diamond, Polygon, Star, Text, and Math nodes.
- Draw on the real diagram: the compiled LuaLaTeX/TikZJax output is embedded in the canvas, calibrated to exact TikZ coordinates, so you sketch on top of what your diagram actually looks like.
- Freehand ink that stays editable- strokes are smoothed, simplified, and fitted to Bézier paths with an adjustable smoothing setting; grab the control points afterwards like any other curve.
- Select, move, resize, duplicate, style: drag endpoints and control points, box-select (objects fully inside the box), snap to a configurable grid and to other objects' points — snapping works in TikZ coordinates, so points land on exact values like
(1.5, 0.5).
Touch and stylus
- One finger pans, two fingers pinch-zoom; an explicit Finger draw toggle makes one finger draw.
- A pen always draws, takes priority over touch, and stray palm contacts are ignored while it's near the glass.
- The floating preview (and Edit mode) now works on iPad, Android tablets, and phones, rendering through TikZJax. Near-full-screen layout, 44 px touch targets, safe-area aware.
Lossless two-way source sync
- Visual edits patch only the tokens that changed — comments, indentation, custom styles, and statement order are preserved byte-for-byte.
- Anything the editor can't safely round-trip (
\foreach,to[bend], scopes, named/polar coordinates, transforms…) is never rewritten or deleted: it stays in your source, renders in the compiled output, and appears as a locked ghost on the canvas. - Optional source panel with TikZ syntax highlighting; hover an object on the canvas and its statement lights up in the code. Each completed operation is one undo step.
Notes
- Quiet icon toolbar with tooltips, full light/dark/custom-theme support, LTR-pinned UI in RTL notes, keyboard shortcuts (
V H L A P B F R C E T, Del, Esc, Ctrl/Cmd+Z/D/C/V), and an animated grow/shrink transition between preview and editor.