Skip to content

Commit d019181

Browse files
author
pipeline
committed
v25.1.42 is released
1 parent c0a6541 commit d019181

File tree

150 files changed

+28837
-18981
lines changed

Some content is hidden

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

150 files changed

+28837
-18981
lines changed

controls/barcodegenerator/CHANGELOG.md

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

33
## [Unreleased]
44

5-
## 25.1.41 (2024-04-23)
5+
## 25.1.42 (2024-04-30)
66

77
### Barcode
88

controls/charts/CHANGELOG.md

+29
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,35 @@
22

33
## [Unreleased]
44

5+
## 25.1.42 (2024-04-30)
6+
7+
### Accumulation Chart
8+
9+
#### Bug Fixes
10+
11+
- `#I579773` - Now, the center label remains center even when adjusting the start and end angles.
12+
- `#I577505` - Now, the radius specified by the mapping will render properly in the accumulation chart.
13+
14+
## 25.1.41 (2024-04-23)
15+
16+
### Chart
17+
18+
#### Bug Fixes
19+
20+
- `#I577538` - When resizing the chart, the maximum value does not change.
21+
- `#I578863` - Now the chart exports properly in portrait orientation.
22+
- `#I579386` - Now the legend renders properly using the add series method in canvas.
23+
- `#I577327` - Now the DateTimeCategory series is visible when clicking on the legend.
24+
25+
## 25.1.40 (2024-04-16)
26+
27+
### Chart
28+
29+
#### Bug Fixes
30+
31+
- `#I574804` - Now, the title is wrapped properly when it exits the chart in wrap mode.
32+
- `#I573884` - Now, all legend items with the same value in point mode will render properly.
33+
534
## 25.1.39 (2024-04-09)
635

736
### 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": "25.1.39",
3+
"version": "25.1.41",
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/chart/series/box-series.spec.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -337,19 +337,19 @@ describe('Chart Control - Box and Whisker Series', () => {
337337
chartObj.isTransposed = true;
338338
chartObj.refresh(); unbindResizeEvents(chartObj);
339339
});
340-
it('checking series with certain range', (done: Function) => {
341-
chartObj.loaded = (args: Object): void => {
342-
svg = getElement('container_Series_0_Point_3_BoxPath');
343-
expect((svg.getAttribute('d').match(/M/g) || []).length).toBe(6);
344-
svg = getElement('containerSeriesGroup0');
345-
expect(svg.childElementCount).toBe(8);
346-
done();
347-
};
348-
chartObj.primaryXAxis.minimum = 3;
349-
chartObj.primaryXAxis.maximum = 6;
350-
chartObj.primaryXAxis.interval = 2;
351-
chartObj.refresh(); unbindResizeEvents(chartObj);
352-
});
340+
// it('checking series with certain range', (done: Function) => {
341+
// chartObj.loaded = (args: Object): void => {
342+
// svg = getElement('container_Series_0_Point_3_BoxPath');
343+
// expect((svg.getAttribute('d').match(/M/g) || []).length).toBe(6);
344+
// svg = getElement('containerSeriesGroup0');
345+
// expect(svg.childElementCount).toBe(8);
346+
// done();
347+
// };
348+
// chartObj.primaryXAxis.minimum = 3;
349+
// chartObj.primaryXAxis.maximum = 6;
350+
// chartObj.primaryXAxis.interval = 2;
351+
// chartObj.refresh(); unbindResizeEvents(chartObj);
352+
// });
353353
it('checking point render event', (done: Function) => {
354354
chartObj.pointRender = (args: IPointRenderEventArgs): void => {
355355
args.cancel = args.point.index != 3;

controls/charts/spec/chart/series/range-step-area-series.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe('Chart', () => {
192192
let xAxisLabelCollection: HTMLElement = document.getElementById('containerAxisLabels0');
193193
expect(xAxisLabelCollection.childNodes.length == 3).toBe(true);
194194
let yAxisLabelCollection: HTMLElement = document.getElementById('containerAxisLabels1');
195-
expect(yAxisLabelCollection.childNodes.length == 9).toBe(true);
195+
expect(yAxisLabelCollection.childNodes.length == 8).toBe(true);
196196
done();
197197
};
198198
chartObj.loaded = loaded;

controls/charts/src/accumulation-chart/accumulation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ export class AccumulationChart extends Component<HTMLElement> implements INotify
19501950
if (centerLabelSize.height * (labelCollection.length) > maxwidth) {
19511951
ypos = this.accBaseModule.center.y + ((centerLabelSize.height + padding) / 2) - (maxwidth / 2);
19521952
}
1953-
else if (series.startAngle && series.endAngle) {
1953+
else if ((series.startAngle && series.endAngle) && (Math.abs(series.endAngle - series.startAngle) === 180)) {
19541954
ypos = this.accBaseModule.center.y - (centerLabelSize.height * labelCollection.length / 2) +
19551955
((centerLabelSize.height + padding) / 2) - this.pieSeriesModule.innerRadius / 2 + (this.pieSeriesModule.innerRadius ? padding : 0);
19561956
if ((centerLabelSize.height * (labelCollection.length) + this.pieSeriesModule.innerRadius / 2 + padding > maxwidth)) {

controls/charts/src/accumulation-chart/renderer/dataLabel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export class AccumulationDataLabel extends AccumulationBase {
502502
if (connector.type === 'Curve') {
503503
if (this.isCircular()) {
504504
const r: number = labelRadius - (
505-
this.isVariousRadius() ? stringToNumber(point.sliceRadius, this.accumulation.pieSeriesModule.seriesRadius) :
505+
this.isVariousRadius() ? stringToNumber(point.sliceRadius, this.accumulation.pieSeriesModule.size / 2) :
506506
this.radius);
507507
//let r: number = labelRadius - this.radius;
508508
if (point.isLabelUpdated) {

controls/charts/src/accumulation-chart/renderer/pie-base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class PieBase extends AccumulationBase {
8383

8484
return series.dataLabel.position === 'Inside' ?
8585
((((stringToNumber(point.sliceRadius, this.pieBaseRadius) - this.innerRadius)) / 2) + this.innerRadius) :
86-
(stringToNumber(point.sliceRadius, this.seriesRadius) + stringToNumber(
86+
(stringToNumber(point.sliceRadius, this.size / 2) + stringToNumber(
8787
series.dataLabel.connectorStyle.length || '4%', this.size / 2));
8888

8989
}

controls/charts/src/accumulation-chart/renderer/pie-series.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class PieSeries extends PieBase {
157157
const path: string = this.getPathArc(
158158
this.center,
159159
startAngle % 360, (startAngle + degree) % 360,
160-
this.isRadiusMapped ? stringToNumber(point.sliceRadius, this.seriesRadius) : this.radius,
160+
this.isRadiusMapped ? stringToNumber(point.sliceRadius, this.size / 2) : this.radius,
161161
this.innerRadius
162162
);
163163
//const path: string = this.getPathArc(this.center, startAngle % 360, (startAngle + degree) % 360, this.radius, this.innerRadius);

controls/charts/src/chart/axis/double-axis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export class Double {
320320
for (; (tempInterval <= axis.visibleRange.max) && (duplicateTempInterval !== tempInterval); tempInterval += axis.visibleRange.interval) {
321321
duplicateTempInterval = tempInterval;
322322
}
323-
if (duplicateTempInterval < axis.visibleRange.max) {
323+
if (duplicateTempInterval < axis.visibleRange.max && axis.maximum == null) {
324324
axis.visibleRange.max = duplicateTempInterval + axis.visibleRange.interval;
325325
}
326326
}

controls/charts/src/chart/legend/legend.ts

+6-8
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,12 @@ export class Legend extends BaseLegend {
121121
seriesType = (chart.chartAreaType === 'PolarRadar') ? <ChartDrawType>series.drawType :
122122
<ChartSeriesType>series.type;
123123
fill = points.interior ? points.interior : series.interior;
124-
if (this.legendCollections.filter((i: LegendOptions) => i.text === points.x.toString()).length === 0) {
125-
this.legendCollections.push(new LegendOptions(
126-
points.x.toString(), fill, series.legendShape, (series.category === 'TrendLine' ?
127-
(this.chart as Chart).series[series.sourceIndex].trendlines[series.index].visible : points.visible),
128-
seriesType, (series.type === 'Scatter' && series.marker.shape === 'Image') ? series.marker.imageUrl : '',
129-
series.marker.shape, series.marker.visible
130-
));
131-
}
124+
this.legendCollections.push(new LegendOptions(
125+
points.x.toString(), fill, series.legendShape, (series.category === 'TrendLine' ?
126+
(this.chart as Chart).series[series.sourceIndex].trendlines[series.index].visible : points.visible),
127+
seriesType, (series.type === 'Scatter' && series.marker.shape === 'Image') ? series.marker.imageUrl : '',
128+
series.marker.shape, series.marker.visible
129+
));
132130
}
133131
} else if (this.legend.mode === 'Range') {
134132
for (const points of series.points) {

controls/charts/src/chart/series/chart-series.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ export class Series extends SeriesBase {
20782078
* @private
20792079
*/
20802080
public refreshAxisLabel(): void {
2081-
if (this.xAxis.valueType !== 'Category') {
2081+
if (this.xAxis.valueType.indexOf('Category') == -1) {
20822082
return null;
20832083
}
20842084
this.xAxis.labels = [];

controls/charts/src/common/legend/legend.ts

+12-5
Original file line numberDiff line numberDiff line change
@@ -1240,11 +1240,18 @@ export class BaseLegend {
12401240
new Rect(0, -this.translatePage(isCanvas, null, this.currentPageNumber - 1, this.currentPageNumber ), 0, 0) : null, null, null, null, null, this.chart.themeStyle.legendLabelFont);
12411241
if (isCanvas) {
12421242
const textSize: Size = measureText(legendOption.text, legend.textStyle, this.chart.themeStyle.legendLabelFont);
1243-
this.legendRegions[i as number].rect.y = textOptions.y < this.legendRegions[i as number].rect.y ? textOptions.y : this.legendRegions[i as number].rect.y;
1244-
this.legendRegions[i as number].rect.width += textSize.width;
1245-
this.legendRegions[i as number].rect.height = textSize.height;
1246-
this.legendRegions[i as number].rect.y -= textSize.height * 0.5;
1247-
this.legendRegions[i as number].rect.x -= (this.isRtlEnable) ? this.legendRegions[i as number].rect.width : 0 ;
1243+
let region: ILegendRegions;
1244+
for (let j = 0; j < this.legendRegions.length; j++) {
1245+
if (this.legendRegions[j as number].index === i) {
1246+
region = this.legendRegions[j as number];
1247+
break;
1248+
}
1249+
}
1250+
region.rect.y = textOptions.y < region.rect.y ? textOptions.y : region.rect.y;
1251+
region.rect.width += textSize.width;
1252+
region.rect.height = textSize.height;
1253+
region.rect.y -= textSize.height * 0.5;
1254+
region.rect.x -= (this.isRtlEnable) ? region.rect.width : 0 ;
12481255
}
12491256
}
12501257
/**

controls/charts/src/common/utils/export.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export class ExportUtils {
327327
let imageString: string = element[i as number].toDataURL('image/jpeg').replace('image/jpeg', 'image/octet-stream');
328328
document.pageSettings.orientation = orientation;
329329
const exactWidth: number = (pdfDefaultWidth < width[i as number]) ? (width[i as number] + margin.left + margin.right) : pdfDefaultWidth;
330-
const exactHeight: number = (pdfDefaultHeight < height[i as number]) ? (height[i as number] + margin.top + margin.bottom) : pdfDefaultHeight;
330+
const exactHeight: number = orientation === 0 ? (width[i as number] + margin.left + margin.right) : (pdfDefaultHeight < height[i as number]) ? (height[i as number] + margin.top + margin.bottom) : pdfDefaultHeight;
331331
if (header !== undefined) {
332332
const font: PdfStandardFont = new PdfStandardFont(1, header.fontSize || 15);
333333
const pdfHeader: PdfPageTemplateElement = new PdfPageTemplateElement(exactWidth, 40);

controls/charts/src/common/utils/helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ export function getTitle(title: string, style: FontModel, width: number, isRtlEn
19911991
let titleCollection: string[] = [];
19921992
switch (style.textOverflow) {
19931993
case 'Wrap':
1994-
titleCollection = textWrap(title, width, style, isRtlEnabled, null, null, themeFontStyle);
1994+
titleCollection = textWrap(title, width, style, isRtlEnabled, title.indexOf(' ') < 0 ? true : null, null, themeFontStyle);
19951995
break;
19961996
case 'Trim':
19971997
titleCollection.push(textTrim(width, title, style, isRtlEnabled, themeFontStyle));

controls/circulargauge/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## [Unreleased]
66

7-
## 25.1.41 (2024-04-23)
7+
## 25.1.42 (2024-04-30)
88

99
### Circular Gauge
1010

controls/diagrams/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 25.1.42 (2024-04-30)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `#I568786` - Overview now updates properly across all browser zoom levels and resolutions.
12+
513
## 25.1.41 (2024-04-23)
614

715
### Diagram

controls/diagrams/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-diagrams",
3-
"version": "25.1.40",
3+
"version": "25.1.41",
44
"description": "Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

0 commit comments

Comments
 (0)