@tldraw/tlschema
Version:
tldraw infinite canvas SDK (schema).
12 lines (9 loc) • 330 B
text/typescript
import { T } from '@tldraw/validate'
import { StyleProp } from './StyleProp'
/** @public */
export const DefaultTextAlignStyle = StyleProp.defineEnum('tldraw:textAlign', {
defaultValue: 'start',
values: ['start', 'middle', 'end'],
})
/** @public */
export type TLDefaultTextAlignStyle = T.TypeOf<typeof DefaultTextAlignStyle>