@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 ECommandChartAxisXPadding = /** @class */ (function (_super) {
__extends(ECommandChartAxisXPadding, _super);
function ECommandChartAxisXPadding() {
return _super !== null && _super.apply(this, arguments) || this;
}
ECommandChartAxisXPadding.prototype.getProperty = function (shape, capability) {
if (shape instanceof EShapeChartLine) {
return shape.axis.x.padding;
}
return 0;
};
ECommandChartAxisXPadding.prototype.setProperty = function (shape, capability, property) {
if (shape instanceof EShapeChartLine) {
shape.axis.x.padding = property;
}
};
ECommandChartAxisXPadding.prototype.isMergeable = function () {
return true;
};
return ECommandChartAxisXPadding;
}(ECommandShapePropertySimple));
export { ECommandChartAxisXPadding };
//# sourceMappingURL=e-command-chart-axis-x-padding.js.map