Options
All
  • Public
  • Public/Protected
  • All
Menu

Rectangles have a width and height and are positioned based on their top-left corner's x, y coordinate.

Hierarchy

Implements

Index

Constructors

constructor

  • new Rectangle(width: number, height: number, x?: number, y?: number): Rectangle
  • Parameters

    • width: number
    • height: number
    • Optional x: number
    • Optional y: number

    Returns Rectangle

Accessors

fill

fill:

The Color to fill the element with.

fillOpacity

fillOpacity:

The opacity of the just the fill Color.

height

height:

The height of the Rectangle.

opacity

opacity:

The opacity of the entire Shape.

stroke

stroke:

The Stroke object to outline the element with.

strokeOpacity

strokeOpacity:

The opacity of just the Stroke.

transform

transform:

width

width:

The width of the Rectangle.

x

x:

The position of the x-coordinate of the top-left corner of the Rectangle.

y

y:

The position of the y-coordinate of the top-left corner of the Rectangle.

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