MCPcopy Create free account
hub / github.com/breck7/scroll / constructor

Method constructor

external/.d3.js:6065–6070  ·  view source on GitHub ↗
(digits)

Source from the content-addressed store, hash-verified

6063
6064let Path$1 = class Path {
6065 constructor(digits) {
6066 this._x0 = this._y0 = // start of current subpath
6067 this._x1 = this._y1 = null; // end of current subpath
6068 this._ = "";
6069 this._append = digits == null ? append$1 : appendRound$1(digits);
6070 }
6071 moveTo(x, y) {
6072 this._append`M${this._x0 = this._x1 = +x},${this._y0 = this._y1 = +y}`;
6073 }

Callers 1

Calls 1

appendRound$1Function · 0.85

Tested by

no test coverage detected