alro65 acd3330bcd fix: _h2r parses rgb() strings to prevent NaN in canvas gradients
_darken3D / _lighten3D return 'rgb(r,g,b)' CSS strings.
When those values were passed as colList to drawCylinder/drawSphere,
_cylGrad called _lighten3D(col) → _h2r('rgb(...)') → parseInt('rg',16)=NaN,
causing addColorStop to throw and killing ALL pillar/tower/sphere buoy symbols.

Fix: _h2r now detects the 'rgb(' prefix and extracts the three integers
via regex before falling through to the existing hex path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 16:00:14 -04:00
S
Description
Maritime Aids-to-Navigation monitoring with AIS and S-57 ENC charts
178 MiB
Languages
JavaScript 50%
Python 36.6%
HTML 6.6%
CSS 5.4%
PowerShell 1.1%
Other 0.3%