Commit 89e8f6f
committed
fix: inline missing helper functions in chart HTML template
`lp_chart_core.ts` generates a self-contained HTML page with inline JS.
The template referenced `roundTo`, `fixedTo`, and `roundToDecimals` from
`math_utils` but never inlined them via `.toString()`, causing
`ReferenceError` in the browser — rendered the chart as a blank page.
## Fix
Added `.toString()` inlining for all three functions after
`padRange.toString()`, matching the pattern already used for
`escapeHtml`, `formatPct`, and `padRange`.
## Testing Notes
- Verified generated HTML now contains all three function definitions
- Chart renders correctly at http://localhost:8080/.../OPTIMIZED_AMA.html1 parent c626354 commit 89e8f6f
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
| |||
0 commit comments