* Creates DOMRectInit object based on the provided dimensions and the x/y coordinates. * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit * * @param {number} x - X coordinate. * @param {number} y - Y coordinate. * @param {number} width - Rectangle's width. *
(x, y, width, height)
| 367 | * @returns {DOMRectInit} |
| 368 | */ |
| 369 | function createRectInit(x, y, width, height) { |
| 370 | return { x: x, y: y, width: width, height: height }; |
| 371 | } |
| 372 | |
| 373 | /** |
| 374 | * Class that is responsible for computations of the content rectangle of |
no outgoing calls
no test coverage detected