Skip to content

Commit 01d866d

Browse files
committed
Improvement - VueUiXy - Improve general component performance
1 parent c79a37e commit 01d866d

File tree

3 files changed

+167
-89
lines changed

3 files changed

+167
-89
lines changed

TestingArena/ArenaVueUiXy.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ const model = ref([
772772
{ key: 'chart.tooltip.position', def: 'center', type: 'select', options: ['left', 'center', 'right'] },
773773
{ key: 'chart.tooltip.offsetY', def: 24, type: 'number', min: 0, max: 48 },
774774
{ key: 'chart.tooltip.showTimeLabel', def: true, type: 'checkbox' },
775-
{ key: 'chart.tooltip.smooth', def: false, type: 'checkbox' },
775+
{ key: 'chart.tooltip.smooth', def: true, type: 'checkbox' },
776776
{ key: 'chart.tooltip.backdropFilter', def: false, type: 'checkbox' },
777777
778778
{ key: 'bar.borderRadius', def: 2, type: 'number', min: 0, max: 120, label: 'borderRadius', category: 'bar' },

src/components/vue-ui-xy.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe("<VueUiXy />", () => {
176176
});
177177

178178
cy.log("@selectX");
179-
cy.get('.vue-ui-xy').trigger('click', { force: true, x: 50, y: 100})
179+
cy.get('.vue-ui-xy').trigger('mouseenter').trigger('click', { x: 40, y: 200})
180180
.then(() => {
181181
expect(wrapper.emitted("selectX")).to.deep.equal([
182182
[
@@ -338,8 +338,8 @@ describe("<VueUiXy />", () => {
338338
},
339339
},
340340
}).then(() => {
341-
cy.get('[data-cy="xy-svg"]').trigger('mouseenter', { force: true });
342-
cy.get('[data-cy="xy-svg"]').trigger('mousemove', { force: true });
341+
cy.get('[data-cy="xy-svg"]').trigger('mouseenter');
342+
cy.get('[data-cy="xy-svg"]').trigger('mousemove');
343343
cy.get('[data-cy="time-tag"]').should('be.visible').and('contain', "175 - CUSTOM")
344344
})
345345
})

0 commit comments

Comments
 (0)