Error code · a mistake in the document

dt::near-edge

A point is within a millimetre of a side of the tile but not on it.

What the program says

dt::near-edge

  × this point is close to a side of the tile but not on it
   ╭─[example.dtile:3:25]
 2 │ tile size="1x1" {
 3 │     line edge { through "(0.02sq, 0.5sq)" "(1sq, 0.5sq)" }
   ·                         ────────┬────────
   ·                                 ╰── within a millimetre of the side
 4 │     stack { dirt }
   ╰────
  help: did you mean `(0sq, 0.5sq)`? a line that reaches a side ends exactly
        on it, so it meets the next tile's
        explain: https://dharmatiles.healtoletgo.com/e/near-edge
        offline: dharmatiles explain dt::near-edge

What to do

Put the point on the side, as the fix in the message does, so the line meets the next tile's.

Broken, then fixed

Gives dt::near-edge
dharmatiles version="1.0.0"
tile size="1x1" {
    line edge { through "(0.02sq, 0.5sq)" "(1sq, 0.5sq)" }
    stack { dirt }
}
Mended, it reads clean
dharmatiles version="1.0.0"
tile size="1x1" {
    line edge { through "(0sq, 0.5sq)" "(1sq, 0.5sq)" }
    stack { dirt }
}

The rule

A point within 1 mm of a side but not on it is dt::near-edge, with a fix that moves it onto the side. A range on a point that lies on a side is dt::edge-range: it would draw a different place for each seed; the fix writes the range’s middle as the one place (and if that is no seam, the next check offers the nearest).

Read it in context: Seams · A point near a side, or a range on one, is refused