Skip to content

Commit ee2c3b8

Browse files
authored
revert: limitInPlot (#1891)
* revert: limitInPlot * chore: 2.0.9 * chore: fix ci
1 parent 39ed3ac commit ee2c3b8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

__tests__/bugs/issue-1882-spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ describe('#1882', () => {
2727

2828
area.render();
2929

30-
expect(area.chart.limitInPlot).toBe(true);
31-
expect(area.chart.middleGroup.get('clipShape')).toBeDefined();
30+
expect(area.chart.limitInPlot).toBe(false);
31+
expect(area.chart.middleGroup.get('clipShape')).not.toBeDefined();
3232
// 大于一个 xAxis 的高度
33-
expect(area.chart.middleGroup.get('clipShape').getBBox().minY > 5).toBe(true);
33+
// expect(area.chart.middleGroup.get('clipShape').getBBox().minY > 5).toBe(true);
3434

3535
area.destroy();
3636
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@antv/g2plot",
3-
"version": "2.0.8",
3+
"version": "2.0.9",
44
"description": "An interactive and responsive charting library",
55
"keywords": [
66
"chart",

src/core/plot.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export abstract class Plot<O extends PickOptions> extends EE {
7474
syncViewPadding,
7575
supportCSSTransform,
7676
/** 图形不超出画布 */
77-
limitInPlot: true,
77+
limitInPlot: false,
7878
});
7979
}
8080

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const version = '2.0.8';
1+
export const version = '2.0.9';
22

33
// G2 自定义能力透出
44
import * as G2 from '@antv/g2';

0 commit comments

Comments
 (0)