Build a clock · Part 3 of 6
Numbers
Twelve labels, placed with the same turned pins as the ticks.
Placing the labels
canvas.text.label creates a text label. Its position is the
pin for its hour, moved 100 pixels forward. Points.copy writes
only the position into the label, so the text stays upright.
Centering the text
text-anchor and dominant-baseline center each
number on its point. user-select: none keeps the numbers from
being selected as text, which matters once there is something to drag.
