MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / constructor

Method constructor

src/dom_rect_read_only.ts:35–40  ·  view source on GitHub ↗

* Creates a new DOMRectReadOnly.

(x = 0, y = 0, width = 0, height = 0)

Source from the content-addressed store, hash-verified

33 * Creates a new DOMRectReadOnly.
34 */
35 constructor(x = 0, y = 0, width = 0, height = 0) {
36 this.x = x;
37 this.y = y;
38 this.width = width;
39 this.height = height;
40 }
41
42 /**
43 * The top edge of the rectangle.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected