Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Reference

deixis-arrowhead

Constructs a reusable head specification; stealth is a filled triangular head with an open notch.

No Setup

Returns: head specification.

Task guide

Example

deixis-arrowhead(shape: "stealth", length: 7pt, width: 5pt)

Other native shapes include triangle, vee, circle, diamond and bar. Custom render(request) returns body, trim and bounds in a tip-local +x frame. Omitted dimensions scale with the shaft. Disable endpoint heads with heads: none.

deixis-arrowhead

deixis-arrowhead(shape: "stealth", length: auto, width: auto, fill: auto, stroke: auto, trim: auto, render: none)

Defines a reusable connector head. A custom render(request) returns (body: content, trim: length, bounds: (left:, top:, right:, bottom:)). The local tip is (0pt, 0pt), forward is +x, and positive y points down. Native stealth is a filled triangular tip with an open notch; vee is the separate constant-width stroked V. Both accept length/width.

Parameters

NameDefaultTypes
shape"stealth"str
lengthautoauto, length
widthautoauto, length
fillautoauto, none, color
strokeautoauto, none, stroke, color, length, dictionary
trimautoauto, length
rendernonenone, function

shape

Native stealth, triangle, vee, circle, diamond or bar. Stealth is a filled tip with a notched rear.

length

Positive head length along the shaft; auto derives a minimum size from shaft thickness.

width

Positive transverse head width; auto derives a minimum size from shaft thickness.

fill

Head fill; auto inherits shaft paint. Open vee/bar shapes use strokes.

stroke

Head outline; auto fills closed shapes and strokes open shapes using shaft styling.

trim

Nonnegative shaft shortening at this endpoint; auto uses native/custom renderer trim.

render

Optional callback(request) returning body, trim and ordered tip-local bounds; can adapt third-party drawing code.