MCPcopy Create free account

hub / github.com/Oslonline/dithering-studio / functions

Functions456 in github.com/Oslonline/dithering-studio

↓ 80 callersFunctioncreateTestImageData
( width: number, height: number, color: [number, number, number, number] = [255, 0, 0, 255] )
src/test/fixtures.ts:8
↓ 50 callersFunctioncanvasToSVG
(canvas: HTMLCanvasElement, opts: CanvasToSVGOptions = {})
src/utils/export.ts:344
↓ 46 callersFunctionwithLangPrefix
(pathname: string, lang: SupportedLanguage)
src/utils/localePath.ts:28
↓ 39 callersFunctionuseErrorTracking
(options: ErrorTrackingOptions = {})
src/hooks/useErrorTracking.ts:35
↓ 38 callersFunctionexpectOnlyPaletteColors
( result: ImageData, palette: [number, number, number][] )
src/test/algorithmTestUtils.ts:64
↓ 35 callersFunctioncreateSolidCanvas
( width: number, height: number, r: number, g: number, b: number, a: number = 255 )
src/test/utils/export.test.ts:6
↓ 33 callersFunctionfindPalette
(id: string | null)
src/utils/palettes.ts:219
↓ 33 callersMethodnewFrame
Start a new frame
src/types/performance.d.ts:76
↓ 32 callersFunctioncreateContext
* Helper to create algorithm run context from ImageData
src/test/utils/algorithms/experimental.test.ts:23
↓ 32 callersMethodendFrame
End current frame
src/types/performance.d.ts:82
↓ 30 callersFunctiontriggerHaptic
(style: HapticStyle = 'light')
src/utils/haptic.ts:31
↓ 26 callersFunctioncreateContext
* Helper to create algorithm run context from ImageData
src/test/utils/algorithms/errorDiffusion.test.ts:32
↓ 25 callersFunctioncreateContext
* Helper to create algorithm run context from ImageData
src/test/utils/algorithms/bayer.test.ts:22
↓ 24 callersFunctionformatBytes
(bytes: number, decimals = 1)
src/utils/fileSizeEstimator.ts:74
↓ 22 callersMethodgetFrames
()
src/utils/perf.ts:18
↓ 22 callersFunctiongetPixel
(x: number, y: number)
src/test/utils/algorithms/bayer.test.ts:71
↓ 19 callersFunctionrenderHookWithDefaults
(overrides = {})
src/test/hooks/useToolKeyboardShortcuts.test.ts:25
↓ 17 callersMethodphaseEnd
End a phase
src/types/performance.d.ts:80
↓ 17 callersMethodphaseStart
Start a phase
src/types/performance.d.ts:78
↓ 17 callersFunctionresultToImageData
* Helper to convert Uint8ClampedArray result back to ImageData
src/test/utils/algorithms/errorDiffusion.test.ts:55
↓ 16 callersFunctiongetCanonicalUrlWithLang
(pathname: string, lang?: string)
src/utils/seo.tsx:95
↓ 16 callersFunctionrenderHookWithDefaults
(overrides: Partial<{ videoMode: boolean }> = {})
src/test/hooks/useClipboardPaste.test.ts:62
↓ 15 callersFunctionbuildImageData
(arr: Uint8ClampedArray, w: number, h: number)
src/components/ui/PatternDrawer.tsx:59
↓ 15 callersFunctioncreateMockClipboardItem
(file: File)
src/test/hooks/useClipboardPaste.test.ts:15
↓ 15 callersFunctioncreatePasteEvent
(items: DataTransferItem[])
src/test/hooks/useClipboardPaste.test.ts:25
↓ 14 callersFunctioncreateContext
* Helper to create algorithm run context from ImageData
src/test/utils/algorithms/blueNoise.test.ts:17
↓ 14 callersFunctiongetSocialImageUrl
()
src/utils/seo.tsx:113
↓ 14 callersFunctionprefetchRoute
(key: RoutePrefetchKey)
src/utils/routePrefetch.ts:18
↓ 14 callersFunctionresultToImageData
* Helper to convert Uint8ClampedArray result back to ImageData
src/test/utils/algorithms/experimental.test.ts:46
↓ 14 callersFunctionrunBlueNoise
(ctx: AlgorithmRunContext)
src/utils/algorithms/orderedAndOther.ts:5
↓ 14 callersFunctionuseSettingsHeight
(headerRef: React.RefObject<HTMLElement | null>, footerRef: React.RefObject<HTMLDivElement | null>, deps: any[
src/hooks/useSettingsHeight.ts:3
↓ 13 callersFunctioncreateGradientImageData
(width: number, height: number)
src/test/fixtures.ts:28
↓ 13 callersFunctionnormalizeLang
(lang: string | null | undefined)
src/utils/localePath.ts:5
↓ 12 callersFunctioncreateMockFile
(name: string, type: string)
src/test/hooks/useClipboardPaste.test.ts:10
↓ 12 callersFunctionrunFloydSteinberg
({ srcData, width, height, params }: AlgorithmRunContext)
src/utils/algorithms/errorDiffusion.ts:92
↓ 11 callersFunctionmulberry32
(seed: number)
src/utils/prng.ts:2
↓ 11 callersFunctionrunBinaryThreshold
(ctx: AlgorithmRunContext)
src/utils/algorithms/orderedAndOther.ts:12
↓ 10 callersFunctionestimateVideoSize
( width: number, height: number, duration: number, // seconds format: 'mp4' | 'webm' = 'webm' )
src/utils/fileSizeEstimator.ts:54
↓ 10 callersFunctionhashStringToSeed
(str: string)
src/utils/prng.ts:12
↓ 10 callersFunctionrunAsciiMosaic
(ctx: AlgorithmRunContext)
src/utils/algorithms/asciiMosaic.ts:42
↓ 9 callersFunctioncreateContext
* Helper to create algorithm run context from ImageData
src/test/utils/algorithms/asciiMosaic.test.ts:12
↓ 9 callersFunctioncreateKernelRunner
(matrix: number[][], divisor: number, serpentineDefault = false)
src/utils/algorithms/errorDiffusion.ts:4
↓ 9 callersFunctionestimatePNGSize
(canvas: HTMLCanvasElement)
src/utils/fileSizeEstimator.ts:3
↓ 9 callersFunctionfindAlgorithm
(id: number)
src/utils/algorithms/index.ts:78
↓ 9 callersFunctionrunHalftone
(ctx: AlgorithmRunContext)
src/utils/algorithms/orderedAndOther.ts:44
↓ 9 callersMethodsubscribe
(fn: Listener)
src/utils/perf.ts:19
↓ 8 callersFunctioncoerceNumber
(n: any, fallback: number)
src/state/settingsPersistence.ts:46
↓ 8 callersFunctiongetOpenGraphLocale
(lang?: string)
src/utils/seo.tsx:60
↓ 8 callersFunctionisErrorDiffusion
(p: number)
src/pages/DitheringTool.tsx:43
↓ 8 callersFunctionresultToImageData
* Helper to convert Uint8ClampedArray result back to ImageData
src/test/utils/algorithms/bayer.test.ts:45
↓ 8 callersFunctionrunRandomThreshold
(ctx: AlgorithmRunContext)
src/utils/algorithms/orderedAndOther.ts:24
↓ 8 callersFunctionvalidateImage
( file: File, options: ImageValidationOptions = {} )
src/utils/validation.ts:28
↓ 7 callersMethodclear
* Clear all buffers from the pool
src/utils/memoryManagement.ts:66
↓ 7 callersFunctioncreateMockFile
( name: string = 'test.png', size: number = 1024, type: string = 'image/png' )
src/test/fixtures.ts:113
↓ 7 callersFunctionerrorDiffusion
(matrix: number[][], divisor: number, serpentineDefault = false)
src/components/ui/PatternDrawer.tsx:70
↓ 7 callersFunctionexpectImageModified
( original: ImageData, result: ImageData )
src/test/algorithmTestUtils.ts:86
↓ 7 callersFunctiongenerateHreflangTags
(pathname: string)
src/utils/seo.tsx:34
↓ 7 callersFunctiongenerateOpenGraphLocaleAlternates
(activeLang?: string)
src/utils/seo.tsx:72
↓ 7 callersFunctiongetOgUrl
(pathname: string, lang?: string)
src/utils/seo.tsx:105
↓ 7 callersMethodreset
Reset all metrics
src/types/performance.d.ts:86
↓ 7 callersFunctionrunBayer2
(ctx: AlgorithmRunContext)
src/utils/algorithms/bayer.ts:120
↓ 7 callersFunctionrunDotDiffusionSimple
(ctx: AlgorithmRunContext)
src/utils/algorithms/orderedAndOther.ts:38
↓ 7 callersFunctionvalidateResolution
(value: number)
src/utils/validation.ts:191
↓ 7 callersFunctionvalidateVideo
( file: File, options: VideoValidationOptions = {} )
src/utils/validation.ts:108
↓ 6 callersFunctionclamp255
(v: number)
src/utils/algorithms/paletteUtil.ts:4
↓ 6 callersFunctiongetPixel
(x: number, y: number)
src/test/utils/algorithms/blueNoise.test.ts:98
↓ 6 callersFunctionrand
()
src/pages/DitheringTool.tsx:195
↓ 6 callersFunctionrandomInRange
(min: number, max: number)
src/components/ui/RandomizeButton.tsx:41
↓ 6 callersFunctionrunBayer4
(ctx: AlgorithmRunContext)
src/utils/algorithms/bayer.ts:121
↓ 6 callersFunctionrunBayer8
(ctx: AlgorithmRunContext)
src/utils/algorithms/bayer.ts:122
↓ 5 callersMethodadd
(task: ProcessTask)
src/utils/backgroundProcessor.ts:15
↓ 5 callersFunctionestimateJPEGSize
(canvas: HTMLCanvasElement, quality = 0.92)
src/utils/fileSizeEstimator.ts:17
↓ 5 callersFunctionestimateSVGSize
(canvas: HTMLCanvasElement)
src/utils/fileSizeEstimator.ts:38
↓ 5 callersFunctiongetOrderedAlgorithmDetails
()
src/utils/algorithmInfo.ts:70
↓ 5 callersFunctionisHapticSupported
()
src/utils/haptic.ts:22
↓ 5 callersFunctionnum
(key: string, min: number, max: number)
src/hooks/useApplyUrlParams.ts:35
↓ 5 callersMethodreadAsDataURL
(_blob: Blob)
src/test/setup.ts:107
↓ 5 callersFunctionrunBayer32
(ctx: AlgorithmRunContext)
src/utils/algorithms/bayer.ts:124
↓ 5 callersFunctionrunBayerGeneric
(ctx: AlgorithmRunContext, size: number)
src/utils/algorithms/bayer.ts:46
↓ 5 callersFunctionuseDebouncedValue
(value: T, delay: number)
src/hooks/useDithering.ts:13
↓ 5 callersFunctionvalidateThreshold
(value: number)
src/utils/validation.ts:212
↓ 5 callersFunctionwithLocalePath
(pathname: string, lang?: string)
src/utils/seo.tsx:21
↓ 4 callersFunctionapplyLuminancePreprocess
(data: Uint8ClampedArray, { contrast, midtones, highlights }: ToneParams)
src/utils/preprocess.ts:13
↓ 4 callersFunctionestimateWebPSize
(canvas: HTMLCanvasElement)
src/utils/fileSizeEstimator.ts:30
↓ 4 callersFunctionformatTime
(seconds: number)
src/components/ui/VideoControls.tsx:93
↓ 4 callersFunctiongetAllFormatSizes
(canvas: HTMLCanvasElement | null)
src/utils/fileSizeEstimator.ts:85
↓ 4 callersFunctionnow
()
src/utils/perf.ts:24
↓ 4 callersFunctionnowStamp
()
scripts/prerender.mjs:131
↓ 4 callersFunctionrandomColor
()
src/components/panels/PalettePanel.tsx:28
↓ 4 callersFunctionrandomPair
()
src/components/panels/PalettePanel.tsx:29
↓ 4 callersFunctionresizeMatrix
(newRows: number, newCols: number)
src/components/panels/CustomKernelEditor.tsx:33
↓ 4 callersFunctionresultToImageData
* Helper to convert Uint8ClampedArray result back to ImageData
src/test/utils/algorithms/blueNoise.test.ts:40
↓ 4 callersFunctionrunBayer16
(ctx: AlgorithmRunContext)
src/utils/algorithms/bayer.ts:123
↓ 4 callersFunctionsavePresets
(list: DitherPreset[])
src/utils/presets.ts:29
↓ 4 callersFunctionvalidatePalette
(colors: [number, number, number][])
src/utils/validation.ts:226
↓ 3 callersFunctionaddImages
(items: { url: string; name?: string; file?: File }[])
src/pages/DitheringTool.tsx:297
↓ 3 callersFunctionaddVideos
(items: { url: string; name?: string; file?: File }[])
src/pages/DitheringTool.tsx:348
↓ 3 callersFunctioncoerceBool
(b: any, fallback: boolean)
src/state/settingsPersistence.ts:47
↓ 3 callersFunctioncreateCheckerboardCanvas
( width: number, height: number, cellSize: number = 1 )
src/test/utils/export.test.ts:76
↓ 3 callersFunctioncreateFocusTrap
(container: HTMLElement)
src/utils/a11y.ts:26
next →1–100 of 456, ranked by callers