DOMRect

Overview

DOMRect is a class in Aspose.Html FOSS for Python.

An axis-aligned bounding rectangle (CSSOM View §7.1).

This class provides 1 method for working with DOMRect objects in Python programs. Available methods include: __init__. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package. Properties: bottom, height, left, right, top, width, and 2 more.

Properties

NameTypeAccessDescription
topfloatReadMinimum of y and y + height per CSSOM View §7.1.
rightfloatReadMaximum of x and x + width per CSSOM View §7.1.
bottomfloatReadMaximum of y and y + height per CSSOM View §7.1.
leftfloatReadMinimum of x and x + width per CSSOM View §7.1.
xfloatReadGets the x.
yfloatReadGets the y.
widthfloatReadGets the width.
heightfloatReadGets the height.

Methods

SignatureDescription
__init__(x: float, y: float, width: float, height: float)Calls init(x, y, width, height) on this DOMRect instance.

See Also