ReferenceattractTo

<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

Attributes for <attractTo>
AttributeTypeValues
relativeToGraphScales = "…"boolean"true" "false"
threshold = "…"number
Props for <attractTo name="a">
PropertyType
$a.disabledboolean
$a.fixedboolean
$a.fixLocationboolean
$a.hiddenboolean
$a.relativeToGraphScalesboolean
$a.thresholdnumber

Example: Attract a <point> to a <circle>

A <point> is attracted to a named <circle> with a default threshold of attraction of 2%2 \% 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 2%2 \% 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 2%2 \% 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>.