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
Method
dispose
()
eval/whiteboard-layout/state-manager.ts:97
↓ 1 callers
Function
draftKey
(sceneId: string)
lib/quiz/persistence.ts:25
↓ 1 callers
Function
elementHostAt
(x: number, y: number)
components/edit/surfaces/slide/ElementPickLayer.tsx:37
↓ 1 callers
Function
elementLabel
(el: { type: string; content?: string }, t: TFn)
components/edit/ActionsBar/cue-meta.ts:127
↓ 1 callers
Function
elideDataUris
(html: string)
lib/agent/tools/read-scene-content.ts:111
↓ 1 callers
Function
embed
Embed JSON safely inside a <script> tag.
eval/pbl-v2-planner/compare-html.ts:80
↓ 1 callers
Function
emfPdfToPngDataUrl
(pdfData: Uint8Array, targetWidth = 1024)
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:121
↓ 1 callers
Function
emitItem
* Emit a single parsed item into the result, returning updated segment indices.
lib/orchestration/stateless-generate.ts:82
↓ 1 callers
Function
emptyRates
()
eval/orchestration/answering-runner.ts:193
↓ 1 callers
Method
enableAlwaysReview
()
e2e/pages/generation-preview.page.ts:54
↓ 1 callers
Function
encode
(input: string)
lib/export/svg2base64.ts:28
↓ 1 callers
Function
encodeMediaForWebDisplay
( mediaPath: string, data: Uint8Array, )
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:158
↓ 1 callers
Function
encouragementKey
(pct: number)
components/scene-renderers/classroom-complete.tsx:32
↓ 1 callers
Method
endAll
Force-close every still-open timer whose key starts with `prefix`.
lib/agent/client/thinking-timers.ts:44
↓ 1 callers
Function
ensureBaiduSubSources
(state: Partial<SettingsState>)
lib/store/settings.ts:708
↓ 1 callers
Function
ensureClassroomJobsDir
()
lib/server/classroom-storage.ts:17
↓ 1 callers
Function
ensureClassroomsDir
()
lib/server/classroom-storage.ts:13
↓ 1 callers
Function
ensureHex
(color: string)
packages/@openmaic/importer/src/serializer/tableSerializer.ts:29
↓ 1 callers
Function
ensureHex
(color: string)
packages/@openmaic/importer/src/serializer/borderMapper.ts:62
↓ 1 callers
Function
ensureUniqueOutlineId
(outline: SceneOutline, usedIds: Set<string>)
app/api/generate/scene-outlines-stream/route.ts:269
↓ 1 callers
Method
ensureVoicesLoaded
()
lib/playback/engine.ts:722
↓ 1 callers
Method
ensureWhiteboardOpen
Auto-open the whiteboard if it's not already open
lib/action/engine.ts:329
↓ 1 callers
Function
eqFieldToLatex
(instrText: string)
packages/@openmaic/importer/src/utils/eqFieldParser.ts:24
↓ 1 callers
Function
eqFieldToPlainText
* Simplified plain-text version of an EQ field. * Re-uses the parser but maps to readable text instead of LaTeX.
packages/@openmaic/importer/src/utils/eqFieldParser.ts:453
↓ 1 callers
Function
equalNodeType
(nodeType: NodeType, node: Node)
lib/prosemirror/utils.ts:88
↓ 1 callers
Function
escapeHtml
(value: string)
lib/edit/slide-edit-elements.ts:97
↓ 1 callers
Function
escapeHtmlAttr
(s: string)
packages/@openmaic/importer/src/serializer/textSerializer.ts:777
↓ 1 callers
Function
escapeXml
* Escape XML special characters for SSML
lib/audio/tts-providers.ts:946
↓ 1 callers
Function
escapeXmlText
(str)
packages/mathml2omml/src/parse-stringify/stringify.js:12
↓ 1 callers
Function
estimateDimensions
( ratio?: string, resolution?: number, )
lib/media/adapters/happyhorse-adapter.ts:79
↓ 1 callers
Function
estimateDimensions
* Estimate video dimensions from ratio and resolution for the result.
lib/media/adapters/seedance-adapter.ts:82
↓ 1 callers
Function
eventFingerprint
(event: PBLProjectV2['engagementEvents'][number])
lib/pbl/v2/operations/advance-patch.ts:120
↓ 1 callers
Function
evictLru
* Drop the least-recently-touched entries until at most CAP remain. The active * scene is never evicted (its iframe is on screen). Returns a new entr
lib/store/interactive-iframe-pool.ts:77
↓ 1 callers
Method
executeAction
(action: Action)
eval/whiteboard-layout/state-manager.ts:69
↓ 1 callers
Method
executeLaser
(action: LaserAction)
lib/action/engine.ts:206
↓ 1 callers
Method
executePlayVideo
(action: PlayVideoAction)
lib/action/engine.ts:230
↓ 1 callers
Method
executeSpeech
(action: SpeechAction)
lib/action/engine.ts:215
↓ 1 callers
Method
executeSpotlight
(action: SpotlightAction)
lib/action/engine.ts:199
↓ 1 callers
Method
executeWbClear
()
lib/action/engine.ts:650
↓ 1 callers
Method
executeWbClose
()
lib/action/engine.ts:672
↓ 1 callers
Method
executeWbDelete
(action: WbDeleteAction)
lib/action/engine.ts:642
↓ 1 callers
Method
executeWbDrawChart
(action: WbDrawChartAction)
lib/action/engine.ts:401
↓ 1 callers
Method
executeWbDrawCode
(action: WbDrawCodeAction)
lib/action/engine.ts:550
↓ 1 callers
Method
executeWbDrawLatex
(action: WbDrawLatexAction)
lib/action/engine.ts:425
↓ 1 callers
Method
executeWbDrawLine
(action: WbDrawLineAction)
lib/action/engine.ts:517
↓ 1 callers
Method
executeWbDrawShape
(action: WbDrawShapeAction)
lib/action/engine.ts:375
↓ 1 callers
Method
executeWbDrawTable
(action: WbDrawTableAction)
lib/action/engine.ts:461
↓ 1 callers
Method
executeWbDrawText
(action: WbDrawTextAction)
lib/action/engine.ts:343
↓ 1 callers
Method
executeWbEditCode
(action: WbEditCodeAction)
lib/action/engine.ts:580
↓ 1 callers
Method
executeWidgetAnnotation
Execute widget annotation action
lib/action/engine.ts:707
↓ 1 callers
Method
executeWidgetHighlight
Execute widget highlight action (quick visual change)
lib/action/engine.ts:690
↓ 1 callers
Method
executeWidgetReveal
Execute widget reveal action
lib/action/engine.ts:716
↓ 1 callers
Method
executeWidgetSetState
Execute widget setState action
lib/action/engine.ts:700
↓ 1 callers
Function
expectBodyScrollState
(page: Page, initialSpacing: BodySpacing, locked: boolean)
e2e/tests/home-to-generation.spec.ts:24
↓ 1 callers
Function
exportSlideContent
(content: SlideContent, scene: Scene)
tests/edit/round-trip/image-data-url.test.ts:22
↓ 1 callers
Function
exportSlideContent
* Round-trip gate: formatted text (bold) survives the export pipeline. * * Discovery (mandatory per task spec): the exported slide1.xml was inspecte
tests/edit/round-trip/text-format.test.ts:23
↓ 1 callers
Function
extToMime
(ext: string)
lib/pdf/mineru-cloud.ts:37
↓ 1 callers
Method
extract
(input: DocumentExtractorInput)
lib/document/types.ts:32
↓ 1 callers
Function
extractColor
* Extract a hex color value from a color definition node. * Handles both `a:srgbClr@val` and `a:sysClr@lastClr`.
packages/@openmaic/importer/src/model/Theme.ts:36
↓ 1 callers
Function
extractCommonChartData
(chartTypeNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:211
↓ 1 callers
Function
extractCourseTitle
(buffer: string)
app/api/generate/scene-outlines-stream/route.ts:87
↓ 1 callers
Function
extractCourseTitleFromComplete
* Full-buffer fallback, run once after the stream completes: recovers a title * the model emitted after the `outlines` array or beyond the 8KB head w
app/api/generate/scene-outlines-stream/route.ts:99
↓ 1 callers
Function
extractDocument
(input: DocumentExtractorInput)
lib/document/extract.ts:4
↓ 1 callers
Function
extractElementText
* Pull the human-readable text out of a single slide element. Mirrors the * @openmaic/dsl `PPTElement` union — each variant stashes its text differen
lib/agent/tools/read-scene-content.ts:57
↓ 1 callers
Function
extractHtml
* Extract HTML document from AI response. * Tries to find <!DOCTYPE html>...</html> first, then falls back to code block extraction.
lib/generation/scene-generator.ts:1146
↓ 1 callers
Function
extractLanguageDirective
* Extract the languageDirective from the streamed wrapper JSON. * Matches `"languageDirective":"<value>"` in partial JSON like: * {"languageDirect
app/api/generate/scene-outlines-stream/route.ts:49
↓ 1 callers
Function
extractLearnerMemory
(messages: PBLChatMessage[])
lib/pbl/v2/agents/instructor-memory.ts:93
↓ 1 callers
Function
extractMappedIPv4
(ip: string)
lib/server/ssrf-guard.ts:36
↓ 1 callers
Function
extractNewOutlines
* Incremental JSON array parser. * Extracts complete top-level objects from a partially-streamed JSON array, * resuming from `scanFrom` (an index in
app/api/generate/scene-outlines-stream/route.ts:114
↓ 1 callers
Function
extractNumCacheAsStrings
(cache: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:86
↓ 1 callers
Function
extractPathCommands
(path)
packages/@openmaic/importer/src1/shape.js:240
↓ 1 callers
Function
extractPathEndpoints
* Parse a simple SVG path to extract its start and end points + directions. * Handles M...L (lines) and M...A (arcs).
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:244
↓ 1 callers
Function
extractPlaceholders
* Extract placeholder shape nodes from an spTree node. * A shape is considered a placeholder if it has a `p:ph` element in its nvPr.
packages/@openmaic/importer/src/model/Master.ts:45
↓ 1 callers
Function
extractPlaceholdersRecursive
* Recursively collect placeholders; when inside a group, compute position/size in slide space.
packages/@openmaic/importer/src/model/Layout.ts:106
↓ 1 callers
Function
extractRuns
Simple XML regex extraction — avoids needing a full DOM parser.
packages/@openmaic/importer/src/utils/eqFieldParser.ts:412
↓ 1 callers
Function
extractScatterChartData
(chartTypeNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:238
↓ 1 callers
Function
extractSeriesColors
* Extract per-series (or per-data-point for pie) explicit colors from XML. * Falls back to theme accent colors for missing entries.
packages/@openmaic/importer/src/serializer/chartSerializer.ts:156
↓ 1 callers
Function
extractSeriesName
(txNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:119
↓ 1 callers
Function
extractStringValues
(refNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:54
↓ 1 callers
Function
extractTableStyleId
* Extract the table style ID from tblPr. * It can be in `a:tblStyle@val` or as a direct `tblStyle` attribute.
packages/@openmaic/importer/src/model/nodes/TableNode.ts:88
↓ 1 callers
Function
extractTexts
Extract ordered text blocks from a structured agent response.
eval/orchestration/answer-content-runner.ts:217
↓ 1 callers
Function
extractTopicFromRequirement
(requirement: string)
app/generation-preview/page.tsx:980
↓ 1 callers
Function
extractWidgetConfig
* Extract widget config from embedded JSON in HTML
lib/generation/scene-generator.ts:1318
↓ 1 callers
Function
fakeFetch
(map: Record<string, { body: string; contentType: string; status?: number }>)
tests/export/inline-assets.test.ts:73
↓ 1 callers
Function
fetchBaike
(query: string, apiKey: string)
lib/web-search/baidu.ts:102
↓ 1 callers
Function
fetchScholar
( query: string, apiKey: string, maxResults: number, baseUrl?: string, )
lib/web-search/baidu.ts:134
↓ 1 callers
Function
fetchWebSearch
( query: string, apiKey: string, maxResults: number, baseUrl?: string, )
lib/web-search/baidu.ts:58
↓ 1 callers
Function
fileToDataUrl
(file: File)
components/edit/surfaces/slide/ImagePicker.tsx:12
↓ 1 callers
Function
fillToJson
* Build `Fill` after the same fillCss / gradientFillData / line-like rules as ShapeRenderer.
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:543
↓ 1 callers
Function
findFill
* Find the first fill element in a shape properties node.
packages/@openmaic/importer/src/model/nodes/ShapeNode.ts:210
↓ 1 callers
Function
findFillInGroupHierarchy
(groupHierarchy, warpObj, source)
packages/@openmaic/importer/src1/fill.js:655
↓ 1 callers
Function
findGroupFillNode
(grpSpPr: SafeXmlNode)
packages/@openmaic/importer/src/serializer/groupSerializer.ts:132
↓ 1 callers
Function
findLayoutRel
* Find the layout relationship target from a slide's rels map. * The relationship type URI for slide layouts ends with "slideLayout".
packages/@openmaic/importer/src/model/Slide.ts:430
↓ 1 callers
Function
findMatchingLayoutPlaceholder
* Find a matching layout placeholder (PlaceholderEntry); use entry.absoluteXfrm when present.
packages/@openmaic/importer/src/model/Presentation.ts:386
↓ 1 callers
Function
findMatchingPlaceholder
* Find a matching placeholder node by type and idx. * Matching rules (based on OOXML spec): * 1. Exact match on type AND idx * 2. Match on type onl
packages/@openmaic/importer/src/model/Presentation.ts:346
↓ 1 callers
Function
findMilestoneAndTask
( project: PBLProjectV2, milestoneId: string, microtaskId: string, )
lib/pbl/v2/agents/evaluator.ts:427
↓ 1 callers
Function
findNodesWithSameMark
(doc: Node, from: number, to: number, markType: MarkType)
lib/prosemirror/utils.ts:28
↓ 1 callers
Function
findNvProps
* Try to find the non-visual properties container in the given node. * PPTX uses different wrapper names depending on the shape kind: * p:nvSpPr (
packages/@openmaic/importer/src/model/nodes/BaseNode.ts:59
↓ 1 callers
Function
findOMath
(obj)
packages/@openmaic/importer/src1/math.js:3
↓ 1 callers
Function
findOleFallbackPic
* Find p:pic inside OLE graphicData (mc:AlternateContent > mc:Fallback or mc:Choice > p:oleObj > p:pic). * Returns the pic node if it has blipFill wi
packages/@openmaic/importer/src/model/Slide.ts:86
← previous
next →
1,801–1,900 of 4,064, ranked by callers