UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

38 lines 1.1 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const TkBaseWidget_1 = __importDefault(require("./TkBaseWidget")); class TkLayoutCellWidget extends TkBaseWidget_1.default { type = 'layoutCell'; cell; constructor(options) { super({ shouldLockHeightWithParent: true, shouldLockWidthWithParent: true, ...options, }); this.cell = options.termKitElement; this.cell.__widget = this; } getId() { return this.cell.id; } getTermKitElement() { return this.cell; } getFrame() { return { left: this.cell.outputDst.x, top: this.cell.outputDst.y, width: this.cell.inputWidth, height: this.cell.inputHeight, }; } setFrame() { this.sizeLockedChildren(); } } exports.default = TkLayoutCellWidget; //# sourceMappingURL=TkLayoutCellWidget.js.map