MCPcopy Create free account

hub / github.com/ZSeven-W/openpencil / functions

Functions3,401 in github.com/ZSeven-W/openpencil

↓ 3 callersMethoddiff
* Get message diff * * Get the file changes (diff) that resulted from a specific user message in the session.
apps/web/server/opencode/gen/sdk.gen.ts:1814
↓ 3 callersFunctiondisplayName
(value: string)
packages/pen-react/src/components/font-picker.tsx:102
↓ 3 callersFunctiondisplayName
Extract display name from a font value like "Arial, sans-serif" → "Arial"
apps/web/src/components/shared/font-picker.tsx:14
↓ 3 callersFunctiondocLegacy
(children: PenNode[])
packages/pen-core/src/__tests__/node-merge.test.ts:36
↓ 3 callersFunctiondocMulti
(pages: Array<{ id: string; children: PenNode[] }>)
packages/pen-core/src/__tests__/node-merge.test.ts:30
↓ 3 callersMethoddrawImage
( canvas: Canvas, node: PenNode, x: number, y: number, w: number, h: number, opaci
packages/pen-renderer/src/node-renderer.ts:968
↓ 3 callersMethoddrawImageFallback
( canvas: Canvas, x: number, y: number, w: number, h: number, cr: number, opacity:
packages/pen-renderer/src/node-renderer.ts:1080
↓ 3 callersFunctiondrawText2D
Draw text via Canvas 2D rasterization → CanvasKit image. Returns rendered width.
apps/web/src/canvas/skia/skia-overlays.ts:45
↓ 3 callersMethoddrawTextBitmap
Bitmap text rendering fallback — supports all system fonts via Canvas 2D API.
packages/pen-renderer/src/text-renderer.ts:429
↓ 3 callersMethoddrawTextVector
* Render text as true vector glyphs using CanvasKit's Paragraph API. * Returns true if rendered, false if font not available (caller should fallbac
packages/pen-renderer/src/text-renderer.ts:160
↓ 3 callersFunctionellipse
(id: string, w: number, h: number)
packages/pen-core/src/__tests__/normalize-tree-layout.test.ts:251
↓ 3 callersFunctionencodeAIStructureBundleZip
(entries: Record<string, Uint8Array>)
apps/web/src/services/ai/structure-bundle.ts:459
↓ 3 callersFunctionencodeNodeConflictId
(conflict: NodeConflict)
apps/desktop/git/merge-session.ts:61
↓ 3 callersFunctionengineBindTrackedFile
( repoId: string, filePath: string, )
apps/desktop/git/git-engine.ts:605
↓ 3 callersFunctionengineDiff
( repoId: string, fromCommit: string, toCommit: string, )
apps/desktop/git/git-engine.ts:1504
↓ 3 callersFunctionengineFetch
( repoId: string, auth?: AuthCreds, )
apps/desktop/git/git-engine.ts:1363
↓ 3 callersFunctionengineListCandidates
(repoId: string)
apps/desktop/git/git-engine.ts:623
↓ 3 callersFunctionengineRestore
(repoId: string, commitHash: string)
apps/desktop/git/git-engine.ts:1100
↓ 3 callersFunctionensureDir
()
apps/desktop/git/ssh-keys.ts:50
↓ 3 callersFunctionensureSkillDir
Write bundled files or fall back to git clone.
apps/cli/src/commands/install.ts:90
↓ 3 callersFunctionensureUniqueNodeIds
( node: PenNode, used: Set<string>, counters: Map<string, number>, remapping?: Map<string, string>, )
apps/web/src/services/ai/design-node-sanitization.ts:142
↓ 3 callersFunctionescapeHtml
(text: string)
apps/web/src/utils/syntax-highlight.ts:76
↓ 3 callersFunctionestimateNodeIntrinsicHeight
( node: PenNode, parentContentWidth?: number, canvasWidth = 1200, )
apps/web/src/services/ai/generation-utils.ts:126
↓ 3 callersFunctionexecuteOrchestration
( request: AIDesignRequest, callbacks?: { onApplyPartial?: (count: number) => void; onTextUpdate?:
apps/web/src/services/ai/orchestrator.ts:489
↓ 3 callersFunctionextractDetails
(content: string)
apps/web/src/components/panels/chat-message-tool-call.tsx:120
↓ 3 callersFunctionextractFillColor
Extract the first solid fill color from a fill value (PenFill[] or string).
packages/pen-mcp/src/routes/style-operations-routes.ts:41
↓ 3 callersFunctionextractPathPrefix
(path: string)
apps/web/src/utils/document-assets.ts:230
↓ 3 callersFunctionfilterPlanningSkillsForPrompt
( skills: T[], prompt: string, )
apps/web/src/services/ai/orchestrator-planning.ts:11
↓ 3 callersMethodfinalizePen
(closed: boolean)
apps/web/src/canvas/skia/skia-pen-tool.ts:169
↓ 3 callersFunctionfindMergeBase
(opts: { handle: IsoRepoHandle; oid1: string; oid2: string; })
apps/desktop/git/git-iso.ts:656
↓ 3 callersFunctionfindNodeByPath
(path: string, doc: PenDocument, pageId?: string)
packages/pen-mcp/src/tools/batch-design.ts:471
↓ 3 callersFunctionfindParent
(nodes: PenNode[], id: string)
apps/web/src/components/panels/layer-dnd-utils.test.ts:24
↓ 3 callersFunctionfindParentInTree
(nodes: PenNode[], id: string)
packages/pen-mcp/src/tools/batch-design.ts:502
↓ 3 callersFunctionfinish
(ok: boolean)
apps/desktop/dev.ts:60
↓ 3 callersFunctionfitContentWidth
(node: PenNode, parentAvail?: number)
packages/pen-core/src/layout/engine.ts:119
↓ 3 callersFunctionflushDocumentPush
(clientId: string | null)
apps/web/src/hooks/use-mcp-sync.ts:155
↓ 3 callersFunctionforcePageResync
()
apps/web/src/canvas/canvas-sync-utils.ts:10
↓ 3 callersFunctionformatBytes
(bytes: number | null)
apps/web/server/api/mcp/document.post.ts:60
↓ 3 callersFunctionformatMiB
(bytes: number)
packages/pen-figma/src/fig-parser.ts:24
↓ 3 callersFunctionformatSSE
(event: string, data: unknown)
packages/pen-acp/src/event-adapter.ts:68
↓ 3 callersFunctionfriendlyGeminiApiError
Map raw Gemini API errors to user-friendly messages
apps/web/server/utils/gemini-client.ts:357
↓ 3 callersFunctiongc
(...args: string[])
apps/desktop/git/__tests__/git-engine.test.ts:2186
↓ 3 callersFunctiongetActiveAgentFrames
()
apps/web/src/canvas/agent-indicator.ts:53
↓ 3 callersMethodgetActiveId
Returns the active (primary) node ID, or null.
packages/pen-engine/src/core/selection-manager.ts:28
↓ 3 callersFunctiongetAgentFrameMap
()
apps/web/src/canvas/agent-indicator.ts:41
↓ 3 callersFunctiongetAllPages
(doc: PenDocument)
packages/pen-core/src/merge/merge-helpers.ts:54
↓ 3 callersMethodgetAppliedIds
()
apps/web/src/services/ai/streaming-design-renderer.ts:211
↓ 3 callersMethodgetCanvasRect
()
apps/web/src/canvas/skia/skia-engine.ts:725
↓ 3 callersFunctiongetDesignToolDefs
()
apps/web/src/services/ai/agent-tools.ts:203
↓ 3 callersFunctiongetDevServerConflictMessage
( probe: DevServerProbeResult, port: number, )
apps/desktop/dev-utils.ts:30
↓ 3 callersMethodgetDocument
()
packages/pen-react/src/__tests__/provider.test.tsx:28
↓ 3 callersFunctiongetElectronBinaryPath
( root: string, platform: NodeJS.Platform = process.platform, )
apps/desktop/dev-utils.ts:3
↓ 3 callersFunctiongetFocusBounds
( renderNodes: RenderNode[], selectedIds: Iterable<string>, )
apps/web/src/canvas/skia/focus-fit.ts:17
↓ 3 callersFunctiongetGenerationRemappedIds
()
apps/web/src/services/ai/design-canvas-ops.ts:132
↓ 3 callersMethodgetHoveredId
()
packages/pen-engine/src/core/design-engine.ts:199
↓ 3 callersMethodgetInterceptorIndex
(id: number | Interceptor)
apps/web/server/opencode/v2/gen/client/utils.gen.ts:253
↓ 3 callersMethodgetInterceptorIndex
(id: number | Interceptor)
apps/web/server/opencode/gen/client/utils.gen.ts:253
↓ 3 callersFunctiongetLastUserAttachments
Collect all attachments from the last user message
apps/web/server/api/ai/chat.ts:214
↓ 3 callersFunctiongetLiveSyncState
()
packages/pen-mcp/src/document-manager.ts:166
↓ 3 callersFunctiongetLocalIp
()
apps/web/server/utils/mcp-server-manager.ts:40
↓ 3 callersFunctiongetNodeVisualPosition
( doc: PenDocument, activePageId: string | null, nodeId: string, )
apps/web/src/stores/document-position-utils.ts:13
↓ 3 callersFunctiongetPaperModule
()
packages/pen-core/src/boolean-ops.ts:47
↓ 3 callersFunctiongetPreview
(def: VariableDefinition)
apps/web/src/components/shared/variable-picker.tsx:72
↓ 3 callersMethodgetPrivateKeyPath
Resolve a keyId to its private key path. Throws if missing. Used by * git-sys when invoking SSH transport. Not part of the IPC surface.
apps/desktop/git/ssh-keys.ts:37
↓ 3 callersFunctiongetRecentEntries
( entries: HistoryEntry[], limit: number, documentPath?: string, )
packages/pen-ai-skills/src/memory/generation-history.ts:48
↓ 3 callersFunctiongetRecentFiles
()
apps/web/src/utils/recent-files.ts:12
↓ 3 callersFunctiongetRunningPid
Read PID from file if it exists and process is still running.
apps/web/server/utils/mcp-server-manager.ts:64
↓ 3 callersFunctiongetSelectedRN
(engine: SkiaEngine)
apps/web/src/canvas/skia/skia-hit-handlers.ts:30
↓ 3 callersMethodgetStatus
(src: string)
packages/pen-renderer/src/image-loader.ts:52
↓ 3 callersFunctiongetSystemAuthor
( injectedExec?: RunGitExec, )
apps/desktop/git/git-sys.ts:255
↓ 3 callersFunctiongroup
(id: string, children: PenNode[] = [])
packages/pen-core/src/__tests__/node-merge.test.ts:21
↓ 3 callersFunctionhandleGetVariables
( params: GetVariablesParams, )
packages/pen-mcp/src/tools/variables.ts:14
↓ 3 callersFunctionhandleOpenDocument
(params: OpenDocumentParams)
packages/pen-mcp/src/tools/open-document.ts:32
↓ 3 callersFunctionhandleResizingChange
(mode: TextResizing)
packages/pen-react/src/components/sections/text-layout-section.tsx:108
↓ 3 callersFunctionhandleResizingChange
(mode: TextResizing)
apps/web/src/components/panels/text-layout-section.tsx:103
↓ 3 callersFunctionhandleSelect
(iconId: string)
packages/pen-react/src/components/icon-picker-dialog.tsx:163
↓ 3 callersFunctionhandleSubmit
()
apps/web/src/components/panels/git-panel/git-panel-commit-input.tsx:33
↓ 3 callersFunctionhasActiveLayout
(node: PenNode)
apps/web/src/services/ai/design-node-sanitization.ts:57
↓ 3 callersFunctionhasVisibleColor
(color: string | undefined)
packages/pen-renderer/src/spatial-index.ts:156
↓ 3 callersFunctionhashBytesToSha256Hex
(bytes: Uint8Array)
apps/web/src/services/ai/codegen-assets.ts:92
↓ 3 callersFunctionhitTestPathControl
( engine: SkiaEngine, sceneX: number, sceneY: number, )
apps/web/src/canvas/skia/skia-hit-handlers.ts:119
↓ 3 callersFunctionhydratePlan
(plan: CodePlanFromAI, nodes: PenNode[])
apps/web/src/services/ai/code-generation-pipeline.ts:47
↓ 3 callersFunctioninferTagsFromPrompt
Infer style guide tags from user prompt keywords
apps/web/src/services/ai/orchestrator-prompt-optimizer.ts:418
↓ 3 callersFunctionisAbsolutePath
(value: string)
apps/web/src/utils/document-assets.ts:159
↓ 3 callersFunctionisBlock
(n: ReactNode)
apps/web/src/components/panels/chat-message-content.tsx:81
↓ 3 callersMethodisDescendantOf
(nodeId: string, ancestorId: string)
packages/pen-engine/src/core/document-manager.ts:202
↓ 3 callersFunctionisDesignJson
(code: string)
apps/web/src/components/panels/chat-message-content.tsx:7
↓ 3 callersFunctionisFile
(path: string)
apps/web/server/utils/local-asset.ts:51
↓ 3 callersFunctionisFrame
(node: PenNode)
apps/web/src/services/ai/append-intent-detector.ts:15
↓ 3 callersFunctionisGitApiAvailable
()
apps/web/src/services/git-client.ts:65
↓ 3 callersFunctionisNodeAvailable
()
apps/web/server/api/ai/mcp-install.ts:112
↓ 3 callersFunctionisPlaceholderSrc
(src?: string)
apps/web/src/services/ai/image-search-pipeline.ts:37
↓ 3 callersFunctionisStatusBarLike
(frame: FrameNode)
apps/web/src/services/ai/append-intent-detector.ts:19
↓ 3 callersMethodisSystemFont
Check if a font is a system font that should use bitmap rendering
packages/pen-renderer/src/font-manager.ts:150
↓ 3 callersFunctionlin
(v: number)
packages/pen-ai-skills/src/diagnostics/detectors.ts:47
↓ 3 callersFunctionlin
(v: number)
apps/web/src/services/ai/role-resolver.ts:490
↓ 3 callersFunctionmakeMockCk
()
packages/pen-renderer/src/__tests__/image-loader.test.ts:5
↓ 3 callersFunctionmakeRenderNode
(id: string, x: number, y: number, w: number, h: number)
packages/pen-engine/src/__tests__/spatial-index.test.ts:5
↓ 3 callersFunctionmakeStubRenderer
(opts: { fontPending?: number; imagePending?: number })
apps/web/src/canvas/skia/__tests__/skia-engine-capture.test.ts:108
↓ 3 callersFunctionmapCornerRadius
( figma: FigmaNodeChange, )
packages/pen-figma/src/converters/common.ts:133
← previousnext →701–800 of 3,401, ranked by callers