Commit ab59771
convert
Convert all 56 methods from aggregation pattern (`drawing.method = fn`)
to named exports (`export function method(...)`). Update 18 consumer
files in the factory bundle to use named imports.
Keeps `export default { ... }` for backward compat with 50+ files
outside the factory bundle.
Factory: 704 KB min (was 707 KB, -3 KB). Modest savings because 40 of
56 methods are still used; the win is in enabling future tree-shaking
as more consumers switch to named imports.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>drawing/index.js to named exports for tree-shaking1 parent f54ba06 commit ab59771
File tree
21 files changed
+368
-310
lines changed- perf
- bundle-compare
- src
- components
- drawing
- fx
- legend
- titles
- plot_api
- plots/cartesian
- traces
- bar
- pie
- scatter
21 files changed
+368
-310
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments