Module: JuliaSlidersController

Controller of Julia slider elements directly interacting with the c-value of Julia fractal.
Author:
  • Radim Brnka
License:
  • MIT
Source:

Members

(static, constant) disableJuliaSliders

Disable slider controls
Source:

(static, constant) enableJuliaSliders

Enable slider controls
Source:

(inner, constant) SLIDER_UPDATE_THROTTLE_LIMIT :number

Throttle limit in milliseconds. 50ms = 20 updates/sec - smooth enough for visual feedback, reduces DOM thrash during animations.
Type:
  • number
Source:

(inner, constant) ZERO_SNAP_THRESHOLD

Threshold for snapping to exactly zero
Source:

(inner, constant) ZERO_ZONE_THRESHOLD

Threshold for "near zero" visual feedback
Source:

Methods

(static) destroyJuliaSliders()

Destructor. Removes listeners and hides elements.
Source:

(static) initJuliaSliders(app)

Initializes the elements and their event listeners
Parameters:
Name Type Description
app FractalRenderer
Source:

(static) resetJuliaSliders()

Resets sliders
Source:

(static) updateJuliaSliders()

Updates the real/imaginary sliders appropriately
Source:

(inner) snapToZero(value) → {number}

Snaps value to zero if within snap threshold
Parameters:
Name Type Description
value number
Source:
Returns:
Type
number

(inner) updateZeroZoneState(slider, value)

Updates slider visual state based on proximity to zero
Parameters:
Name Type Description
slider HTMLInputElement
value number
Source: