Skip to content

Commit

Permalink
chore: update g version and snapshots (#6569)
Browse files Browse the repository at this point in the history
* chore: update g version

* test: add test about focusElement edge

* test: update snapshots
  • Loading branch information
Aarebecca authored Nov 28, 2024
1 parent e8f7455 commit ef1669e
Show file tree
Hide file tree
Showing 423 changed files with 181 additions and 13,938 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
]
},
"devDependencies": {
"@antv/g-canvas": "^2.0.29",
"@antv/g-plugin-rough-canvas-renderer": "^2.0.29",
"@antv/g-canvas": "^2.0.32",
"@antv/g-plugin-rough-canvas-renderer": "^2.0.32",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-typescript": "^7.25.9",
"@changesets/cli": "^2.27.10",
Expand All @@ -48,7 +48,7 @@
"@types/d3-hierarchy": "^3.1.7",
"@types/jest": "^29.5.14",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.17.7",
"@types/node": "^20.17.8",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"chalk": "^4.1.2",
Expand All @@ -65,7 +65,7 @@
"lint-staged": "^15.2.10",
"npm-run-all": "^4.1.5",
"open": "^10.1.0",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-packagejson": "^2.5.6",
"rimraf": "^5.0.10",
Expand Down
12 changes: 6 additions & 6 deletions packages/g6-extension-3d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
},
"dependencies": {
"@antv/g-device-api": "^1.6.13",
"@antv/g-plugin-3d": "^2.0.31",
"@antv/g-plugin-device-renderer": "^2.2.8",
"@antv/g-plugin-dragndrop": "^2.0.22",
"@antv/g-webgl": "^2.0.33",
"@antv/g-plugin-3d": "^2.0.34",
"@antv/g-plugin-device-renderer": "^2.2.11",
"@antv/g-plugin-dragndrop": "^2.0.25",
"@antv/g-webgl": "^2.0.36",
"@antv/layout": "1.2.14-beta.8",
"@antv/util": "^3.3.10"
},
"devDependencies": {
"@antv/g": "^6.1.11",
"@antv/g-canvas": "^2.0.29",
"@antv/g": "^6.1.14",
"@antv/g-canvas": "^2.0.32",
"@antv/g6": "workspace:^"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/g6-extension-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"type-check": "tsc --noEmit -p tsconfig.test.json"
},
"dependencies": {
"@antv/g": "^6.1.11",
"@antv/g-svg": "^2.0.24",
"@antv/react-g": "^2.0.27"
"@antv/g": "^6.1.14",
"@antv/g-svg": "^2.0.27",
"@antv/react-g": "^2.0.30"
},
"devDependencies": {
"@ant-design/icons": "^5.5.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/g6-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"type-check": "tsc --noEmit -p tsconfig.test.json"
},
"dependencies": {
"@antv/g": "^6.1.11",
"@antv/g-canvas": "^2.0.29",
"@antv/g": "^6.1.14",
"@antv/g-canvas": "^2.0.32",
"@antv/g6": "workspace:^",
"cac": "^6.7.14",
"canvas": "^2.11.2"
Expand Down
17 changes: 17 additions & 0 deletions packages/g6/__tests__/bugs/api-focus-element-edge.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { behaviorDragNode } from '@@/demos';
import { createDemoGraph } from '@@/utils';

it('api focusElement edge', async () => {
const graph = await createDemoGraph(behaviorDragNode, { animation: false });

graph.translateBy([100, 100]);
graph.zoomBy(2);

graph.focusElement('node-3');

await expect(graph).toMatchSnapshot(__filename);

graph.focusElement('node-3-node-4');

await expect(graph).toMatchSnapshot(__filename, 'focusElement edge');
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ef1669e

Please sign in to comment.