MCPcopy Create free account
hub / github.com/codag-megalith/codag-visualizer / escapeNodeIdForCSS

Function escapeNodeIdForCSS

frontend/src/webview-client/utils.ts:9–12  ·  view source on GitHub ↗
(nodeId: string)

Source from the content-addressed store, hash-verified

7 * Node IDs may contain characters invalid in CSS selectors (::, spaces, etc.)
8 */
9export function escapeNodeIdForCSS(nodeId: string): string {
10 // CSS.escape handles all special characters properly
11 return CSS.escape(nodeId);
12}
13
14/**
15 * Snap value to nearest grid point.

Callers 10

pulseMinimapNodesFunction · 0.90
openPanelFunction · 0.90
pulseNodesFunction · 0.90
fadeInNodesFunction · 0.90
hydrateLabelsFunction · 0.90
markNodesSyncingFunction · 0.90
clearNodesSyncingFunction · 0.90
markNodesPendingFunction · 0.90
clearNodesPendingFunction · 0.90
applyFileChangeStateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected