@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
26 lines • 1.1 kB
JavaScript
import { __extends } from "tslib";
import { ECommandShapePropertySimple } from "../../command/e-command-shape-property-simple";
import { EShapeChartLine } from "./e-shape-chart-line";
var ECommandChartAxisYPadding = /** @class */ (function (_super) {
__extends(ECommandChartAxisYPadding, _super);
function ECommandChartAxisYPadding() {
return _super !== null && _super.apply(this, arguments) || this;
}
ECommandChartAxisYPadding.prototype.getProperty = function (shape, capability) {
if (shape instanceof EShapeChartLine) {
return shape.axis.y.padding;
}
return 0;
};
ECommandChartAxisYPadding.prototype.setProperty = function (shape, capability, property) {
if (shape instanceof EShapeChartLine) {
shape.axis.y.padding = property;
}
};
ECommandChartAxisYPadding.prototype.isMergeable = function () {
return true;
};
return ECommandChartAxisYPadding;
}(ECommandShapePropertySimple));
export { ECommandChartAxisYPadding };
//# sourceMappingURL=e-command-chart-axis-y-padding.js.map