UNPKG

html2canvas-pro

Version:

Screenshots with JavaScript. Next generation!

18 lines 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isVector = exports.Vector = void 0; var Vector = /** @class */ (function () { function Vector(x, y) { this.type = 0 /* PathType.VECTOR */; this.x = x; this.y = y; } Vector.prototype.add = function (deltaX, deltaY) { return new Vector(this.x + deltaX, this.y + deltaY); }; return Vector; }()); exports.Vector = Vector; var isVector = function (path) { return path.type === 0 /* PathType.VECTOR */; }; exports.isVector = isVector; //# sourceMappingURL=vector.js.map