-
Notifications
You must be signed in to change notification settings - Fork 265
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
chore: release graphin 2.1.0 #266
Conversation
pomelo-nwu
commented
Jul 14, 2021
- Update g6 version to 4.3.4
- Fix Legend component logic
- Lock fatherjs version
- Fix Hull Components uuid issue
- Fix site undefined url
- Feat:add CreateEdge component
line149 函数注释与实际参数不一致 changedFiled -> changedField
chore(🆙): Upgrade React to v17.0.1
docs: fix typo [changedFiled]
@@ -35,7 +35,7 @@ export type ValuesOf<T extends any[]> = T[number]; | |||
|
|||
export const getProducts = ({ | |||
t, | |||
language, | |||
language = 'zh', |
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.
language可以做成枚举吧
import Graphin, { Utils } from '@antv/graphin'; | ||
import React from 'react'; |
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.
React的引用一般都放最上面吧?
const { options } = props; | ||
|
||
hullInstances = options.map((item) => { | ||
return graph.createHull(deepMergeCfg(defaultHullCfg, item)); | ||
hullInstances = options.map(item => { |
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.
这里需要加下过滤,如果传入的members的id中在画布中实际不存在,会导致报错。
@@ -93,7 +116,7 @@ const Hull: React.FunctionComponent<IHullProps> = (props) => { | |||
return () => { | |||
graph.on('afterupdateitem', handleAfterUpdateItem); | |||
}; | |||
}, []); | |||
}, [graph]); | |||
|
|||
return <div className="graphin-hull-container" />; |
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.
这个文件里没有看到有监听options的变化,如果options变了,是不是需要移除原有的轮廓、重新绘制呢
import React from 'react'; | ||
|
||
// @ts-ignore | ||
import { GraphinContext } from '@antv/graphin'; |
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.
这里为啥还需要@ts-ignore