Update snpashots.
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 76 KiB |
@ -23,7 +23,6 @@ class CurvedLinePeer extends ElementPeer {
|
|||||||
constructor() {
|
constructor() {
|
||||||
const svgElement = window.document.createElementNS(ElementPeer.svgNamespace, 'path');
|
const svgElement = window.document.createElementNS(ElementPeer.svgNamespace, 'path');
|
||||||
super(svgElement);
|
super(svgElement);
|
||||||
this._style = { fill: '#495879' };
|
|
||||||
this._customControlPoint_1 = false;
|
this._customControlPoint_1 = false;
|
||||||
this._customControlPoint_2 = false;
|
this._customControlPoint_2 = false;
|
||||||
this._control1 = new Point(0, 0);
|
this._control1 = new Point(0, 0);
|
||||||
@ -96,7 +95,7 @@ class CurvedLinePeer extends ElementPeer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setStrokeWidth(width) {
|
setStrokeWidth(width) {
|
||||||
this._style['stroke-width'] = width;
|
this._native.setAttribute('stroke-width', width);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateLine(avoidControlPointFix) {
|
updateLine(avoidControlPointFix) {
|
||||||
@ -127,11 +126,8 @@ class CurvedLinePeer extends ElementPeer {
|
|||||||
|
|
||||||
setWidth(value) {
|
setWidth(value) {
|
||||||
this._width = value;
|
this._width = value;
|
||||||
if (this._width > 1) {
|
if (this._width === 1) {
|
||||||
this._style.fill = this._fill;
|
this.setFill('none');
|
||||||
} else {
|
|
||||||
this._fill = this._style.fill;
|
|
||||||
this._style.fill = 'none';
|
|
||||||
}
|
}
|
||||||
this.updateLine();
|
this.updateLine();
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
context('Editor Page', () => {
|
context('Editor Page', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit('/c/maps/11/edit');
|
cy.visit('/c/maps/11/edit');
|
||||||
|
cy.get('[aria-label="vortex-loading"]', { timeout: 120000 }).should('not.exist');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('page loaded', () => {
|
it('page loaded', () => {
|
||||||
// Wait for load complate ...
|
|
||||||
cy.get('[aria-label="vortex-loading"]').should('not.exist');
|
|
||||||
|
|
||||||
cy.matchImageSnapshot('editor-page');
|
cy.matchImageSnapshot('editor-page');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |