"use strict";
cc._RF.push(module, 'a54702UNV9NA7pYgQd6eA5/', 'lq_data');
// Script/lq_base/data/lq_data.ts

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LQPlatformData = exports.LQShareData = exports.LQNativeComponent = exports.LQRect = void 0;
var Vec2 = cc.Vec2;
var Rect = cc.Rect;
var LQRect = /** @class */ (function () {
    function LQRect(x, y, width, height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
        this.half_width = width * 0.5;
        this.half_height = height * 0.5;
    }
    LQRect.prototype.top_left = function () {
        return new Vec2(this.x - this.half_width, this.y + this.half_height);
    };
    LQRect.prototype.top_right = function () {
        return new Vec2(this.x + this.half_width, this.y + this.half_height);
    };
    LQRect.prototype.bottom_left = function () {
        return new Vec2(this.x - this.half_width, this.y - this.half_height);
    };
    LQRect.prototype.bottom_right = function () {
        return new Vec2(this.x + this.half_width, this.y - this.half_height);
    };
    LQRect.prototype.pos = function () {
        return new Vec2(this.x, this.y);
    };
    LQRect.prototype.sub = function (pos) {
        return new Vec2(pos.x - this.x, pos.y - this.y);
    };
    LQRect.prototype.add = function (pos) {
        return new Vec2(pos.x + this.x, pos.y + this.y);
    };
    LQRect.prototype.to_cocos_rect = function () {
        return new Rect(this.x - this.half_width, this.y - this.half_height, this.width, this.height);
    };
    return LQRect;
}());
exports.LQRect = LQRect;
var LQNativeComponent = /** @class */ (function () {
    function LQNativeComponent() {
        this.node_btn_arr = [];
    }
    return LQNativeComponent;
}());
exports.LQNativeComponent = LQNativeComponent;
var LQShareData = /** @class */ (function () {
    function LQShareData(obj) {
        if (obj.title) {
            this.title = obj.title;
        }
        if (obj.remote_url) {
            this.remote_url = obj.remote_url;
        }
        if (obj.url_id) {
            this.url_id = obj.url_id;
        }
        if (obj.query) {
            this.query = obj.query;
        }
        if (obj.content) {
            this.content = obj.content;
        }
        if (obj.extra) {
            this.extra = obj.extra;
        }
        if (obj.type) {
            this.type = obj.type;
        }
    }
    return LQShareData;
}());
exports.LQShareData = LQShareData;
var LQPlatformData = /** @class */ (function () {
    function LQPlatformData() {
    }
    return LQPlatformData;
}());
exports.LQPlatformData = LQPlatformData;

cc._RF.pop();