<attractTo>
<attractTo> is a Graphical component that
is used to within a <point> to attract it to a specified reference component. This component must be
nested within a <constraints> block.
Attributes and Properties
| Attribute | Type | Values |
|---|---|---|
relativeToGraphScales = "…" | boolean | "true" "false" |
threshold = "…" | number |
| Property | Type |
|---|---|
$a.disabled | boolean |
$a.fixed | boolean |
$a.fixLocation | boolean |
$a.hidden | boolean |
$a.relativeToGraphScales | boolean |
$a.threshold | number |
Example: Attract a <point> to a <circle>
A <point> is attracted to a named <circle> with a default threshold of attraction of
of the graph axes.
Example: Attract a <point> to an <intersection>
A <point> is attracted to a named <intersection> with a default threshold of attraction of
of the graph axes.
Example: Attract a <point> to a <function> maximum
A <point> is attracted to a named <function> and a named <point> at the
function’s maximum with a default threshold of attraction of
of the graph axes.
Attribute Example: threshold
The threshold attribute allows customization of the the threshold of attraction.
Property Example: threshold
The threshold property renders the threshold value of the named <attractTo>.