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. |
||
|---|---|---|
| .. | ||
| e2e | ||
| engine | ||
| figma | ||
| fixtures | ||
| helpers | ||