MCPcopy Create free account

hub / github.com/THU-MAIC/OpenMAIC / functions

Functions4,064 in github.com/THU-MAIC/OpenMAIC

↓ 1 callersMethoddispose
()
eval/whiteboard-layout/state-manager.ts:97
↓ 1 callersFunctiondraftKey
(sceneId: string)
lib/quiz/persistence.ts:25
↓ 1 callersFunctionelementHostAt
(x: number, y: number)
components/edit/surfaces/slide/ElementPickLayer.tsx:37
↓ 1 callersFunctionelementLabel
(el: { type: string; content?: string }, t: TFn)
components/edit/ActionsBar/cue-meta.ts:127
↓ 1 callersFunctionelideDataUris
(html: string)
lib/agent/tools/read-scene-content.ts:111
↓ 1 callersFunctionembed
Embed JSON safely inside a <script> tag.
eval/pbl-v2-planner/compare-html.ts:80
↓ 1 callersFunctionemfPdfToPngDataUrl
(pdfData: Uint8Array, targetWidth = 1024)
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:121
↓ 1 callersFunctionemitItem
* Emit a single parsed item into the result, returning updated segment indices.
lib/orchestration/stateless-generate.ts:82
↓ 1 callersFunctionemptyRates
()
eval/orchestration/answering-runner.ts:193
↓ 1 callersMethodenableAlwaysReview
()
e2e/pages/generation-preview.page.ts:54
↓ 1 callersFunctionencode
(input: string)
lib/export/svg2base64.ts:28
↓ 1 callersFunctionencodeMediaForWebDisplay
( mediaPath: string, data: Uint8Array, )
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:158
↓ 1 callersFunctionencouragementKey
(pct: number)
components/scene-renderers/classroom-complete.tsx:32
↓ 1 callersMethodendAll
Force-close every still-open timer whose key starts with `prefix`.
lib/agent/client/thinking-timers.ts:44
↓ 1 callersFunctionensureBaiduSubSources
(state: Partial<SettingsState>)
lib/store/settings.ts:708
↓ 1 callersFunctionensureClassroomJobsDir
()
lib/server/classroom-storage.ts:17
↓ 1 callersFunctionensureClassroomsDir
()
lib/server/classroom-storage.ts:13
↓ 1 callersFunctionensureHex
(color: string)
packages/@openmaic/importer/src/serializer/tableSerializer.ts:29
↓ 1 callersFunctionensureHex
(color: string)
packages/@openmaic/importer/src/serializer/borderMapper.ts:62
↓ 1 callersFunctionensureUniqueOutlineId
(outline: SceneOutline, usedIds: Set<string>)
app/api/generate/scene-outlines-stream/route.ts:269
↓ 1 callersMethodensureVoicesLoaded
()
lib/playback/engine.ts:722
↓ 1 callersMethodensureWhiteboardOpen
Auto-open the whiteboard if it's not already open
lib/action/engine.ts:329
↓ 1 callersFunctioneqFieldToLatex
(instrText: string)
packages/@openmaic/importer/src/utils/eqFieldParser.ts:24
↓ 1 callersFunctioneqFieldToPlainText
* 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 callersFunctionequalNodeType
(nodeType: NodeType, node: Node)
lib/prosemirror/utils.ts:88
↓ 1 callersFunctionescapeHtml
(value: string)
lib/edit/slide-edit-elements.ts:97
↓ 1 callersFunctionescapeHtmlAttr
(s: string)
packages/@openmaic/importer/src/serializer/textSerializer.ts:777
↓ 1 callersFunctionescapeXml
* Escape XML special characters for SSML
lib/audio/tts-providers.ts:946
↓ 1 callersFunctionescapeXmlText
(str)
packages/mathml2omml/src/parse-stringify/stringify.js:12
↓ 1 callersFunctionestimateDimensions
( ratio?: string, resolution?: number, )
lib/media/adapters/happyhorse-adapter.ts:79
↓ 1 callersFunctionestimateDimensions
* Estimate video dimensions from ratio and resolution for the result.
lib/media/adapters/seedance-adapter.ts:82
↓ 1 callersFunctioneventFingerprint
(event: PBLProjectV2['engagementEvents'][number])
lib/pbl/v2/operations/advance-patch.ts:120
↓ 1 callersFunctionevictLru
* 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 callersMethodexecuteAction
(action: Action)
eval/whiteboard-layout/state-manager.ts:69
↓ 1 callersMethodexecuteLaser
(action: LaserAction)
lib/action/engine.ts:206
↓ 1 callersMethodexecutePlayVideo
(action: PlayVideoAction)
lib/action/engine.ts:230
↓ 1 callersMethodexecuteSpeech
(action: SpeechAction)
lib/action/engine.ts:215
↓ 1 callersMethodexecuteSpotlight
(action: SpotlightAction)
lib/action/engine.ts:199
↓ 1 callersMethodexecuteWbClear
()
lib/action/engine.ts:650
↓ 1 callersMethodexecuteWbClose
()
lib/action/engine.ts:672
↓ 1 callersMethodexecuteWbDelete
(action: WbDeleteAction)
lib/action/engine.ts:642
↓ 1 callersMethodexecuteWbDrawChart
(action: WbDrawChartAction)
lib/action/engine.ts:401
↓ 1 callersMethodexecuteWbDrawCode
(action: WbDrawCodeAction)
lib/action/engine.ts:550
↓ 1 callersMethodexecuteWbDrawLatex
(action: WbDrawLatexAction)
lib/action/engine.ts:425
↓ 1 callersMethodexecuteWbDrawLine
(action: WbDrawLineAction)
lib/action/engine.ts:517
↓ 1 callersMethodexecuteWbDrawShape
(action: WbDrawShapeAction)
lib/action/engine.ts:375
↓ 1 callersMethodexecuteWbDrawTable
(action: WbDrawTableAction)
lib/action/engine.ts:461
↓ 1 callersMethodexecuteWbDrawText
(action: WbDrawTextAction)
lib/action/engine.ts:343
↓ 1 callersMethodexecuteWbEditCode
(action: WbEditCodeAction)
lib/action/engine.ts:580
↓ 1 callersMethodexecuteWidgetAnnotation
Execute widget annotation action
lib/action/engine.ts:707
↓ 1 callersMethodexecuteWidgetHighlight
Execute widget highlight action (quick visual change)
lib/action/engine.ts:690
↓ 1 callersMethodexecuteWidgetReveal
Execute widget reveal action
lib/action/engine.ts:716
↓ 1 callersMethodexecuteWidgetSetState
Execute widget setState action
lib/action/engine.ts:700
↓ 1 callersFunctionexpectBodyScrollState
(page: Page, initialSpacing: BodySpacing, locked: boolean)
e2e/tests/home-to-generation.spec.ts:24
↓ 1 callersFunctionexportSlideContent
(content: SlideContent, scene: Scene)
tests/edit/round-trip/image-data-url.test.ts:22
↓ 1 callersFunctionexportSlideContent
* 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 callersFunctionextToMime
(ext: string)
lib/pdf/mineru-cloud.ts:37
↓ 1 callersMethodextract
(input: DocumentExtractorInput)
lib/document/types.ts:32
↓ 1 callersFunctionextractColor
* 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 callersFunctionextractCommonChartData
(chartTypeNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:211
↓ 1 callersFunctionextractCourseTitle
(buffer: string)
app/api/generate/scene-outlines-stream/route.ts:87
↓ 1 callersFunctionextractCourseTitleFromComplete
* 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 callersFunctionextractDocument
(input: DocumentExtractorInput)
lib/document/extract.ts:4
↓ 1 callersFunctionextractElementText
* 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 callersFunctionextractHtml
* 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 callersFunctionextractLanguageDirective
* 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 callersFunctionextractLearnerMemory
(messages: PBLChatMessage[])
lib/pbl/v2/agents/instructor-memory.ts:93
↓ 1 callersFunctionextractMappedIPv4
(ip: string)
lib/server/ssrf-guard.ts:36
↓ 1 callersFunctionextractNewOutlines
* 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 callersFunctionextractNumCacheAsStrings
(cache: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:86
↓ 1 callersFunctionextractPathCommands
(path)
packages/@openmaic/importer/src1/shape.js:240
↓ 1 callersFunctionextractPathEndpoints
* 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 callersFunctionextractPlaceholders
* 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 callersFunctionextractPlaceholdersRecursive
* Recursively collect placeholders; when inside a group, compute position/size in slide space.
packages/@openmaic/importer/src/model/Layout.ts:106
↓ 1 callersFunctionextractRuns
Simple XML regex extraction — avoids needing a full DOM parser.
packages/@openmaic/importer/src/utils/eqFieldParser.ts:412
↓ 1 callersFunctionextractScatterChartData
(chartTypeNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:238
↓ 1 callersFunctionextractSeriesColors
* 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 callersFunctionextractSeriesName
(txNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:119
↓ 1 callersFunctionextractStringValues
(refNode: SafeXmlNode)
packages/@openmaic/importer/src/serializer/chartSerializer.ts:54
↓ 1 callersFunctionextractTableStyleId
* 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 callersFunctionextractTexts
Extract ordered text blocks from a structured agent response.
eval/orchestration/answer-content-runner.ts:217
↓ 1 callersFunctionextractTopicFromRequirement
(requirement: string)
app/generation-preview/page.tsx:980
↓ 1 callersFunctionextractWidgetConfig
* Extract widget config from embedded JSON in HTML
lib/generation/scene-generator.ts:1318
↓ 1 callersFunctionfakeFetch
(map: Record<string, { body: string; contentType: string; status?: number }>)
tests/export/inline-assets.test.ts:73
↓ 1 callersFunctionfetchBaike
(query: string, apiKey: string)
lib/web-search/baidu.ts:102
↓ 1 callersFunctionfetchScholar
( query: string, apiKey: string, maxResults: number, baseUrl?: string, )
lib/web-search/baidu.ts:134
↓ 1 callersFunctionfetchWebSearch
( query: string, apiKey: string, maxResults: number, baseUrl?: string, )
lib/web-search/baidu.ts:58
↓ 1 callersFunctionfileToDataUrl
(file: File)
components/edit/surfaces/slide/ImagePicker.tsx:12
↓ 1 callersFunctionfillToJson
* Build `Fill` after the same fillCss / gradientFillData / line-like rules as ShapeRenderer.
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:543
↓ 1 callersFunctionfindFill
* Find the first fill element in a shape properties node.
packages/@openmaic/importer/src/model/nodes/ShapeNode.ts:210
↓ 1 callersFunctionfindFillInGroupHierarchy
(groupHierarchy, warpObj, source)
packages/@openmaic/importer/src1/fill.js:655
↓ 1 callersFunctionfindGroupFillNode
(grpSpPr: SafeXmlNode)
packages/@openmaic/importer/src/serializer/groupSerializer.ts:132
↓ 1 callersFunctionfindLayoutRel
* 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 callersFunctionfindMatchingLayoutPlaceholder
* Find a matching layout placeholder (PlaceholderEntry); use entry.absoluteXfrm when present.
packages/@openmaic/importer/src/model/Presentation.ts:386
↓ 1 callersFunctionfindMatchingPlaceholder
* 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 callersFunctionfindMilestoneAndTask
( project: PBLProjectV2, milestoneId: string, microtaskId: string, )
lib/pbl/v2/agents/evaluator.ts:427
↓ 1 callersFunctionfindNodesWithSameMark
(doc: Node, from: number, to: number, markType: MarkType)
lib/prosemirror/utils.ts:28
↓ 1 callersFunctionfindNvProps
* 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 callersFunctionfindOMath
(obj)
packages/@openmaic/importer/src1/math.js:3
↓ 1 callersFunctionfindOleFallbackPic
* 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
← previousnext →1,801–1,900 of 4,064, ranked by callers