Skip to content

Commit 9d94074

Browse files
author
pipeline
committed
v24.1.45 is released
1 parent 7b28d24 commit 9d94074

File tree

2,465 files changed

+1492
-442367
lines changed

Some content is hidden

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

2,465 files changed

+1492
-442367
lines changed

controls/barcodegenerator/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 24.1.44 (2024-01-03)
5+
## 24.1.45 (2024-01-09)
66

77
### Barcode
88

controls/base/spec/template.spec.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,20 @@ describe('Template', () => {
162162
let result: Element[] = [];
163163
result.push(createElement('div', { innerHTML: 'one two' }));
164164
result.push(createElement('div', { innerHTML: 'two three ' }));
165-
expect(outDOM(template.compile(templateStr), spaceDS)).toEqual(result);
165+
let templateResult: Element[] = outDOM(template.compile(templateStr), spaceDS)
166+
expect(templateResult).toEqual(result);
167+
expect(templateResult[0].innerHTML).toEqual('one two');
168+
expect(templateResult[1].innerHTML).toEqual('two three ');
169+
});
170+
171+
it('Multiple space between inner tags template string', () => {
172+
let templateStr: string = "<div>${name}</div> <div>${name}</div>";
173+
let result: Element[] = [];
174+
result.push(createElement('div', { innerHTML: 'one two' }));
175+
result.push(createElement('div', { innerHTML: 'two three ' }));
176+
let templateResult: Element[] = outDOM(template.compile(templateStr), spaceDS)
177+
expect(templateResult.length).toEqual(2);
178+
expect(templateResult).toEqual(result);
166179
});
167180

168181
it('JSON array input with href value with apostrophe', () => {
@@ -203,8 +216,8 @@ describe('Template', () => {
203216
</div>`;
204217
/* tslint:enable */
205218
let result: Element[] = [];
206-
result.push(createElement('div', { innerHTML: ' <span>one</span>01 ' }));
207-
result.push(createElement('div', { innerHTML: ' <span>two</span>02 ' }));
219+
result.push(createElement('div', { innerHTML: '<span>one</span>01' }));
220+
result.push(createElement('div', { innerHTML: '<span>two</span>02' }));
208221
expect(outDOM(template.compile(templateStr), dsJSONArray)).toEqual(result);
209222
template.expression(new RegExp('\\${([^}]*)}', 'g'));
210223
});

controls/base/src/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Template Engine
33
*/
44

5-
const LINES: RegExp = new RegExp('[\\n\\r\\s]+', 'g');
5+
const LINES: RegExp = new RegExp('\\n\\s+|(?<=>)\\s{1,}(?=<)', 'g');
66
const QUOTES: RegExp = new RegExp(/'|"/g);
77
const IF_STMT: RegExp = new RegExp('if ?\\(');
88
const ELSEIF_STMT: RegExp = new RegExp('else if ?\\(');
@@ -126,7 +126,7 @@ function evalExp(str: string, nameSpace: string, helper?: Object, ignorePrefix?:
126126
});
127127
}
128128

129-
return str.replace(LINES, ' ').replace(DBL_QUOTED_STR, '\'$1\'').replace(
129+
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(
130130

131131
exp,
132132
// eslint-disable-next-line

controls/calendars/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 24.1.44 (2024-01-03)
5+
## 24.1.45 (2024-01-09)
66

77
### TimePicker
88

controls/charts/CHANGELOG.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,31 @@
22

33
## [Unreleased]
44

5+
## 24.1.45 (2024-01-09)
6+
7+
### AccumulationChart
8+
9+
#### Bug Fixes
10+
11+
- `#I533625` - Now, the `textAlignment` property in the `titleStyle` of the accumulation chart is functioning correctly.
12+
13+
### Chart
14+
15+
#### Bug Fixes
16+
17+
- `#I536934` - Now, the `category` axis label renders properly when the x-value is provided as an empty string.
18+
519
## 24.1.44 (2024-01-03)
620

721
### Chart
822

923
#### Bug Fixes
1024

11-
- #I521819 - Improved the accuracy of the normal distribution in the histogram series.
12-
- #I528067 - Removed the multilevel label if all series are not visible.
13-
- #I185777 - Fixed the marker size issue in the scatter chart during initial loading.
14-
- #I185904 - Resolved the issue with the shared tooltip when disabling `showNearestPoint`.
15-
- #I532475 - Fixed the console error in Mozilla Firefox when zooming the bubble chart.
25+
- `#I521819` - Improved the accuracy of the normal distribution in the histogram series.
26+
- `#I528067` - Removed the multilevel label if all series are not visible.
27+
- `#I185777` - Fixed the marker size issue in the scatter chart during initial loading.
28+
- `#I185904` - Resolved the issue with the shared tooltip when disabling `showNearestPoint`.
29+
- `#I532475` - Fixed the console error in Mozilla Firefox when zooming the bubble chart.
1630

1731
## 24.1.43 (2023-12-27)
1832

controls/charts/ReadMe.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![coverage](http://ej2.syncfusion.com/badges/ej2-charts/coverage.svg)](http://ej2.syncfusion.com/badges/ej2-charts)
2+
13
# JavaScript Chart Control
24

35
The [JavaScript Chart](https://www.syncfusion.com/javascript-ui-controls/js-charts?utm_source=npm&utm_medium=listing&utm_campaign=javascript-chart-npm) control is a well-crafted charting component for visualizing data with 50+ charts and graphs, ranging from line to financial types. It can bind data from datasource such as array of JSON objects, `OData web services` or [DataManager](https://ej2.syncfusion.com/documentation/data/data-binding/). All chart elements are rendered using Scalable Vector Graphics (SVG).

controls/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-charts",
3-
"version": "24.1.43",
3+
"version": "24.1.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/chart3d/axis/axis.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ describe('Chart Control', () => {
549549
let secondLabel: HTMLElement = document.getElementById('chartContainer2-0-axis-label-1');
550550
expect(secondLabel).toEqual(null);
551551
let thirdLabel: HTMLElement = document.getElementById('chartContainer2-0-axis-label-2');
552-
expect(thirdLabel.textContent).toEqual('3 custom Labels');
552+
expect(thirdLabel).toEqual(null);
553553
done();
554554
};
555555
axisLabelRender = (args: Chart3DAxisLabelRenderEventArgs) => {

controls/charts/spec/chart3d/axis/logarithmic-axis.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ describe('Chart Control', () => {
191191
it('Checking Xaxis label rotation', (done: Function) => {
192192
loaded = (args: Object): void => {
193193
let label = document.getElementById('chartContainer-0-axis-label-0');
194-
expect(label.getAttribute('transform')).toBe('rotate(45,60.385239567233384,379.7413170621421)');
194+
expect(label.getAttribute('transform')).toBe('rotate(45,60.385239567233384,380.7814883375094)');
195195
done();
196196
};
197197
chartObj.loaded = loaded;
@@ -201,7 +201,7 @@ describe('Chart Control', () => {
201201
it('Checking Yaxis label rotation', (done: Function) => {
202202
loaded = (args: Object): void => {
203203
let label = document.getElementById('chartContainer-1-axis-label-0');
204-
expect(label.getAttribute('transform')).toBe('rotate(45,60.52462913595727,359.3531684698609)');
204+
expect(label.getAttribute('transform')).toBe('rotate(45,60.52462913595727,357.3918083462133)');
205205
done();
206206
};
207207
chartObj.loaded = loaded;
@@ -212,7 +212,7 @@ describe('Chart Control', () => {
212212
loaded = (args: Object): void => {
213213
let label = document.getElementById('chartContainer-2-axis-label-0');
214214
expect(parseInt(label.getAttribute('x'))).toBe(754);
215-
expect(parseInt(label.getAttribute('y'))).toBe(359);
215+
expect(parseInt(label.getAttribute('y'))).toBe(357);
216216
done();
217217
};
218218
chartObj.loaded = loaded;
@@ -227,7 +227,7 @@ describe('Chart Control', () => {
227227
it('checking minor gridlines', (done: Function) => {
228228
chartObj.loaded = (args: Object): void => {
229229
let tick: Element = document.getElementById('chartContainer-1-grid-lines-3');
230-
expect(tick.getBoundingClientRect().top == 304.3954162597656 || tick.getBoundingClientRect().top == 194.7030487060547).toBe(true);
230+
expect(tick.getBoundingClientRect().top == 304.3954162597656 || tick.getBoundingClientRect().top == 193.7574462890625).toBe(true);
231231
done();
232232
};
233233
chartObj.primaryXAxis.minorTicksPerInterval = 1;

controls/charts/spec/chart3d/base/chart.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ import { getMemoryProfile, inMB, profile } from '../../common.spec';
1313
import { Selection3D } from '../../../src/chart3d/user-interaction/selection';
1414
import { Highlight3D } from '../../../src/chart3d/user-interaction/high-light';
1515
import { DateTime3D } from '../../../src/chart3d/axis/date-time-axis';
16+
import { Double3D } from '../../../src/chart3d/axis/double-axis';
1617

17-
Chart3D.Inject(ColumnSeries3D, DataLabel3D, DateTime3D, Legend3D, Selection3D, Highlight3D, Category3D, Tooltip3D);
18+
Chart3D.Inject(ColumnSeries3D, Double3D, DataLabel3D, DateTime3D, Legend3D, Selection3D, Highlight3D, Category3D, Tooltip3D);
1819
export const categoryData: object[] = [{ x: 'USA', y: 50 }, { x: 'China', y: 40 },
1920
{ x: 'Japan', y: 70 }, { x: 'Australia', y: 60 },
2021
{ x: 'France', y: 50 }, { x: 'Germany', y: null },
@@ -936,6 +937,7 @@ describe('Chart Control', () => {
936937
primaryYAxis: {
937938
minimum: 20, maximum: 40, interval: 5,
938939
title: 'Efficiency',
940+
valueType: 'Double',
939941
labelFormat: '{value}%'
940942
},
941943
axes: [{

0 commit comments

Comments
 (0)