Global

Members

# constant DATASET_CONFIGS

Configuration mapping for all available datasets

View Source backend/src/routes/interfaces.ts, line 2

# constant fetchStiples

Fetch stipples data from the API for a specific dataset

View Source frontend/src/api/repository.ts, line 10

Methods

# generateBuffers(device, stipples) → {Object}

Generates vertex and index buffers for rendering stipples

Parameters:
Name Type Description
device GPUDevice

The WebGPU device

stipples Array.<Stipple>

Array of stipple points to render

View Source frontend/src/generateBuffers.ts, line 12

Object containing the vertex buffer, index buffer, and vertex count

Object

# module:frontend/components/drawer()

Initializes the drawer component with toggle functionality Sets up event listeners and initial state for the settings panel

View Source frontend/src/components/drawer/Drawer.ts, line 12

If required DOM elements are not found

console.error

Type Definitions

object

# Circle

Circle type definitions and helper functions for stipple visualization

Properties:
Name Type Description
density number

Density value (1 32-bit float)

offset Array

Position offset [x, y] (2 32-bit floats)

radius number

Circle radius (1 32-bit float)

View Source frontend/src/Stippling/Circle.ts, line 52

string

# DataSetType

Available dataset types for stippling

View Source frontend/src/api/interface.ts, line 59

string

# DatasetType

Available dataset types for stippling

View Source backend/src/routes/interfaces.ts, line 118

object

# FromWorkerMessage

Message type received from the Web Worker during/after stippling

Properties:
Name Type Description
progress number

Progress percentage (0-100)

done boolean

Whether processing is complete

iteration number

Current iteration number

stipples Array

Current array of stipple points

voronoi d3.Voronoi.<number>

Current Voronoi diagram

View Source frontend/src/Stippling/WorkerTypes.ts, line 16

object

# ToWorkerMessage

Message type sent to the Web Worker to initiate stippling

Properties:
Name Type Description
densityFunction DensityFunction2D

Density function to process

initialStippleRadius number

Initial radius for stipple points

initialErrorThreshold number

Initial error threshold for convergence

thresholdConvergenceRate number

Rate at which threshold converges

maxIterations number

Maximum number of iterations

View Source frontend/src/Stippling/WorkerTypes.ts, line 6

ValidationSuccess | ValidationFailure

# ValidationResult

Union type for validation results

View Source backend/src/routes/interfaces.ts, line 99