Skip to content

Commit 9066901

Browse files
author
pipeline
committed
v19.2.59 is released
1 parent 409852a commit 9066901

File tree

112 files changed

+3966
-584
lines changed

Some content is hidden

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

112 files changed

+3966
-584
lines changed

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-
## 19.2.57 (2021-08-24)
5+
## 19.2.59 (2021-08-31)
66

77
### Checkbox
88

controls/charts/CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,28 @@
22

33
## [Unreleased]
44

5+
## 19.2.59 (2021-08-31)
6+
7+
### Chart
8+
9+
- `#I340170` - Resolved console error thrown on mouse move after removing the chart.
10+
- Accumulation chart explode is now working properly.
11+
- `339227` - Logarithmic axis is now working fine for data value below 1.
12+
513
## 19.2.57 (2021-08-24)
614

715
### Chart
816

917
#### Bug Fixes
1018

19+
- `#337302` - Browser responsive issue while zooming the chart has been fixed.
20+
21+
## 19.2.56 (2021-08-17)
22+
23+
### Chart
24+
25+
#### Bug Fixes
26+
1127
- `#337487` - Query selector issue fixed for container ID.
1228

1329
## 19.2.55 (2021-08-11)
@@ -1476,4 +1492,4 @@ Graphics (SVG).
14761492
- **Animation** - Chart series will be animated when rendering and refreshing the chart widget.
14771493
- **User Interaction** - Supports interactive features that are zooming, panning, crosshair, trackball, tooltip, and data point selection.
14781494
- **Annotation** - Supports annotation to mark a specific area in chart.
1479-
- **Export** - Supports to print the chart directly from the browser and exports the chart in both JPEG and PNG format.
1495+
- **Export** - Supports to print the chart directly from the browser and exports the chart in both JPEG and PNG format.

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": "19.2.55",
3+
"version": "19.2.57",
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/scrollbar/scrollbar-multiple.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ describe('Scrollbar Chart', () => {
9696
trigger.draganddropEvent(ele, 200, 200, 350, 350);
9797
let svgChildEleX: Element = document.getElementById('container_scrollBar_svgprimaryXAxis').children[0];
9898
let thumbRectEleX: Element = svgChildEleX.children[1].children[0];
99-
expect(thumbRectEleX.getAttribute('x') === '156.41452639545386' || thumbRectEleX.getAttribute('x') === '161.14452850120242').toBe(true);
99+
expect(parseInt(thumbRectEleX.getAttribute('x'), 10) === 156
100+
|| parseInt(thumbRectEleX.getAttribute('x'), 10) === 161).toBe(true);
100101
expect(thumbRectEleX.getAttribute('y') === '0').toBe(true);
101102
expect(thumbRectEleX.getAttribute('height') === '16').toBe(true);
102103
expect(thumbRectEleX.getAttribute('width') === '40').toBe(true);
@@ -118,8 +119,7 @@ describe('Scrollbar Chart', () => {
118119
let svgChildEleX: Element = document.getElementById('container_scrollBar_svgprimaryXAxis').children[0];
119120
let thumbRectEleX: Element = svgChildEleX.children[1].children[0];
120121
let xAxisThumbX: string = thumbRectEleX.getAttribute('x');
121-
expect(xAxisThumbX === '157.59707074139632' || xAxisThumbX === '157.79394403401517'
122-
|| xAxisThumbX === '162.35513365043468').toBe(true);
122+
expect(parseInt(xAxisThumbX, 10) === 158 || parseInt(xAxisThumbX, 10) === 162).toBe(true);
123123
expect(thumbRectEleX.getAttribute('y') === '0').toBe(true);
124124
expect(thumbRectEleX.getAttribute('height') === '16').toBe(true);
125125
expect(thumbRectEleX.getAttribute('width') === '40').toBe(true);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,8 +1693,8 @@ export class AccumulationChart extends Component<HTMLElement> implements INotify
16931693
extend(this.changeVisibleSeries(this.visibleSeries, i), series, null, true);
16941694
seriesRefresh = true;
16951695
}
1696-
if (newProp.series[i] && newProp.series[i].explodeIndex &&
1697-
newProp.series[i].explodeIndex !== oldProp.series[i].explodeIndex) {
1696+
if (newProp.series[i] && !isNullOrUndefined(newProp.series[i].explodeIndex) && newProp.series[i].explodeIndex >= 0
1697+
&& newProp.series[i].explodeIndex !== oldProp.series[i].explodeIndex) {
16981698
this.accBaseModule.explodePoints(newProp.series[i].explodeIndex, this);
16991699
this.accBaseModule.deExplodeAll(newProp.series[i].explodeIndex, this.enableAnimation ? 300 : 0);
17001700
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,8 @@ export class SeriesBase extends ChildProperty<SeriesBase> {
12411241
seriesMinY = yValue;
12421242
}
12431243
this.yMin = isLogAxis ?
1244-
Math.min(this.yMin, (isNullOrUndefined(seriesMinY) || isNaN(seriesMinY) || (seriesMinY === 0)) ? this.yMin : seriesMinY) :
1244+
Math.min(this.yMin, (isNullOrUndefined(seriesMinY) || isNaN(seriesMinY) || (seriesMinY === 0) ||
1245+
(seriesMinY.toString() === '')) ? this.yMin : seriesMinY) :
12451246
Math.min(this.yMin, (isNullOrUndefined(seriesMinY) || isNaN(seriesMinY)) ? this.yMin : seriesMinY);
12461247
this.yMax = Math.max(this.yMax, (isNullOrUndefined(yValue) || isNaN(yValue)) ? this.yMax : yValue);
12471248
}

controls/charts/src/chart/user-interaction/zooming.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ export class Zoom {
279279
argsData.currentZoomFactor *= (zoomRect.height / bounds.height);
280280
}
281281
}
282+
if (parseFloat(axis.zoomFactor.toFixed(3)) <= 0.001) {
283+
argsData.currentZoomFactor = argsData.previousZoomFactor;
284+
argsData.currentZoomPosition = argsData.previousZoomPosition;
285+
}
282286
if (!argsData.cancel) {
283287
axis.zoomFactor = argsData.currentZoomFactor;
284288
axis.zoomPosition = argsData.currentZoomPosition;

controls/charts/src/common/scrollbar/scrollbar.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ export class ScrollBar {
285285
public scrollMouseMove(e: PointerEvent): void {
286286
const target: Element = <Element>e.target;
287287
const elem: ScrollElements = this.scrollElements;
288+
if (!getElement(this.svgObject.id)) {
289+
return null;
290+
}
288291
this.getMouseXY(e);
289292
this.setCursor(target);
290293
this.setTheme(target);

controls/circulargauge/CHANGELOG.md

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

55
## [Unreleased]
66

7-
## 19.2.57 (2021-08-24)
7+
## 19.2.59 (2021-08-31)
88

99
### CircularGauge
1010

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-
## 19.2.57 (2021-08-24)
5+
## 19.2.59 (2021-08-31)
66

77
### DataManager
88

controls/diagrams/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+
## 19.2.59 (2021-08-31)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `#I339487` - The issue "The connector drawing object does not snap to near by port" has been fixed.
12+
513
## 19.2.57 (2021-08-24)
614

715
### Diagram

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": "19.2.56",
3+
"version": "19.2.57",
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",

controls/diagrams/spec/diagram/interaction/port-contraints.spec.ts

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ConnectorModel } from '../../../src/diagram/objects/connector-model';
55
import { NodeModel } from '../../../src/diagram/objects/node-model';
66
import { PointPortModel } from '../../../src/diagram/objects/port-model';
77
import { MouseEvents } from './mouseevents.spec';
8-
import { PortConstraints } from '../../../src/diagram/enum/enum';
8+
import { PortConstraints,ConnectorConstraints } from '../../../src/diagram/enum/enum';
99
import { Node } from '../../../src/diagram/objects/node';
1010
import { PortVisibility, DiagramTools } from '../../../src/diagram/index';
1111
import { NodeConstraints } from '../../../src/index';
@@ -706,4 +706,68 @@ describe('Diagram Control', () => {
706706
});
707707
});
708708

709+
describe('Connection Padding ', () => {
710+
let diagram: Diagram;
711+
let ele: HTMLElement;
712+
713+
let mouseEvents: MouseEvents = new MouseEvents();
714+
715+
beforeAll((): void => {
716+
const isDef = (o: any) => o !== undefined && o !== null;
717+
if (!isDef(window.performance)) {
718+
console.log("Unsupported environment, window.performance.memory is unavailable");
719+
this.skip(); //Skips test (in Chai)
720+
return;
721+
}
722+
ele = createElement('div', { id: 'diagram4' });
723+
document.body.appendChild(ele);
724+
let node1: NodeModel = {
725+
id: 'node1', width: 100, height: 150, offsetX: 150, offsetY: 150, annotations: [{ content: 'Node1' }],
726+
shape: { type: 'Basic', shape: 'Rectangle' },
727+
ports: [
728+
{ id: 'port3', visibility: PortVisibility.Visible, height: 50, width: 50, shape: 'Circle', constraints: PortConstraints.Draw | PortConstraints.InConnect, offset: { x: 1, y: 0.5 } },
729+
],
730+
};
731+
let node2: NodeModel = {
732+
id: 'node2', width: 100, height: 100, offsetX: 468, offsetY: 150, annotations: [{ content: 'Node2' }],
733+
shape: { type: 'Basic', shape: 'Rectangle' },
734+
ports: [
735+
{ id: 'port21', visibility: PortVisibility.Visible, height: 50, width: 50, constraints: PortConstraints.Draw | PortConstraints.InConnect, shape: 'Circle', offset: { x: 0.5, y: 0 } },
736+
{ id: 'port31', visibility: PortVisibility.Visible, height: 50, width: 50, shape: 'Circle', constraints: PortConstraints.Draw | PortConstraints.InConnect, offset: { x: 0, y: 0.5 } },
737+
{ id: 'port41', visibility: PortVisibility.Visible, height: 50, width: 50, shape: 'Circle', constraints: PortConstraints.Draw | PortConstraints.InConnect, offset: { x: 0.5, y: 1 } }
738+
]
739+
};
740+
diagram = new Diagram({
741+
742+
width: '1000px', height: '500px', nodes: [node1, node2],
743+
getConnectorDefaults: (obj: ConnectorModel, diagram: Diagram) => {
744+
if (obj.id.indexOf('connector') !== -1) {
745+
obj.type = 'Orthogonal';
746+
obj.targetDecorator = { shape: 'Arrow', width: 10, height: 10 };
747+
}
748+
obj.constraints = ConnectorConstraints.Default & ~ConnectorConstraints.ConnectToNearByNode;
749+
obj.connectionPadding = 55;
750+
return obj;
751+
},
752+
});
753+
754+
diagram.appendTo('#diagram4');
755+
});
756+
757+
afterAll((): void => {
758+
diagram.destroy();
759+
ele.remove();
760+
});
761+
762+
it('By Port Draw checking the ConnectToNearByPort', (done: Function) => {
763+
let mouseEvents: MouseEvents = new MouseEvents();
764+
let diagramCanvas: HTMLElement = document.getElementById(diagram.element.id + 'content');
765+
mouseEvents.mouseDownEvent(diagramCanvas, 196, 149);
766+
mouseEvents.mouseMoveEvent(diagramCanvas, 400, 160);
767+
mouseEvents.mouseLeaveEvent(diagramCanvas);
768+
expect(diagram.connectors[0].connectionPadding).toBe(55);
769+
done();
770+
});
771+
});
772+
709773
});

controls/diagrams/src/diagram/interaction/event-handlers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,11 @@ export class DiagramEventHandler {
850850
const selectedConnector: ConnectorModel = targetObject.connectors[0];
851851
padding = (selectedConnector.constraints & ConnectorConstraints.ConnectToNearByPort) ? selectedConnector.connectionPadding : 0;
852852
}
853+
else if (targetObject && (targetObject instanceof Connector) && this.action === 'PortDraw' && (this.tool instanceof ConnectorDrawingTool)) {
854+
if (targetObject.constraints & ConnectorConstraints.ConnectToNearByPort) {
855+
padding = targetObject.connectionPadding;
856+
}
857+
}
853858
return padding || 0;
854859
}
855860
private getBlazorClickEventArgs(arg: IClickEventArgs | IBlazorClickEventArgs): IBlazorClickEventArgs {

controls/documenteditor/CHANGELOG.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,34 @@
22

33
## [Unreleased]
44

5+
## 19.2.59 (2021-08-31)
6+
7+
### Document Editor
8+
9+
#### Bug Fixes
10+
11+
- `#I339105` - Resolved the number formatting color change issue.
12+
- `#I340265` - Text form field default value is preserved in word export.
13+
- `#I336632` - Style names are now properly listed in the drop down.
14+
- `#I338027` - Track changes close icon is now positioned properly in RTL mode.
15+
- `#I337566` - Resolved the table empty paragraph rendering issue.
16+
517
## 19.2.57 (2021-08-24)
618

719
### Document Editor
820

921
#### Bug Fixes
1022

11-
`#I335857` - Resolved the after spacing preservation issue in copy paste.
12-
`#I335107` - Resolved the table rendering issue.
13-
`#I334046` - Optimized the spell check by page service call in optimized spell check mode.
14-
`#I330165`, `#I327647`, `#I324515`, `#I338278` - Resolved the issues in comment delete and history operation.
15-
`#I336315` - Resolved the tab issue for the text with floating table.
16-
`#I319206` - Resolved issue with horizontal line shape rendering.
17-
`#F167416` - Line spacing is now preserved properly in server side export.
18-
`#I337720` - Resolved the localization in Document Editor.
19-
`#I335145`, `#I337499` - Resolved the text measuring issue when HTML and Body tag contains styles.
23+
- `#I335857` - Resolved the after spacing preservation issue in copy paste.
24+
- `#I335107` - Resolved the table rendering issue.
25+
- `#I336632` - Resolved the next style hierarchy issue.
26+
- `#I334046` - Optimized the spell check by page service call in optimized spell check mode.
27+
- `#I330165`, `#I327647`, `#I324515`, `#I338278` - Resolved the issues in comment delete and history operation.
28+
- `#I336315` - Resolved the tab issue for the text with floating table.
29+
- `#I319206` - Resolved issue with horizontal line shape rendering.
30+
- `#F167416` - Line spacing is now preserved properly in server side export.
31+
- `#I337720` - Resolved the localization in Document Editor.
32+
- `#I335145`, `#I337499` - Resolved the text measuring issue when HTML and Body tag contains styles.
2033

2134
## 19.2.56 (2021-08-17)
2235

@@ -26,7 +39,7 @@
2639

2740
- `#I337569` - Resolved the table relayout issue for the document with compatibility mode.
2841
- `#I331349` - Resolved the text content clipping issue.
29-
- `#I336632` - Resolved the next style hierarchy issue .
42+
- `#I336632` - Resolved the next style hierarchy issue.
3043

3144
## 19.2.55 (2021-08-11)
3245

controls/documenteditor/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-documenteditor",
3-
"version": "19.2.56",
3+
"version": "19.2.57",
44
"description": "Feature-rich document editor control with built-in support for context menu, options pane and dialogs.",
55
"keywords": [
66
"ej2",

0 commit comments

Comments
 (0)