Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RepArrayRegionSet

An implementation of RegionSet.

PS2 instructions: you must use the provided rep. You may not change the spec of the constructor.

Hierarchy

  • RepArrayRegionSet

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create an empty region set for a size x size grid.

    Parameters

    • size: number

      dimension of grid, must be nonnegative integer

    Returns RepArrayRegionSet

Properties

Readonly size

size: number

Methods

add

  • add(label: string, rect: Rect): void
  • link

    RegionSet.add

    Parameters

    • label: string
    • rect: Rect

    Returns void

bounds

  • bounds(label: string): undefined | Rect
  • link

    RegionSet.bounds

    Parameters

    • label: string

    Returns undefined | Rect

owners

  • owners(rect: Rect): Set<string>
  • link

    RegionSet.owners

    Parameters

    Returns Set<string>

Generated using TypeDoc