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 { 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue