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

chore: release graphin 2.1.0 #266

Merged
merged 21 commits into from
Jul 14, 2021
Merged

chore: release graphin 2.1.0 #266

merged 21 commits into from
Jul 14, 2021

Conversation

pomelo-nwu
Copy link
Member

  • 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

@pomelo-nwu pomelo-nwu merged commit 55f1711 into master Jul 14, 2021
@pomelo-nwu pomelo-nwu deleted the release/2.1.0 branch July 14, 2021 06:23
@@ -35,7 +35,7 @@ export type ValuesOf<T extends any[]> = T[number];

export const getProducts = ({
t,
language,
language = 'zh',
Copy link
Member

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';
Copy link
Member

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 => {
Copy link
Member

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" />;
Copy link
Member

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';
Copy link
Member

Choose a reason for hiding this comment

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

这里为啥还需要@ts-ignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants