@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
30 lines • 1.31 kB
JavaScript
import { __extends } from "tslib";
import { EShapeCopyPart, EShapeGroup } from "@wcardinal/wcardinal-ui";
import { EShapeChartAxis } from "./e-shape-chart-axis";
import { EShapeChartLineIds } from "./e-shape-chart-line-ids";
var EShapeChartLine = /** @class */ (function (_super) {
__extends(EShapeChartLine, _super);
function EShapeChartLine(mode, type) {
if (type === void 0) { type = EShapeChartLineIds.ID; }
var _this = _super.call(this, mode, type) || this;
_this.axis = new EShapeChartAxis();
return _this;
}
EShapeChartLine.prototype.copy = function (source, part) {
if (part === void 0) { part = EShapeCopyPart.ALL; }
var result = _super.prototype.copy.call(this, source, part);
if (source instanceof EShapeChartLine) {
this.axis.copy(source.axis);
}
return result;
};
EShapeChartLine.prototype.serialize = function (manager) {
var result = _super.prototype.serialize.call(this, manager);
var resource = result[15];
result[15] = manager.addResource("[".concat(this.axis.serialize(manager), ",").concat(resource, "]"));
return result;
};
return EShapeChartLine;
}(EShapeGroup));
export { EShapeChartLine };
//# sourceMappingURL=e-shape-chart-line.js.map