@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
25 lines • 1.07 kB
JavaScript
import { __extends } from "tslib";
import { EShapeRuntimeImpl } from "@wcardinal/wcardinal-ui";
import { EShapeTable } from "./e-shape-table";
import { EShapeTableActionRuntime } from "./e-shape-table-action-runtime";
import { EShapeTableColumnValueRuntime } from "./e-shape-table-column-value-runtime";
var EShapeTableRuntime = /** @class */ (function (_super) {
__extends(EShapeTableRuntime, _super);
function EShapeTableRuntime(shape) {
var _this = _super.call(this, shape) || this;
if (shape instanceof EShapeTable) {
// Columns
var values = shape.column.values;
for (var i = 0, imax = values.length; i < imax; ++i) {
var value = values[i];
value.runtime = new EShapeTableColumnValueRuntime(value);
}
// Action
_this.actions.push(new EShapeTableActionRuntime(shape));
}
return _this;
}
return EShapeTableRuntime;
}(EShapeRuntimeImpl));
export { EShapeTableRuntime };
//# sourceMappingURL=e-shape-table-runtime.js.map