openpencil/tests/engine
Danila Poyarkov a32b134eba
Improve zoom smoothness, add absolute position cache (#21)
* Improve trackpad pinch-zoom smoothness

- Replace Math.pow(0.99, delta) with Math.exp(-delta/100) zoom curve
  for natural, symmetric scaling that handles both tiny trackpad deltas
  and large mouse wheel jumps gracefully
- Normalize wheel deltaMode (LINE → 40px, PAGE → 800px) so external
  mice on Firefox produce consistent zoom behavior
- Clamp per-flush scale factor to 0.75–1.25 to prevent jarring jumps
  from discrete mouse wheel ticks

* Add per-frame absolute position cache for SceneGraph
2026-03-03 11:44:31 +03:00
..
abspos-cache.test.ts Improve zoom smoothness, add absolute position cache (#21) 2026-03-03 11:44:31 +03:00
clipboard.test.ts Fix pasteID int overflow and make error toasts copyable 2026-03-02 18:55:49 +03:00
effects-and-resize.test.ts Fix effects rendering: shadows, blur, spread (#24) 2026-03-03 09:53:39 +03:00
eval-cli.test.ts Add 17 CLI integration tests for eval command 2026-03-01 13:07:06 +03:00
export-jsx.test.ts Add Code tab with JSX export and syntax highlighting 2026-03-01 12:12:45 +03:00
fig-import.test.ts Add fig-import unit tests for Tier 1 rendering features 2026-02-28 16:43:43 +03:00
fig-roundtrip.test.ts Add .fig roundtrip tests: real file parsing, property invariants, encode/decode cycle 2026-03-01 10:33:58 +03:00
figma-api.test.ts Fill Figma Plugin API gaps: 29 new tests, 30+ new properties and methods 2026-03-01 13:35:02 +03:00
layout.test.ts Add layout tests, fix cross-axis sizing bugs 2026-02-28 13:59:39 +03:00
mcp-server.test.ts Add MCP server edge-case tests for find_nodes and Zod validation 2026-03-02 11:16:19 -08:00
mcp.test.ts Add MCP server package with stdio and HTTP transports 2026-03-02 14:20:49 +03:00
render.test.ts JSX renderer in @open-pencil/core 2026-03-01 10:42:06 +03:00
renderer-effects.test.ts Cache effect ImageFilters and reuse layer paint 2026-03-03 10:12:02 +03:00
scene-graph.test.ts Add variables support: collections, modes, bindings, UI panel 2026-03-01 01:47:52 +03:00
tools-ai-adapter.test.ts Unify tool definitions: define once, adapt for AI/CLI/MCP 2026-03-01 15:02:05 +03:00
tools-cli.test.ts Unify tool definitions: define once, adapt for AI/CLI/MCP 2026-03-01 15:02:05 +03:00
tools.test.ts Unify tool definitions: define once, adapt for AI/CLI/MCP 2026-03-01 15:02:05 +03:00