Extract opacityFromBuffer as a pure function in core/editor and test it directly. Covers Figma semantics: 0→100%, 5→50%, 28→28%, 00→0%, 100→100%, clamp at 100%, NaN guard. Refactor the keyboard handler to reuse the shared function instead of inlining the buffer math. |
||
|---|---|---|
| .. | ||
| clipboard | ||
| selection | ||
| structure | ||
| undo | ||
| effects-and-resize.test.ts | ||
| graph-events.test.ts | ||
| nudge.test.ts | ||
| opacity.test.ts | ||
| preview-events.test.ts | ||
| text-auto-resize.test.ts | ||
| variable-bindings-undo.test.ts | ||