MCPcopy Create free account

hub / github.com/OpenDCAI/Paper2Any / functions

Functions4,061 in github.com/OpenDCAI/Paper2Any

↓ 2 callersFunctionestimate_font_pt
根据行高按比例估计字号(改进版:移除硬编码倍率限制) 核心思路: 1. 计算原图中该行的像素高度 2. 按比例映射到PPT的点数(pt) 3. 不再强制限制标题/副标题的倍率范围
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:842
↓ 2 callersFunctionexecute_matplotlib_code
安全执行 matplotlib 代码并保存图表。 参数 ---- code : str 要执行的 matplotlib Python 代码 output_path : str | Path 图表输出路径(包含文件名,如 /t
dataflow_agent/utils_common.py:1228
↓ 2 callersFunctionexportHtmlDeckToPptx
({ slides, deckTheme, fileName, }: { slides: FrontendSlide[]; deckTheme?: FrontendDeckTheme | null;
frontend-workflow/src/components/paper2ppt/html2pptxExport.ts:80
↓ 2 callersMethodexport_to_json
导出为 JSON 文件 Args: trajectory: 轨迹对象 filepath: 文件路径,如果为 None 则自动生成 pretty: 是否格式化输出
dataflow_agent/trajectory/exporter.py:43
↓ 2 callersMethodextract
(self)
fastapi_app/services/rebuttal_service.py:445
↓ 2 callersFunctionextract_beamer_code
(text_str)
dataflow_agent/toolkits/p2vtool/p2v_tool.py:1732
↓ 2 callersFunctionextract_op_params
Inspect 'cls' for __init__ and run signatures. Returns: init_kwargs: list of (param_name, code_str_default) for __init__ (excluding
dataflow_agent/toolkits/pipetool/pipe_tools.py:360
↓ 2 callersFunctionextract_review_questions
Extract question list from IssueExtractorAgent output
fastapi_app/services/rebuttal_service.py:806
↓ 2 callersFunctionextract_text_color
从文字区域提取主色调 返回 (r, g, b) 元组
dataflow_agent/toolkits/multimodaltool/ppt_tool.py:697
↓ 2 callersFunctionextract_text_from_block
从块中提取文本内容
dataflow_agent/utils_common.py:421
↓ 2 callersFunctionfetchVersionHistory
(pageIndex: number)
frontend-workflow/src/components/Ppt2PolishPage.tsx:1301
↓ 2 callersFunctionfilter_sam_items_by_area_and_score
简单按面积和得分过滤 SAM 实例。 Parameters ---------- items : List[Dict[str, Any]] run_sam_auto 返回的实例列表。 min_area : int, optional
dataflow_agent/toolkits/multimodaltool/sam_tool.py:1052
↓ 2 callersFunctionfindCard
(page: HomeNavigablePage)
frontend-workflow/src/components/HomePage.tsx:74
↓ 2 callersFunctionflowToMermaid
(nodes: Node[], edges: Edge[])
frontend-workflow/src/components/knowledge-base/tools/MindMapFlowEditor.tsx:113
↓ 2 callersFunctionformatAttributeValue
(value: string)
frontend-workflow/src/components/paper2ppt/frontendSlideUtils.ts:20
↓ 2 callersFunctionformatBytes
(bytes: number)
frontend-workflow/src/components/knowledge-base/LibraryView.tsx:104
↓ 2 callersFunctionformat_image_catalog_for_prompt
(catalog: Sequence[Dict[str, Any]], *, limit: int = 40)
dataflow_agent/utils_paper_visuals.py:107
↓ 2 callersMethodgenerate
( self, *, prompt: str, model: Optional[str], chat_api_url: Optional[s
fastapi_app/services/image_playground_service.py:259
↓ 2 callersFunctiongenerateInitialPPT
(slides: SlideOutline[], initialResults: BeautifyResult[], resultPathParam?: string)
frontend-workflow/src/components/Ppt2PolishPage.tsx:939
↓ 2 callersFunctiongenerate_sam3_segment_hints
( *, state: Any, image_path: str, text_blocks: Optional[Sequence[Dict[str, Any]]] = None,
dataflow_agent/workflow/sam3_segment_hint.py:301
↓ 2 callersFunctiongenerate_speech_and_save_async
生成语音并保存为 WAV 文件。单段失败时重试最多 max_attempts 次, 若 max_attempts <= 5 且仍失败则抛 TTSFallbackToF5Error 供调用方用 F5 回退。
dataflow_agent/toolkits/multimodaltool/req_tts.py:264
↓ 2 callersMethodgenerate_summary_markdown
Generate a markdown summary of all questions, strategies, and rebuttal
fastapi_app/services/rebuttal_service.py:1934
↓ 2 callersMethodgenerate_trace_id
生成唯一的 trace_id
dataflow_agent/trajectory/models.py:253
↓ 2 callersFunctiongetAttributeFieldValue
(field: FrontendEditableField | undefined)
frontend-workflow/src/components/paper2ppt/frontendSlideUtils.ts:63
↓ 2 callersFunctiongetBackendHeaders
(initialHeaders: HeadersInit = {})
frontend-workflow/src/services/backendClient.ts:6
↓ 2 callersFunctiongetCanvasNodeVisualStyle
( slide: FrontendSlide, node: FrontendCanvasNode, component: string, )
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:326
↓ 2 callersFunctiongetComponentFontSize
( component: string, theme: ResolvedCanvasVisualTheme, visualStyle: FrontendCanvasVisualStyle, )
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:375
↓ 2 callersFunctiongetComponentPadding
( component: string, theme: ResolvedCanvasVisualTheme, visualStyle: FrontendCanvasVisualStyle, )
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:389
↓ 2 callersFunctiongetEditableFieldKeyForBlock
(slide: FrontendSlide, block: FrontendSlideBlock)
frontend-workflow/src/components/paper2ppt/index.tsx:1030
↓ 2 callersFunctiongetFailedPageNumbers
(results: BeautifyResult[])
frontend-workflow/src/components/Ppt2PolishPage.tsx:93
↓ 2 callersFunctiongetFileRecords
()
frontend-workflow/src/services/fileService.ts:115
↓ 2 callersFunctiongetIcon
(type: string)
frontend-workflow/src/components/knowledge-base/LibraryView.tsx:440
↓ 2 callersFunctiongetManagedValidationText
(userApiConfigRequired: boolean)
frontend-workflow/src/utils/pointsMessaging.ts:59
↓ 2 callersFunctiongetOutputStorageKey
()
frontend-workflow/src/components/knowledge-base/index.tsx:216
↓ 2 callersFunctiongetPageFromLocation
(pathname: string, hash: string)
frontend-workflow/src/App.tsx:112
↓ 2 callersFunctiongetQuotaContext
()
frontend-workflow/src/components/Ppt2PolishPage.tsx:276
↓ 2 callersFunctiongetQuotaContext
()
frontend-workflow/src/components/paper2ppt/index.tsx:188
↓ 2 callersFunctiongetRelativePoint
(clientX: number, clientY: number)
frontend-workflow/src/components/paper2ppt/MaskSelectionEditor.tsx:80
↓ 2 callersFunctiongetTreeDepth
(node: MindMapTreeNode)
frontend-workflow/src/utils/mindmapTree.ts:329
↓ 2 callersFunctiongetUnchangedPageIndices
( current: SlideOutline[], snapshot: SlideOutline[], )
frontend-workflow/src/components/paper2ppt/index.tsx:2463
↓ 2 callersFunctiongetVerifyTimeoutMs
()
frontend-workflow/src/services/llmService.ts:6
↓ 2 callersFunctiongetVisualAsset
( slide: FrontendSlide, key?: string, useOriginal = false, )
frontend-workflow/src/components/paper2ppt/structuredSlideModel.ts:124
↓ 2 callersFunctiongetWorkKey
(work: CitationWorkItem)
frontend-workflow/src/components/paper2citation/index.tsx:819
↓ 2 callersMethodget_author_by_orcid
(self, orcid: str)
dataflow_agent/toolkits/citationtool/citation_utils.py:569
↓ 2 callersMethodget_author_works
( self, author_id: str, *, per_page: int = 25, page: int = 1,
dataflow_agent/toolkits/citationtool/citation_utils.py:586
↓ 2 callersFunctionget_bg_rm_remover
获取/创建进程级抠图模型单例,避免重复加载占用显存。 - 按 model_path 作为 key 进行缓存; - output_dir 可在已有实例上动态更新。
dataflow_agent/toolkits/multimodaltool/bg_tool.py:291
↓ 2 callersFunctionget_billing_mode
()
fastapi_app/services/managed_api_service.py:129
↓ 2 callersFunctionget_brightness
(c)
dataflow_agent/workflow/deprecated/wf_pdf2ppt_optimized.py:248
↓ 2 callersMethodget_citing_works
(self, work_id: str, per_page: int = 40)
dataflow_agent/toolkits/citationtool/citation_utils.py:620
↓ 2 callersMethodget_crossref_metadata
(self, doi: str)
dataflow_agent/toolkits/citationtool/citation_utils.py:644
↓ 2 callersFunctionget_current_user
Validate JWT token and extract user information. Args: authorization: Authorization header with Bearer token Return
fastapi_app/dependencies/auth.py:52
↓ 2 callersMethodget_default_pre_tool_results
(self)
dataflow_agent/agentroles/paper2any_agents/websearch_initial_analyzer.py:111
↓ 2 callersMethodget_default_pre_tool_results
获取默认前置工具结果 - 子类可重写 当没有工具管理器或前置工具未返回某些字段时,使用此默认值。 Returns: Dict[str, Any]: 默认的前置工具结果
dataflow_agent/agentroles/cores/base_agent.py:667
↓ 2 callersMethodget_duplicate_templates
返回所有有重复定义的模板及其来源 Returns ------- Dict[str, list] 键是模板名,值是来源列表(长度>1表示有重复)
dataflow_agent/promptstemplates/prompt_template.py:220
↓ 2 callersMethodget_quota
(self, *, user: Optional[AuthUser], guest_id: Optional[str])
fastapi_app/services/billing_service.py:336
↓ 2 callersFunctionget_redeem_code_files
()
fastapi_app/config/pricing.py:200
↓ 2 callersFunctionget_safe_outline_input_budget
Return a conservative input-token budget for outline generation. This is intentionally lower than the advertised model context to leave
dataflow_agent/utils_markdown_sections.py:52
↓ 2 callersFunctionget_sam3_client
( endpoints: Optional[Sequence[str]] = None, timeout: int = 120, )
dataflow_agent/toolkits/multimodaltool/sam3_tool.py:132
↓ 2 callersMethodget_work_by_doi
(self, doi: str)
dataflow_agent/toolkits/citationtool/citation_utils.py:614
↓ 2 callersFunctiongroup_imports
(op_names: List[str])
dataflow_agent/toolkits/pipetool/pipe_tools.py:319
↓ 2 callersFunctionhandleDelete
(file: KnowledgeFile, e: React.MouseEvent)
frontend-workflow/src/components/knowledge-base/LibraryView.tsx:159
↓ 2 callersFunctionhandleDownloadSvg
(path: string, filename: string)
frontend-workflow/src/components/paper2graph/TechRoutePreviewSection.tsx:31
↓ 2 callersFunctionhandleMoveSlide
(index: number, direction: 'up' | 'down')
frontend-workflow/src/components/Ppt2PolishPage.tsx:895
↓ 2 callersFunctionhandleMoveSlide
(index: number, direction: 'up' | 'down')
frontend-workflow/src/components/paper2ppt/index.tsx:3149
↓ 2 callersFunctionhandleNavigation
(pageId: string)
frontend-workflow/src/components/AppSidebar.tsx:201
↓ 2 callersFunctionhandlePageChange
(page: ActivePage)
frontend-workflow/src/App.tsx:162
↓ 2 callersFunctioninsetBoxForText
(box: PptBox)
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:227
↓ 2 callersFunctioninspectSlideLayout
( node: HTMLElement, width: number = 1600, height: number = 900, )
frontend-workflow/src/components/paper2ppt/frontendSlideUtils.ts:376
↓ 2 callersFunctionisCjk
(value: string)
frontend-workflow/src/utils/mindmapTree.ts:542
↓ 2 callersFunctionisCosyVoiceTtsModel
(model: string)
frontend-workflow/src/components/knowledge-base/tools/PodcastTool.tsx:58
↓ 2 callersFunctionisFileSupported
(file: KnowledgeFile)
frontend-workflow/src/components/knowledge-base/LibraryView.tsx:91
↓ 2 callersFunctionisInsufficientPointsError
(message?: string | null)
frontend-workflow/src/utils/pointsMessaging.ts:42
↓ 2 callersFunctionisMarkdownFile
(file?: KnowledgeFile | null)
frontend-workflow/src/components/knowledge-base/index.tsx:228
↓ 2 callersFunctionisOpenAITtsModel
(model: string)
frontend-workflow/src/components/knowledge-base/tools/PodcastTool.tsx:53
↓ 2 callersFunctionisSchemaDrivenSlide
(slide: FrontendSlide)
frontend-workflow/src/components/paper2ppt/frontendSchemaRenderer.ts:1779
↓ 2 callersFunctionisSystemPageLabel
(value: unknown)
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:279
↓ 2 callersFunctionis_auth_configured
Whether Supabase auth is configured for this deployment.
fastapi_app/dependencies/auth.py:32
↓ 2 callersFunctionis_probably_english
(text: str | Any)
dataflow_agent/utils_markdown_sections.py:12
↓ 2 callersFunctionlayoutGroup
( children: MindMapTreeNode[], side: 'left' | 'right', parentId: string, startDepth: number, nodes:
frontend-workflow/src/utils/mindmapTree.ts:214
↓ 2 callersFunctionloadStoredRuntimeConfig
()
frontend-workflow/src/services/runtimeConfigService.ts:45
↓ 2 callersFunctionlockPreviewAction
()
frontend-workflow/src/components/paper2graph/PreviewSection.tsx:67
↓ 2 callersFunctionmapTree
( node: MindMapTreeNode, nodeId: string, updater: (target: MindMapTreeNode) => MindMapTreeNode, )
frontend-workflow/src/utils/mindmapTree.ts:90
↓ 2 callersFunctionmeasure
()
frontend-workflow/src/components/paper2ppt/FrontendSlidePreview.tsx:117
↓ 2 callersFunctionmerge_crossref_metadata
(work: Dict[str, Any], crossref_message: Dict[str, Any])
dataflow_agent/toolkits/citationtool/citation_utils.py:792
↓ 2 callersMethodmerge_histories
合并多个消息历史 Args: histories: 多个消息历史列表 strategy: 合并策略 - chronological: 按时间顺序
dataflow_agent/graphbuilder/message_history.py:96
↓ 2 callersFunctionmoveSelectedToKb
(kbId: string | null)
frontend-workflow/src/components/knowledge-base/LibraryView.tsx:309
↓ 2 callersFunctionnextId
(prefix: string)
frontend-workflow/src/utils/mindmapTree.ts:36
↓ 2 callersFunctionnormalizeAuthorItems
(value: unknown)
frontend-workflow/src/components/paper2citation/index.tsx:130
↓ 2 callersFunctionnormalizeBatchCount
(value: unknown)
frontend-workflow/src/components/ImagePlaygroundPage.tsx:125
↓ 2 callersFunctionnormalizeCanvasVisualStyle
(value: any)
frontend-workflow/src/components/paper2ppt/index.tsx:2196
↓ 2 callersFunctionnormalizeFrontendDeckTheme
(theme: any)
frontend-workflow/src/components/paper2ppt/index.tsx:2115
↓ 2 callersFunctionnormalizeInstitutionStats
(value: unknown)
frontend-workflow/src/components/paper2citation/index.tsx:120
↓ 2 callersFunctionnormalizeMatchedHonorees
(value: unknown)
frontend-workflow/src/components/paper2citation/index.tsx:142
↓ 2 callersFunctionnormalizeMindMapTree
(raw: unknown, maxDepth = 6)
frontend-workflow/src/utils/mindmapTree.ts:67
↓ 2 callersFunctionnormalizePhoneE164China
(input: string)
frontend-workflow/src/stores/authStore.ts:57
↓ 2 callersFunctionnormalizeSchemaBlockType
(value: unknown)
frontend-workflow/src/components/paper2ppt/index.tsx:693
↓ 2 callersFunctionnormalizeSchemaTableData
(value: unknown)
frontend-workflow/src/components/paper2ppt/index.tsx:618
↓ 2 callersFunctionnormalizeTableData
(value: unknown)
frontend-workflow/src/components/paper2ppt/canvasPptxExporter.ts:298
↓ 2 callersFunctionnotifyHoverBlock
(blockId: string | null)
frontend-workflow/src/components/paper2ppt/FrontendSlidePreview.tsx:290
↓ 2 callersFunctiononLoadPaperDetail
()
frontend-workflow/src/components/paper2citation/index.tsx:774
← previousnext →901–1,000 of 4,061, ranked by callers