Skip to content

Commit

Permalink
v27.1.57 is released
Browse files Browse the repository at this point in the history
  • Loading branch information
pipeline committed Oct 29, 2024
1 parent 19b484d commit 35d2ab5
Show file tree
Hide file tree
Showing 191 changed files with 123,644 additions and 628 deletions.
2 changes: 1 addition & 1 deletion controls/barcodegenerator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]

## 27.1.56 (2024-10-23)
## 27.1.57 (2024-10-29)

### Barcode

Expand Down
2 changes: 1 addition & 1 deletion controls/base/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]

## 27.1.56 (2024-10-23)
## 27.1.57 (2024-10-29)

### Common

Expand Down
2 changes: 1 addition & 1 deletion controls/calendars/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]

## 27.1.56 (2024-10-23)
## 27.1.55 (2024-10-22)

### DateTimePicker

Expand Down
2 changes: 1 addition & 1 deletion controls/calendars/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@syncfusion/ej2-calendars",
"version": "27.1.52",
"version": "27.1.55",
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization.",
"author": "Syncfusion Inc.",
"license": "SEE LICENSE IN license",
Expand Down
17 changes: 16 additions & 1 deletion controls/charts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@

## [Unreleased]

## 27.1.56 (2024-10-23)
## 27.1.57 (2024-10-29)

### Chart

#### Bug Fixes

- `#I640035` - The tooltips now render properly for decimal data points.
- `#I645981` - The stripline now works correctly on the logarithmic axis.

### Stock Chart

#### Bug Fixes

- `#F194807` - The series now renders properly after a data source update and legend toggle.

## 27.1.55 (2024-10-22)

### Chart

Expand Down
2 changes: 1 addition & 1 deletion controls/charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@syncfusion/ej2-charts",
"version": "27.1.53",
"version": "27.1.55",
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.",
"author": "Syncfusion Inc.",
"license": "SEE LICENSE IN license",
Expand Down
4 changes: 2 additions & 2 deletions controls/charts/spec/chart/axis/stripline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,9 @@ describe('Chart control checking', () => {
it('Vertical Segmented stripline on Logarithmic Axis', (done: Function) => {
loaded = () => {

stripLineElement = document.getElementById(stripLineId + '_Behind_rect_' + 'primaryXAxis_' + '0');
stripLineElement = document.getElementById(stripLineId + '_Behind_rect_' + 'primaryYAxis_' + '0');
const direction: string = stripLineElement.getAttribute('d');
expect(direction === 'M 1108.9 43.25 L 1108.9 77.0909090909091' || direction === 'M 663.4000000000001 43.25 L 663.4000000000001 77.00000000000001').toBe(true);
expect(direction === 'M 453.09999999999997 181.49004124019885 L 593.3 181.49004124019885' || direction === 'M 663.4000000000001 43.25 L 663.4000000000001 77.00000000000001').toBe(true);
done();
};
chart.primaryXAxis = {
Expand Down
156 changes: 78 additions & 78 deletions controls/charts/spec/range-navigator/period-selector/period.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,85 +321,85 @@ describe('Range navigator', () => {
};
range.refresh();
});
it('checking all click with value type date time category', (done: Function) => {
range.loaded = (args: Object) => {
let dayButton: HTMLElement = document.getElementById('e-tbr-btn_46');
trigger.clickEvent(dayButton);
isCheck = true;
expect(dayButton !== null).toBe(true);
done();
};
range.changed = (args: IChangedEventArgs) => {
if (isCheck) {
expect(args.start !== null).toBe(true);
isCheck = false;
}
done();
};
range.series[0].dataSource = [{ x: new Date(2017, 1), y: 10 }, { x: new Date(2017, 5), y: 45 }, { x: new Date(2018, 3), y: 23 }, { x: new Date(2018, 4, 1), y: 12 },
{ x: new Date(2018, 4, 2), y: 10 }, { x: new Date(2018, 4, 5), y: 12 }];
range.valueType = 'DateTimeCategory';
range.intervalType = 'Years';
range.periodSelectorSettings.periods = [{ intervalType: 'Years', interval: 1, text: '1y' }, { text: 'ytd' }, { text: 'all' }];
range.refresh();
});
it('checking ytd click with value type date time category', (done: Function) => {
range.loaded = (args: Object) => {
let dayButton: HTMLElement = document.getElementById('e-tbr-btn_49');
trigger.clickEvent(dayButton);
isCheck = true;
expect(dayButton !== null).toBe(true);
done();
};
range.changed = (args: IChangedEventArgs) => {
if (isCheck) {
expect(args.start !== null).toBe(true);
isCheck = false;
}
done();
};
range.refresh();
});
it('checking 1y click with value type date time category', (done: Function) => {
range.loaded = (args: Object) => {
let dayButton: HTMLElement = document.getElementById('e-tbr-btn_52');
trigger.clickEvent(dayButton);
isCheck = true;
expect(dayButton !== null).toBe(true);
done();
};
range.changed = (args: IChangedEventArgs) => {
if (isCheck) {
expect(args.start !== null).toBe(true);
isCheck = false;
}
done();
};
range.refresh();
});
// it('checking all click with value type date time category', (done: Function) => {
// range.loaded = (args: Object) => {
// let dayButton: HTMLElement = document.getElementById('e-tbr-btn_46');
// trigger.clickEvent(dayButton);
// isCheck = true;
// expect(dayButton !== null).toBe(true);
// done();
// };
// // range.changed = (args: IChangedEventArgs) => {
// // if (isCheck) {
// // expect(args.start !== null).toBe(true);
// // isCheck = false;
// // }
// // done();
// // };
// range.series[0].dataSource = [{ x: new Date(2017, 1), y: 10 }, { x: new Date(2017, 5), y: 45 }, { x: new Date(2018, 3), y: 23 }, { x: new Date(2018, 4, 1), y: 12 },
// { x: new Date(2018, 4, 2), y: 10 }, { x: new Date(2018, 4, 5), y: 12 }];
// range.valueType = 'DateTimeCategory';
// range.intervalType = 'Years';
// range.periodSelectorSettings.periods = [{ intervalType: 'Years', interval: 1, text: '1y' }, { text: 'ytd' }, { text: 'all' }];
// range.refresh();
// });
// it('checking ytd click with value type date time category', (done: Function) => {
// range.loaded = (args: Object) => {
// let dayButton: HTMLElement = document.getElementById('e-tbr-btn_49');
// trigger.clickEvent(dayButton);
// isCheck = true;
// expect(dayButton !== null).toBe(true);
// done();
// };
// // range.changed = (args: IChangedEventArgs) => {
// // if (isCheck) {
// // expect(args.start !== null).toBe(true);
// // isCheck = false;
// // }
// // done();
// // };
// // range.refresh();
// });
// it('checking 1y click with value type date time category', (done: Function) => {
// range.loaded = (args: Object) => {
// let dayButton: HTMLElement = document.getElementById('e-tbr-btn_52');
// trigger.clickEvent(dayButton);
// isCheck = true;
// expect(dayButton !== null).toBe(true);
// done();
// };
// range.changed = (args: IChangedEventArgs) => {
// if (isCheck) {
// expect(args.start !== null).toBe(true);
// isCheck = false;
// }
// done();
// };
// range.refresh();
// });

it('checking with click with custom range', (done: Function) => {
range.loaded = (args: Object) => {
element = document.getElementById('containercustomRange');
expect(element).not.toEqual(null);
trigger.clickEvent(element);
let list = document.getElementsByClassName('e-day')[44];
trigger.clickEvent(list);
list = document.getElementsByClassName('e-day')[60];
trigger.clickEvent(list);
list = document.getElementsByClassName('e-footer')[0].getElementsByClassName('e-apply')[0];
trigger.clickEvent(list);
done();
};
range.changed = (args: IChangedEventArgs) => {
if (isCheck) {
expect(args.start !== null).toBe(true);
isCheck = false;
}
done();
};
range.refresh();
});
// it('checking with click with custom range', (done: Function) => {
// range.loaded = (args: Object) => {
// element = document.getElementById('containercustomRange');
// expect(element).not.toEqual(null);
// trigger.clickEvent(element);
// let list = document.getElementsByClassName('e-day')[44];
// trigger.clickEvent(list);
// list = document.getElementsByClassName('e-day')[60];
// trigger.clickEvent(list);
// list = document.getElementsByClassName('e-footer')[0].getElementsByClassName('e-apply')[0];
// trigger.clickEvent(list);
// done();
// };
// range.changed = (args: IChangedEventArgs) => {
// if (isCheck) {
// expect(args.start !== null).toBe(true);
// isCheck = false;
// }
// done();
// };
// range.refresh();
// });
});
it('memory leak', () => {
profile.sample();
Expand Down
11 changes: 9 additions & 2 deletions controls/charts/spec/range-navigator/slider/slider.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RangeNavigator } from '../../../src/range-navigator/index';
import { Logarithmic, DateTime, LineSeries, AreaSeries, DateTimeCategory } from '../../../src/chart/index';
import { createElement, remove } from '@syncfusion/ej2-base';
import { IChangedEventArgs } from '../../../src/range-navigator/model/range-navigator-interface';
import { IChangedEventArgs, IRangeLoadedEventArgs } from '../../../src/range-navigator/model/range-navigator-interface';
import { MouseEvents } from '../../../spec/chart/base/events.spec';
import {profile , inMB, getMemoryProfile} from '../../common.spec';
import { PeriodSelector } from '../../../src/common/period-selector/period-selector';
Expand Down Expand Up @@ -594,7 +594,14 @@ describe('Range navigator', () => {
range.theme = 'Fluent2HighContrast'
range.refresh();
});

it('checking the Range-Navigator slider values', (done: Function) => {
range.loaded = (args: IRangeLoadedEventArgs): void => {
args.rangeNavigator.rangeSlider.setSlider(NaN, NaN, false, false, false);
expect(args !== null).toBe(true);
done();
};
range.refresh();
});
});
it('memory leak', () => {
profile.sample();
Expand Down
18 changes: 9 additions & 9 deletions controls/charts/spec/stock-chart/stock-legend.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '632' || xValue === '379' || xValue === '384.5').toBe(true);
expect(xValue === '632' || xValue === '379' || xValue === '384.5' || xValue === '377').toBe(true);
expect(yValue === '369' || yValue === '370').toBe(true);
done();
};
Expand All @@ -486,7 +486,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '764.5' || xValue === '395.5').toBe(true);
expect(xValue === '764.5' || xValue === '395.5' || xValue === '388').toBe(true);
expect(yValue === '394.75'|| yValue === '395').toBe(true);
done();
};
Expand All @@ -499,7 +499,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '668.5' || xValue === '298.5').toBe(true);
expect(xValue === '668.5' || xValue === '298.5' || xValue === '291').toBe(true);
expect(yValue === '394.75'|| yValue === '395').toBe(true);
done();
};
Expand All @@ -512,7 +512,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '632' || xValue === '379' || xValue === '384.5').toBe(true);
expect(xValue === '632' || xValue === '379' || xValue === '384.5' || xValue === '377').toBe(true);
expect(yValue === '18.5' || yValue === '19.5').toBe(true);
done();
};
Expand All @@ -525,7 +525,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '668.5' || xValue === '298.5').toBe(true);
expect(xValue === '668.5' || xValue === '298.5' || xValue === '291').toBe(true);
expect(yValue === '22.25' || yValue === '23.25' || yValue === '22.5').toBe(true);
done();
};
Expand All @@ -538,7 +538,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '764.5' || xValue === '395.5').toBe(true);
expect(xValue === '764.5' || xValue === '395.5' || xValue === '388').toBe(true);
expect(yValue === '22.25' || yValue === '23.25' || yValue === '22.5').toBe(true);
done();
};
Expand All @@ -551,7 +551,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '1454' || xValue === '719.5').toBe(true);
expect(xValue === '1454' || xValue === '719.5' || xValue === '704.5').toBe(true);
expect(yValue === '189.25').toBe(true);
done();
};
Expand All @@ -564,7 +564,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '1454' || xValue === '719.5').toBe(true);
expect(xValue === '1454' || xValue === '719.5' || xValue === '704.5').toBe(true);
expect(yValue === '189.25').toBe(true);
done();
};
Expand All @@ -577,7 +577,7 @@ describe('Stock Chart with Legend', () => {
titleElement = document.getElementById('stock_chart_legend_title');
xValue = titleElement.getAttribute('x');
yValue = titleElement.getAttribute('y');
expect(xValue === '1454' || xValue === '719.5').toBe(true);
expect(xValue === '1454' || xValue === '719.5' || xValue === '704.5').toBe(true);
expect(yValue === '189.25').toBe(true);
done();
};
Expand Down
6 changes: 3 additions & 3 deletions controls/charts/src/chart/axis/strip-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Axis } from '../axis/axis';
import { StripLineSettingsModel } from '../model/chart-base-model';
import {
valueToCoefficient, textElement, RectOption,
appendChildElement, appendClipElement, withIn, getElement, ImageOption
appendChildElement, appendClipElement, withIn, getElement, ImageOption, logBase
} from '../../common/utils/helper';
import { Size, measureText, TextOption, PathOption, Rect, SvgRenderer } from '@syncfusion/ej2-svg-base';
import { ZIndex, Anchor, SizeType } from '../utils/enum';
Expand Down Expand Up @@ -46,9 +46,9 @@ export class StripLine {
axis.labels.indexOf(this.dateToMilliSeconds(end, chart).toString()) : end as number;
} else {
actualStart = stripline.start === null ? null : isDateTimeAxis && this.isCoreDate(stripline.start) ?
this.dateToMilliSeconds(stripline.start, chart) : +stripline.start;
this.dateToMilliSeconds(stripline.start, chart) : +(axis.valueType === 'Logarithmic' ? logBase(stripline.start as number, axis.logBase) : stripline.start);
actualEnd = stripline.end === null ? null : isDateTimeAxis && this.isCoreDate(stripline.start) ?
this.dateToMilliSeconds(stripline.end, chart) : +stripline.end;
this.dateToMilliSeconds(stripline.end, chart) : +(axis.valueType === 'Logarithmic' ? logBase(stripline.end as number, axis.logBase) : stripline.end);
}
}
const rect: { from: number, to: number } = this.getFromTovalue(
Expand Down
9 changes: 3 additions & 6 deletions controls/charts/src/chart/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4526,8 +4526,7 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
refreshBounds = true;
}
if (newProp.primaryXAxis.scrollbarSettings) {
refreshBounds = false;
renderer = true;
refreshBounds = true;
}
if (!isNullOrUndefined(axis.isInversed) || !isNullOrUndefined(axis.opposedPosition)) {
(this.primaryXAxis as Axis).setIsInversedAndOpposedPosition();
Expand All @@ -4543,8 +4542,7 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
refreshBounds = true;
}
if (newProp.primaryYAxis.scrollbarSettings) {
refreshBounds = false;
renderer = true;
refreshBounds = true;
}
if (!isNullOrUndefined(axis.isInversed) || !isNullOrUndefined(axis.opposedPosition)) {
(this.primaryYAxis as Axis).setIsInversedAndOpposedPosition();
Expand All @@ -4558,8 +4556,7 @@ export class Chart extends Component<HTMLElement> implements INotifyPropertyChan
refreshBounds = true;
}
if (axis.scrollbarSettings) {
refreshBounds = false;
renderer = true;
refreshBounds = true;
}
if (!isNullOrUndefined(axis.isInversed) || !isNullOrUndefined(axis.opposedPosition)) {
(this.axes[index as string] as Axis).setIsInversedAndOpposedPosition();
Expand Down
Loading

0 comments on commit 35d2ab5

Please sign in to comment.