UNPKG

ojos

Version:

High level API on top of Mirada (opencv.js) supporting bth browser and node.

35 lines 1.44 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var abstractOperation_1 = require("./abstractOperation"); /** * draws a simple or filled circle with a given center and radius. */ var Circle = /** @class */ (function (_super) { __extends(Circle, _super); function Circle() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.name = "Circle"; _this.description = "Draws a simple or filled circle with a given center and radius."; _this.noDst = true; return _this; } Circle.prototype._exec = function (o) { cv.circle(o.dst, o.center, o.radius, o.color, o.thickness || 1, o.lineType || cv.LINE_AA, o.shift || 0); }; return Circle; }(abstractOperation_1.AbstractOperation)); exports.Circle = Circle; //# sourceMappingURL=circle.js.map