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