提交 6dc3aa05 编写于 作者: 1 100pah

ts: rename Text to TSpan

上级 32a6f76a
......@@ -36,8 +36,8 @@ import {
UserDefinedToolboxFeature
} from './featureManager';
import { getUID } from '../../util/component';
import { RichText } from 'zrender/src/export';
import Displayable from 'zrender/src/graphic/Displayable';
import RichText from 'zrender/src/graphic/RichText';
type IconPath = ToolboxFeatureModel['iconPaths'][string];
......
......@@ -18,8 +18,6 @@
*/
import * as zrUtil from 'zrender/src/core/util';
// import Group from 'zrender/src/graphic/Group';
import Text from 'zrender/src/graphic/Text';
import ExtensionAPI from '../../ExtensionAPI';
import { ZRenderType } from 'zrender/src/zrender';
import { TooltipOption } from './TooltipModel';
......
......@@ -20,7 +20,7 @@
import * as graphicUtil from '../../util/graphic';
import Model from '../Model';
import { LabelOption, ColorString } from '../../util/types';
import { RichText } from 'zrender/src/export';
import RichText from 'zrender/src/graphic/RichText';
const PATH_COLOR = ['textStyle', 'color'] as const;
......
......@@ -42,7 +42,7 @@ import { AnimationEasing } from 'zrender/src/animation/easing';
import { LinearGradientObject } from 'zrender/src/graphic/LinearGradient';
import { RadialGradientObject } from 'zrender/src/graphic/RadialGradient';
import { RectLike } from 'zrender/src/core/BoundingRect';
import { TextStyleProps } from 'zrender/src/graphic/Text';
import { TSpanStyleProps } from 'zrender/src/graphic/TSpan';
import { PathStyleProps } from 'zrender/src/graphic/Path';
import { ImageStyleProps } from 'zrender/src/graphic/Image';
import RichText, { RichTextStyleProps } from 'zrender/src/graphic/RichText';
......@@ -78,7 +78,7 @@ export type ZRElementEvent = ElementEvent;
export type ZRRectLike = RectLike;
export type ZRStyleProps = PathStyleProps | ImageStyleProps | TextStyleProps | RichTextStyleProps;
export type ZRStyleProps = PathStyleProps | ImageStyleProps | TSpanStyleProps | RichTextStyleProps;
// ComponentFullType can be:
// 'xxx.yyy': means ComponentMainType.ComponentSubType.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册