Represents an interface for a ComplexSvg.

interface IStructure {
    add: ((object) => void);
    addAtStart: ((object) => void);
    elements: Element[];
}

Implemented by

Properties

add: ((object) => void)

Adds an Element or Structure to the given Structure.

Type declaration

    • (object): void
    • Parameters

      Returns void

Function

addAtStart: ((object) => void)

Adds an object at the beginning of elements array. This way object will be rendered first, thus being a background.

Type declaration

    • (object): void
    • Parameters

      • object: Element | Structure

        The object to be added at the beginning of this.elements

      Returns void

Function

elements: Element[]

An array of Elements.