Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 补全element props ts 类型 #1282

Merged
merged 1 commit into from
Nov 21, 2021
Merged

feat: 补全element props ts 类型 #1282

merged 1 commit into from
Nov 21, 2021

Conversation

zengyue
Copy link
Member

@zengyue zengyue commented Nov 18, 2021

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

@lgtm-com
Copy link

lgtm-com bot commented Nov 18, 2021

This pull request fixes 2 alerts when merging ad37de9 into 15e6168 - view on LGTM.com

fixed alerts:

  • 2 for Unused variable, import, function or class

lineCap?: 'butt' | 'round' | 'square';
lineJoin?: 'round' | 'bevel' | 'miter';
lineDash?: number[];
interface Line extends LineAttrs {
[key: string]: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

什么鬼?

strokeStyle?: string; // 描边文本(strokeText)的颜色
lineHeight?: number;
lineWidth?: number; // 用于描边文本
rotate?: number; // 用于旋转文本
[key: string]: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

。。。。

@@ -156,3 +169,8 @@ export interface TextAttrs extends ShapeAttrs {
| 900;
fontVariant?: 'normal' | 'small-caps';
}

export interface CustomAttrs extends ShapeAttrs {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个我记得有定义一个 CustomProp 的,是对 this._attr 的定义

怎么又搞了个 CustomAttr?而且这里也没用到呀

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有吧,this._attr 是 graphic 里的 ElementProps, 这里是把所有的 shape 类型都 export 出来了

@lgtm-com
Copy link

lgtm-com bot commented Nov 18, 2021

This pull request fixes 2 alerts when merging 679a55c into 593b323 - view on LGTM.com

fixed alerts:

  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 18, 2021

This pull request fixes 2 alerts when merging 7af348f into 593b323 - view on LGTM.com

fixed alerts:

  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 18, 2021

This pull request fixes 2 alerts when merging fe8f65f into 593b323 - view on LGTM.com

fixed alerts:

  • 2 for Unused variable, import, function or class

@zengyue zengyue merged commit 12cc7f8 into v4.0.x Nov 21, 2021
@zengyue zengyue deleted the feat-improve-ts branch November 21, 2021 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants