@@ -3,7 +3,7 @@ import type { ITickDataOpt } from '@visactor/vrender-components';
33import type { IBaseScale } from '@visactor/vscale' ;
44// eslint-disable-next-line no-duplicate-imports
55import { isContinuous } from '@visactor/vscale' ;
6- import type { IGroup , IGraphic } from '@visactor/vrender-core' ;
6+ import type { IGraphic } from '@visactor/vrender-core' ;
77// eslint-disable-next-line no-duplicate-imports
88import type {
99 IOrientType ,
@@ -24,7 +24,6 @@ import type { ISeries } from '../../series/interface';
2424import { ChartEvent } from '../../constant/event' ;
2525import { LayoutZIndex } from '../../constant/layout' ;
2626import { animationConfig } from '../../animation/utils' ;
27- import type { LooseFunction } from '@visactor/vutils' ;
2827// eslint-disable-next-line no-duplicate-imports
2928import {
3029 degreeToRadian ,
@@ -33,7 +32,6 @@ import {
3332 array ,
3433 get ,
3534 isArray ,
36- isBoolean ,
3735 isFunction ,
3836 isNil ,
3937 isValid ,
@@ -45,7 +43,6 @@ import type { ITransformOptions } from '@visactor/vdataset';
4543// eslint-disable-next-line no-duplicate-imports
4644import { DataView } from '@visactor/vdataset' ;
4745import { GridEnum } from '@visactor/vgrammar-core' ;
48- import type { IComponentMark } from '../../mark/component' ;
4946// eslint-disable-next-line no-duplicate-imports
5047import { registerComponentMark } from '../../mark/component' ;
5148import { Factory } from '../../core/factory' ;
@@ -56,6 +53,7 @@ import { GroupFadeOut, GroupFadeIn } from '@visactor/vrender-core';
5653import { scaleParser } from '../../data/parser/scale' ;
5754import { registerDataSetInstanceParser } from '../../data/register' ;
5855import { getFormatFunction } from '../util' ;
56+ import type { IComponentMark } from '../../mark/interface/mark' ;
5957
6058export abstract class AxisComponent < T extends ICommonAxisSpec & Record < string , any > = any > // FIXME: 补充公共类型,去掉 Record<string, any>
6159 extends BaseComponent < T >
@@ -561,7 +559,7 @@ export abstract class AxisComponent<T extends ICommonAxisSpec & Record<string, a
561559 // 处理纵轴的标题样式
562560 if ( autoRotate && isNil ( titleAngle ) ) {
563561 titleAngle = spec . orient === 'left' ? - 90 : 90 ;
564- titleTextStyle = DEFAULT_TITLE_STYLE [ spec . orient ] ;
562+ titleTextStyle = ( DEFAULT_TITLE_STYLE as any ) [ spec . orient ] ;
565563 }
566564 }
567565
0 commit comments