Updates to code editor, utils

This commit is contained in:
Steve Ruiz 2021-06-24 15:59:56 +01:00
parent cbc26f2e06
commit 69bdab520a
10 changed files with 1296 additions and 114 deletions

View file

@ -1,13 +1,13 @@
import CodeShape from './index'
import { uniqueId } from 'utils'
import { RectangleShape, ShapeStyles, ShapeType } from 'types'
import { RectangleShape, ShapeProps, ShapeType } from 'types'
import { defaultStyle } from 'state/shape-styles'
/**
* ## Rectangle
*/
export default class Rectangle extends CodeShape<RectangleShape> {
constructor(props = {} as Partial<RectangleShape> & Partial<ShapeStyles>) {
constructor(props = {} as ShapeProps<RectangleShape>) {
super({
id: uniqueId(),
seed: Math.random(),