2022-05-27 21:59:51 +02:00
|
|
|
import {editorStore} from './store'
|
2022-10-16 18:02:35 +02:00
|
|
|
import type {ISheetObject} from '@theatre/core'
|
2022-05-04 17:10:42 +02:00
|
|
|
|
2022-05-27 21:59:51 +02:00
|
|
|
export const refreshSnapshot = editorStore.getState().createSnapshot
|
2022-05-16 12:43:45 +02:00
|
|
|
|
2022-10-16 18:02:35 +02:00
|
|
|
export const makeStoreKey = (sheetObjectAddress: ISheetObject['address']) =>
|
|
|
|
`${sheetObjectAddress.sheetId}:${sheetObjectAddress.sheetInstanceId}:${sheetObjectAddress.objectKey}`
|