{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../src/geometry/label/interface.ts"],"names":[],"mappings":"","sourcesContent":["import { Coordinate } from '../../dependents';\nimport { Datum, GeometryLabelCfg, MappingDatum, Point } from '../../interface';\n\nexport type TextAlign = 'start' | 'center' | 'end' | 'left' | 'right';\n/** 去除 readonly 修饰 */\nexport type Writeable = { -readonly [P in keyof T]: T[P] };\nexport interface LabelCfg extends Omit {\n content?: any;\n readonly position?: 'top' | 'bottom' | 'middle' | 'left' | 'right';\n readonly offset?: number;\n readonly id: string;\n readonly elementId: string;\n readonly data: Datum;\n readonly mappingData: MappingDatum;\n readonly coordinate: Coordinate;\n}\n\nexport interface LabelPointCfg {\n /** labelPoint.x */\n x?: number;\n /** labelPoint.y */\n y?: number;\n readonly start?: Point;\n readonly color?: string;\n readonly textAlign?: TextAlign;\n readonly textBaseline?: string;\n readonly angle?: number;\n readonly r?: number;\n content?: any;\n rotate?: number;\n}\n\n/**\n * 绘制 label 的 item\n */\nexport interface LabelItem extends LabelCfg, LabelPointCfg {\n /** 牵引线 */\n labelLine?: null | boolean | { style?: object; path?: string };\n}\n\n/**\n * polar labelItem\n */\nexport interface PolarLabelItem extends LabelItem {\n /** 占比 */\n readonly percent?: number;\n /** 是否不可见 */\n invisible?: boolean;\n}\n"]}