Commit d6d0c33
refactor: complete JS to TypeScript migration for spreadsheet engine
- Convert all 10 source files from JS to TypeScript
- Create src/types.ts with 18 interfaces/types (CellStyle, CellBorder, CellValue, etc.)
- Add global Window type extensions for WolfTable
- Type Canvas2d class with index signature for dynamic proxy methods
- Type Area class with RowGetter/ColGetter/RowInfo/ColInfo
- Type Range class: fix within() bug (startCode → startCol)
- Type Range.empty: fix getter calling rows() as function instead of property
- Type Viewport with TableContext interface
- Type Table class with all 20+ properties
- Type throttle as generic function
- Type event handlers with MouseEvent casts
- Fix alphabet.ts: parseInt → Math.floor for column index calculation
- Use Math.min/Math.max in Range.union() instead of ternary
- Add JSDoc documentation to all public APIs
- Update tsconfig: allowJs=false1 parent f7d8b3d commit d6d0c33
File tree
18 files changed
+1350
-1323
lines changed- src
18 files changed
+1350
-1323
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
This file was deleted.
0 commit comments