openpencil/src
Danila Poyarkov 1631d48c40 Reduce cyclomatic complexity below 20 in all functions
Extract dispatch branches into focused helpers:

use-canvas-input.ts (5 functions, was 21–61):
- onMouseDown → handleSelectDown, startPanDrag, tryStartRotation,
  tryStartResize, handleTextEditClick, duplicateAndDrag
- onMouseMove → dragNodes, updatePan, updateRotation,
  extendTextSelection, updateDrawShape, updateMarquee
- onMouseUp → commitDrag, commitDrawing, reparentOutsideNodes
- applyResize → constrainToAspectRatio
- computeAutoLayoutIndicatorForFrame → computeIndicatorPosition

use-keyboard.ts (was 39):
- onEventFired → shouldPreventDefault + Set-based lookups

server.ts (was 34):
- handleRequest → Partial<Record> command dispatch map

LayerTree.vue (was 22):
- updateDropTarget → classifyDropZone, resolveInsertPosition

use-text-edit.ts (was 27):
- onKeyDown → handleDeletion, handleHorizontalArrow, metaKeyActions map
2026-03-09 11:24:56 +03:00
..
ai Fix all code review issues in RPC bridge 2026-03-07 20:42:37 +03:00
automation Reduce cyclomatic complexity below 20 in all functions 2026-03-09 11:24:56 +03:00
components Reduce cyclomatic complexity below 20 in all functions 2026-03-09 11:24:56 +03:00
composables Reduce cyclomatic complexity below 20 in all functions 2026-03-09 11:24:56 +03:00
engine Remove re-export shims and import types directly from core 2026-03-09 08:56:47 +03:00
shims Multi-provider AI, sucrase JSX, Figma zoom shortcuts (#72) 2026-03-08 22:05:18 +03:00
stores Add custom JS lint rules, replace inline types with named imports 2026-03-09 09:41:28 +03:00
utils Refactor mobile drawer: use VueUse composables, unify panels 2026-03-05 22:13:24 +03:00
views Update README roadmap, features, tool counts, and project structure 2026-03-08 00:04:22 +03:00
app.css Fix scrollbar: use utility class instead of global selector 2026-03-04 09:35:30 +03:00
App.vue Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
constants.ts Remove re-export shims and import types directly from core 2026-03-09 08:56:47 +03:00
demo.ts Delete re-export shims, import from @open-pencil/core directly 2026-03-06 21:42:56 +03:00
env.d.ts Eliminate as Record<string, unknown> casts 2026-03-06 21:43:32 +03:00
global.d.ts Release v0.3.2 2026-03-02 11:36:18 +03:00
main.ts Fix all type-aware lint warnings 2026-03-08 23:04:44 +03:00
router.d.ts Move demo to /demo route, add @unhead/vue for title management 2026-03-06 20:54:48 +03:00
router.ts Move demo to /demo route, add @unhead/vue for title management 2026-03-06 20:54:48 +03:00