Referencecircle

<circle>

<circle> is a Graphical component that renders a circle when nested inside a <graph>.

Attributes and Properties

Attributes for <circle>
AttributeTypeValues
applyStyleToLabel = "…"boolean"true" "false"
center = "…"[ math ]
displayDecimals = "…"integer
displayDigits = "…"integer
displaySmallAsZero = "…"number
draggable = "…"boolean"true" "false"
extrapolateBackward = "…"boolean"true" "false"
extrapolateForward = "…"boolean"true" "false"
filled = "…"boolean"true" "false"
flipFunction = "…"boolean"true" "false"
hideOffGraphIndicator = "…"boolean"true" "false"
labelIsName = "…"boolean"true" "false"
labelPosition = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right"
layer = "…"integer
nearestPointAsCurve = "…""true" "false"
numDiscretizationPoints = "…"number
padZeros = "…"boolean"true" "false"
periodic = "…"boolean"true" "false"
radius = "…"math
showCoordsWhenDragging = "…"boolean"true" "false"
splineForm = "…"text"centripetal" "uniform"
splineTension = "…"number
through = "…"
Props for <circle name="c">
PropertyType
$c.applyStyleToLabelboolean
$c.areamath
$c.borderStyleDescriptiontext
$c.center[ math ]
$c.circumferencemath
$c.diametermath
$c.disabledboolean
$c.displayDecimalsinteger
$c.displayDigitsinteger
$c.displaySmallAsZeronumber
$c.draggableboolean
$c.extrapolateBackwardboolean
$c.extrapolateForwardboolean
$c.filledboolean
$c.fillStyleDescriptiontext
$c.fixedboolean
$c.fixLocationboolean
$c.flipFunctionboolean
$c.hiddenboolean
$c.hideOffGraphIndicatorboolean
$c.labellabel
$c.labelIsNameboolean
$c.labelPositiontext
$c.layerinteger
$c.numDiscretizationPointsnumber
$c.padZerosboolean
$c.parMaxnumber
$c.parMinnumber
$c.periodicboolean
$c.radiusmath
$c.showCoordsWhenDraggingboolean
$c.splineFormtext
$c.splineTensionnumber
$c.styleDescriptiontext
$c.styleDescriptionWithNountext
$c.throughPoints[ math ]

Example: Default <circle>

This is a default <circle> without any additional attributes specified. It has a default radius of 11 and center at (0,0)(0,0).


Example: <circle> with center and radius

The center and radius of the circle are specified as attributes.


Example: <circle> through 3 points

Three points the circle passes through are specified using the through attribute.


Attribute Example: through

The through attribute can be used to specify one to three through-points and can be used in combination with other attributes.


Attribute Example: center

The center attribute references a constrained point, thereby restricting the movement of the <circle> to a grid.


Attribute Example: radius

A <circle> is defined with default center at the origin and a radius specified with a user-input.


Attribute Example: filled

Use the filled attribute to fill in a <circle> with the color corresponding to its styleNumber.


Attribute Example: Standard graphical attributes

The uses of the following standard graphical attributes are illustrated: hide, draggable, layer, styleNumber, applyStyleToLabel and labelIsName.

Layers: By adjusting the layer attribute number, geometry can be placed in front of or behind other geometry. The default layer number is 0; all higher numbers are placed in front.


Attribute Example: throughPoints

The throughPoints property renders the values of the points specified in the through attribute stored in an array. These can be rendered on a <graph> or as a math. Enclose the copy macro in an <asList> component for clarity when rendering as a math.

Individual through-points or coordinates of individual through-points can be accessed using array notation.


Property Example: Style properties

The styleDescription, styleDescriptionWithNoun, fillStyleDescription, and borderStyleDescription properties render a text description corresponding to the styleNumber of the component.