mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
Double-clicking the Curvature Circle tool opens Curvature Circle Tool
Options (`tool.options {tool: "curvatureCircle"}`, dialog
`curvatureCircleOptions`). OK sets the options with `tool.setOption`,
and the preferences keep them:
- Snap Tolerance (`snapTolerance`, 1 to 40 screen points, 5) is how
near a path pulls the pointer; Smart Guides' Snapping Tolerance
applies when it is larger.
- Snap with Smart Guides Off (`snapWithoutGuides`) unchecked keeps the
reach within Selection & Anchor Display's Tolerance while Smart
Guides are off.
- Annotate Radius (`annotateRadius`) unchecked hides the radius label.
- Anchors at Standard Positions (`standardAnchors`) unchecked draws a
path with an anchor where the circle touches the path and one every
90 degrees from there (`shape.curvatureCircle {anchors: "touch"}`).
- Use the Radius of Circular Arcs (`constantRadius`) unchecked gives
the cubic's own curvature on the cubic of a circular arc too
(`shape.curvatureCircle {constantRadius: false}`).
The range, the default and the Snap with Smart Guides Off rule are
VectorCraft's own. Every switch is on by default, so the tool draws as
before until an option is changed. The canvas check measures the path
drawn, whose cubics reach a little past the circle when its anchors
are where it touches.