Skip to content

Commit

Permalink
fix: replace d3 with @antv/vendor (#6741)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc authored Jan 23, 2025
1 parent ba4f1e1 commit 959190a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/g6/__tests__/demos/case-why-do-cats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Renderer as CanvasRenderer } from '@antv/g-canvas';
import { Plugin as PluginRoughCanvasRenderer } from '@antv/g-plugin-rough-canvas-renderer';
import type { ComboData, GraphData, NodeData } from '@antv/g6';
import { BaseLayout, ExtensionCategory, Graph, register } from '@antv/g6';
import { hierarchy, pack } from 'd3-hierarchy';
import { hierarchy, pack } from '@antv/vendor/d3-hierarchy';

export const caseWhyDoCats: TestCase = async (context) => {
const style = document.createElement('style');
Expand Down
1 change: 1 addition & 0 deletions packages/g6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@antv/g-webgl": "^2.0.36",
"@antv/layout-gpu": "^1.1.7",
"@antv/layout-wasm": "^1.4.2",
"@antv/vendor": "^1.0.3",
"@types/hull.js": "^1.0.4",
"@types/xmlserializer": "^0.6.6",
"cross-env": "^7.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Renderer as CanvasRenderer } from '@antv/g-canvas';
import { Plugin as PluginRoughCanvasRenderer } from '@antv/g-plugin-rough-canvas-renderer';
import { BaseLayout, ExtensionCategory, Graph, register } from '@antv/g6';
import { hierarchy, pack } from 'd3-hierarchy';
import { hierarchy, pack } from '@antv/vendor/d3-hierarchy';

const style = document.createElement('style');
style.innerHTML = `
Expand Down

0 comments on commit 959190a

Please sign in to comment.