diff --git a/packages/editor/cypress/snapshots/topicFontChange.cy.ts/changeFontSizeSmall.snap.png b/packages/editor/cypress/snapshots/topicFontChange.cy.ts/changeFontSizeSmall.snap.png index c6c5ae21..7d0afc3c 100644 Binary files a/packages/editor/cypress/snapshots/topicFontChange.cy.ts/changeFontSizeSmall.snap.png and b/packages/editor/cypress/snapshots/topicFontChange.cy.ts/changeFontSizeSmall.snap.png differ diff --git a/packages/editor/cypress/snapshots/topicShape.cy.ts/changeToRoundedRectangle.snap.png b/packages/editor/cypress/snapshots/topicShape.cy.ts/changeToRoundedRectangle.snap.png index 02e732b8..1fe362d9 100644 Binary files a/packages/editor/cypress/snapshots/topicShape.cy.ts/changeToRoundedRectangle.snap.png and b/packages/editor/cypress/snapshots/topicShape.cy.ts/changeToRoundedRectangle.snap.png differ diff --git a/packages/web2d/cypress/snapshots/playground.cy.js/Curved Line.snap.png b/packages/web2d/cypress/snapshots/playground.cy.js/Curved Line.snap.png index 7c0e85c4..4f425c98 100644 Binary files a/packages/web2d/cypress/snapshots/playground.cy.js/Curved Line.snap.png and b/packages/web2d/cypress/snapshots/playground.cy.js/Curved Line.snap.png differ diff --git a/packages/web2d/src/components/peer/svg/CurvedLinePeer.js b/packages/web2d/src/components/peer/svg/CurvedLinePeer.js index a10fc79f..18696dd0 100644 --- a/packages/web2d/src/components/peer/svg/CurvedLinePeer.js +++ b/packages/web2d/src/components/peer/svg/CurvedLinePeer.js @@ -23,7 +23,6 @@ class CurvedLinePeer extends ElementPeer { constructor() { const svgElement = window.document.createElementNS(ElementPeer.svgNamespace, 'path'); super(svgElement); - this._style = { fill: '#495879' }; this._customControlPoint_1 = false; this._customControlPoint_2 = false; this._control1 = new Point(0, 0); @@ -96,7 +95,7 @@ class CurvedLinePeer extends ElementPeer { } setStrokeWidth(width) { - this._style['stroke-width'] = width; + this._native.setAttribute('stroke-width', width); } updateLine(avoidControlPointFix) { @@ -127,11 +126,8 @@ class CurvedLinePeer extends ElementPeer { setWidth(value) { this._width = value; - if (this._width > 1) { - this._style.fill = this._fill; - } else { - this._fill = this._style.fill; - this._style.fill = 'none'; + if (this._width === 1) { + this.setFill('none'); } this.updateLine(); } diff --git a/packages/webapp/cypress/e2e/editor.cy.ts b/packages/webapp/cypress/e2e/editor.cy.ts index 66ab0f1c..381f5f02 100644 --- a/packages/webapp/cypress/e2e/editor.cy.ts +++ b/packages/webapp/cypress/e2e/editor.cy.ts @@ -1,12 +1,10 @@ context('Editor Page', () => { beforeEach(() => { cy.visit('/c/maps/11/edit'); + cy.get('[aria-label="vortex-loading"]', { timeout: 120000 }).should('not.exist'); }); it('page loaded', () => { - // Wait for load complate ... - cy.get('[aria-label="vortex-loading"]').should('not.exist'); - cy.matchImageSnapshot('editor-page'); }); }); diff --git a/packages/webapp/cypress/snapshots/editor.cy.ts/editor-page.snap.png b/packages/webapp/cypress/snapshots/editor.cy.ts/editor-page.snap.png index 475b17ed..9b31f0c5 100644 Binary files a/packages/webapp/cypress/snapshots/editor.cy.ts/editor-page.snap.png and b/packages/webapp/cypress/snapshots/editor.cy.ts/editor-page.snap.png differ