tsParticles - v4.0.0-beta.12
    Preparing search index...

    Rectangular spatial range

    Hierarchy (View Summary)

    Index

    Constructors

    • The rectangle constructor, initializes position and size

      Parameters

      • x: number

        X coordinate of the position

      • y: number

        Y coordinate of the position

      • width: number

        Rectangle width

      • height: number

        Rectangle height

      Returns Rectangle

    Properties

    position: ICoordinates

    Range position

    The rectangle size

    type: string

    The range type identifier

    Methods

    • Resets the rectangle position and size, reusing the instance

      Parameters

      • x: number

        X coordinate of the position

      • y: number

        Y coordinate of the position

      • width: number

        Rectangle width

      • height: number

        Rectangle height

      Returns this

      the rectangle instance for chaining