{
  "version": 3,
  "sources": ["../../src/styles/TLHorizontalAlignStyle.ts"],
  "sourcesContent": ["import { T } from '@tldraw/validate'\nimport { StyleProp } from './StyleProp'\n\n/**\n * Default horizontal alignment style property used by tldraw shapes for text positioning.\n * Controls how text content is horizontally aligned within shape boundaries.\n *\n * Available values:\n * - `start` - Align text to the start (left in LTR, right in RTL)\n * - `middle` - Center text horizontally\n * - `end` - Align text to the end (right in LTR, left in RTL)\n * - `start-legacy` - Legacy start alignment (deprecated)\n * - `end-legacy` - Legacy end alignment (deprecated)\n * - `middle-legacy` - Legacy middle alignment (deprecated)\n *\n * @example\n * ```ts\n * import { DefaultHorizontalAlignStyle } from '@tldraw/tlschema'\n *\n * // Use in shape props definition\n * interface MyTextShapeProps {\n *   align: typeof DefaultHorizontalAlignStyle\n *   // other props...\n * }\n *\n * // Create a shape with center-aligned text\n * const textShape = {\n *   // ... other properties\n *   props: {\n *     align: 'middle' as const,\n *     // ... other props\n *   }\n * }\n * ```\n *\n * @public\n */\nexport const DefaultHorizontalAlignStyle = StyleProp.defineEnum('tldraw:horizontalAlign', {\n\tdefaultValue: 'middle',\n\tvalues: ['start', 'middle', 'end', 'start-legacy', 'end-legacy', 'middle-legacy'],\n})\n\n/**\n * Type representing a default horizontal alignment style value.\n * This is a union type of all available horizontal alignment options.\n *\n * @example\n * ```ts\n * import { TLDefaultHorizontalAlignStyle } from '@tldraw/tlschema'\n *\n * // Valid horizontal alignment values\n * const leftAlign: TLDefaultHorizontalAlignStyle = 'start'\n * const centerAlign: TLDefaultHorizontalAlignStyle = 'middle'\n * const rightAlign: TLDefaultHorizontalAlignStyle = 'end'\n *\n * // Use in a function parameter\n * function setTextAlignment(align: TLDefaultHorizontalAlignStyle) {\n *   // Apply horizontal alignment to text\n * }\n * ```\n *\n * @public\n */\nexport type TLDefaultHorizontalAlignStyle = T.TypeOf<typeof DefaultHorizontalAlignStyle>\n"],
  "mappings": "AACA,SAAS,iBAAiB;AAoCnB,MAAM,8BAA8B,UAAU,WAAW,0BAA0B;AAAA,EACzF,cAAc;AAAA,EACd,QAAQ,CAAC,SAAS,UAAU,OAAO,gBAAgB,cAAc,eAAe;AACjF,CAAC;",
  "names": []
}
