igniteui-react-core
Version:
Ignite UI React Core.
72 lines (71 loc) • 2.26 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 { GeometryData } from "./GeometryData";
import { markType } from "./type";
import { List$1 } from "./List$1";
import { PointData } from "./PointData";
/**
* @hidden
*/
export let LineGeometryData = /*@__PURE__*/ (() => {
class LineGeometryData extends GeometryData {
constructor() {
super(...arguments);
this._x1 = 0;
this._y1 = 0;
this._x2 = 0;
this._y2 = 0;
}
get_type() {
return "Line";
}
get type() {
return this.get_type();
}
get x1() {
return this._x1;
}
set x1(a) {
this._x1 = a;
}
get y1() {
return this._y1;
}
set y1(a) {
this._y1 = a;
}
get x2() {
return this._x2;
}
set x2(a) {
this._x2 = a;
}
get y2() {
return this._y2;
}
set y2(a) {
this._y2 = a;
}
a() {
return "x1: " + this.x1 + ", y1: " + this.y1 + ", x2: " + this.x2 + ", y2:" + this.y2;
}
scaleByViewport(a) {
this.x1 = (this.x1 - a.left) / a.width;
this.y1 = (this.y1 - a.top) / a.height;
this.x2 = (this.x2 - a.left) / a.width;
this.y2 = (this.y2 - a.top) / a.height;
}
getPointsOverride(a, b) {
let c = new List$1(PointData.$, 0);
a.add(c);
c.add(new PointData(this.x1, this.y1));
c.add(new PointData(this.x2, this.y2));
}
}
LineGeometryData.$t = /*@__PURE__*/ markType(LineGeometryData, 'LineGeometryData', GeometryData.$);
return LineGeometryData;
})();