Rectangle.Point

Encapsulates an X,Y coordinate point.

This class uses named export from Rectangle module.

Importing from sources:

import { Point } from 'path-to-lib/Core/helper/util/Rectangle.js';

Properties

9
bottomRectangle
centerRectangle
heightRectangle
leftRectangle
rightRectangle
topRectangle
widthRectangle
xRectangle
yRectangle

Functions

18

Coerces this Point to be within the passed Rectangle. Translates it into the bounds.

ParameterTypeDescription
intoRectangle

The Rectangle into which to coerce this Point.

fromstatic

Creates a new Point encapsulating the event's page position.

ParameterTypeDescription
eventEvent

The DOM event

Returns: Rectangle
adjustRectangle
alignToRectangle
clientstaticRectangle
cloneRectangle
constrainToRectangle
containsRectangle
contentstaticRectangle
excludeRectangle
fromScreenstaticRectangle
highlightRectangle
innerstaticRectangle
intersectRectangle
moveToRectangle
roundPxRectangle
translateRectangle
unionstaticRectangle

Typedefs

1
AlignResultRectangle