igniteui-react-core
Version:
Ignite UI React Core.
30 lines (29 loc) • 1.3 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { EdgeClipper } from "./EdgeClipper";
import { Point_$type, markType } from "./type";
/**
* @hidden
*/
var BottomClipper = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(BottomClipper, _super);
function BottomClipper() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.m = 0;
return _this;
}
BottomClipper.prototype.e = function (a) {
return a.y <= this.m;
};
BottomClipper.prototype.k = function (a, b) {
return { $type: Point_$type, x: a.x + (b.x - a.x) * (this.m - a.y) / (b.y - a.y), y: this.m };
};
BottomClipper.$t = markType(BottomClipper, 'BottomClipper', EdgeClipper.$);
return BottomClipper;
}(EdgeClipper));
export { BottomClipper };