Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents a circle shape. It is made up of a radius, center x, and center y properties.

Hierarchy

Implements

Index

Constructors

constructor

  • new Circle(radius: number, cx?: number, cy?: number): Circle
  • Parameters

    • radius: number
    • Optional cx: number

      center x-coordinate

    • Optional cy: number

      center y-coordinate

    Returns Circle

Accessors

cx

cx:

The x-coordinate of the circle's center point.

cy

cy:

The y-coordinate of the circle's center point.

fill

fill:

The Color to fill the element with.

fillOpacity

fillOpacity:

The opacity of the just the fill Color.

opacity

opacity:

The opacity of the entire Shape.

r

r:

The radius of the circle.

stroke

stroke:

The Stroke object to outline the element with.

strokeOpacity

strokeOpacity:

The opacity of just the Stroke.

transform

transform:

Methods

addObserver

  • addObserver(observer: Observer<SVGElement>): void

clearObservers

  • clearObservers(): void

notify

  • notify(): void

onclick

  • onclick(event: MouseEvent): void

ondblclick

  • ondblclick(event: MouseEvent): void

onmousedown

  • onmousedown(event: MouseEvent): void

onmousemove

  • onmousemove(event: MouseEvent): void

onmouseout

  • onmouseout(event: MouseEvent): void

onmouseover

  • onmouseover(event: MouseEvent): void

onmouseup

  • onmouseup(event: MouseEvent): void

removeObserver

  • removeObserver(observer: Observer<SVGElement>): void

toString

  • toString(): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc