(nodeId: string)
| 7 | * Node IDs may contain characters invalid in CSS selectors (::, spaces, etc.) |
| 8 | */ |
| 9 | export 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. |
no outgoing calls
no test coverage detected