mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-22 10:23:16 +01:00
A linear dimension line placed near another dimension's line lands on its level only when that line is parallel. Before, the check compared the two directions only, so a long line at a slight angle passed it: with its first end within the snapping tolerance, the new line landed on a level the other line had already left, and the guide ran at an angle between the lines. A line is now parallel when it moves off its level by no more than 0.000001 pt across the span of both lines. A level that would put the line more than 1,000,000 pt from its points is passed over. Before, the tool took it, the preview failed validation and was not sent, and a click committed the earlier preview position. The next level within reach is taken instead, or the line goes where the pointer is. The level guide also needs Smart Guides on when it is drawn, so turning Smart Guides off before the next pointer move hides it. The nonparallel case in the placement test now puts the pointer within reach of the first line's end, so it fails without the parallel check, and the guide test expects exactly one guide.