UNPKG

@antv/f2

Version:

Charts for mobile visualization.

25 lines 644 B
import { __extends } from "tslib"; import Base from './base'; var Rect = /** @class */function (_super) { __extends(Rect, _super); function Rect() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'rect'; return _this; } Rect.prototype.update = function (option) { _super.prototype.update.call(this, option); var _a = this, left = _a.left, top = _a.top, width = _a.width, height = _a.height; var x = [left, left + width]; var y = [top + height, top]; this.x = x; this.y = y; return this; }; return Rect; }(Base); export default Rect;