Referencepolyline

<polyline>

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

Attributes and Properties

Attributes for <polyline>
AttributeTypeValues
allowDilation = "…"boolean"true" "false"
allowRotation = "…"boolean"true" "false"
allowTranslation = "…"boolean"true" "false"
applyStyleToLabel = "…"boolean"true" "false"
displayDecimals = "…"integer
displayDigits = "…"integer
displaySmallAsZero = "…"number
draggable = "…"boolean"true" "false"
labelIsName = "…"boolean"true" "false"
layer = "…"integer
minShrink = "…"
padZeros = "…"boolean"true" "false"
preserveSimilarity = "…"boolean"true" "false"
rigid = "…"boolean"true" "false"
rotateAround = "…""centroid" "vertex" "point"
rotationCenter = "…"
rotationHandleVertices = "…"
rotationVertex = "…"
showCoordsWhenDragging = "…"boolean"true" "false"
vertices = "…"[ math ]
verticesDraggable = "…"boolean"true" "false"
Props for <polyline name="p">
PropertyType
$p.allowDilationboolean
$p.allowRotationboolean
$p.allowTranslationboolean
$p.applyStyleToLabelboolean
$p.disabledboolean
$p.displayDecimalsinteger
$p.displayDigitsinteger
$p.displaySmallAsZeronumber
$p.draggableboolean
$p.fixedboolean
$p.fixLocationboolean
$p.hiddenboolean
$p.labellabel
$p.labelIsNameboolean
$p.layerinteger
$p.lengthnumber
$p.numDimensionsnumber
$p.numVerticesnumber
$p.padZerosboolean
$p.preserveSimilarityboolean
$p.rigidboolean
$p.showCoordsWhenDraggingboolean
$p.styleDescriptiontext
$p.styleDescriptionWithNountext
$p.vertices[ math ]
$p.verticesDraggableboolean

Example: Default <polyline>

The default <polyline> requires the vertices attribute as a minimum.


Example: <polyline> constrained to grid

The vertices of a <polyline> are predefined as constrained points, thereby constraining the polyline to a grid as well.


Attribute Example: vertices

The vertices attribute takes a list of points as its input.


Attribute Example: draggable

The draggable attribute determines whether the <polyline> can be dragged around the <graph>. All graphical objects are draggable by default.


Attribute Example: verticesDraggable

Vertices are draggable by default. Use the verticesDraggable attribute set to false to disable users from changing the proportions of the <polyline>. The polyline as a whole can still be repositioned on the <graph>.


Attribute Example: Standard graphical attributes

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


Property Example: Style properties

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