MCPcopy Create free account

hub / github.com/Sayhi-bzb/AsciiCanvas / functions

Functions866 in github.com/Sayhi-bzb/AsciiCanvas

↓ 115 callersFunctioncn
(...inputs: ClassValue[])
src/shared/lib/utils.ts:4
↓ 102 callersFunctioncreateText
( text: string, offset: Point = { x: 0, y: 0 }, orderOffset = 0, styleRanges?: StructuredTextS
src/domains/canvas/state/helpers/structured/components/factory.ts:48
↓ 85 callersFunctionrender
()
src/domains/canvas/components/AsciiCanvas/hooks/useCanvasRenderer.ts:376
↓ 57 callersFunctiondragEvent
(detail = 1)
src/__tests__/unit/components/structured-text-interaction.test.tsx:264
↓ 44 callersFunctioncloneTextAttributes
(attrs?: TextAttributes)
src/shared/utils/ansi.ts:51
↓ 38 callersFunctionsplitGraphemes
(value: string)
src/shared/metrics/textSegmentation.ts:6
↓ 36 callersFunctionactionFailed
(reason?: string)
src/domains/actions/core/result.ts:9
↓ 32 callersFunctiongetCellOccupancy
(grapheme: string)
src/shared/metrics/cellOccupancy.ts:15
↓ 31 callersFunctionactionSucceeded
(reason?: string)
src/domains/actions/core/result.ts:3
↓ 30 callersFunctionapplyFreeformSnapshotToYMaps
( entries: [string, GridCell][] )
src/domains/canvas/state/helpers/gridHelpers.ts:55
↓ 30 callersFunctiongetStructuredNodeBounds
(node: StructuredNode)
src/shared/utils/structured.ts:84
↓ 27 callersFunctionbuild
(templateId: StructuredTemplateId)
src/__tests__/unit/store/structuredTemplates.test.ts:16
↓ 27 callersFunctionbuildStructuredTemplatePreview
( templateId: StructuredTemplateId )
src/domains/canvas/state/helpers/structuredTemplates.ts:113
↓ 27 callersFunctionsceneToGridEntries
(scene: StructuredNode[])
src/shared/utils/structured.ts:245
↓ 21 callersFunctioncreateStructuredNodeId
()
src/shared/utils/structured.ts:249
↓ 19 callersFunctiongridCellRect
( point: Point, viewport: ViewportState, metrics: GridRenderMetrics = DEFAULT_GRID_RENDER_METRICS )
src/shared/metrics/viewport.ts:52
↓ 17 callersFunctionexportToAnsi
( grid: GridMap, options?: { includeColor?: boolean; } )
src/domains/export/utils/export.ts:513
↓ 17 callersFunctionserializeGrid
(grid: Map<string, GridCell>)
src/domains/canvas/state/helpers/snapshotHelpers.ts:165
↓ 16 callersFunctioncreateMapFromEntries
(entries: unknown)
src/domains/canvas/state/helpers/snapshotHelpers.ts:211
↓ 16 callersFunctionfindStructuredNodeHit
( scene: StructuredNode[], point: Point, _selectedNodeIds: string[] = [] )
src/domains/canvas/state/helpers/structuredBoxEditing.ts:259
↓ 16 callersFunctionisObject
(value: unknown)
src/domains/protocol/validation.ts:11
↓ 16 callersFunctionnormalizeAnimationTimeline
( timeline: Partial<AnimationTimeline> | null | undefined, fallbackGrid: [string, GridCell][] = [] )
src/domains/canvas/state/helpers/animationHelpers.ts:219
↓ 16 callersFunctiontoStructuredNode
(value: unknown)
src/domains/canvas/state/helpers/snapshotHelpers.ts:232
↓ 15 callersFunctionc
(U,V)
coverage/prettify.js:2
↓ 15 callersFunctionrunCanvasTransaction
( fn: () => void, history: CanvasHistoryMode | boolean = "save" )
src/shared/lib/yjs-setup.ts:30
↓ 15 callersFunctionupdateAnimationFrameEntries
( timeline: AnimationTimeline, frameId: string, grid: [string, GridCell][] )
src/domains/canvas/state/helpers/animationHelpers.ts:317
↓ 14 callersFunctioncreateBg
( width: number, colorIndex: number, orderOffset = 0, offset: Point = { x: 0, y: 0 }, heig
src/domains/canvas/state/helpers/structured/components/factory.ts:66
↓ 14 callersFunctionemitTag
( lines: string[], tag: string, attrs: Array<[string, string]>, indent: string, selfClose: boolean )
src/domains/export/utils/export.ts:976
↓ 14 callersFunctionupdateConfig
(patch: Partial<AnimationGeneratorConfig>)
src/domains/animation-generators/components/AnimationEffectsPanel.tsx:183
↓ 13 callersFunctionclampPointToBounds
( point: Point, bounds: AnimationCanvasSize | null )
src/domains/canvas/state/helpers/animationHelpers.ts:335
↓ 13 callersFunctiongetStructuredTextSelectionRange
( selection: StructuredTextSelection | null )
src/shared/utils/structuredTextRanges.ts:33
↓ 13 callersFunctionisPoint
(value: unknown)
src/domains/canvas/state/helpers/snapshotHelpers.ts:226
↓ 13 callersFunctionmakeFrame
(id: string, char: string)
src/__tests__/unit/store/generated-animation.test.ts:6
↓ 13 callersFunctionnormalizeStructuredComponents
( components: StructuredComponentInstance[] | undefined, scene: StructuredNode[] )
src/domains/canvas/state/helpers/snapshotHelpers.ts:128
↓ 13 callersFunctionsyncAnimationRuntime
( timeline: AnimationTimeline, options?: { currentFrameId?: string; size?: AnimationCanvas
src/domains/canvas/state/slices/createAnimationSlice.ts:28
↓ 12 callersFunctionbox
(overrides: Partial<StructuredBoxNode> = {})
src/__tests__/unit/store/structuredBoxEditing.test.ts:25
↓ 12 callersFunctioncloneRangeStyle
( style: StructuredTextRangeStyle )
src/shared/utils/structuredTextRanges.ts:54
↓ 12 callersFunctionescapeAttr
(value: string)
src/domains/export/utils/export.ts:941
↓ 12 callersFunctiongetFirstGrapheme
(value: string)
src/shared/utils/characters.ts:3
↓ 12 callersFunctionnormalizeSessionMode
(mode: unknown)
src/domains/canvas/state/helpers/sessionHelpers.ts:63
↓ 11 callersFunctioncloneStructuredNode
(node: StructuredNode)
src/domains/canvas/state/helpers/snapshotHelpers.ts:49
↓ 11 callersFunctioncreateTextLayout
(text: string, origin: Point)
src/shared/utils/textLayout.ts:39
↓ 11 callersFunctioni
(T)
coverage/prettify.js:2
↓ 11 callersFunctionisStructuredSplitBoxLineHandle
( handle: StructuredSplitBoxHandle | null )
src/domains/canvas/state/helpers/structuredBoxEditing.ts:51
↓ 11 callersFunctionpushRange
( ranges: StructuredTextStyleRange[], range: StructuredTextStyleRange )
src/shared/utils/structuredTextRanges.ts:178
↓ 11 callersFunctionuseUiI18n
()
src/shared/i18n/index.ts:402
↓ 10 callersFunctioncloneAnimationTimeline
( timeline: AnimationTimeline )
src/domains/canvas/state/helpers/animationHelpers.ts:204
↓ 10 callersFunctioncreateLine
( width: number, orderOffset = 0, offset: Point = { x: 0, y: 0 }, style: StructuredNodeStyle =
src/domains/canvas/state/helpers/structured/components/factory.ts:110
↓ 10 callersFunctiongetLShapeLinePoints
( start: Point, end: Point, isVerticalFirst: boolean )
src/shared/utils/shapes.ts:52
↓ 10 callersFunctiongetSelectionBounds
(area: SelectionArea)
src/shared/utils/selection.ts:3
↓ 10 callersFunctionrunAction
( actionId: ActionId, options: T & Partial<ActionContext>, context?: ActionContext )
src/domains/actions/core/runtime.ts:46
↓ 10 callersFunctionsetActiveStructuredTemplateDragId
( templateId: StructuredTemplateId | null )
src/domains/canvas/state/helpers/structuredTemplates.ts:52
↓ 10 callersFunctionsetStructuredTextScene
(options?: { editing?: boolean })
src/__tests__/unit/components/structured-text-interaction.test.tsx:93
↓ 10 callersFunctionwithActiveCanvasSnapshot
( sessions: CanvasSession[], activeCanvasId: string, snapshot: ActiveSnapshot )
src/domains/canvas/state/helpers/sessionHelpers.ts:42
↓ 9 callersFunctiongetStructuredTextOffsetAtPoint
( node: StructuredTextNode, point: Point )
src/shared/utils/structuredTextRanges.ts:350
↓ 9 callersFunctionisPoint
(value: unknown)
src/domains/protocol/validation.ts:15
↓ 9 callersFunctionsetTextRenderStyle
( ctx: CanvasRenderingContext2D, zoom = 1, metrics: GridRenderMetrics = DEFAULT_GRID_RENDER_METRICS )
src/shared/metrics/canvasDrawing.ts:61
↓ 9 callersFunctiontoHexByte
(value: number)
src/shared/utils/ansi.ts:104
↓ 8 callersFunctionclampNumber
(value: number, min: number, max: number)
src/domains/canvas/state/helpers/animationHelpers.ts:29
↓ 8 callersFunctioncloneStructuredTextStyleRanges
( ranges?: StructuredTextStyleRange[] )
src/shared/utils/structuredTextRanges.ts:64
↓ 8 callersFunctioncollapseGridSelectionTo
( state: GridSelectionState, activeCell: GridAddress )
src/domains/canvas/state/helpers/staticGridModel.ts:109
↓ 8 callersFunctiondrawTextCell
( ctx: CanvasRenderingContext2D, cell: GridCell, x: number, y: number, options?: { color?: strin
src/shared/metrics/canvasDrawing.ts:71
↓ 8 callersFunctionexportSelectionToAnsi
( grid: GridMap, selections: SelectionArea[], options?: { includeColor?: boolean; } )
src/domains/export/utils/export.ts:492
↓ 8 callersFunctiongetAnimationFrameIndex
( timeline: AnimationTimeline, frameId: string )
src/domains/canvas/state/helpers/animationHelpers.ts:293
↓ 8 callersFunctiongetStructuredTextCaretPoint
( node: StructuredTextNode, offset: number )
src/shared/utils/structuredTextRanges.ts:360
↓ 8 callersFunctiongetTextLayoutCaretPoint
( layout: TextLayout, offset: number )
src/shared/utils/textLayout.ts:98
↓ 8 callersFunctionnormalizeAnimationCanvasSize
( size: Partial<AnimationCanvasSize> | null | undefined )
src/domains/canvas/state/helpers/animationHelpers.ts:125
↓ 8 callersFunctionnormalizeBrushChar
(value: string, fallback: string)
src/shared/utils/characters.ts:7
↓ 8 callersFunctionnormalizeScene
(scene: StructuredNode[])
src/shared/utils/structured.ts:342
↓ 8 callersFunctionresolveSelectionAreas
(state: CanvasState)
src/domains/canvas/state/slices/selectionSlice.ts:54
↓ 8 callersFunctionrunEditorCommand
( command: EditorCommand, options: RunEditorCommandOptions = {} )
src/domains/actions/adapters/editorCommands.ts:33
↓ 8 callersFunctionsetDraggingSelection
( selection: SelectionArea | null, options: { immediate?: boolean } = {} )
src/domains/canvas/components/AsciiCanvas/hooks/useCanvasInteraction.ts:597
↓ 8 callersFunctionwriteClipboardPayload
( payload: ClipboardPayload, options: WriteClipboardOptions = {} )
src/domains/actions/adapters/clipboardActions.ts:313
↓ 7 callersFunctioncreateSessionId
(sessions: CanvasSession[])
src/domains/canvas/state/helpers/sessionHelpers.ts:24
↓ 7 callersFunctionformatComponentAttrs
(node: StructuredNode)
src/domains/export/utils/export.ts:968
↓ 7 callersFunctiongetAnimationFrameEntries
( timeline: AnimationTimeline, frameId = timeline.currentFrameId )
src/domains/canvas/state/helpers/animationHelpers.ts:300
↓ 7 callersFunctiongetBoxPoints
(start: Point, end: Point)
src/shared/utils/shapes.ts:121
↓ 7 callersFunctiongetStructuredBoxHandleAtPoint
( node: StructuredRectNode, point: Point )
src/domains/canvas/state/helpers/structuredBoxEditing.ts:133
↓ 7 callersFunctiongetStructuredSplitBoxGuides
(node: StructuredSplitBoxNode)
src/domains/canvas/state/helpers/structuredBoxEditing.ts:158
↓ 7 callersFunctiongetStructuredSplitBoxHandleAtPoint
( node: StructuredSplitBoxNode, point: Point )
src/domains/canvas/state/helpers/structuredBoxEditing.ts:168
↓ 7 callersFunctiongetTextLayoutOffsetAtPoint
( layout: TextLayout, point: Point )
src/shared/utils/textLayout.ts:78
↓ 7 callersFunctionhasStructuredSelection
( state: ReturnType<typeof useCanvasStore.getState> )
src/domains/actions/core/handlers/editor.ts:35
↓ 7 callersFunctionisAsciiCanvasDocument
( value: unknown )
src/domains/protocol/validation.ts:164
↓ 7 callersFunctionisFromCanvasUi
(event: Event | undefined)
src/domains/canvas/components/AsciiCanvas/hooks/useCanvasInteraction.ts:120
↓ 7 callersFunctionisSameCell
(a?: GridCell, b?: GridCell)
src/domains/canvas/state/helpers/snapshotHelpers.ts:215
↓ 7 callersFunctionisWideCell
(grapheme: string)
src/shared/metrics/cellOccupancy.ts:31
↓ 7 callersFunctionnormalizeAndCloneScene
(scene: StructuredNode[])
src/domains/canvas/state/helpers/snapshotHelpers.ts:161
↓ 7 callersFunctionnormalizeOrders
(scene: StructuredNode[])
src/domains/canvas/state/helpers/structuredNodeActions.ts:6
↓ 7 callersFunctionnormalizeSplitBoxRoot
( root: unknown, ratios: { verticalSplitRatio: number; topSplitRatio: number; bottomSplitRatio
src/shared/utils/shapes.ts:199
↓ 7 callersFunctionoffsetPoint
(point: Point, offset: Point)
src/domains/canvas/state/helpers/structuredNodeActions.ts:53
↓ 7 callersFunctionprotocolDocumentToSnapshot
( document: AsciiCanvasDocumentV1 )
src/domains/protocol/import.ts:207
↓ 7 callersFunctionpushUint16
(target: number[], value: number)
src/domains/export/utils/export.ts:285
↓ 7 callersFunctionresolveGridPointFromScreen
(clientX: number, clientY: number)
src/domains/canvas/components/AsciiCanvas/hooks/useCanvasInteraction.ts:307
↓ 7 callersFunctionresolveNextSessionName
(sessions: CanvasSession[])
src/domains/canvas/state/helpers/sessionHelpers.ts:11
↓ 7 callersFunctionrunSmoothScenario
( page: Page, name: string, action: () => Promise<void>, testInfo: TestInfo, limits = LIMITS )
e2e/performance.spec.ts:261
↓ 7 callersFunctionsetTwoSessions
()
src/__tests__/unit/components/session-tabs.test.tsx:34
↓ 7 callersFunctionuseSidebar
()
src/shared/ui/sidebar.tsx:47
↓ 7 callersFunctionwithPointWithinBounds
( point: Point, bounds: NodeBounds, allowEnd = true )
src/shared/utils/structured.ts:327
↓ 6 callersFunctionbuildStructuredTemplateNodes
( templateId: StructuredTemplateId, position: { x: number; y: number }, options: StructuredTemplateBuild
src/domains/canvas/state/helpers/structuredTemplates.ts:105
↓ 6 callersFunctionbuildStructuredTree
(scene: StructuredNode[])
src/shared/utils/structured.ts:270
next →1–100 of 866, ranked by callers