Options
All
  • Public
  • Public/Protected
  • All
Menu

A meta-Shape that groups together a collection of "child" Shapes.

When shapes are added to a Group, the entire Group can be transformed all at once. This works similarly to grouping shapes in a drawing program like Illustrator or a presentation program like PowerPoint.

Groups can be nested within other groups.

Hierarchy

Implements

Index

Constructors

constructor

  • You can construct a Group with as many initial shapes as needed.

    Parameters

    • Optional children: SVGElement[]

      Initial Shapes added to the Group.

    Returns Group

Properties

children

children: SVGElement[] = []

A Group's children are the Shape objects added to the Group.

Accessors

transform

transform:

Methods

add

  • Add a Shape objects to the Group's children.

    Parameters

    • child: SVGElement

      The Shape to add to the Group.

    Returns void

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

remove

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