Renders coordinate axes grid overlay for Riemann mode
- Copyright:
- Synaptory Fractal Traveler, 2025-2026
- License:
- MIT
- Source:
Methods
(static) hide()
Hides the axes overlay
- Source:
(static) init(canvasElement, fractalRenderer)
Initializes the axes overlay
Parameters:
| Name | Type | Description |
|---|---|---|
canvasElement |
HTMLCanvasElement | |
fractalRenderer |
Object |
- Source:
(static) isVisible() → {boolean}
Returns current visibility state
- Source:
Returns:
- Type
- boolean
(static) resize()
Resizes the canvas and redraws
- Source:
(static) setRenderer(fractalRenderer)
Sets the renderer reference
Parameters:
| Name | Type | Description |
|---|---|---|
fractalRenderer |
Object |
- Source:
(static) show()
Shows the axes overlay
- Source:
(static) toggle() → {boolean}
Toggles the axes overlay
- Source:
Returns:
New visibility state
- Type
- boolean
(static) update()
Updates the overlay (redraws if visible)
- Source:
(inner) draw()
Draws the coordinate axes with numbers
- Source:
(inner) formatAxisNumber(n) → {string}
Formats axis number for display
Parameters:
| Name | Type | Description |
|---|---|---|
n |
number |
- Source:
Returns:
- Type
- string
(inner) getTickSpacing(zoom) → {number}
Calculates appropriate tick spacing based on zoom level
Parameters:
| Name | Type | Description |
|---|---|---|
zoom |
number |
- Source:
Returns:
- Type
- number