Skip to content

Commit 7d3c95f

Browse files
author
pipeline
committed
v20.2.45 is released
1 parent 3898504 commit 7d3c95f

File tree

325 files changed

+2296
-1695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+2296
-1695
lines changed

controls/buttons/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 20.2.44 (2022-08-16)
5+
## 20.2.45 (2022-08-23)
66

77
### Switch
88

controls/charts/CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## [Unreleased]
44

5+
## 20.2.45 (2022-08-23)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#I397378` - Legend toggle visibility displays diagonal line in chart issue has been fixed.
12+
- `#I396922` - Axis ranges are now refreshing properly after data point dragging.
13+
- `#I397935` - Axis are now rendering properly after legend toggle.
14+
515
## 20.2.44 (2022-08-16)
616

717
### Chart

controls/charts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-charts",
3-
"version": "20.2.43",
3+
"version": "20.2.44",
44
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/charts/spec/bullet-chart/export/export.spec.ts

-43
Original file line numberDiff line numberDiff line change
@@ -76,49 +76,6 @@ describe('Bullet Chart Control', () => {
7676
};
7777
chartObj.refresh();
7878
});
79-
it('Checking export', (done: Function) => {
80-
chartObj.export('JPEG', 'bulletchart');
81-
setTimeout(() => {
82-
expect('').toBe('');
83-
done();
84-
}, 500);
85-
});
86-
it('Checking export - SVG', (done: Function) => {
87-
chartObj.export('SVG', 'bulletchart');
88-
setTimeout(() => {
89-
expect('').toBe('');
90-
done();
91-
}, 500);
92-
});
93-
it('Checking export - PDF', (done: Function) => {
94-
chartObj.export('PDF', 'bulletchart');
95-
setTimeout(() => {
96-
expect('').toBe('');
97-
done();
98-
}, 500);
99-
});
100-
it('Checking export - PDF - Potrait', (done: Function) => {
101-
chartObj.export('PDF', 'bulletchart', PdfPageOrientation.Portrait);
102-
setTimeout(() => {
103-
expect('').toBe('');
104-
done();
105-
}, 500);
106-
});
107-
it('Checking export - PDF - multi controls', (done: Function) => {
108-
chartObj.export('PDF', 'bulletchart', PdfPageOrientation.Portrait, [chartObj, chartObj], 500, 450);
109-
setTimeout(() => {
110-
expect('').toBe('');
111-
done();
112-
}, 500);
113-
});
114-
115-
it('Checking export - PDF - multi controls width out size', (done: Function) => {
116-
chartObj.export('PDF', 'bulletchart', PdfPageOrientation.Portrait, [chartObj, chartObj]);
117-
setTimeout(() => {
118-
expect('').toBe('');
119-
done();
120-
}, 500);
121-
});
12279
});
12380
it('memory leak', () => {
12481
profile.sample();

controls/charts/spec/chart/export/print.spec.ts

-96
Original file line numberDiff line numberDiff line change
@@ -147,102 +147,6 @@ describe('Chart Control', () => {
147147
};
148148
chartObj.refresh();
149149
});
150-
151-
it('Checking to print single element', (done: Function) => {
152-
chartObj.loaded = (args: Object): void => {
153-
chartObj.print('tempElement');
154-
}
155-
chartObj.beforePrint = (args: IPrintEventArgs): void => {
156-
expect(args.htmlContent.outerHTML.indexOf('<div id="container_Annotation_0"') > -1).toBe(false);
157-
expect(args.htmlContent.outerHTML.indexOf('<div id="tempElement"') > -1).toBe(true);
158-
done();
159-
};
160-
chartObj.refresh();
161-
});
162-
it('Checking export', (done: Function) => {
163-
chartObj.exportModule.export('JPEG', 'chart');
164-
setTimeout(() => {
165-
expect('').toBe('');
166-
done();
167-
}, 500);
168-
});
169-
it('Checking export - SVG', (done: Function) => {
170-
chartObj.exportModule.export('SVG', 'chart');
171-
setTimeout(() => {
172-
expect('').toBe('');
173-
done();
174-
}, 500);
175-
});
176-
it('Checking export - PDF', (done: Function) => {
177-
chartObj.exportModule.export('PDF', 'chart');
178-
setTimeout(() => {
179-
expect('').toBe('');
180-
done();
181-
}, 500);
182-
});
183-
it('Checking export - PDF - Potrait', (done: Function) => {
184-
chartObj.exportModule.export('PDF', 'chart', PdfPageOrientation.Portrait);
185-
setTimeout(() => {
186-
expect('').toBe('');
187-
done();
188-
}, 500);
189-
});
190-
it('Checking export - PDF - multi controls', (done: Function) => {
191-
chartObj.exportModule.export('PDF', 'chart', PdfPageOrientation.Portrait, [chartObj, chartObj], 500, 450);
192-
setTimeout(() => {
193-
expect('').toBe('');
194-
done();
195-
}, 500);
196-
});
197-
198-
it('Checking export - PDF - multi controls in horizontal mode', (done: Function) => {
199-
chartObj.exportModule.export('PDF', 'chart', PdfPageOrientation.Portrait, [chartObj, chartObj], 500, 450, false);
200-
setTimeout(() => {
201-
expect('').toBe('');
202-
done();
203-
}, 500);
204-
});
205-
206-
it('Checking export - PDF - multi controls width out size', (done: Function) => {
207-
chartObj.exportModule.export('PDF', 'chart', PdfPageOrientation.Portrait, [chartObj, chartObj]);
208-
setTimeout(() => {
209-
expect('').toBe('');
210-
done();
211-
}, 500);
212-
});
213-
214-
it('Checking to export height', (done: Function) => {
215-
chartObj.exportModule.export('JPEG', 'result');
216-
chartObj.beforeExport = (args: IExportEventArgs): void => {
217-
args.height = 500;
218-
};
219-
setTimeout(() => {
220-
expect('').toBe('');
221-
done();
222-
}, 500);
223-
});
224-
225-
it('Checking to export width', (done: Function) => {
226-
chartObj.exportModule.export('JPEG', 'result');
227-
chartObj.beforeExport = (args: IExportEventArgs): void => {
228-
args.width = 800;
229-
};
230-
setTimeout(() => {
231-
expect('').toBe('');
232-
done();
233-
}, 500);
234-
});
235-
236-
it('Checking to export cancel', (done: Function) => {
237-
chartObj.exportModule.export('JPEG', 'result');
238-
chartObj.beforeExport = (args: IExportEventArgs): void => {
239-
args.cancel = true;
240-
};
241-
setTimeout(() => {
242-
expect('').toBe('');
243-
done();
244-
}, 500);
245-
});
246150
});
247151
it('memory leak', () => {
248152
profile.sample();

controls/charts/spec/pie/export/print.spec.ts

+1-47
Original file line numberDiff line numberDiff line change
@@ -114,53 +114,7 @@ describe('Chart Control', () => {
114114
done();
115115
};
116116
chartObj.refresh();
117-
});
118-
it('Checking export', (done: Function) => {
119-
chartObj.exportModule.export('JPEG', 'chart');
120-
setTimeout(() => {
121-
expect('').toBe('');
122-
done();
123-
}, 500);
124-
});
125-
126-
it('Checking export - SVG', (done: Function) => {
127-
chartObj.exportModule.export('SVG', 'chart');
128-
setTimeout(() => {
129-
expect('').toBe('');
130-
done();
131-
}, 500);
132-
});
133-
it('Checking export - PDF', (done: Function) => {
134-
chartObj.exportModule.export('PDF', 'chart');
135-
setTimeout(() => {
136-
expect('').toBe('');
137-
done();
138-
}, 500);
139-
});
140-
it('Checking export - PDF - Potrait', (done: Function) => {
141-
chartObj.exportModule.export('PDF', 'chart', PdfPageOrientation.Portrait);
142-
setTimeout(() => {
143-
expect('').toBe('');
144-
done();
145-
}, 500);
146-
});
147-
148-
it('Checking export - PDF - multi controls', (done: Function) => {
149-
chartObj.exportModule.export('PDF', 'chart', PdfPageOrientation.Portrait, [chartObj, chartObj], 500, 450);
150-
setTimeout(() => {
151-
expect('').toBe('');
152-
done();
153-
}, 500);
154-
});
155-
156-
it('Checking export - PDF - multi controls width out size', (done: Function) => {
157-
chartObj.exportModule.export('PDF', 'chart', PdfPageOrientation.Portrait, [chartObj, chartObj]);
158-
setTimeout(() => {
159-
expect('').toBe('');
160-
done();
161-
}, 500);
162-
});
163-
117+
});
164118
});
165119
it('memory leak', () => {
166120
profile.sample();

controls/charts/spec/pie/renderer/pyramid-series.spec.ts

-21
Original file line numberDiff line numberDiff line change
@@ -402,27 +402,6 @@ describe('Accumulation Chart Control', () => {
402402
chart.refresh();
403403
});
404404

405-
it('Data labels with custom connector', (done: Function) => {
406-
chart.loaded = () => {
407-
//debugger
408-
let group: Element = getElement('ej2container_datalabel_Series_0_connector_2');
409-
expect(group.getAttribute('fill')).toBe('transparent');
410-
expect(group.getAttribute('stroke')).toBe('red');
411-
expect(group.getAttribute('stroke-width')).toBe('5');
412-
expect(group.getAttribute('stroke-dasharray')).toBe('');
413-
expect(group.getAttribute('d') == 'M 361.2523364485981 151.68037383177568 L 410.7523364485981 151.68037383177568' ||
414-
group.getAttribute('d') == 'M 361.2523364485981 150.99158878504673 L 410.7523364485981 150.99158878504673').toBe(true);
415-
done();
416-
417-
//reset default connector style
418-
chart.series[0].dataLabel.connectorStyle = { color: null, length: null, type: 'Line', width: 1 };
419-
chart.loaded = null;
420-
};
421-
chart.series[0].dataLabel.connectorStyle = { color: 'red', type: 'Curve', length: '40px', width: 5 };
422-
chart.refresh();
423-
});
424-
425-
426405
it('Data labels with hidden connector (opacity-0)', (done: Function) => {
427406
chart.loaded = () => {
428407
//debugger

controls/charts/spec/range-navigator/export/export.spec.ts

-43
Original file line numberDiff line numberDiff line change
@@ -78,49 +78,6 @@ describe('Range Navigator Control', () => {
7878
};
7979
chartObj.refresh();
8080
});
81-
it('Checking export', (done: Function) => {
82-
chartObj.export('JPEG', 'chart');
83-
setTimeout(() => {
84-
expect('').toBe('');
85-
done();
86-
}, 500);
87-
});
88-
it('Checking export - SVG', (done: Function) => {
89-
chartObj.export('SVG', 'chart');
90-
setTimeout(() => {
91-
expect('').toBe('');
92-
done();
93-
}, 500);
94-
});
95-
it('Checking export - PDF', (done: Function) => {
96-
chartObj.export('PDF', 'chart');
97-
setTimeout(() => {
98-
expect('').toBe('');
99-
done();
100-
}, 500);
101-
});
102-
it('Checking export - PDF - Potrait', (done: Function) => {
103-
chartObj.export('PDF', 'chart', PdfPageOrientation.Portrait);
104-
setTimeout(() => {
105-
expect('').toBe('');
106-
done();
107-
}, 500);
108-
});
109-
it('Checking export - PDF - multi controls', (done: Function) => {
110-
chartObj.export('PDF', 'chart', PdfPageOrientation.Portrait, [chartObj, chartObj], 500, 450);
111-
setTimeout(() => {
112-
expect('').toBe('');
113-
done();
114-
}, 500);
115-
});
116-
117-
it('Checking export - PDF - multi controls width out size', (done: Function) => {
118-
chartObj.export('PDF', 'chart', PdfPageOrientation.Portrait, [chartObj, chartObj]);
119-
setTimeout(() => {
120-
expect('').toBe('');
121-
done();
122-
}, 500);
123-
});
12481
});
12582
it('memory leak', () => {
12683
profile.sample();

controls/charts/spec/smithchart/base/export.spec.ts

-29
Original file line numberDiff line numberDiff line change
@@ -133,35 +133,6 @@ describe('smithChart component Spec', () => {
133133
};
134134
smithChart.refresh();
135135
});*/
136-
137-
it('Checking export', (done: Function) => {
138-
smithChart.export('JPEG', 'map');
139-
setTimeout(() => {
140-
expect('').toBe('');
141-
done();
142-
}, 500);
143-
});
144-
it('Checking export - SVG', (done: Function) => {
145-
smithChart.export('SVG', 'map');
146-
setTimeout(() => {
147-
expect('').toBe('');
148-
done();
149-
}, 500);
150-
});
151-
it('Checking export - PDF', (done: Function) => {
152-
smithChart.export('PDF', 'map');
153-
setTimeout(() => {
154-
expect('').toBe('');
155-
done();
156-
}, 500);
157-
});
158-
it('Checking export - PDF - Potrait', (done: Function) => {
159-
smithChart.export('PDF', 'map', PdfPageOrientation.Portrait);
160-
setTimeout(() => {
161-
expect('').toBe('');
162-
done();
163-
}, 500);
164-
});
165136
it('Checking to print in multiple element', () => {
166137
smithChart.loaded = (args: Object): void => {
167138
smithChart.print(['container', 'tempElement']);

controls/charts/src/chart/axis/cartesian-panel.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -476,17 +476,17 @@ export class CartesianAxisLayoutPanel {
476476
axis = chart.axisCollections[i];
477477
this.element = chart.renderer.createGroup({ id: chart.element.id + 'AxisGroup' + i + 'Inside' });
478478
outsideElement = chart.renderer.createGroup({ id: chart.element.id + 'AxisGroup' + i + 'Outside' });
479-
for (const series of this.chart.series) {
479+
for (const series of axis.series) {
480480
if (axis.name === series.yAxisName || axis.name === series.xAxisName) {
481481
axisVisibility = series.visible;
482-
if (axisVisibility) {
483-
break;
484-
} else {
482+
if (!axisVisibility) {
485483
continue;
484+
} else {
485+
break;
486486
}
487487
}
488488
}
489-
if (!axisVisibility) { break; }
489+
if (!axisVisibility) { continue; }
490490
isInside = this.findAxisPosition(axis);
491491
if (axis.orientation === 'Horizontal') {
492492

@@ -1599,7 +1599,7 @@ export class CartesianAxisLayoutPanel {
15991599
axis.border.color || this.chart.themeStyle.axisLine, 1, '', labelBorder
16001600
)) as HTMLElement;
16011601
(borderElement as HTMLElement).style.pointerEvents = 'none';
1602-
appendChildElement(this.chart.enableCanvas, parent, borderElement, this.chart.redraw, true, 'x', 'y', null, direction, true);
1602+
appendChildElement(this.chart.enableCanvas, parent, borderElement, this.chart.redraw, false, 'x', 'y', null, direction, true);
16031603
}
16041604

16051605
/**

0 commit comments

Comments
 (0)