kopia lustrzana https://github.com/Tldraw/Tldraw
22 wiersze
571 B
TypeScript
22 wiersze
571 B
TypeScript
import { T } from '@tldraw/validate'
|
|
import { createShapePropsMigrationSequence } from '../records/TLShape'
|
|
import { RecordPropsType } from '../recordsWithProps'
|
|
import { TLBaseShape } from './TLBaseShape'
|
|
|
|
/** @public */
|
|
export const frameShapeProps = {
|
|
w: T.nonZeroNumber,
|
|
h: T.nonZeroNumber,
|
|
name: T.string,
|
|
}
|
|
|
|
type TLFrameShapeProps = RecordPropsType<typeof frameShapeProps>
|
|
|
|
/** @public */
|
|
export type TLFrameShape = TLBaseShape<'frame', TLFrameShapeProps>
|
|
|
|
/** @public */
|
|
export const frameShapeMigrations = createShapePropsMigrationSequence({
|
|
sequence: [],
|
|
})
|