35 lines
693 B
TypeScript
35 lines
693 B
TypeScript
/**
|
|
* 罗盘组件库入口文件
|
|
*/
|
|
|
|
// 类型导出
|
|
export type {
|
|
Example,
|
|
Sector,
|
|
PolarPoint,
|
|
AnnularSectorParams,
|
|
CentroidResult,
|
|
} from './types';
|
|
|
|
// 组件导出
|
|
export { default as Luopan } from './Luopan.vue';
|
|
|
|
// 工具函数导出
|
|
export {
|
|
polarToXY,
|
|
normalizeDeg,
|
|
annularSectorCentroid,
|
|
annularSectorPath,
|
|
annularSectorInsetPath,
|
|
generateTextPath,
|
|
generateVerticalTextPath,
|
|
getTextColorForBackground,
|
|
} from './utils';
|
|
|
|
// Composables 导出
|
|
export { useLuopan } from './composables/useLuopan';
|
|
export type { UseLuopanReturn } from './composables/useLuopan';
|
|
|
|
// 常量导出
|
|
export { EXAMPLES, DEFAULT_SIZE, SECTOR_INSET_DISTANCE } from './constants';
|