Skip to content

Commit ee83145

Browse files
author
pipeline
committed
v26.2.5 is released
1 parent 1c767ea commit ee83145

File tree

92 files changed

+645
-124
lines changed

Some content is hidden

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

92 files changed

+645
-124
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-
## 26.2.4 (2024-07-24)
5+
## 26.2.5 (2024-07-26)
66

77
### Barcode
88

controls/charts/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
## [Unreleased]
44

5+
## 26.2.5 (2024-07-26)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#I612449` - The secondary axis labels will render properly with scrollbar on the secondary axis.
12+
13+
### RangeNavigator
14+
15+
#### Bug Fixes
16+
17+
- `#I613716` - Now, the series is rendered properly when the y-values are the same.
18+
519
## 26.2.4 (2024-07-24)
620

721
### Chart

controls/charts/node_modules/@types/eslint/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/charts/node_modules/@types/node/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/charts/node_modules/aws-sdk/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "26.1.42",
3+
"version": "26.2.4",
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/base/chart.spec.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,4 +762,46 @@ describe('Chart Control', () => {
762762
chart.appendTo('#container');
763763
});
764764
});
765+
describe('Check the RTL behaviour for title', () => {
766+
let chart: Chart;
767+
let ele: HTMLElement;
768+
let ele2: HTMLElement;
769+
let loaded: EmitType<ILoadedEventArgs>;
770+
let element: Element;
771+
beforeAll((): void => {
772+
ele = createElement('div', { id: 'container',
773+
styles: 'transform: scale(1.5)' });
774+
ele2 = createElement('div', { id: 'element' });
775+
document.body.appendChild(ele);
776+
document.getElementById('container').appendChild(ele2)
777+
chart = new Chart(
778+
{
779+
primaryXAxis: { valueType: 'Category', rangePadding: 'Normal', labelRotation: 90 },
780+
primaryYAxis: { title: 'PrimaryYAxis' },
781+
series: [{ dataSource: categoryData, xName: 'x', yName: 'y', fill: 'red', animation: { enable: false } }],
782+
title: 'Syncfusion Chart',
783+
titleStyle: {
784+
textAlignment : 'Near'
785+
},
786+
subTitle: 'Since 2012',
787+
subTitleStyle: {
788+
textAlignment : 'Far'
789+
}
790+
});
791+
792+
});
793+
afterAll((): void => {
794+
chart.destroy();
795+
ele.remove();
796+
});
797+
it('Checking the container with applied scale', (done: Function) => {
798+
loaded = (args: Object): void => {
799+
element = document.getElementById('element0_AxisLabel_7');
800+
expect(element.textContent == 'Sweden').toBe(true);
801+
done();
802+
};
803+
chart.loaded = loaded;
804+
chart.appendTo('#element');
805+
});
806+
});
765807
});

controls/charts/spec/range-navigator/axis/dateTime.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,18 @@ describe('Range navigator', () => {
779779
range.interval = 1;
780780
range.refresh();
781781
})
782+
it('checking with same y value', (done: Function) => {
783+
range.loaded = (args: Object) => {
784+
axisLabel = document.getElementById('container_AxisLabels');
785+
expect(axisLabel.childNodes[0].firstChild.textContent === '12 AM').toBe(true);
786+
done();
787+
};
788+
done();
789+
range.series[0].dataSource = [{ x: new Date('2023-09-04T00:00:00Z'), y: 1 }, { x: new Date('2023-09-08T00:00:00Z'), y: 1 }];
790+
range.intervalType = 'Auto',
791+
range.interval = null;
792+
range.refresh();
793+
})
782794
});
783795
it('memory leak', () => {
784796
profile.sample();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ export class CartesianAxisLayoutPanel {
922922
yAxisLabelX = labelPadding - ((angle === 0 ? elementSize.width :
923923
(isAxisBreakLabel ? breakLabelMaxWidth : RotatedWidth)) / 2);
924924
}
925-
pointX = isOpposed ? (rect.x - yAxisLabelX) : (rect.x + yAxisLabelX);
925+
pointX = isOpposed ? axis.scrollBarHeight !== 0 ? ((rect.x + axis.scrollBarHeight + padding) - yAxisLabelX) : (rect.x - yAxisLabelX) : (rect.x + yAxisLabelX);
926926
if (isVerticalAngle) {
927927
pointX += (isOpposed) ? -10 : 10;
928928
}

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

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,23 @@ export function rotateTextSize(font: FontModel, text: string, angle: number, cha
149149
htmlObject.appendChild(tspanElement);
150150
}
151151
}
152-
chart.svgObject.appendChild(htmlObject);
152+
const axisSvgObject: Element = chart.svgRenderer.createSvg({ id: 'AxisLabelMax_svg' });
153+
if (chart.element.parentElement.style.transform.indexOf('scale') > -1) {
154+
document.body.appendChild(axisSvgObject);
155+
axisSvgObject.appendChild(htmlObject);
156+
} else {
157+
chart.svgObject.appendChild(htmlObject);
158+
}
153159
const box: ClientRect = htmlObject.getBoundingClientRect();
154160
if (transformValue) {
155161
chart.element.style.transform = transformValue;
156162
}
157-
remove(htmlObject);
163+
if (chart.element.parentElement.style.transform.indexOf('scale') > -1) {
164+
remove(axisSvgObject);
165+
}
166+
else {
167+
remove(htmlObject);
168+
}
158169
if (!chart.delayRedraw && !chart.redraw && !(chart as Chart).stockChart && !(chart as Chart).pointsAdded) {
159170
remove(chart.svgObject);
160171
}
@@ -2619,8 +2630,13 @@ export function calculateSize(chart: Chart | AccumulationChart | RangeNavigator
26192630
if (chart.getModuleName() === 'chart') {
26202631
let scaleX: number = 1; let scaleY: number = 1;
26212632
if (chart.width === '' || chart.width === null || chart.width === '100%') {
2622-
scaleX = chart.element.getBoundingClientRect().width > 0 ?
2623-
chart.element.getBoundingClientRect().width / chart.availableSize.width : 1;
2633+
if (containerWidth && chart.element.parentElement.style.transform.indexOf('scale') > -1) {
2634+
scaleX = 1;
2635+
}
2636+
else {
2637+
scaleX = chart.element.getBoundingClientRect().width > 0 ?
2638+
chart.element.getBoundingClientRect().width / chart.availableSize.width : 1;
2639+
}
26242640
if (containerHeight && chart.element.parentElement.style.transform.indexOf('scale') > -1) {
26252641
scaleY = 1;
26262642
} else {

controls/charts/src/range-navigator/renderer/chart-render.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ export class RangeSeries extends NiceInterval {
203203
this.yAxis.maximumLabels = 3;
204204
this.yAxis.intervalDivs = [10, 5, 2, 1];
205205
this.yAxis.orientation = 'Vertical';
206+
if (this.yMin === this.yMax) {
207+
this.yMax += 1; this.yMin -= 1;
208+
}
206209
control.doubleModule.min = this.yMin;
207210
control.doubleModule.max = this.yMax;
208211
control.doubleModule.getActualRange(this.yAxis, control.bounds);

controls/diagrams/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
## [Unreleased]
44

5+
## 26.2.5 (2024-07-26)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `#I604552` - Swimlane wrapper updated wrongly when phase offset set for vertical swimlane and container defined.
12+
- `#I605961` - Connector will no longer split, when the connector's source or target id matched with node id which dropped on connector highlighter.
13+
514
## 26.2.4 (2024-07-24)
615

716
### Diagram

controls/diagrams/node_modules/@types/eslint/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/node_modules/@types/node/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/node_modules/aws-sdk/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controls/diagrams/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-diagrams",
3-
"version": "26.1.42",
3+
"version": "26.2.4",
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)