Module: Constants

Global constants used across the app.
Author:
  • Radim Brnka
License:
  • MIT
Source:

Members

(static, constant) ADAPTIVE_QUALITY_COOLDOWN :number

Cooldown between quality adjustments in milliseconds.
Type:
  • number
Source:

(static, constant) ADAPTIVE_QUALITY_MIN :number

Minimum extraIterations offset (most aggressive quality reduction).
Type:
  • number
Default Value:
  • -1500 for optimal visual quality.
Source:

(static, constant) ADAPTIVE_QUALITY_STEP :number

Iteration adjustment step per quality change.
Type:
  • number
Source:

(static, constant) ADAPTIVE_QUALITY_THRESHOLD_HIGH :number

GPU time threshold in ms above which quality will be reduced.
Type:
  • number
Default Value:
  • 40 ms (~25 FPS).
Source:

(static, constant) ADAPTIVE_QUALITY_THRESHOLD_LOW :number

GPU time threshold in ms below which quality will be restored
Type:
  • number
Default Value:
  • 16 ms (~60 FPS).
Source:

(static, constant) APP

A configuration object that provides application details
Source:

(static, constant) DEBUG_LEVEL :number

DEBUG_LEVEL
Type:
  • number
Source:

(static, constant) DEBUG_MODE :number

DEBUG MODE - Injected by webpack DefinePlugin at build time. Development builds: DEBUG_LEVEL.FULL Production builds: DEBUG_LEVEL.NONE (debug code tree-shaken away)
Type:
  • number
Source:

(static, constant) DEFAULT_ACCENT_COLOR :string

Default main GUI color (Mandelbrot mode)
Type:
  • string
Source:

(static, constant) DEFAULT_BG_COLOR :string

Default secondary (background) GUI color
Type:
  • string
Source:

(static, constant) DEFAULT_JULIA_PALETTE :JULIA_PALETTE

Default Julia-specific palette.
Type:
  • JULIA_PALETTE
Source:

(static, constant) DEFAULT_JULIA_THEME_COLOR :PALETTE

Default color used based on the initial Julia coloring. It's accent color / 1.9 brightness factor that is hardcoded in the updateColorTheme method.
Type:
  • PALETTE
Source:

(static, constant) DEFAULT_MANDELBROT_THEME_COLOR :PALETTE

Default color used based on the initial Mandelbrot coloring. It's an accent color / 1.9 brightness factor that is hardcoded in the updateColorTheme method.
Type:
  • PALETTE
Source:

(static, constant) EASE_TYPE :function

Ease in-out transition types matching functions in the Utils module
Type:
  • function
Source:

(static, constant) FF_ADAPTIVE_QUALITY :boolean

Feature flag for adaptive quality control. When enabled, automatically adjusts iteration count based on GPU performance.
Type:
  • boolean
Source:

(static, constant) FF_DEMO_ALWAYS_RESETS :boolean

When set to true, demo animation will always start from the beginning rather than continue where it's been interrupted.
Type:
  • boolean
Source:

(static, constant) FF_PERSISTENT_FRACTAL_SWITCHING

Allows switching between fractal while keeping the params to allow Mandelbrot and Julia to match each other
Source:

(static, constant) FF_PERSISTENT_FRACTAL_SWITCHING_BUTTON_DISPLAYED :boolean

Feature flag controlling the display of the persistent fractal switching button in the UI. When enabled, users can see a button to toggle between fractal types while maintaining the current parameters for seamless transitions between Mandelbrot and Julia sets.
Type:
  • boolean
Since:
  • 1.9
Source:

(static, constant) FRACTAL_TYPE :number

Enum of fractal types
Type:
  • number
Source:

(static, constant) LOG_LEVEL :Object

Type:
  • Object
Source:

(static, constant) PI :number|number

PI
Type:
  • number | number
Source:

(static, constant) ROTATION_DIRECTION :number

Rotation directions
Type:
  • number
Source:

(static, constant) SCREENSHOT_JPEG_COMPRESSION_QUALITY :number

Defines the compression quality for JPEG screenshots (0-1) in %
Type:
  • number
Source:

(static, constant) log

Logs a message with an optional scope and severity level.
Source:

(inner, constant) USE_PRECISE_PI :boolean

This is to allow switching between two precisions as the embedded PI constant is too accurate, which is not needed in many cases (rotations etc.)
Type:
  • boolean
Default Value:
  • true
Source: