- Foldable left panel (user profile) and right panel (task details) - Clicking a task in the list or graph node selects it and shows details - Both views (task list + graph) always mounted via absolute inset-0 for correct canvas dimensions; tabs toggle visibility with opacity - Graph node selection animation: other nodes repel outward (charge -600), then selected node smoothly slides to center (500ms cubic ease-out), then charge restores to -120 and graph stabilizes - Graph re-fits on tab switch and panel resize via ResizeObserver - Fix UUID string IDs throughout (backend returns UUIDs, not integers) - Add TaskDetailPanel, UserPanel components - Add CLAUDE.md project documentation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
848 B
JavaScript
34 lines
848 B
JavaScript
import {charCodes} from "./charcodes";
|
|
|
|
// https://tc39.github.io/ecma262/#sec-white-space
|
|
export const WHITESPACE_CHARS = [
|
|
0x0009,
|
|
0x000b,
|
|
0x000c,
|
|
charCodes.space,
|
|
charCodes.nonBreakingSpace,
|
|
charCodes.oghamSpaceMark,
|
|
0x2000, // EN QUAD
|
|
0x2001, // EM QUAD
|
|
0x2002, // EN SPACE
|
|
0x2003, // EM SPACE
|
|
0x2004, // THREE-PER-EM SPACE
|
|
0x2005, // FOUR-PER-EM SPACE
|
|
0x2006, // SIX-PER-EM SPACE
|
|
0x2007, // FIGURE SPACE
|
|
0x2008, // PUNCTUATION SPACE
|
|
0x2009, // THIN SPACE
|
|
0x200a, // HAIR SPACE
|
|
0x202f, // NARROW NO-BREAK SPACE
|
|
0x205f, // MEDIUM MATHEMATICAL SPACE
|
|
0x3000, // IDEOGRAPHIC SPACE
|
|
0xfeff, // ZERO WIDTH NO-BREAK SPACE
|
|
];
|
|
|
|
export const skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
|
|
export const IS_WHITESPACE = new Uint8Array(65536);
|
|
for (const char of WHITESPACE_CHARS) {
|
|
IS_WHITESPACE[char] = 1;
|
|
}
|