UNPKG

@wcardinal/wcardinal-geditor

Version:

WebGL-based graphic editor, tester and viewer for supervisory systems

21 lines 1.04 kB
import { __extends } from "tslib"; import { ECommandShapeProperty } from "./e-command-shape-property"; var ECommandShapePropertyTextSizeDelta = /** @class */ (function (_super) { __extends(ECommandShapePropertyTextSizeDelta, _super); function ECommandShapePropertyTextSizeDelta() { return _super !== null && _super.apply(this, arguments) || this; } ECommandShapePropertyTextSizeDelta.prototype.getProperty = function (shape, capability) { return shape.text.size; }; ECommandShapePropertyTextSizeDelta.prototype.setProperty = function (shape, capability, property) { shape.text.size = property; }; ECommandShapePropertyTextSizeDelta.prototype.initProperty = function (shape, capability, property) { var text = shape.text; text.size = Math.max(0, text.size + property); }; return ECommandShapePropertyTextSizeDelta; }(ECommandShapeProperty)); export { ECommandShapePropertyTextSizeDelta }; //# sourceMappingURL=e-command-shape-property-text-size-delta.js.map