Fixes issue with xy panel (#935)
* update deps * fixes #930 * update workflow * Update TopPanel.js * fix side effects * Update utilities-performance.cy.js
This commit is contained in:
@@ -5,6 +5,7 @@ import * as utilities from '../../../packages/svgcanvas/core/utilities.js'
|
||||
import * as math from '../../../packages/svgcanvas/core/math.js'
|
||||
import * as path from '../../../packages/svgcanvas/core/path.js'
|
||||
import setAssertionMethods from '../../support/assert-close.js'
|
||||
import * as units from '../../../packages/svgcanvas/core/units.js'
|
||||
|
||||
// eslint-disable-next-line
|
||||
chai.use(setAssertionMethods)
|
||||
@@ -94,6 +95,7 @@ describe('utilities bbox', function () {
|
||||
}
|
||||
|
||||
path.init(mockSvgCanvas)
|
||||
units.init({ getRoundDigits: () => 2 }) // mock getRoundDigits
|
||||
mockaddSVGElementsFromJsonCallCount = 0
|
||||
})
|
||||
|
||||
|
||||
@@ -4,9 +4,11 @@ import 'pathseg'
|
||||
import { NS } from '../../../packages/svgcanvas/core/namespaces.js'
|
||||
import * as utilities from '../../../packages/svgcanvas/core/utilities.js'
|
||||
import * as math from '../../../packages/svgcanvas/core/math.js'
|
||||
import * as units from '../../../packages/svgcanvas/core/units.js'
|
||||
|
||||
describe('utilities performance', function () {
|
||||
let currentLayer; let groupWithMatrixTransform; let textWithMatrixTransform
|
||||
units.init({ getRoundDigits: () => 2 }) // mock getRoundDigits
|
||||
beforeEach(() => {
|
||||
document.body.textContent = ''
|
||||
const style = document.createElement('style')
|
||||
|
||||
Reference in New Issue
Block a user