ktongue's picture
download
raw
517 Bytes
import noop from "../noop.js";
function LinearClosed(context) {
this._context = context;
}
LinearClosed.prototype = {
areaStart: noop,
areaEnd: noop,
lineStart: function() {
this._point = 0;
},
lineEnd: function() {
if (this._point) this._context.closePath();
},
point: function(x, y) {
x = +x, y = +y;
if (this._point) this._context.lineTo(x, y);
else this._point = 1, this._context.moveTo(x, y);
}
};
export default function(context) {
return new LinearClosed(context);
}

Xet Storage Details

Size:
517 Bytes
·
Xet hash:
546edc20baf17781b92aa1cf65ecf4608765fc23bd16aa75c578dab4f021675b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.