Skip to content

Commit f9762d2

Browse files
author
pipeline
committed
v20.1.51 is released
1 parent ae82e11 commit f9762d2

File tree

891 files changed

+30300
-9219
lines changed

Some content is hidden

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

891 files changed

+30300
-9219
lines changed

controls/base/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-base",
3-
"version": "20.1.48",
3+
"version": "20.1.50",
44
"description": "A common package of Essential JS 2 base libraries, methods and class definitions",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/buttons/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## 20.1.50 (2022-04-19)
5+
## 20.1.51 (2022-04-26)
66

77
### Radio Button
88

controls/charts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-charts",
3-
"version": "20.1.48",
3+
"version": "20.1.50",
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/chart/axis/polar-radar-panel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export class PolarRadarPanel extends LineBase {
416416
y1 = this.centerY + radius * vector.y;
417417
x2 = this.centerX + radius * vector2.x;
418418
y2 = this.centerY + radius * vector2.y;
419-
majorGrid = majorGrid.concat((i ? 'L ' : 'M ') + ' ' + x1 + ' ' + y1 + ' ' + 'L ' + ' ' + x2 + ' ' + y2 + ' ');
419+
majorGrid = majorGrid.concat((i ? 'L ' : 'M ') + x1 + ' ' + y1 + ' ' + 'L ' + x2 + ' ' + y2 + ' ');
420420
}
421421
return majorGrid;
422422
}

controls/diagrams/CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
## [Unreleased]
44

5-
## 20.1.50 (2022-04-19)
5+
## 20.1.51 (2022-04-26)
6+
7+
### Diagram
8+
9+
#### Bug Fixes
10+
11+
- `#I375103` - Now, Port visibility will work properly on mouse hover in Canvas mode.
12+
13+
## 20.1.48 (2022-04-12)
614

715
### Diagram
816

controls/diagrams/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-diagrams",
3-
"version": "20.1.47",
3+
"version": "20.1.48",
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/objects/port-visibility.spec.ts

+86
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,92 @@ describe('Diagram Control', () => {
207207
done();
208208
})
209209
});
210+
211+
describe('Port Visiblity in Canvas Mode', () => {
212+
let diagram: Diagram;
213+
let ele: HTMLElement;
214+
215+
let mouseEvents: MouseEvents = new MouseEvents();
216+
217+
beforeAll((): void => {
218+
const isDef = (o: any) => o !== undefined && o !== null;
219+
if (!isDef(window.performance)) {
220+
console.log("Unsupported environment, window.performance.memory is unavailable");
221+
this.skip(); //Skips test (in Chai)
222+
return;
223+
}
224+
ele = createElement('div', { id: 'diagram12' });
225+
document.body.appendChild(ele);
226+
let node1: NodeModel = {
227+
id: 'node1', width: 100, height: 100, offsetX: 100, offsetY: 100,
228+
ports: [{
229+
shape: 'Circle',
230+
visibility: PortVisibility.Visible | PortVisibility.Hover,
231+
offset: { x: 1, y: 0.75 }
232+
}],
233+
annotations: [{ content: 'Mouse Hover' }]
234+
};
235+
let node2: NodeModel = {
236+
id: 'node2', width: 100, height: 100, offsetX: 300, offsetY: 100,
237+
ports: [{
238+
shape: 'Circle',
239+
visibility: PortVisibility.Connect,
240+
offset: { x: 1, y: 0.75 }
241+
}],
242+
annotations: [{ content: 'Connect' }]
243+
};
244+
let node33: NodeModel = {
245+
id: 'node33', width: 100, height: 150, offsetX: 300, offsetY: 500,
246+
ports: [{
247+
shape: 'Circle',
248+
visibility: PortVisibility.Connect,
249+
offset: { x: 1, y: 0.75 }
250+
}],
251+
annotations: [{ content: 'Connect node' }]
252+
};
253+
let node3: NodeModel = {
254+
id: 'node3', width: 100, height: 100, offsetX: 500, offsetY: 100,
255+
ports: [{
256+
shape: 'Circle',
257+
visibility: PortVisibility.Visible,
258+
offset: { x: 1, y: 0.75 }
259+
}],
260+
annotations: [{ content: 'Port Visible' }]
261+
};
262+
let node4: NodeModel = {
263+
id: 'node4', width: 100, height: 100, offsetX: 700, offsetY: 100,
264+
ports: [{
265+
shape: 'Circle',
266+
visibility: PortVisibility.Hidden,
267+
constraints: PortConstraints.Drag,
268+
offset: { x: 1, y: 0.75 }
269+
}],
270+
annotations: [{ content: 'Port Hidden' }]
271+
};
272+
diagram = new Diagram({
273+
width: 1000, height: 1000, nodes: [node1, node2, node3, node4, node33], mode: 'Canvas'
274+
});
275+
276+
diagram.appendTo('#diagram12');
277+
278+
});
279+
280+
afterAll((): void => {
281+
diagram.destroy();
282+
ele.remove();
283+
});
284+
285+
it('Checking PortVisibility - Hover', (done: Function) => {
286+
expect((diagram.nodes[0] as Node).wrapper.children[2].visible === false).toBe(true);
287+
let diagramCanvas: HTMLElement = document.getElementById(diagram.element.id + 'content');
288+
mouseEvents.mouseMoveEvent(diagramCanvas, 60, 60, false, false);
289+
expect((diagram.nodes[0] as Node).wrapper.children[2].visible === true).toBe(true);
290+
mouseEvents.mouseMoveEvent(diagramCanvas, 160, 260, false, false);
291+
expect((diagram.nodes[0] as Node).wrapper.children[2].visible === false).toBe(true);
292+
done();
293+
});
294+
});
295+
210296
describe('Testing symbol palette', () => {
211297
let diagram: Diagram;
212298
let palette: SymbolPalette;

controls/diagrams/src/diagram/diagram.ts

+4
Original file line numberDiff line numberDiff line change
@@ -7719,6 +7719,10 @@ export class Diagram extends Component<HTMLElement> implements INotifyPropertyCh
77197719
if (changed) {
77207720
this.updateDiagramObject(node);
77217721
}
7722+
//EJ2-59672 - Added the below code to render the ports while hovering over the node
7723+
if (this.mode === 'Canvas') {
7724+
this.refreshCanvasLayers();
7725+
}
77227726
}
77237727
}
77247728

controls/diagrams/themestudio/styles/navigations/breadcrumb/_layout.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
.e-breadcrumb-icon {
342342
display: flex;
343343
flex-grow: 1;
344-
justify-content: end;
344+
justify-content: flex-end;
345345
}
346346
}
347347

controls/documenteditor/CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
## [Unreleased]
44

5+
## 20.1.51 (2022-04-26)
6+
7+
### Document Editor
8+
9+
#### Bug Fixes
10+
11+
- `#I361566`, `#I372584` - Resolved the wrapping style issue in header/footer.
12+
- `#I373016` - Resolved the script error in accepting the revision inside the table.
13+
- `#I370714` - Resolved the character format updating issue.
14+
- `#I364803` - Resolved the track changes to empty page.
15+
- `#I356022` - Resolved the wrong comma placing in Hebrew language.
16+
- `#I368816` - Resolved the pie chart rendering and exporting issue.
17+
518
## 20.1.50 (2022-04-19)
619

720
### Document Editor

controls/documenteditor/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-documenteditor",
3-
"version": "20.1.48",
3+
"version": "20.1.50",
44
"description": "Feature-rich document editor control with built-in support for context menu, options pane and dialogs.",
55
"keywords": [
66
"ej2",

controls/documenteditor/spec/implementation/editor/track-changes.spec.ts

+41
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,45 @@ describe('Check the revision collection after perform undo', () => {
338338
container.revisions.acceptAll();
339339
expect(container.revisions.changes.length).toBe(0);
340340
});
341+
});
342+
describe('Check the empty paragraph deletion functionality', () => {
343+
let container: DocumentEditor;
344+
beforeAll(() => {
345+
document.body.innerHTML = '';
346+
let ele: HTMLElement = createElement('div', { id: 'container' });
347+
document.body.appendChild(ele);
348+
DocumentEditor.Inject(Editor, Selection, EditorHistory, SfdtExport);
349+
container = new DocumentEditor({ enableEditor: true, isReadOnly: false, enableEditorHistory: true, enableSfdtExport: true });
350+
(container.documentHelper as any).containerCanvasIn = TestHelper.containerCanvas;
351+
(container.documentHelper as any).selectionCanvasIn = TestHelper.selectionCanvas;
352+
(container.documentHelper.render as any).pageCanvasIn = TestHelper.pageCanvas;
353+
(container.documentHelper.render as any).selectionCanvasIn = TestHelper.pageSelectionCanvas;
354+
container.appendTo('#container');
355+
});
356+
afterAll((done): void => {
357+
container.destroy();
358+
document.body.removeChild(document.getElementById('container'));
359+
container = undefined;
360+
document.body.innerHTML = '';
361+
setTimeout(function () {
362+
done();
363+
}, 1000);
364+
});
365+
it('Check the revision after delete empty paragraph', () => {
366+
console.log('Check the revision after delete empty paragraph');
367+
container.openBlank();
368+
container.editor.insertTable(1,1);
369+
container.editor.insertText("hi");
370+
container.enableTrackChanges = true;
371+
container.editor.onEnter();
372+
container.editor.insertText("hi");
373+
container.enableTrackChanges = false;
374+
container.selection.moveToPreviousLine();
375+
container.selection.moveToParagraphStart();
376+
container.editor.delete();
377+
container.editor.delete();
378+
container.editor.delete();
379+
container.revisions.acceptAll();
380+
expect(container.revisions.changes.length).toBe(0);
381+
});
341382
});

0 commit comments

Comments
 (0)