Tldraw/packages/tlschema/src/shapes/TLFrameShape.ts

21 wiersze
534 B
TypeScript

import { T } from '@tldraw/validate'
import { createShapePropsMigrationSequence } from '../records/TLShape'
import { ShapePropsType, TLBaseShape } from './TLBaseShape'
/** @public */
export const frameShapeProps = {
w: T.nonZeroNumber,
h: T.nonZeroNumber,
name: T.string,
}
type TLFrameShapeProps = ShapePropsType<typeof frameShapeProps>
/** @public */
export type TLFrameShape = TLBaseShape<'frame', TLFrameShapeProps>
/** @internal */
export const frameShapeMigrations = createShapePropsMigrationSequence({
sequence: [],
})