Improves file saving / page saving and loading

This commit is contained in:
Steve Ruiz 2021-06-16 13:09:45 +01:00
parent 7e03adcd52
commit 4ce2b8cc6b
68 changed files with 1166 additions and 997 deletions

View file

@ -1,5 +1,5 @@
import CodeShape from './index'
import { v4 as uuid } from 'uuid'
import { uniqueId } from 'utils/utils'
import { EllipseShape, ShapeType } from 'types'
import { vectorToPoint } from 'utils/utils'
import { defaultStyle } from 'lib/shape-styles'
@ -9,7 +9,7 @@ export default class Ellipse extends CodeShape<EllipseShape> {
props.point = vectorToPoint(props.point)
super({
id: uuid(),
id: uniqueId(),
seed: Math.random(),
parentId: (window as any).currentPageId,
type: ShapeType.Ellipse,