Point.setCircle()

The Point.setCircle() method adds a circle to a Point. It yields similar results as the Point.addCircle() method, the different is that Point.setCircle() will overwrite any previous circle set.

Essentially, it mimics the difference between adding vs setting an attribute.

Refer to Drawing circles for more details on how circles are handled.

Signature

Javascript
Point point.setCircle(
  number radius,
  string className
)
TIP|

This method is chainable as it returns the Point object

Example