Trims default false boolean props

This should reduce the size of files / saves, for example.
This commit is contained in:
Steve Ruiz 2021-07-04 09:47:37 +01:00
parent 17940d82d6
commit 48c659a68a
26 changed files with 24 additions and 155 deletions

View file

@ -10,7 +10,6 @@ export default class Rectangle extends CodeShape<RectangleShape> {
constructor(props = {} as ShapeProps<RectangleShape>) {
super({
id: uniqueId(),
parentId: (window as any).currentPageId,
type: ShapeType.Rectangle,
isGenerated: true,
@ -20,9 +19,6 @@ export default class Rectangle extends CodeShape<RectangleShape> {
size: [100, 100],
rotation: 0,
radius: 2,
isAspectRatioLocked: false,
isLocked: false,
isHidden: false,
...props,
style: {
...defaultStyle,