@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
18 lines • 727 B
JavaScript
import { __extends } from "tslib";
import { createPolygon } from "@wcardinal/wcardinal-ui";
import { EToolShapeCreateLine } from "./e-tool-shape-create-line";
var EToolShapeCreatePolygon = /** @class */ (function (_super) {
__extends(EToolShapeCreatePolygon, _super);
function EToolShapeCreatePolygon() {
return _super !== null && _super.apply(this, arguments) || this;
}
EToolShapeCreatePolygon.prototype.toShape = function (values) {
if (6 <= values.length) {
return createPolygon(values);
}
return null;
};
return EToolShapeCreatePolygon;
}(EToolShapeCreateLine));
export { EToolShapeCreatePolygon };
//# sourceMappingURL=e-tool-shape-create-polygon.js.map