fix: empty snapLines arrays would cause re-render (#7454)

Co-authored-by: Lynda Lin <lynda.lin@optoma.com>
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
Lynda Lin 2023-12-18 20:42:17 +08:00 committed by GitHub
parent 7bd6496854
commit 2a0fe2584e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 139 additions and 64 deletions

View file

@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`duplicate element on move when ALT is clicked > rectangle 1`] = `
exports[`duplicate element on move when ALT is clicked > rectangle 5`] = `
{
"angle": 0,
"backgroundColor": "transparent",
@ -32,7 +32,7 @@ exports[`duplicate element on move when ALT is clicked > rectangle 1`] = `
}
`;
exports[`duplicate element on move when ALT is clicked > rectangle 2`] = `
exports[`duplicate element on move when ALT is clicked > rectangle 6`] = `
{
"angle": 0,
"backgroundColor": "transparent",
@ -64,7 +64,7 @@ exports[`duplicate element on move when ALT is clicked > rectangle 2`] = `
}
`;
exports[`move element > rectangle 1`] = `
exports[`move element > rectangle 5`] = `
{
"angle": 0,
"backgroundColor": "transparent",
@ -96,7 +96,7 @@ exports[`move element > rectangle 1`] = `
}
`;
exports[`move element > rectangles with binding arrow 1`] = `
exports[`move element > rectangles with binding arrow 5`] = `
{
"angle": 0,
"backgroundColor": "transparent",
@ -133,7 +133,7 @@ exports[`move element > rectangles with binding arrow 1`] = `
}
`;
exports[`move element > rectangles with binding arrow 2`] = `
exports[`move element > rectangles with binding arrow 6`] = `
{
"angle": 0,
"backgroundColor": "transparent",
@ -170,7 +170,7 @@ exports[`move element > rectangles with binding arrow 2`] = `
}
`;
exports[`move element > rectangles with binding arrow 3`] = `
exports[`move element > rectangles with binding arrow 7`] = `
{
"angle": 0,
"backgroundColor": "transparent",

View file

@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`multi point mode in linear elements > arrow 1`] = `
exports[`multi point mode in linear elements > arrow 3`] = `
{
"angle": 0,
"backgroundColor": "transparent",
@ -54,7 +54,7 @@ exports[`multi point mode in linear elements > arrow 1`] = `
}
`;
exports[`multi point mode in linear elements > line 1`] = `
exports[`multi point mode in linear elements > line 3`] = `
{
"angle": 0,
"backgroundColor": "transparent",