Trims default false boolean props
This should reduce the size of files / saves, for example.
This commit is contained in:
parent
17940d82d6
commit
48c659a68a
26 changed files with 24 additions and 155 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue