Problem
assets/components/signature-pad.ts clears segment.innerHTML and recreates every path on each syncPaths() call (lines 57-73)
Proposed fix
Diff by path index / data attribute; reuse nodes; only append/update/remove deltas. Add tests in assets/test/component/signature-pad.test.ts (create if missing).
Problem
assets/components/signature-pad.ts clears segment.innerHTML and recreates every path on each syncPaths() call (lines 57-73)
Proposed fix
Diff by path index / data attribute; reuse nodes; only append/update/remove deltas. Add tests in assets/test/component/signature-pad.test.ts (create if missing).