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
| Name | Type | Access | Description |
|---|---|---|---|
top | float | Read | Minimum of y and y + height per CSSOM View §7.1. |
right | float | Read | Maximum of x and x + width per CSSOM View §7.1. |
bottom | float | Read | Maximum of y and y + height per CSSOM View §7.1. |
left | float | Read | Minimum of x and x + width per CSSOM View §7.1. |
x | float | Read | Gets the x. |
y | float | Read | Gets the y. |
width | float | Read | Gets the width. |
height | float | Read | Gets the height. |
Methods
| Signature | Description |
|---|---|
__init__(x: float, y: float, width: float, height: float) | Calls init(x, y, width, height) on this DOMRect instance. |