Interface Parent

Hierarchy

Index

Methods

Methods

public add(element: Element, i?: number): Element

Parameters

  • element: Element
  • i?: number optional

Returns

Element

public children(): Element[]

Returns

Element[]

public circle(diameter: number): Element

Parameters

  • diameter: number

Returns

Element

public ellipse(w: number, h: number): Element

Parameters

  • w: number
  • h: number

Returns

Element

public group(): Element

Returns

Element

public image(url: string, w?: number, h?: number): Element

Parameters

  • url: string
  • w?: number optional
  • h?: number optional

Returns

Element

public line(x1: number, y1: number, x2: number, y2: number): Element

Parameters

  • x1: number
  • y1: number
  • x2: number
  • y2: number

Returns

Element

public path(data: string): Element

Parameters

  • data: string

Returns

Element

public polygon(data: string): Element

Parameters

  • data: string

Returns

Element

public polygon(points: Array<number[]>): Element

Parameters

  • points: Array<number[]>

Returns

Element

public polyline(data: string): Element

Parameters

  • data: string

Returns

Element

public polyline(points: Array<number[]>): Element

Parameters

  • points: Array<number[]>

Returns

Element

public put(element: Element, i?: number): Element

Parameters

  • element: Element
  • i?: number optional

Returns

Element

public rect(w: number, h: number): Element

Parameters

  • w: number
  • h: number

Returns

Element

public text(text: string): Element

Parameters

  • text: string

Returns

Element

public text(adder: (element: svgjs.Element) => void): Element

Parameters

  • adder: (element: svgjs.Element) => void

Returns

Element

public use(element: Element): Element

Parameters

Returns

Element