Skip to content

Drawing Points

-5-4-3-2-1012345543210-1-2-3-4-5(2,3)a(1.5,-3)

Props

NameTypeDefaultDescription
positionPossibleVector2[0,0]The position of the point.
strokestring#000The stroke of the point and label (if applicable).
labelstringnoneThe label of the point.
label-position"left"|"right"|"top"|"bottom"bottomThe position of the label relative to the point.
filledbooleantrueWhether the point should be filled.
radiusnumber4The radius of the point in pixels.
line-widthnumber1.5The width of the point's outline. Only applicable if filled is set to false.

Examples