openpencil/tests/engine/editor
sadkodev e91ea4b061
feat(keyboard): add Figma-style opacity shortcuts 1-9/0
Add opacity keyboard shortcuts matching Figma: pressing Digit1-Digit9
sets the selected layers to 10%-90% opacity, and Digit0 sets 100%.

- Add 'selection.setOpacity' EditorCommandId with registry metadata
  (shortcut display '1-9, 0') so it appears in the command cheatsheet
- Implement the command in selection.ts using editor.undo.runBatch +
  updateNodeWithUndo, following the toggleVisibility/setBlendMode pattern
- Add setOpacityTarget closure in useEditorCommands so the external
  keyboard handler can inject the digit value before runCommand
- Add canSetOpacity capability (enabled when there is a selection)
- Add bindOpacityKeys handler in src/app/shell/keyboard/opacity.ts,
  following the nudging.ts external-handler pattern since the opacity
  value comes from event.code and cannot be expressed as a fixed
  keybinding in the registry
- Guard against text editing, number field focus, and modifier keys
- Add i18n label 'setOpacity' across all 8 locales
- Add unit tests for single/multi selection, undo batch, and no-op
2026-07-16 22:12:50 -04:00
..
clipboard test(layout): place auto-layout reflow cases by domain 2026-07-02 10:16:08 +03:00
selection refactor(kiwi): remove redundant core shims 2026-06-30 10:50:30 +03:00
structure fix(editor): relayout after component sync 2026-07-02 10:35:10 +03:00
undo fix(vue): import export types from scene graph package 2026-06-30 11:18:19 +03:00
effects-and-resize.test.ts chore(lint): enforce test complexity limits 2026-05-06 14:18:29 +03:00
graph-events.test.ts fix(editor): separate preview updates from graph mutations 2026-06-30 10:28:02 +03:00
nudge.test.ts style: tighten import grouping 2026-05-06 02:22:08 +03:00
opacity.test.ts feat(keyboard): add Figma-style opacity shortcuts 1-9/0 2026-07-16 22:12:50 -04:00
preview-events.test.ts fix(editor): separate preview updates from graph mutations 2026-06-30 10:28:02 +03:00
text-auto-resize.test.ts fix(text): preserve Figma auto-size text imports 2026-07-02 17:30:15 +03:00
variable-bindings-undo.test.ts fix(scene-graph): deep-copy cloned nodes and validate bindings 2026-06-10 17:10:25 +03:00