-
Notifications
You must be signed in to change notification settings - Fork 649
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
Conversation
This pull request fixes 2 alerts when merging ad37de9 into 15e6168 - view on LGTM.com fixed alerts:
|
lineCap?: 'butt' | 'round' | 'square'; | ||
lineJoin?: 'round' | 'bevel' | 'miter'; | ||
lineDash?: number[]; | ||
interface Line extends LineAttrs { | ||
[key: string]: any; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个我记得有定义一个 CustomProp 的,是对 this._attr 的定义
怎么又搞了个 CustomAttr?而且这里也没用到呀
There was a problem hiding this comment.
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 出来了
ad37de9
to
679a55c
Compare
This pull request fixes 2 alerts when merging 679a55c into 593b323 - view on LGTM.com fixed alerts:
|
679a55c
to
7af348f
Compare
This pull request fixes 2 alerts when merging 7af348f into 593b323 - view on LGTM.com fixed alerts:
|
7af348f
to
fe8f65f
Compare
This pull request fixes 2 alerts when merging fe8f65f into 593b323 - view on LGTM.com fixed alerts:
|
Checklist
npm test
passesDescription of change