kopia lustrzana https://github.com/Tldraw/Tldraw
21 wiersze
534 B
TypeScript
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: [],
|
|
})
|