W3cubDocs

/DOM

GeometryUtils

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 DOMQuad objects representing the CSS fragments of the node.
GeometryUtils.convertQuadFromNode()
GeometryUtils.convertRectFromNode()
GeometryUtils.convertPointFromNode()

Specifications

Specification Status Comment
CSS Object Model (CSSOM) View Module
The definition of 'GeometryUtils' in that specification.
Working Draft Initial definition

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? No support[1] ? ? ?
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? No support[1] ? ? ?

[1] Gecko currently only implements the getBoxQuads() method behind the preference layout.css.getBoxQuads.enabled, defaulting to true in Firefox Nightly and to false in all other versions.

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/GeometryUtils