The GeometryUtils
interface provides different utility function to retrieve geometry information about [[../../../Glossary/DOM|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
DOMQuad
objects 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 ModuleThe 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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
? |
Chrome
? |
Edge
? |
Firefox
? |
IE
? |
Opera
? |
Safari
? |
WebView Android
? |
Chrome Android
? |
Firefox Android
? |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
? | |
Chrome
? |
Edge
? |
Firefox
? |
IE
? |
Opera
? |
Safari
? |
WebView Android
? |
Chrome Android
? |
Firefox Android
? |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
? | |
Chrome
? |
Edge
? |
Firefox
? |
IE
? |
Opera
? |
Safari
? |
WebView Android
? |
Chrome Android
? |
Firefox Android
? |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
? | |
Chrome
? |
Edge
? |
Firefox Full support 31 Full support 31 Disabled' From version 31: this feature is behind the |
IE
? |
Opera
? |
Safari
? |
WebView Android
? |
Chrome Android
? |
Firefox Android Full support 31 Full support 31 Disabled' From version 31: this feature is behind the |
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.
GeometryUtils by Mozilla Contributors is licensed under CC-BY-SA 2.5.