Skip to content

Commit d08063b

Browse files
author
pipeline
committed
v28.2.3 is released
1 parent caf1904 commit d08063b

File tree

472 files changed

+22321
-713
lines changed

Some content is hidden

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

472 files changed

+22321
-713
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-
## 28.1.41 (2025-01-21)
5+
## 28.2.3 (2025-01-29)
66

77
### Barcode
88

controls/buttons/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-
## 28.1.41 (2025-01-21)
5+
## 28.2.3 (2025-01-29)
66

77
### Switch
88

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-
## 28.1.41 (2025-01-21)
5+
## 28.2.3 (2025-01-29)
66

77
### DatePicker
88

controls/charts/CHANGELOG.md

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

33
## [Unreleased]
44

5+
## 28.2.3 (2025-01-29)
6+
7+
### Chart
8+
9+
#### Bug Fixes
10+
11+
- `#I679703` - The arguments in the `axisMultiLabelRender` event can now be modified correctly.
12+
513
## 28.1.41 (2025-01-21)
614

715
### Chart

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": "28.1.39",
3+
"version": "28.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/src/accumulation-chart/renderer/funnel-series.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import { AccPoints, AccumulationSeries } from '../model/acc-base';
66
import { Size, PathOption } from '@syncfusion/ej2-svg-base';
7-
import { ChartLocation, appendChildElement, removeElement } from '../../common/utils/helper';
7+
import { ChartLocation, ColorValue, appendChildElement, removeElement } from '../../common/utils/helper';
88
import { AccumulationChart } from '../accumulation';
99
import { TriangularBase } from './triangular-base';
1010

@@ -141,7 +141,6 @@ export class FunnelSeries extends TriangularBase {
141141
}
142142
}
143143

144-
145144
/**
146145
* To get the module name of the funnel series.
147146
*

controls/charts/src/chart/axis/multi-level-labels.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { Chart } from '../chart';
55
import { Axis } from '../axis/axis';
66
import { FontModel } from '../../common/model/base-model';
7-
import { isNullOrUndefined } from '@syncfusion/ej2-base';
7+
import { extend, getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
88
import { textWrap, appendClipElement, appendChildElement } from '../../common/utils/helper';
99
import { valueToCoefficient, textTrim, textElement, withInBounds } from '../../common/utils/helper';
1010
import { Size, measureText, TextOption, PathOption, Rect, SvgRenderer } from '@syncfusion/ej2-svg-base';
@@ -148,8 +148,9 @@ export class MultiLevelLabel {
148148
pathRect = '';
149149
start = typeof categoryLabel.start === 'string' ? Number(new Date(categoryLabel.start)) : categoryLabel.start;
150150
end = typeof categoryLabel.end === 'string' ? Number(new Date(categoryLabel.end)) : categoryLabel.end;
151+
const labelFontStyle: FontModel = <FontModel>(extend({}, getValue('properties', multiLevel.textStyle), null, true));
151152
argsData = this.triggerMultiLabelRender(
152-
axis, categoryLabel.text, axis.multiLevelLabels[level as number].textStyle,
153+
axis, categoryLabel.text, labelFontStyle,
153154
axis.multiLevelLabels[level as number].alignment, categoryLabel.customAttributes);
154155
if (!argsData.cancel) {
155156
startX = valueToCoefficient(<number>start, axis) * axisRect.width;
@@ -385,8 +386,9 @@ export class MultiLevelLabel {
385386
startY = valueToCoefficient(<number>(start), axis) * (rect.height);
386387
endY = valueToCoefficient(<number>(end), axis) * (rect.height);
387388
endY = isInversed ? [startY, startY = endY][0] : endY;
389+
const labelFontStyle: FontModel = <FontModel>(extend({}, getValue('properties', multiLevel.textStyle), null, true));
388390
argsData = this.triggerMultiLabelRender(
389-
axis, categoryLabel.text, multiLevel.textStyle, multiLevel.alignment, categoryLabel.customAttributes);
391+
axis, categoryLabel.text, labelFontStyle, multiLevel.alignment, categoryLabel.customAttributes);
390392
if (!argsData.cancel) {
391393
const maximumWidth: number = ((categoryLabel.maximumTextWidth === null ?
392394
(this.yAxisMultiLabelHeight[level as number] / 2) : categoryLabel.maximumTextWidth / 2));

controls/data/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-
## 28.1.41 (2025-01-21)
5+
## 28.2.3 (2025-01-29)
66

77
### DataManager
88

controls/diagrams/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-
## 28.1.41 (2025-01-21)
5+
## 28.2.3 (2025-01-29)
66

77
### Diagram
88

controls/documenteditor/spec/implementation/editor_4.spec.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,3 +903,53 @@ describe('Select and delete multiple paragraph', () => {
903903
expect(((editor.documentHelper.pages[0].bodyWidgets[0].childWidgets[0] as ParagraphWidget).childWidgets[0] as LineWidget).children[3] instanceof BookmarkElementBox).toBe(true);
904904
});
905905
});
906+
907+
describe('Insert text after and before the block content control', () => {
908+
let editor: DocumentEditor;
909+
beforeAll((): void => {
910+
let ele: HTMLElement = createElement('div', { id: 'container' });
911+
document.body.appendChild(ele);
912+
editor = new DocumentEditor({ enableEditor: true, isReadOnly: false });
913+
DocumentEditor.Inject(Editor, Selection, EditorHistory); editor.enableEditorHistory = true;
914+
(editor.documentHelper as any).containerCanvasIn = TestHelper.containerCanvas;
915+
(editor.documentHelper as any).selectionCanvasIn = TestHelper.selectionCanvas;
916+
(editor.documentHelper.render as any).pageCanvasIn = TestHelper.pageCanvas;
917+
(editor.documentHelper.render as any).selectionCanvasIn = TestHelper.pageSelectionCanvas;
918+
editor.appendTo('#container');
919+
});
920+
afterAll((done): void => {
921+
editor.destroy();
922+
document.body.removeChild(document.getElementById('container'));
923+
editor = undefined;
924+
setTimeout(function () {
925+
document.body.innerHTML = '';
926+
done();
927+
}, 1000);
928+
});
929+
it('Insert text before the block content control', () => {
930+
console.log('Insert text before the block content control');
931+
editor.editor.insertText('Text before the content control1');
932+
editor.editor.onEnter();
933+
editor.editor.insertText('Text before the content control2');
934+
editor.selectionModule.selectAll();
935+
editor.editor.insertContentControl('RichText');
936+
editor.selectionModule.select('0;0;0', '0;0;0');
937+
editor.editor.insertText('Syncfusion');
938+
expect(editor.documentHelper.pages[0].bodyWidgets[0].childWidgets.length).toBe(3);
939+
editor.editorHistoryModule.undo();
940+
expect(editor.documentHelper.pages[0].bodyWidgets[0].childWidgets.length).toBe(2);
941+
editor.editorHistoryModule.redo();
942+
expect(editor.documentHelper.pages[0].bodyWidgets[0].childWidgets.length).toBe(3);
943+
editor.editorHistoryModule.undo();
944+
});
945+
it('Insert text after the block content control', () => {
946+
console.log('Insert text after the block content control');
947+
editor.selectionModule.select('0;1;33', '0;1;33');
948+
editor.editor.insertText('Syncfusion');
949+
expect(editor.documentHelper.pages[0].bodyWidgets[0].childWidgets.length).toBe(3);
950+
editor.editorHistoryModule.undo();
951+
expect(editor.documentHelper.pages[0].bodyWidgets[0].childWidgets.length).toBe(2);
952+
editor.editorHistoryModule.redo();
953+
expect(editor.documentHelper.pages[0].bodyWidgets[0].childWidgets.length).toBe(3);
954+
});
955+
});

0 commit comments

Comments
 (0)