1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Fix tslint errors

This commit is contained in:
tobspr
2020-05-14 08:56:18 +02:00
parent cf5d776270
commit 85951615a9
17 changed files with 41 additions and 200 deletions

View File

@@ -143,11 +143,7 @@ export class ShapeDefinitionManager extends BasicSerializableObject {
*/
getDefinitionFromSimpleShapes(subShapes, color = enumColors.uncolored) {
const shapeLayer = /** @type {import("./shape_definition").ShapeLayer} */ (subShapes.map(
subShape => ({
subShape,
rotation: 0,
color,
})
subShape => ({ subShape, color })
));
return this.registerOrReturnHandle(new ShapeDefinition({ layers: [shapeLayer] }));