refactor(canvas): update edge insertion reflow duration and transition timing

- Reduced the edge insertion reflow duration from 1297ms to 997ms for improved performance.
- Changed the transition timing function to a cubic-bezier for smoother animations in the canvas.
This commit is contained in:
2026-04-05 23:32:00 +02:00
parent fa6a41f775
commit b47720a50b
3 changed files with 4 additions and 46 deletions

View File

@@ -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) => {