refactor(canvas): remove unused animation and optimize edge insertion timing
- Removed the unused CSS animation for edge insertion to streamline the codebase. - Updated the edge insertion reflow duration from 1297ms to 997ms for improved performance. - Refactored transition timing function for edge insertion to enhance animation smoothness. - Cleaned up related test cases to reflect the changes in edge insertion logic.
This commit is contained in:
@@ -27,7 +27,7 @@ export type EdgeInsertMenuState = {
|
||||
};
|
||||
|
||||
const EDGE_INSERT_GAP_PX = 10;
|
||||
const DEFAULT_REFLOW_SETTLE_MS = 1297;
|
||||
const DEFAULT_REFLOW_SETTLE_MS = 997;
|
||||
|
||||
function waitForReflowSettle(ms: number): Promise<void> {
|
||||
return new Promise((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user