Tldraw/apps/examples/src/3-custom-config/CardShape.ts

11 wiersze
240 B
TypeScript

import { TLBaseShape, TLOpacityType } from '@tldraw/tldraw'
export type CardShape = TLBaseShape<
'card',
{
opacity: TLOpacityType // necessary for all shapes at the moment, others can be whatever you want!
w: number
h: number
}
>