/*
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 * as tslib_1 from "tslib";
import { Base, markType } from "igniteui-angular-core/ES5/type";
import { SizeData } from "igniteui-angular-core/ES5/SizeData";
import { PointData } from "igniteui-angular-core/ES5/PointData";
/**
 * @hidden
 */
var TreemapLabelVisualData = /** @class */ (function (_super) {
    tslib_1.__extends(TreemapLabelVisualData, _super);
    function TreemapLabelVisualData() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._labelValue = null;
        _this._labelSize = null;
        _this._labelPosition = null;
        _this._appearance = null;
        return _this;
    }
    Object.defineProperty(TreemapLabelVisualData.prototype, "labelValue", {
        get: function () {
            return this._labelValue;
        },
        set: function (a) {
            this._labelValue = a;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TreemapLabelVisualData.prototype, "labelSize", {
        get: function () {
            return this._labelSize;
        },
        set: function (a) {
            this._labelSize = a;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TreemapLabelVisualData.prototype, "labelPosition", {
        get: function () {
            return this._labelPosition;
        },
        set: function (a) {
            this._labelPosition = a;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(TreemapLabelVisualData.prototype, "appearance", {
        get: function () {
            return this._appearance;
        },
        set: function (a) {
            this._appearance = a;
        },
        enumerable: true,
        configurable: true
    });
    TreemapLabelVisualData.prototype.scaleByViewport = function (a) {
        this.labelPosition = new PointData((this.labelPosition.x - a.left) / a.width, (this.labelPosition.y - a.top) / a.height);
        this.labelSize = new SizeData((this.labelSize.width) / a.width, (this.labelSize.height) / a.height);
    };
    TreemapLabelVisualData.prototype.serialize = function () {
        return "{ labelValue: '" + this.labelValue + "', labelSize: { width: " + this.labelSize.width + ", height: " + this.labelSize.height + "}, labelPosition: { x: " + this.labelPosition.x + ", y: " + this.labelPosition.y + "}, appearance: " + this.appearance.serialize() + "}";
    };
    TreemapLabelVisualData.$t = markType(TreemapLabelVisualData, 'TreemapLabelVisualData');
    return TreemapLabelVisualData;
}(Base));
export { TreemapLabelVisualData };
//# sourceMappingURL=TreemapLabelVisualData.js.map