Table of contents

Public class

Signature
class Rectangle2d extends Polygon2d {}
References

Polygon2d

Source

packages/editor/src/lib/primitives/geometry/Rectangle2d.ts


Constructor

Public constructor

Constructs a new instance of the Rectangle2d class

Parameters
NameDescription

config

Omit<Geometry2dOptions, 'isClosed'> & {
  height: number
  width: number
  x?: number
  y?: number
}

Properties

h

Public property

Signature
h: number

w

Public property

Signature
w: number

x

Public property

Signature
x: number

y

Public property

Signature
y: number

Methods

getBounds()

Public method

Signature
getBounds(): Box
References

Box


ReadonlySharedStyleMaprefreshPage