• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

naver / billboard.js / 42995749175
94%

Build:
DEFAULT BRANCH: master
Ran 11 Nov 2026 09:35AM UTC
Jobs 3
Files 177
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Nov 2026 09:30AM UTC coverage: 93.842% (-0.02%) from 93.865%
42995749175

push

github

web-flow
refactor: isolate chart type and canvas feature code per module (#4272)

* refactor(types): isolate funnel and the canvas drawing of treemap per chart type

So that a bundle has the code of the chart types it uses only.

- register the parts of a chart type of its own module by name
  (registerCustomType: hooks, canvas parts) instead of flat properties on the
  prototype, so more than one of these modules can be in a bundle
- move the funnel code out of the shared files into the funnel module: text
  positions, label data, the data transform after unload, and the notice that
  canvas mode is not supported (hooks); its classes are added to the class map
  when the module is called
- add a registry for the canvas parts of the types that can be more than one in
  a chart (registerCanvasType, getCanvasTypeParts) and move the treemap canvas
  drawing and hit detection into src/canvas/treemap.ts
- fall back to SVG with a warning when canvas mode is requested for treemap
  and only its svg part was imported, instead of drawing nothing
- merge TYPE_METHOD_NEEDED and CUSTOM_TYPE_NAMES into one table keyed by the
  type name, and tell which part of a type module is missing (getTypeMethod)
  when canvas modules are used in the svg mode, instead of "is not a function"
- keep the styled console output of logError

Existing tests that checked the old internals (the table keys, the module
import hints by stubs, the custom type of funnel, drawTreemaps and the treemap
hit block on stub contexts) are rewritten with the same meaning.

* refactor(canvas): isolate grid, flow, subchart and selection per feature module

The canvas drawing code of these features was always bundled with the canvas
entry, whether the feature module was imported or not. Move it behind the
module of each feature, so a canvas bundle carries it only when imported.

- add src/canvas/{grid,flow,subchart,selection}.ts and canvas entry resolvers
  (canvasGrid, canvasFlow, canvasSubchart, canvasSelecti... (continued)

12130 of 13477 branches covered (90.01%)

Branch coverage included in aggregate %.

1092 of 1136 new or added lines in 34 files covered. (96.13%)

1 existing line in 1 file now uncovered.

15176 of 15621 relevant lines covered (97.15%)

30688.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
92.73
src/canvas/subchart.ts
10
86.99
-7.68% src/ChartInternal/shape/funnel.ts
10
86.6
src/canvas/grid.ts
5
94.12
src/canvas/selection.ts
1
96.84
-0.02% src/ChartInternal/shape/core/bullet.ts
1
94.96
src/canvas/flow.ts

Coverage Regressions

Lines Coverage ∆ File
1
92.91
-0.28% src/canvas/axisTicks.ts
Jobs
ID Job ID Ran Files Coverage
1 run-24.x - 42995749175.1 11 Nov 2026 09:35AM UTC 177
93.84
GitHub Action Run
2 run-22.x - 42995749175.2 11 Nov 2026 09:36AM UTC 177
93.84
GitHub Action Run
3 run-23.x - 42995749175.3 11 Nov 2026 09:36AM UTC 177
93.84
GitHub Action Run
Source Files on build 42995749175
  • Tree
  • List 177
  • Changed 30
  • Source Changed 28
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42995749175
  • ec0fdb6a on github
  • Prev Build on master (#42966407372)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc