UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

61 lines (60 loc) 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVExcelRange = void 0; /** * Class defining the range that should be used when loading data from an Excel sheet. */ class RVExcelRange { constructor(locX, locY, lenX, lenY) { this._locationX = 0; this._locationY = 0; this._lengthX = 0; this._lengthY = 0; this._locationX = locX; this._locationY = locY; this._lengthX = lenX; this._lengthY = lenY; } /** @hidden */ static fromJson(json) { if (!json) return null; var r = new RVExcelRange(0, 0, 0, 0); r._locationX = json["LocationX"]; r._locationY = json["LocationY"]; r._lengthX = json["LengthX"]; r._lengthY = json["LengthY"]; return r; } /** @hidden */ toJson() { var json = {}; json["LocationX"] = this._locationX; json["LocationY"] = this._locationY; json["LengthX"] = this._lengthX; json["LengthY"] = this._lengthY; return json; } get locationX() { return this._locationX; } get locationY() { return this._locationY; } get lengthX() { return this._lengthX; } get lengthY() { return this._lengthY; } /** @hidden */ _getWrapper() { let wrapper = new $.ig.RVExcelRangeInternal(); wrapper.locationX(this.locationX); wrapper.locationY(this.locationY); wrapper.lengthX(this.lengthX); wrapper.lengthY(this.lengthY); return wrapper; } } exports.RVExcelRange = RVExcelRange;