Skip to content

Commit

Permalink
feat: 升级g2与g2Plot版本
Browse files Browse the repository at this point in the history
  • Loading branch information
Leannechn committed Sep 27, 2021
1 parent 556d7c4 commit 0b34c3b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 29 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bizcharts",
"version": "4.1.11",
"version": "4.1.12-beta.1",
"description": "bizcharts",
"keywords": [
"bizcharts",
Expand Down Expand Up @@ -46,8 +46,8 @@
},
"dependencies": {
"@antv/component": "*",
"@antv/g2": "4.1.19",
"@antv/g2plot": "2.3.25",
"@antv/g2": "4.1.29",
"@antv/g2plot": "2.3.35",
"@antv/util": "*",
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.10",
Expand Down
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ registerEngine('svg', SVGEngine);

// @ts-ignore
export * from '@antv/g2/lib/core';
export const VERSION = '4.1.11';
export const VERSION = '4.1.12-beta.1';



Expand Down
2 changes: 1 addition & 1 deletion unittest/plots/GroupedRoseChart-spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe('Plots-GroupedRoseChart', () => {
}
/>);
expect(chart.options).toMatchSnapshot();
cleanup();
// cleanup();
});

});
16 changes: 8 additions & 8 deletions unittest/plots/StackedRoseChart-spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Plots-StackedRoseChart', () => {
}
/>)
expect(chart.options).toMatchSnapshot();
cleanup();
// cleanup();
});

test('老版本categoryField,radiusField,stackField --> xField,yField,seriesField', () => {
Expand All @@ -61,7 +61,7 @@ describe('Plots-StackedRoseChart', () => {
expect(chart.options.xField).toBe('月份');
expect(chart.options.yField).toBe('月均降雨量');
expect(chart.options.seriesField).toBe('name');
cleanup();
// cleanup();
});


Expand Down Expand Up @@ -92,7 +92,7 @@ describe('Plots-StackedRoseChart', () => {
}
/>);
expect(chart.options).toMatchSnapshot();
cleanup();
// cleanup();
});


Expand Down Expand Up @@ -132,7 +132,7 @@ describe('Plots-StackedRoseChart', () => {
expect(fn).not.toHaveBeenCalled();
expect(fn2).toHaveBeenCalled();
expect(chart.options).toMatchSnapshot();
cleanup();
// cleanup();
});


Expand Down Expand Up @@ -171,7 +171,7 @@ describe('Plots-StackedRoseChart', () => {
showMarkers: false,
visible: true,
});
cleanup();
// cleanup();
});

test('label-堆叠图', () => {
Expand All @@ -194,7 +194,7 @@ describe('Plots-StackedRoseChart', () => {
}}
/>);
expect(chart.options).toMatchSnapshot();
cleanup();
// cleanup();
});

test('label-inner', () => {
Expand All @@ -211,7 +211,7 @@ describe('Plots-StackedRoseChart', () => {
}}
/>);
expect(chart.options).toMatchSnapshot();
cleanup();
// cleanup();
});

test('label-outer', () => {
Expand All @@ -227,7 +227,7 @@ describe('Plots-StackedRoseChart', () => {
}}
/>);
expect(chart.options).toMatchSnapshot();
cleanup();
// cleanup();
});

});
Expand Down
4 changes: 0 additions & 4 deletions unittest/plots/__snapshots__/GroupedRoseChart-spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ Object {
"offset": -15,
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"renderer": "canvas",
Expand Down Expand Up @@ -229,7 +228,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"renderer": "canvas",
Expand Down Expand Up @@ -361,7 +359,6 @@ Object {
"visible": true,
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"renderer": "canvas",
Expand Down Expand Up @@ -821,7 +818,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"meta": Object {
Expand Down
7 changes: 0 additions & 7 deletions unittest/plots/__snapshots__/RoseChart-spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Object {
"visible": true,
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"padding": Array [
Expand Down Expand Up @@ -102,7 +101,6 @@ Object {
"visible": true,
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"padding": Array [
Expand Down Expand Up @@ -173,7 +171,6 @@ Object {
"visible": true,
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"padding": Array [
Expand Down Expand Up @@ -598,7 +595,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"padding": Array [
Expand Down Expand Up @@ -672,7 +668,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"meta": Object {
Expand Down Expand Up @@ -746,7 +741,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"padding": Array [
Expand Down Expand Up @@ -811,7 +805,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"padding": Array [
Expand Down
5 changes: 0 additions & 5 deletions unittest/plots/__snapshots__/StackedRoseChart-spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"meta": Object {
Expand Down Expand Up @@ -243,7 +242,6 @@ Object {
"visible": true,
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"renderer": "canvas",
Expand Down Expand Up @@ -367,7 +365,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"renderer": "canvas",
Expand Down Expand Up @@ -499,7 +496,6 @@ Object {
"visible": true,
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"renderer": "canvas",
Expand Down Expand Up @@ -958,7 +954,6 @@ Object {
},
},
"legend": Object {
"offsetX": -10,
"position": "right",
},
"renderer": "canvas",
Expand Down

0 comments on commit 0b34c3b

Please sign in to comment.