Improves file saving / page saving and loading
This commit is contained in:
parent
7e03adcd52
commit
4ce2b8cc6b
68 changed files with 1166 additions and 997 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue