"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SObjectItem = void 0; const lib_1 = require("@persagy-web/draw/lib"); const __1 = require(".."); class SObjectItem extends __1.SGraphItem { constructor() { super(...arguments); this.anchorList = []; this._width = 64; this._height = 64; this.origin = new lib_1.SPoint(); } get width() { return this._width; } set width(v) { if (v > 0) { if (v != this._width) { let w = this._width; this._width = v; this.onResize(new lib_1.SSize(w, this._height), new lib_1.SSize(this._width, this._height)); } } } get height() { return this._height; } set height(v) { if (v > 0) { if (v != this._height) { let h = this._height; this._height = v; this.onResize(new lib_1.SSize(this._width, h), new lib_1.SSize(this._width, this._height)); } } } onResize(oldSize, newSize) { } } exports.SObjectItem = SObjectItem;