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