Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/yousifamanuel/terraink
/ functions
Functions
313 in github.com/yousifamanuel/terraink
⨍
Functions
313
◇
Types & classes
83
↓ 30 callers
Function
clamp
(value: number, min: number, max: number)
src/shared/geo/math.ts:5
↓ 18 callers
Function
createSvgIcon
(id: string, label: string, component: IconType)
src/features/markers/infrastructure/iconRegistry.ts:27
↓ 18 callers
Function
normalizeHexColor
(color: string)
src/shared/utils/color.ts:20
↓ 15 callers
Function
compensateLineWidthStops
( stops: [number, number][], )
src/features/map/infrastructure/maplibreStyle.ts:175
↓ 15 callers
Function
lineClassFilter
(classes: string[])
src/features/map/infrastructure/maplibreStyle.ts:181
↓ 15 callers
Function
resolveByCandidates
(theme: ThemeObject, candidates: string[])
src/features/theme/infrastructure/themeRepository.ts:173
↓ 15 callers
Function
widthExpr
(stops: [number, number][])
src/features/map/infrastructure/maplibreStyle.ts:158
↓ 12 callers
Function
getThemeColorByPath
( theme: unknown, keyPath: ThemeColorKey | string, )
src/features/theme/domain/colorPaths.ts:7
↓ 12 callers
Function
opacityExpr
(stops: [number, number][])
src/features/map/infrastructure/maplibreStyle.ts:163
↓ 11 callers
Function
append
(part: string | Uint8Array)
src/features/export/infrastructure/pdfExporter.ts:50
↓ 11 callers
Function
usePosterContext
()
src/features/poster/ui/PosterContext.tsx:233
↓ 8 callers
Function
parseHex
(hex: string)
src/shared/utils/color.ts:61
↓ 7 callers
Method
get
( url: string, options?: RequestInit, timeoutMs?: number, )
src/core/http/ports.ts:2
↓ 6 callers
Function
toPositiveNumber
(value: unknown, fallback: number)
src/shared/utils/number.ts:19
↓ 6 callers
Function
waitForMapIdle
(map: MaplibreMap)
src/features/export/infrastructure/layeredSvgExporter.ts:34
↓ 6 callers
Function
withAlpha
(hex: string, alpha: number)
src/shared/utils/color.ts:200
↓ 5 callers
Function
blendHex
(hexA: string, hexB: string, weight = 0.5)
src/shared/utils/color.ts:209
↓ 5 callers
Function
buildDynamicColorChoices
( currentColor: string, paletteColors: string[], )
src/features/theme/domain/colorSuggestions.ts:36
↓ 5 callers
Function
getPathValue
(theme: ThemeObject, path: string)
src/features/theme/infrastructure/themeRepository.ts:131
↓ 5 callers
Function
isObject
(value: unknown)
src/features/theme/infrastructure/themeRepository.ts:119
↓ 5 callers
Function
scaledStops
( stops: [number, number][], scale: number, )
src/features/map/infrastructure/maplibreStyle.ts:168
↓ 5 callers
Function
toCqMin
(px: number)
src/features/poster/ui/PosterTextOverlay.tsx:50
↓ 5 callers
Function
writeObject
( objectId: number, dictionary: string, streamBytes: Uint8Array | null = null, )
src/features/export/infrastructure/pdfExporter.ts:56
↓ 4 callers
Function
addMore
(color: string)
src/features/theme/domain/colorSuggestions.ts:58
↓ 4 callers
Function
clampDistance
(value: number)
src/features/map/ui/MapDimensionFields.tsx:26
↓ 4 callers
Function
clearColorPickerState
()
src/features/map/ui/MapSettingsSection.tsx:156
↓ 4 callers
Function
distanceToZoom
( distanceMeters: number, latDeg: number, containerPx: number, )
src/features/map/application/useMapSync.ts:21
↓ 4 callers
Function
formatLayoutCm
(value: number)
src/features/layout/domain/layoutMatcher.ts:52
↓ 4 callers
Function
formatPdfNumber
(value: number)
src/features/export/infrastructure/pdfExporter.ts:17
↓ 4 callers
Function
getLayoutOption
(layoutId: string)
src/features/layout/infrastructure/layoutRepository.ts:138
↓ 4 callers
Function
isMobileTouchInput
()
src/features/markers/ui/MarkerOverlay.tsx:72
↓ 4 callers
Function
normalizeLocationResult
( entry: NominatimEntry | null | undefined, fallbackLabel = "", )
src/features/location/infrastructure/locationParser.ts:40
↓ 4 callers
Function
normalizeTheme
(themeInput: unknown)
src/features/theme/infrastructure/themeRepository.ts:182
↓ 4 callers
Function
pickFirstAddressValue
( address: Record<string, string>, keys: string[], )
src/features/location/infrastructure/locationParser.ts:27
↓ 4 callers
Function
shiftHexColor
( color: string, { hShift = 0, sShift = 0, lShift = 0, }: { hShift?: number; sShift?: number
src/shared/utils/color.ts:175
↓ 4 callers
Function
writeUint32BE
(target: Uint8Array, offset: number, value: number)
src/features/export/infrastructure/pngExporter.ts:1
↓ 3 callers
Function
applyResolvedLocation
(location: PendingLocation | null)
src/features/location/ui/StartupLocationModal.tsx:60
↓ 3 callers
Function
closeModal
()
src/features/location/ui/StartupLocationModal.tsx:52
↓ 3 callers
Function
formatLayoutDimensions
(layoutOption: Layout)
src/features/layout/infrastructure/layoutRepository.ts:133
↓ 3 callers
Function
getAllMarkerIcons
(customIcons: MarkerIconDefinition[])
src/features/markers/infrastructure/iconRegistry.ts:82
↓ 3 callers
Function
getGeolocationFailureMessage
( reason: GeolocationFailureReason, options?: { includeManualFallback?: boolean }, )
src/features/location/infrastructure/geolocation.ts:142
↓ 3 callers
Function
hueToRgb
(p: number, q: number, t: number)
src/shared/utils/color.ts:138
↓ 3 callers
Function
isLoading
(format: ExportFormat)
src/features/export/ui/MobileExportFab.tsx:63
↓ 3 callers
Function
isLoading
(fmt: "png" | "pdf" | "svg")
src/features/export/ui/DesktopExportFab.tsx:22
↓ 3 callers
Function
isObject
(value: unknown)
src/features/theme/domain/colorPaths.ts:3
↓ 3 callers
Function
mix
(from: number, to: number)
src/shared/utils/color.ts:223
↓ 3 callers
Function
parseNumericInput
( label: string, value: string | number, )
src/shared/utils/number.ts:4
↓ 3 callers
Method
read
(key: string, maxAgeMs?: number)
src/core/cache/ports.ts:2
↓ 3 callers
Function
requestCurrentPositionWithRetry
({ timeoutMs, maxAttempts = 2, }: GeolocationRequestOptions)
src/features/location/infrastructure/geolocation.ts:62
↓ 3 callers
Function
resolveZoomBounds
( latDeg: number, containerPx: number, )
src/features/map/application/useMapSync.ts:56
↓ 3 callers
Function
runExport
(format: ExportFormat)
src/features/export/ui/MobileExportFab.tsx:49
↓ 3 callers
Function
toHex
(value: number)
src/features/markers/ui/MarkerOverlay.tsx:38
↓ 3 callers
Function
toUniqueHexColors
(colors: string[] = [])
src/shared/utils/color.ts:39
↓ 3 callers
Function
triggerDownloadBlob
(blob: Blob, filename: string)
src/features/export/infrastructure/fileDownloader.ts:1
↓ 3 callers
Function
useLocationAutocomplete
( locationInput: string, isFocused: boolean, )
src/features/location/application/useLocationAutocomplete.ts:11
↓ 3 callers
Function
useMapSync
()
src/features/map/application/useMapSync.ts:80
↓ 3 callers
Method
write
(key: string, data: unknown)
src/core/cache/ports.ts:3
↓ 2 callers
Function
addSuggested
(color: string)
src/features/theme/domain/colorSuggestions.ts:51
↓ 2 callers
Function
applyFades
( ctx: CanvasRenderingContext2D, width: number, height: number, color: string, )
src/features/poster/infrastructure/renderer/layers.ts:3
↓ 2 callers
Function
applyFallback
()
src/features/map/application/useGeolocation.ts:22
↓ 2 callers
Function
applyTarget
( city: string, country: string, continent: string, label: string, includeCoordi
src/features/poster/ui/PreviewPanel.tsx:284
↓ 2 callers
Function
canvasToDataUrl
( width: number, height: number, draw: (ctx: CanvasRenderingContext2D) => void, )
src/features/export/infrastructure/layeredSvgExporter.ts:76
↓ 2 callers
Function
closeModal
()
src/features/updates/ui/AnnouncementModal.tsx:222
↓ 2 callers
Function
createBounds
( centerLat: number, centerLon: number, halfMetersX: number, halfMetersY: number, )
src/shared/geo/bounds.ts:18
↓ 2 callers
Function
createCustomLayoutOption
( widthCm: number, heightCm: number, )
src/features/layout/infrastructure/layoutRepository.ts:147
↓ 2 callers
Function
createDefaultMarkerSettings
()
src/features/markers/infrastructure/helpers.ts:19
↓ 2 callers
Function
createId
(prefix: string)
src/features/markers/infrastructure/helpers.ts:11
↓ 2 callers
Function
createPosterFilename
( cityOrLocation: string, themeId: string, extension = "png", )
src/features/export/infrastructure/filenameGenerator.ts:21
↓ 2 callers
Function
createSymbolFromRatio
(width: number, height: number)
src/features/layout/infrastructure/layoutRepository.ts:34
↓ 2 callers
Function
distanceToSliderValue
(distanceMeters: number)
src/features/map/ui/MapDimensionFields.tsx:42
↓ 2 callers
Function
drawMarkersOnCanvas
( ctx: CanvasRenderingContext2D, markers: MarkerItem[], icons: MarkerIconDefinition[], projection: Mar
src/features/markers/infrastructure/rendering.ts:64
↓ 2 callers
Function
drawPosterText
( ctx: CanvasRenderingContext2D, width: number, height: number, theme: { ui?: { text?: string } }, c
src/features/poster/infrastructure/renderer/typography.ts:22
↓ 2 callers
Function
fetchWithTimeout
( url: string, options: RequestInit = {}, timeoutMs: number = 20_000, )
src/core/http/fetchAdapter.ts:3
↓ 2 callers
Function
findMarkerIcon
( iconId: string, customIcons: MarkerIconDefinition[], )
src/features/markers/infrastructure/iconRegistry.ts:86
↓ 2 callers
Function
formatCityLabel
(city: string)
src/features/poster/domain/textLayout.ts:48
↓ 2 callers
Function
formatCoordinate
(value: number)
src/features/markers/ui/MarkersSection.tsx:57
↓ 2 callers
Function
formatCoordinates
(lat: number, lon: number)
src/shared/geo/posterBounds.ts:48
↓ 2 callers
Function
formatDecimal
(value: number)
src/features/layout/infrastructure/layoutRepository.ts:29
↓ 2 callers
Function
geocodeLocation
(query: string)
src/features/location/infrastructure/nominatimAdapter.ts:57
↓ 2 callers
Function
getStorageKey
(apiUrl: string)
src/shared/hooks/useRepoStars.ts:33
↓ 2 callers
Function
getTheme
(themeName: string)
src/features/theme/infrastructure/themeRepository.ts:318
↓ 2 callers
Function
getThemePalette
(theme: unknown)
src/features/theme/infrastructure/themeRepository.ts:298
↓ 2 callers
Function
getTouchDistance
(touches: TouchListLike)
src/features/markers/ui/MarkerOverlay.tsx:75
↓ 2 callers
Function
hslToRgb
({ h, s, l }: HSL)
src/shared/utils/color.ts:148
↓ 2 callers
Function
isAndroid
()
src/features/install/application/useInstallPrompt.ts:21
↓ 2 callers
Function
isCssColor
(value: string)
src/features/theme/infrastructure/themeRepository.ts:123
↓ 2 callers
Function
isHexColor
(value: string)
src/features/markers/ui/MarkersSection.tsx:47
↓ 2 callers
Function
isInStandaloneMode
()
src/features/install/application/useInstallPrompt.ts:25
↓ 2 callers
Function
isIos
()
src/features/install/application/useInstallPrompt.ts:14
↓ 2 callers
Function
latLonToWorld
(lat: number, lon: number, zoom: number)
src/features/markers/infrastructure/projection.ts:4
↓ 2 callers
Function
loadImage
(src: string)
src/features/markers/infrastructure/rendering.ts:12
↓ 2 callers
Function
matchesLayoutSize
( layoutOption: Layout, widthCm: number, heightCm: number, toleranceCm: number, )
src/features/layout/domain/layoutMatcher.ts:5
↓ 2 callers
Function
normalizePositiveNumber
(value: number, fallback: number)
src/features/export/infrastructure/pdfExporter.ts:12
↓ 2 callers
Function
normalizePosterSizeValue
( value: unknown, fallbackValue: number, minCm: number, maxCm: number, )
src/features/layout/domain/layoutMatcher.ts:39
↓ 2 callers
Function
normalizeReferencePath
(referencePath: string)
src/features/theme/infrastructure/themeRepository.ts:142
↓ 2 callers
Function
openDatabase
()
src/features/markers/infrastructure/customIconStorage.ts:8
↓ 2 callers
Function
rgbToHexColor
({ r, g, b }: RGB)
src/shared/utils/color.ts:100
↓ 2 callers
Function
sanitizeLayerId
(id: string)
src/features/export/infrastructure/layeredSvgExporter.ts:93
↓ 2 callers
Function
searchLocations
( query: string, limit = 6, )
src/features/location/infrastructure/nominatimAdapter.ts:23
↓ 2 callers
Function
snapDistanceToAdaptiveStep
(distanceMeters: number)
src/features/map/ui/MapDimensionFields.tsx:36
next →
1–100 of 313, ranked by callers