kopia lustrzana https://github.com/Tldraw/Tldraw
28 wiersze
418 B
TypeScript
28 wiersze
418 B
TypeScript
import { SetValue } from '../util-types'
|
|
|
|
/** @public */
|
|
export const TL_STYLE_TYPES = new Set([
|
|
'color',
|
|
'labelColor',
|
|
'dash',
|
|
'fill',
|
|
'size',
|
|
'font',
|
|
'align',
|
|
'verticalAlign',
|
|
'icon',
|
|
'geo',
|
|
'arrowheadStart',
|
|
'arrowheadEnd',
|
|
'spline',
|
|
] as const)
|
|
|
|
/** @public */
|
|
export type TLStyleType = SetValue<typeof TL_STYLE_TYPES>
|
|
|
|
/** @public */
|
|
export interface TLBaseStyle {
|
|
type: TLStyleType
|
|
icon: string
|
|
}
|