Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CookSleep/gpt_image_playground
/ functions
Functions
1,073 in github.com/CookSleep/gpt_image_playground
⨍
Functions
1,073
◇
Types & classes
79
↓ 3 callers
Function
restoreGalleryInputDraftState
(draft: AgentInputDraft | null)
src/store.ts:1096
↓ 3 callers
Function
restoreMask
(imageData: ImageData)
src/components/MaskEditorModal.tsx:381
↓ 3 callers
Function
safeCreateImageThumbnail
(dataUrl: string)
src/lib/db.ts:325
↓ 3 callers
Function
sanitizeFileNamePart
(value: string)
src/lib/exportFileName.ts:10
↓ 3 callers
Function
saveGalleryInputDraft
(state: Pick<AppState, 'appMode' | 'galleryInputDraft' | 'prompt' | 'inputImages' | 'maskDraft' | 'maskEditorI
src/store.ts:1086
↓ 3 callers
Function
scheduleThumbnailBackfill
(ids: Iterable<string>, priority: 'visible' | 'background' = 'background')
src/store.ts:235
↓ 3 callers
Function
scheduleThumbnailBackfillTick
()
src/store.ts:244
↓ 3 callers
Function
setZipDownloadRouteEnabled
(route: ZipDownloadRoute, enabled: boolean)
src/components/SettingsModal.tsx:574
↓ 3 callers
Function
shouldFailAlternating
(mode, pathname)
scripts/mock-image-api.mjs:122
↓ 3 callers
Function
showCodexCliPrompt
(force = false, reason = '接口返回的提示词已被改写')
src/store.ts:1795
↓ 3 callers
Function
stopAgentResponse
(conversationId = useStore.getState().activeAgentConversationId)
src/store.ts:2653
↓ 3 callers
Function
storeTaskOutputImages
(task: TaskRecord, images: string[])
src/store.ts:2848
↓ 3 callers
Function
suppressGlobalClicks
(durationMs = 450)
src/lib/clickSuppression.ts:5
↓ 3 callers
Function
updateCopyImportUrlOptions
(patch: Partial<CopyImportUrlOptions>)
src/components/SettingsModal.tsx:581
↓ 3 callers
Function
validateMaskTarget
(inputImages: InputImage[], targetImageId: string)
src/lib/mask.ts:5
↓ 3 callers
Function
zoomAtPoint
( transform: ViewTransform, point: Point, nextScale: number, viewportSize: Size, )
src/lib/viewportTransform.ts:45
↓ 2 callers
Function
activateFirstImportedProfile
(settings: AppSettings, importedSettings: unknown)
src/lib/urlSettings.ts:61
↓ 2 callers
Function
appendQuery
(path: string, query?: Record<string, string>)
src/lib/openaiCompatibleImageApi.ts:29
↓ 2 callers
Function
applyBoundary
(range: Range, boundary: Boundary, target: 'start' | 'end')
src/components/InputBar.tsx:306
↓ 2 callers
Function
applyUrlSettings
(baseSettings: Partial<AppSettings>)
src/App.tsx:40
↓ 2 callers
Function
assertMaxBytes
(label: string, bytes: number, maxBytes: number)
src/lib/imageApiShared.ts:73
↓ 2 callers
Function
beginPinchGesture
()
src/components/MaskEditorModal.tsx:225
↓ 2 callers
Function
beginSelection
(target: HTMLElement, clientX: number, clientY: number, isCtrl: boolean)
src/components/TaskGrid.tsx:59
↓ 2 callers
Function
buildAgentContinuationInput
(baseInput: unknown[], round: AgentRound, tasks: TaskRecord[], currentRoundOutput: ResponsesOutputItem[], tool
src/store.ts:3209
↓ 2 callers
Function
buildExportZip
(params: BuildExportZipParams)
src/lib/exportZip.ts:31
↓ 2 callers
Function
buildTransparentPrompt
(prompt: string)
src/lib/transparentImage.ts:25
↓ 2 callers
Function
bytesToBase64
(bytes: Uint8Array)
src/lib/dataUrl.ts:9
↓ 2 callers
Function
bytesToDataUrl
(bytes: Uint8Array, filePath: string)
src/lib/dataUrl.ts:26
↓ 2 callers
Function
callAgentConversationTitleApi
(opts: { settings: AppSettings profile: ApiProfile prompt: string imageDataUrls?: string[] signal?:
src/lib/agentApi.ts:757
↓ 2 callers
Function
callHybridImageApiSingle
(opts: { taskId: string prompt: string referenceImageDataUrls: string[] taskParams: Ta
src/store.ts:4047
↓ 2 callers
Function
callImagesApiSingle
(opts: CallApiOptions, profile: ApiProfile)
src/lib/openaiCompatibleImageApi.ts:553
↓ 2 callers
Function
callResponsesImageApiSingle
(opts: CallApiOptions, profile: ApiProfile)
src/lib/openaiCompatibleImageApi.ts:1038
↓ 2 callers
Function
canCopyImageToClipboard
()
src/lib/clipboard.ts:30
↓ 2 callers
Function
canScrollAxis
(element: HTMLElement, axis: 'x' | 'y', delta: number)
src/hooks/usePreventBackgroundScroll.ts:23
↓ 2 callers
Function
canScrollWithin
(root: HTMLElement, target: EventTarget | null, delta: ScrollDelta)
src/hooks/usePreventBackgroundScroll.ts:51
↓ 2 callers
Function
ceilToMultiple
(value: number, multiple: number)
src/lib/size.ts:20
↓ 2 callers
Function
centroid
(a: Point, b: Point)
src/components/MaskEditorModal.tsx:59
↓ 2 callers
Function
clearInputDraftState
()
src/store.ts:1038
↓ 2 callers
Function
clearTouchDrag
()
src/components/Select.tsx:166
↓ 2 callers
Function
clearUrlSettingParams
(searchParams: URLSearchParams)
src/lib/urlSettings.ts:153
↓ 2 callers
Function
clientPointToCanvasPoint
(rect: ClientRectLike, point: Point, canvasSize: Size)
src/lib/viewportTransform.ts:86
↓ 2 callers
Function
configureFal
(profile: ApiProfile)
src/lib/falAiImageApi.ts:39
↓ 2 callers
Function
confirmCopyProfileImportUrl
(profile: ApiProfile)
src/components/SettingsModal.tsx:653
↓ 2 callers
Function
confirmRename
()
src/components/HistoryModal.tsx:147
↓ 2 callers
Function
confirmRename
()
src/components/favorites/FavoriteCollectionPickerModal.tsx:256
↓ 2 callers
Function
confirmRenameConversation
()
src/components/AgentWorkspace.tsx:596
↓ 2 callers
Function
copyImageSourceToClipboard
(src: string | Promise<string | undefined>)
src/lib/clipboard.ts:18
↓ 2 callers
Function
copyProfileImportUrl
(profile: ApiProfile, options: CopyImportUrlOptions)
src/components/SettingsModal.tsx:643
↓ 2 callers
Function
countResponseToolCalls
(output: ResponsesOutputItem[])
src/store.ts:3182
↓ 2 callers
Function
createAgentAssistantFallbackItem
(text: string)
src/store.ts:3027
↓ 2 callers
Function
createAgentBatchImagesInputItem
(round: AgentRound, tasks: TaskRecord[], batchTaskIds: string[])
src/store.ts:2985
↓ 2 callers
Function
createAgentRecoveryPauseError
()
src/store.ts:2487
↓ 2 callers
Function
createDefaultCustomProviderForm
()
src/components/SettingsModal.tsx:152
↓ 2 callers
Function
createFavoriteCollection
(name: string)
src/store.ts:4960
↓ 2 callers
Function
createInputImageFromFile
(file: File)
src/store.ts:5581
↓ 2 callers
Function
createOpenAIResponse
(req, mode, n = 1)
scripts/mock-image-api.mjs:151
↓ 2 callers
Function
createResponsesPayload
(mode)
scripts/mock-image-api.mjs:233
↓ 2 callers
Function
createTransparentOutputMeta
(prompt: string)
src/lib/transparentImage.ts:38
↓ 2 callers
Function
customProviderToForm
(provider: CustomProviderDefinition)
src/components/SettingsModal.tsx:158
↓ 2 callers
Function
deleteImageIfUnreferenced
(imageId: string)
src/store.ts:955
↓ 2 callers
Function
distance
(a: Point, b: Point)
src/components/MaskEditorModal.tsx:55
↓ 2 callers
Function
endSelection
(clearEmptySurfaceClick = false, suppressClick = false)
src/components/TaskGrid.tsx:138
↓ 2 callers
Function
endSelection
(clearEmptySurfaceClick = false, suppressClick = false)
src/hooks/useDragSelect.ts:119
↓ 2 callers
Function
ensureImageThumbnailCached
(id: string)
src/store.ts:198
↓ 2 callers
Function
escapeHtml
(text: string)
src/components/InputBar.tsx:182
↓ 2 callers
Function
escapeXmlAttribute
(value: string)
src/store.ts:3014
↓ 2 callers
Function
executeTask
(taskId: string)
src/store.ts:4657
↓ 2 callers
Function
extractCustomImages
(payload: unknown, result: CustomProviderResultMapping, mime: string, signal?: AbortSignal)
src/lib/openaiCompatibleImageApi.ts:810
↓ 2 callers
Function
extractImageFromOutputItem
(item: ResponsesOutputItem, fallbackMime: string)
src/lib/agentApi.ts:500
↓ 2 callers
Function
findBoundary
(targetOffset: number, edge: 'start' | 'end')
src/components/InputBar.tsx:274
↓ 2 callers
Function
firstTwoPointers
(points: Map<number, Point>)
src/components/MaskEditorModal.tsx:66
↓ 2 callers
Function
floorToMultiple
(value: number, multiple: number)
src/lib/maskPreprocess.ts:22
↓ 2 callers
Function
flushAgentConversationsToIndexedDB
()
src/store.ts:1636
↓ 2 callers
Function
flushWebSearchGroup
()
src/components/AgentWorkspace.tsx:167
↓ 2 callers
Function
formatImageRatio
(width: number, height: number)
src/lib/size.ts:83
↓ 2 callers
Function
formatMiB
(bytes: number)
src/lib/imageApiShared.ts:52
↓ 2 callers
Function
gcd
(a: number, b: number)
src/lib/size.ts:95
↓ 2 callers
Function
getActionButtonClass
(tone: 'primary' | 'secondary' | 'danger' | 'warning' = 'primary')
src/components/ConfirmDialog.tsx:38
↓ 2 callers
Function
getAgentConversationTaskIds
(conversation: AgentConversation | null | undefined, tasks: TaskRecord[])
src/store.ts:2806
↓ 2 callers
Function
getAgentReferenceTag
(referenceId: string)
src/lib/agentImageReferences.ts:15
↓ 2 callers
Function
getAgentSiblingRounds
(conversation: AgentConversation, round: AgentRound)
src/store.ts:2784
↓ 2 callers
Function
getAllByPath
(source: unknown, path: string | undefined)
src/lib/openaiCompatibleImageApi.ts:53
↓ 2 callers
Function
getAllowedRoot
(target: EventTarget | null, allowRefs?: ScrollBoundaryRef | ScrollBoundaryRef[])
src/hooks/usePreventBackgroundScroll.ts:11
↓ 2 callers
Function
getApiRequestNetworkErrorHint
( err: unknown, createdAt: number, usesApiProxy: boolean, profile?: Pick<ApiProfile, 'provider' | 'api
src/store.ts:1904
↓ 2 callers
Function
getCanvasPoint
(canvas: HTMLCanvasElement, event: ReactPointerEvent<HTMLCanvasElement>)
src/components/MaskEditorModal.tsx:47
↓ 2 callers
Function
getChangedParams
(current: TaskParams, next: TaskParams)
src/lib/paramCompatibility.ts:44
↓ 2 callers
Function
getCodexCliPromptKey
(settings: AppSettings)
src/store.ts:1694
↓ 2 callers
Function
getCollectionTasks
(collectionId: string, tasks: TaskRecord[])
src/components/favorites/favoriteUtils.ts:26
↓ 2 callers
Function
getContentEditableCursor
获取 contentEditable 中光标的纯文本偏移量
src/components/InputBar.tsx:134
↓ 2 callers
Function
getContentEditablePlainText
(el: HTMLElement)
src/components/InputBar.tsx:165
↓ 2 callers
Function
getCurrentAgentInputDraft
(state: Pick<AppState, 'prompt' | 'inputImages' | 'maskDraft' | 'maskEditorImageId'>)
src/store.ts:1057
↓ 2 callers
Function
getDefaultNamedFavoriteCollectionId
(collections: FavoriteCollection[])
src/store.ts:624
↓ 2 callers
Function
getDraftWithActiveProfilePatch
(patch: Partial<ApiProfile>)
src/components/SettingsModal.tsx:660
↓ 2 callers
Function
getErrorMessage
(err: unknown)
src/lib/openaiCompatibleImageApi.ts:104
↓ 2 callers
Function
getErrorMessageFromValue
(value: unknown)
src/lib/agentApi.ts:306
↓ 2 callers
Function
getFalCustomBaseUrlLabel
(profile: ApiProfile)
src/lib/falAiImageApi.ts:177
↓ 2 callers
Function
getFalErrorMessage
(err: unknown)
src/lib/falAiImageApi.ts:152
↓ 2 callers
Function
getFavoriteCollectionTasksForBatch
(collectionId: string, tasks: TaskRecord[])
src/components/InputBar.tsx:330
↓ 2 callers
Function
getImageBlob
(imageIdOrUrl: string)
src/lib/downloadImages.ts:105
↓ 2 callers
Function
getImageThumbnail
(id: string)
src/lib/db.ts:121
← previous
next →
301–400 of 1,073, ranked by callers