first commit
This commit is contained in:
36
src/index.ts
Normal file
36
src/index.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* 罗盘组件库入口文件
|
||||
*/
|
||||
|
||||
// 类型导出
|
||||
export type {
|
||||
Example,
|
||||
Sector,
|
||||
PolarPoint,
|
||||
AnnularSectorParams,
|
||||
CentroidResult,
|
||||
} from './types';
|
||||
|
||||
// 组件导出
|
||||
export { default as Luopan } from './Luopan.vue';
|
||||
|
||||
// 工具函数导出
|
||||
export {
|
||||
polarToXY,
|
||||
normalizeDeg,
|
||||
annularSectorCentroid,
|
||||
annularSectorPath,
|
||||
annularSectorInsetPath,
|
||||
calculateLabelRotation,
|
||||
generateSectorColor,
|
||||
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';
|
||||
Reference in New Issue
Block a user