diff --git a/src/Shape.js b/src/Shape.js index 45315e2..e538abe 100644 --- a/src/Shape.js +++ b/src/Shape.js @@ -137,4 +137,13 @@ export class Shape { // TODO: Make sure that it's correct throw new Error('render() method must be implemented'); } + + /** + * Create new shape instance + * @param {*} args + * @returns {Shape} + */ + static create(...args) { + return new this(...args); + } }