Stubs tests. Updates types for controls.

This commit is contained in:
Steve Ruiz 2021-06-25 11:28:52 +01:00
parent 32922b3f85
commit 85dc3028b4
33 changed files with 1391 additions and 1191 deletions

View file

@ -3,9 +3,8 @@ import { uniqueId } from 'utils'
import { RectangleShape, ShapeProps, ShapeType } from 'types'
import { defaultStyle } from 'state/shape-styles'
/**
* ## Rectangle
*/
/* ----------------- Start Copy Here ---------------- */
export default class Rectangle extends CodeShape<RectangleShape> {
constructor(props = {} as ShapeProps<RectangleShape>) {
super({
@ -24,7 +23,10 @@ export default class Rectangle extends CodeShape<RectangleShape> {
isLocked: false,
isHidden: false,
...props,
style: { ...defaultStyle, ...props.style },
style: {
...defaultStyle,
...props.style,
},
})
}