The GeometryUtils interface provides different utility function to retrieve geometry information about DOM nodes.
GeometryUtils is a raw interface and no object of this type can be created; it is implemented by Text, Element, CSSPseudoElement, and Document objects.
Properties
This interface does not implement any properties.
Methods
GeometryUtils.getBoxQuads()- Returns a list of
DOMQuadobjects representing the CSS fragments of the node. GeometryUtils.convertQuadFromNode()- FIXME: Needs a description
GeometryUtils.convertRectFromNode()- FIXME: Needs a description
GeometryUtils.convertPointFromNode()- FIXME: Needs a description
Specifications
| Specification | Status | Comment |
|---|---|---|
| CSS Object Model (CSSOM) View Module The definition of 'GeometryUtils' in that specification. |
Working Draft | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
GeometryUtils | Chrome ? | Edge ? | Firefox Partial support 31 | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android Partial support 31 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
convertPointFromNode | Chrome ? | Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
convertQuadFromNode | Chrome ? | Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
convertRectFromNode | Chrome ? | Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
getBoxQuads | Chrome ? | Edge ? | Firefox
Full support
31
| IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android
Full support
31
| Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Full support
- Full support
- Partial support
- Partial support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.
- User must explicitly enable this feature.
- User must explicitly enable this feature.
