TikZc Editor — Rust rendererOpen a
The standard preview and TikZc Editor: Export (SVG / PNG) command share one Rust compilation artifact. The SVG is displayed as an isolated image without CSS or MathJax text layout. Japanese, ASCII, full-width and half-width labels are paths, so the browser does not remeasure them. PNG is produced from that same SVG. Use the SVG / PNG selector to inspect either exported artifact, and Fit / 100% to change display scale (see Zoom and pan). The canvas background is white, as is Rust's PNG output. This guarantees the same diagram geometry for the same source/settings snapshot. SVG and PNG edge antialiasing can differ with renderer, zoom, and DPI. PNG mode uses the exported PNG bytes. This does not promise LuaLaTeX pixel equivalence. Pending source-editor changes and errors hide the previous image; unsupported syntax is reported instead of falling back to a different renderer. Zoom and pan
Zoom ranges from 10% to 800%. Plain wheel scrolling without Ctrl/Cmd scrolls the preview as usual. Canvas editingControl names below are the English ones ( Double-click a node (or select it and choose Edit text) to edit its complete label, including Japanese and supported TeX. Apply or Ctrl/Cmd+Enter applies the change; Esc cancels. IME composition does not submit the label. Selected nodes also support dragging, coordinates, and font formatting. Use Object to select covered or nested nodes, shapes, and paths. On the canvas, Tab / Shift+Tab cycles through targets; Alt+click cycles through targets at the clicked point. Backward / Forward moves an object one step, and To back / To front moves it to either end. A path and its inline labels move together in paint order. Order is saved with standard PGF layers, preserving source declaration order, coordinate references, and enclosing scopes. Every move is undoable. Select a line or arrow to drag the whole path, or enter its center coordinates in X / Y. Its inline labels move with it. The source retains named anchor references and adds a canvas translation. To remove the selection, use Delete or Delete / Backspace with the canvas or object picker focused. Selecting an inline label deletes only that label; selecting a path deletes the whole path. Select the entire matrix in the picker to delete a matrix. Nodes still referenced by other objects cannot be deleted until those references are removed. To change an arrow, select the path or its inline label. Round handles edit Start / End, square handles edit intermediate vertices and orthogonal corners, and diamond handles edit Bézier control points. The Arrow edit points panel also lets you choose Start / End / Bend / Control, enter X/Y in cm, and apply the change. Select a named anchor in Connect to to reconnect a start or end. Dragging endpoints snaps within 12 screen pixels of a named node's center, sides, or corners; hold Alt to place freely. Esc cancels a drag. A focused handle also responds to arrow keys (1 bp, or 10 bp with Shift). Open paths with GUI updates keep the current image visible until both replacement image buffers are decoded. Selection, zoom, and canvas coordinates stay fixed; editing does not blank the image or trigger a second compilation. Fit / 100% reframes the diagram when its bounds have grown beyond the current viewport. Returning focus to the same source editor or receiving a save/dirty-state notification does not recompile or reset the preview. Choose a tool from Tool: click to add text, or drag to add a rectangle,
ellipse, circle, line, or arrow. New shapes are editable nodes with empty labels;
double-click them to add text. Dragging shows an outline; Esc cancels it.
These tools work in both SVG and PNG mode, including Fit mode. Empty documents
start with a blank canvas. New objects use a Each operation updates the unsaved Installation and buildThe extension runs the Rust
The extension looks up Settings
All rendering settings apply to preview and export alike. The source buffer is
snapshotted when export starts, before the save dialog. Switching Verification
The suite checks mixed-width left/center/right aligned multiline labels
and math, compares SVG and PNG bytes against the Rust CLI at 96/150/300 DPI,
checks host preview/export wiring and the webview image payload, and tests stale
results/errors, disposal, settings, unsaved buffers and missing executables.
It also checks canvas label edits, coordinate conversion, drawing insertion,
IME/cancellation, and validation before source changes.
It fails if the Rust binary is missing (build it first). Set
License: MIT.
The For real Chromium pointer/hit-testing coverage after |
