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

Method point

external/.d3.js:18167–18184  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

18165 this._line = 1 - this._line;
18166 }
18167 point(x, y) {
18168 x = +x, y = +y;
18169 switch (this._point) {
18170 case 0: {
18171 this._point = 1;
18172 if (this._line) this._context.lineTo(x, y);
18173 else this._context.moveTo(x, y);
18174 break;
18175 }
18176 case 1: this._point = 2; // falls through
18177 default: {
18178 if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);
18179 else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);
18180 break;
18181 }
18182 }
18183 this._x0 = x, this._y0 = y;
18184 }
18185}
18186
18187class BumpRadial {

Callers 15

.d3.jsFile · 0.45
streamLineFunction · 0.45
boundsRingPointFunction · 0.45
circleStreamFunction · 0.45
clipRejoinFunction · 0.45
pointFunction · 0.45
pointLineFunction · 0.45
pointRingFunction · 0.45
ringEndFunction · 0.45
clipAntimeridianLineFunction · 0.45
clipLineFunction · 0.45

Calls 3

bezierCurveToMethod · 0.80
lineToMethod · 0.45
moveToMethod · 0.45

Tested by

no test coverage detected