Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THU-MAIC/OpenMAIC
/ functions
Functions
4,064 in github.com/THU-MAIC/OpenMAIC
⨍
Functions
4,064
◇
Types & classes
1,101
↓ 1 callers
Function
getVLLMOmniSpeechUrl
(baseUrl: string)
lib/audio/tts-providers.ts:377
↓ 1 callers
Function
getVerticalAlign
(node, slideLayoutSpNode, slideMasterSpNode)
packages/@openmaic/importer/src1/align.js:55
↓ 1 callers
Function
getVoiceDisplayName
Extract the English name from voice name format "ChineseName (English)"
components/audio/tts-config-popover.tsx:33
↓ 1 callers
Function
getVoxCPMDataAudioUrl
(base64: string, mimeType?: string, fileName?: string)
lib/audio/tts-providers.ts:440
↓ 1 callers
Function
getVoxCPMProfileIdFromVoiceId
(voiceId: string)
lib/audio/voxcpm.ts:95
↓ 1 callers
Function
getVoxCPMVoiceOptions
( profiles: VoxCPMVoiceProfile[], options: { supportsClone?: boolean } = {}, )
lib/audio/voxcpm-voices.ts:170
↓ 1 callers
Function
getWebSearchEnvKey
(providerId: WebSearchProviderId)
app/api/web-search/route.ts:138
↓ 1 callers
Method
getWhiteboardElements
()
eval/whiteboard-layout/state-manager.ts:90
↓ 1 callers
Function
gradeShortAnswerQuestion
Call /api/quiz-grade for a single short-answer question.
components/scene-renderers/quiz-view.tsx:45
↓ 1 callers
Function
gradientFillDataToValue
(data: GradientFillData)
packages/@openmaic/importer/src/serializer/backgroundSerializer.ts:182
↓ 1 callers
Function
groupByGroup
(items: readonly FloatingAction[])
components/edit/EditShell/FloatingToolbar.tsx:102
↓ 1 callers
Function
groupToElement
( node: GroupNodeData, ctx: RenderContext, _order: number, files: PptxFiles | undefined, nodeToEleme
packages/@openmaic/importer/src/serializer/groupSerializer.ts:242
↓ 1 callers
Function
guessMime
Fallback MIME by extension when the server omits content-type.
lib/export/inline-assets.ts:121
↓ 1 callers
Function
handleApiKeyChange
(apiKey: string)
components/settings/video-settings.tsx:63
↓ 1 callers
Function
handleApiKeyChange
(apiKey: string)
components/settings/image-settings.tsx:65
↓ 1 callers
Function
handleApiKeyChange
(key: string)
components/settings/provider-config-panel.tsx:95
↓ 1 callers
Function
handleBaseUrlChange
(baseUrl: string)
components/settings/video-settings.tsx:67
↓ 1 callers
Function
handleBaseUrlChange
(baseUrl: string)
components/settings/image-settings.tsx:69
↓ 1 callers
Function
handleCloneFileChange
(file: File | null)
components/settings/tts-settings.tsx:866
↓ 1 callers
Function
handleClose
()
components/settings/model-edit-dialog.tsx:59
↓ 1 callers
Function
handleDeleteModel
(index: number)
components/settings/video-settings.tsx:134
↓ 1 callers
Function
handleDeleteModel
(index: number)
components/settings/image-settings.tsx:136
↓ 1 callers
Function
handleDeleteModel
(pid: ProviderId, modelIndex: number)
components/settings/index.tsx:407
↓ 1 callers
Function
handleDeleteProvider
(pid: ProviderId)
components/settings/index.tsx:476
↓ 1 callers
Method
handleDiscussionError
* Exit live discussion mode after a request failure without treating it as a * normal discussion end. The chat session stays retryable; this only r
lib/playback/engine.ts:319
↓ 1 callers
Function
handleEditModel
(pid: ProviderId, modelIndex: number)
components/settings/index.tsx:380
↓ 1 callers
Method
handleEndDiscussion
End discussion → restore lecture → idle (user clicks "start" to continue)
lib/playback/engine.ts:299
↓ 1 callers
Function
handleGenerate
()
app/page.tsx:285
↓ 1 callers
Function
handleInputChange
(value: string)
components/scene-renderers/pbl/chat-panel.tsx:53
↓ 1 callers
Function
handleIssueComplete
* Handle issue completion: mark done, activate next, generate questions for next issue
components/scene-renderers/pbl/use-pbl-chat.ts:163
↓ 1 callers
Function
handleOpenEditModel
(index: number)
components/settings/video-settings.tsx:108
↓ 1 callers
Function
handleOpenEditModel
(index: number)
components/settings/image-settings.tsx:110
↓ 1 callers
Function
handlePreviewVoice
(voiceId: string)
components/settings/tts-settings.tsx:806
↓ 1 callers
Function
handleProviderConfigChange
( pid: ProviderId, apiKey: string, baseUrl: string, requiresApiKey: boolean, )
components/settings/index.tsx:348
↓ 1 callers
Function
handleRequiresApiKeyChange
(requires: boolean)
components/settings/provider-config-panel.tsx:105
↓ 1 callers
Function
handleResetProvider
(pid: ProviderId)
components/settings/index.tsx:503
↓ 1 callers
Function
handleRestore
(index: number)
components/whiteboard/whiteboard-history.tsx:46
↓ 1 callers
Function
handleRetryOutline
(outlineId: string)
components/stage/scene-sidebar.tsx:53
↓ 1 callers
Function
handleSend
()
components/scene-renderers/pbl/v2/chat.tsx:464
↓ 1 callers
Function
handleSubmit
()
components/scene-renderers/pbl/chat-panel.tsx:58
↓ 1 callers
Method
handleUserInterrupt
User sends a message during playback → interrupt → live mode
lib/playback/engine.ts:337
↓ 1 callers
Function
hardSplitUnit
(unit: string)
lib/audio/tts-utils.ts:51
↓ 1 callers
Method
hasActiveAudio
* Whether there is active audio (playing or paused, but not ended) * Used to decide whether to resume playback or skip to the next line
lib/utils/audio-player.ts:143
↓ 1 callers
Function
hasCompletabilityFailure
(r: RunResult)
eval/pbl-v2-planner/runner.ts:547
↓ 1 callers
Function
hasStartedProject
(project: PBLProjectV2)
lib/pbl/v2/compat.ts:175
↓ 1 callers
Function
hasTerminalParent
(tagName: string, stack: StackItem[])
lib/export/html-parser/parser.ts:30
↓ 1 callers
Function
hasValidText
(htmlString)
packages/@openmaic/importer/src1/utils.js:153
↓ 1 callers
Function
hasVisibleText
True if the text body has at least one non-empty run (avoids covering shapes with empty placeholder text).
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:394
↓ 1 callers
Function
here
()
eval/pbl-v2-planner/serve.ts:25
↓ 1 callers
Function
here
()
eval/pbl-v2-planner/build-compare.ts:18
↓ 1 callers
Function
highlightById
(id: string)
components/edit/surfaces/slide/ElementPickLayer.tsx:197
↓ 1 callers
Function
highlightCode
( code: string, language: BundledLanguage, showLineNumbers = false, )
components/ai-elements/code-block.tsx:52
↓ 1 callers
Function
hslToRgb
(hue, sat, light)
packages/@openmaic/importer/src1/color.js:12
↓ 1 callers
Function
htmlToPlainText
(value: string)
lib/edit/slide-edit-elements.ts:20
↓ 1 callers
Function
humanTypingEase
(t: number)
packages/@openmaic/renderer/src/elements/code/BaseCodeElement.tsx:114
↓ 1 callers
Function
humanTypingEase
(t: number)
components/slide-renderer/components/element/CodeElement/BaseCodeElement.tsx:119
↓ 1 callers
Function
hydrateProject
(project: PBLProjectV2, parsed: PlannerLLMOutput)
lib/pbl/v2/agents/planner-single-call.ts:355
↓ 1 callers
Function
hydrateScenario
Build the frozen `scenario` block from the LLM output: assign character * ids, keep only valid hex colours, clamp motifs to 4. `normalizeScenario`
lib/pbl/v2/agents/planner-single-call.ts:317
↓ 1 callers
Function
identifyShape
(shapeData)
packages/@openmaic/importer/src1/shape.js:223
↓ 1 callers
Function
indentCommand
(view: EditorView, delta: number)
lib/prosemirror/commands/setTextIndent.ts:62
↓ 1 callers
Function
inferActiveIssueId
(config: PBLProjectConfig)
lib/pbl/v2/compat.ts:261
↓ 1 callers
Function
inferInstructorName
(config: PBLProjectConfig)
lib/pbl/v2/compat.ts:248
↓ 1 callers
Function
inferPathExtent
(pathNode: SafeXmlNode)
packages/@openmaic/importer/src/shapes/customGeometry.ts:7
↓ 1 callers
Function
inferPreviewLang
(text: string)
lib/audio/browser-tts-preview.ts:20
↓ 1 callers
Function
inferWidgetType
* Infer widget type from concept characteristics
lib/generation/scene-generator.ts:238
↓ 1 callers
Function
initCapture
(baseUrl: string)
eval/whiteboard-layout/capture.ts:14
↓ 1 callers
Function
initProsemirrorEditor
( dom: Element, content: string, props: Omit<DirectEditorProps, 'state'>, pluginOptions?: PluginOption
lib/prosemirror/index.ts:19
↓ 1 callers
Function
injectKatex
* Inject KaTeX CSS, JS, auto-render, and MutationObserver before </head>. * Falls back to appending at end if </head> is not found.
lib/generation/interactive-post-processor.ts:70
↓ 1 callers
Function
inlineImportmaps
( html: string, fetchAsset: FetchAsset, report: InlineReport, )
lib/export/inline-assets.ts:240
↓ 1 callers
Function
inlineMathRun
* Build an inline-math run from an OMML node (already located). Returns * undefined if the node can't be serialized.
packages/@openmaic/importer/src/model/nodes/ShapeNode.ts:100
↓ 1 callers
Function
interactive
(id: string, order: number)
tests/classroom/complete-summary.test.ts:27
↓ 1 callers
Function
isAcceptedPlannerCompletion
(output: unknown)
lib/pbl/v2/agents/planner.ts:1137
↓ 1 callers
Function
isBraveOwnedUrl
(value: string)
lib/web-search/brave.ts:51
↓ 1 callers
Function
isBrowserTTSAbortError
(error: unknown)
lib/audio/browser-tts-preview.ts:26
↓ 1 callers
Function
isChartFrame
* Check whether a graphicFrame contains a chart.
packages/@openmaic/importer/src/model/Slide.ts:54
↓ 1 callers
Function
isCustomAvatar
Check whether avatar is a custom upload (data-URL)
components/user-profile.tsx:14
↓ 1 callers
Function
isCustomAvatar
(src: string)
app/page.tsx:912
↓ 1 callers
Function
isDiagramFrame
* Check whether a graphicFrame contains a SmartArt diagram.
packages/@openmaic/importer/src/model/Slide.ts:136
↓ 1 callers
Function
isEmptyParagraph
(node: Node)
lib/prosemirror/plugins/placeholder.ts:5
↓ 1 callers
Method
isExhausted
Whether all remaining actions have been consumed (no speech left to play)
lib/playback/engine.ts:367
↓ 1 callers
Function
isFirstProjectMicrotask
( project: PBLProjectV2, milestone: PBLMilestone, microtask: PBLMicrotask, )
lib/pbl/v2/agents/instructor.ts:562
↓ 1 callers
Function
isGeneratedVideoRef
(value: string)
lib/media/video-manifest.ts:5
↓ 1 callers
Function
isGroup
(e: Element)
packages/@openmaic/importer/src/serializer/groupSerializer.ts:17
↓ 1 callers
Function
isImageBackground
* True when a slide-level background is a real image background (DSL * `SlideBackground` with `type === 'image'` and a real `image.src`). Used to *
lib/agent/tools/regenerate-scene.ts:110
↓ 1 callers
Function
isImageFile
(file: File)
lib/pbl/v2/operations/file-validation.ts:72
↓ 1 callers
Function
isImageIdReference
* Check if a string looks like an image ID (e.g., "img_1", "img_2") * rather than a base64 data URL or actual URL * * This function distinguishes b
lib/generation/scene-generator.ts:387
↓ 1 callers
Function
isJsonFormat
()
lib/logger.ts:9
↓ 1 callers
Function
isLastMicrotaskOfMilestone
(milestone: PBLMilestone, microtaskId: string)
lib/pbl/v2/operations/task-completion.ts:26
↓ 1 callers
Function
isLastMicrotaskOfMilestone
True when advancing `microtaskId` would complete the milestone — * every other microtask is already terminal (completed / skipped).
lib/pbl/v2/agents/instructor.ts:356
↓ 1 callers
Function
isLegacySequentialVideoRef
(value: string | undefined)
components/slide-renderer/components/element/VideoElement/BaseVideoElement.tsx:22
↓ 1 callers
Function
isLegacySequentialVideoRef
(value: unknown)
lib/utils/stage-storage.ts:194
↓ 1 callers
Function
isLegacyUserMessage
(message: LegacyPBLChatMessage, config: PBLProjectConfig)
lib/pbl/v2/compat.ts:240
↓ 1 callers
Function
isLoopbackHost
(hostname: string)
lib/server/proxy-fetch.ts:48
↓ 1 callers
Function
isManagedTtsActive
()
lib/audio/regenerate-speech-tts.ts:31
↓ 1 callers
Function
isMathAlternateContent
(altContent: SafeXmlNode)
packages/@openmaic/importer/src/model/nodes/MathNode.ts:118
↓ 1 callers
Function
isParallelogram
(edges)
packages/@openmaic/importer/src1/shape.js:494
↓ 1 callers
Function
isParsedPdfContent
(value: unknown)
lib/document/pdf-compat.ts:34
↓ 1 callers
Function
isPdfFile
(file: File)
lib/pbl/v2/operations/file-validation.ts:63
↓ 1 callers
Function
isPlaceholder
* Check whether a shape node contains a placeholder definition.
packages/@openmaic/importer/src/model/Layout.ts:34
↓ 1 callers
Function
isPlaceholder
* Check whether a shape node contains a placeholder definition. * Looks for `p:nvSpPr > p:nvPr > p:ph` or `p:nvPicPr > p:nvPr > p:ph`.
packages/@openmaic/importer/src/model/Master.ts:27
← previous
next →
2,101–2,200 of 4,064, ranked by callers