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 { v4 as uuid } from 'uuid'
import * as vec from 'utils/vec'
import { uniqueId } from 'utils/utils'
import vec from 'utils/vec'
import { TextShape, ShapeType, FontSize } from 'types'
import { registerShapeUtils } from './index'
import { defaultStyle, getFontStyle, getShapeStyle } from 'lib/shape-styles'
@ -36,7 +36,7 @@ const text = registerShapeUtils<TextShape>({
create(props) {
return {
id: uuid(),
id: uniqueId(),
seed: Math.random(),
type: ShapeType.Text,
isGenerated: false,