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

refactor: simplify tree data conversion to graph data and adjust organizational chart node styles #2716

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

yvonneyx
Copy link
Collaborator

@yvonneyx yvonneyx commented Sep 27, 2024

  • 简化树数据转换为图数据,depth计算逻辑下沉到 G6
  • 调整组织架构图节点样式

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 112 kB atool
npm/[email protected] Transitive: environment, eval, filesystem, shell, unsafe +101 9.8 MB atool
npm/[email protected] Transitive: environment, filesystem, unsafe +32 1.42 MB simenb
npm/[email protected] None 0 5.73 kB atool
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +133 17.2 MB simenb
npm/[email protected] None 0 33.3 kB evilebottnawi
npm/[email protected] environment Transitive: filesystem +1 90.2 kB agatronic
npm/[email protected] eval, filesystem Transitive: environment +3 3.68 MB matthew-dean
npm/[email protected] Transitive: environment, filesystem, unsafe +39 2.8 MB sindresorhus
npm/[email protected] environment Transitive: filesystem, shell +23 1.61 MB mysticatea
npm/[email protected] environment 0 16.5 kB simonhaenisch
npm/[email protected] Transitive: filesystem +21 448 kB matzkoh
npm/[email protected] environment, filesystem, unsafe 0 11.2 MB prettier-bot
npm/[email protected] filesystem Transitive: environment +7 249 kB jounqin
npm/[email protected] Transitive: environment, filesystem, shell +45 3.41 MB iansu
npm/[email protected] None 0 14.7 kB wooorm
npm/[email protected] None 0 16.8 kB wooorm
npm/[email protected] None 0 21.7 kB wooorm
npm/[email protected] filesystem Transitive: environment +9 155 kB isaacs
npm/[email protected] None 0 83.5 kB evilebottnawi
npm/[email protected] filesystem +1 30.6 kB wooorm
npm/[email protected] filesystem +2 1.12 MB johnnyreilly
npm/[email protected] None 0 22.4 MB typescript-bot
npm/[email protected] None 0 85.7 kB wooorm
npm/[email protected] Transitive: environment +4 42.9 kB wooorm
npm/[email protected] environment, filesystem, network +1 1.25 MB valscion
npm/[email protected] environment, filesystem, unsafe Transitive: shell +11 191 kB evilebottnawi
npm/[email protected] environment, eval, network Transitive: filesystem +8 2.13 MB evilebottnawi
npm/[email protected] Transitive: environment, eval, filesystem, shell +21 10.1 MB evilebottnawi, jhnns, sokra, ...1 more
npm/[email protected] network 0 57.4 kB jakechampion
npm/[email protected] environment, filesystem +2 38 kB yyx990803

View full report↗︎

return measureTextSize(idOf(data), offset, font, minWidth, maxWidth);
};

options = {
node: {
style: {
component: function (data: NodeData) {
const depth = data.data?.depth as number;
const depth = data.depth as number;
Copy link
Member

Choose a reason for hiding this comment

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

感觉底层类型完善一下会更合适 NodeData

@lxfu1 lxfu1 merged commit 767bfa3 into v2 Sep 27, 2024
8 checks passed
@lxfu1 lxfu1 deleted the refactor/treeToGraphData branch September 27, 2024 02:44
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