UNPKG

igniteui-react-core

Version:
83 lines (82 loc) 2.8 kB
/* 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 { DependencyObject } from "./DependencyObject"; import { INotifyPropertyChanged_$type, PropertyChangedEventArgs, String_$type, markType } from "./type"; import { List$1 } from "./List$1"; /** * @hidden */ export let ShapefileRecord = /*@__PURE__*/ (() => { class ShapefileRecord extends DependencyObject { constructor() { super(); this._shapeType = 0; this._fieldsNames = null; this._fieldsTypes = null; this.fields = null; this.points = null; this.propertyChanged = null; this._fieldValues = null; this._bounds = null; this.fieldsNames = new List$1(String_$type, 0); this.fieldsTypes = new List$1(String_$type, 0); } get shapeType() { return this._shapeType; } set shapeType(a) { this._shapeType = a; } get fieldsNames() { return this._fieldsNames; } set fieldsNames(a) { this._fieldsNames = a; } get fieldsTypes() { return this._fieldsTypes; } set fieldsTypes(a) { this._fieldsTypes = a; } q(a) { if (this.propertyChanged != null) { this.propertyChanged(this, new PropertyChangedEventArgs(a)); } } get fieldValues() { return this._fieldValues; } set fieldValues(a) { this._fieldValues = a; } get bounds() { return this._bounds; } set bounds(a) { this._bounds = a; } getFieldValue(a) { if (this.fields.containsKey(a)) { return this.fields.item(a); } return null; } setFieldValue(a, b) { if (this.fields.containsKey(a)) { this.fields.item(a, b); } else { this.fieldsNames.add(a); this.fieldsTypes.add("string"); this.fields.addItem(a, b); } } } ShapefileRecord.$t = /*@__PURE__*/ markType(ShapefileRecord, 'ShapefileRecord', DependencyObject.$, [INotifyPropertyChanged_$type]); return ShapefileRecord; })();