MCPcopy Index your code
hub / github.com/microsoft/SandDance / rect

Method rect

docs/app/js/sanddance-app.js:140285–140287  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

140283 this._ += `A${r},${r},0,1,1,${x - r},${y}A${r},${r},0,1,1,${this._x1 = x0},${this._y1 = y0}`;
140284 }
140285 rect(x, y, w, h) {
140286 this._ += `M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}h${+w}v${+h}h${-w}Z`;
140287 }
140288 value() {
140289 return this._ || null;
140290 }

Callers 5

sanddance-app.jsFile · 0.45
rectangle1Function · 0.45
clipGroupFunction · 0.45
clipToBoundsFunction · 0.45
renderBoundsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected