Skip to main content
To put a north arrow or a scale bar on a sheet, add a northArrow or a scaleBar annotation that names a viewport. The SVG, the PDF and the sheet editor then draw it from that viewport. These functions give the same geometry, in paper millimetres, if you draw the symbols yourself.

Import

Example

Notes

  • The north arrow points trueNorthDeg of the site (a bearing, clockwise) less the viewport’s rotationDeg (counter-clockwise), clockwise from up the page. exportProjectSheet reads trueNorthDeg from the project. A sheet editor gets it from trueNorthDeg in its render dependencies.
  • radiusMm defaults to 8. A scale bar has 4 cells unless you set divisions. With no unitMeters, a cell is the smallest 1, 2 or 5 × 10^n m (ft in imperial), 1 unit or more, that is at least 8 mm on paper: 1 m at 1:100, 2 m at 1:200, 5 m at 1:500, 10 m at 1:1250.
  • The scale bar uses the viewport’s scale: at 1:50 it is twice as long as at 1:100.
  • The viewport must be on the same sheet. A project that names another viewport does not open.
  • The live LineDimension is deprecated, and live datums such as Grid and Level do not draw on a sheet. For a dimension on a drawing, use a sheet measure annotation or a storey dimension annotation.

scaleBarGeometry

A graphic scale bar: alternating filled and open cells, labelled in real model units.

northArrowGeometry

A north arrow, with an “N” beyond its tip: needle a filled point with an open tail, arrow a solid head on a heavy shaft, compass a four-point star with N, E, S and W, spire a tall split point that stands on its “N” over a plate, its N inside the radius.

viewTitleGeometry

The title under a viewport: its name over a heavy rule, with the view’s own scale beside it.

Types

DrawnSymbol

The package does not export this type by name.
VectorLine[]
required
VectorText[]
required
'center' | 'right'
center centres each text on its position, right right-aligns it. Absent: left-aligned.
'bold'
bold sets each text in the bold face. Absent: the normal face.

ViewTitleStyle

How the title of each viewport of a sheet is drawn. The package does not export this type by name.
boolean
false draws no rule under the title. Default true.
'below-left' | 'below-center' | 'below-right' | 'above-left' | 'above-center' | 'above-right'
Where the title sits at the viewport frame, outside it: at a corner, or centred on the middle of its width. Default below-left.
number
The height of the title text in paper mm, 1.8 to 20 (the lettering heights of ISO 3098), before typography.scale. The scale line is 0.7 of it. Default 5.
string
The scale line: {scale} is the scale, such as 1:100. Default {scale}.
'normal' | 'bold'
bold sets the title and its scale in the bold face. Default normal.

Typography

string
Always terminate the stack in Helvetica, Arial, sans-serif: it is one of the PDF standard 14, which is what the PDF sets in unless the first family is registered (registerDrawingFont).
number
Tracking, as a fraction of the text height (0.08 = +8 %).
'none' | 'uppercase'
number
Multiplier on text height. √2 (1.414) is one rung of the ISO 3098 ladder.

Rect

Rectangle in paper units (mm). The package does not export this type by name.
Last modified on November 30, 2026