mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Deploying to gh-pages from @ 7c3269bdbe 🚀
This commit is contained in:
18
dist/lib/render/vector.js
vendored
Normal file
18
dist/lib/render/vector.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"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 /* 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 /* VECTOR */; };
|
||||
exports.isVector = isVector;
|
||||
//# sourceMappingURL=vector.js.map
|
||||
Reference in New Issue
Block a user