- Added `nanoid` dependency for generating unique project IDs, ensuring stable identification across renames. - Introduced `PROJECTS_RESOLVE` channel to resolve project references by ID or folder name, improving project retrieval. - Updated project-related functions to utilize the new ID system, enhancing consistency in project management. - Refactored project handling in various components to accommodate the new project structure, ensuring seamless integration with existing functionality. - Adjusted routing to reflect project IDs in URLs, maintaining user experience during project renaming.
739 B
739 B
dapi context
Essential context about the open project. Call this first to understand the canvas situation. Alias: ctx.
Input
None.
Output
One JSON object:
{
projectId: string; // package.json `projectId`, stable across renames
entityCount: number;
scenes: number[]; // ids of the top-level scenes
activeSceneId: number | null; // null if no scene is active
currentFrame: number; // current timeline playhead position, in frames
workarea: { start: number; end: number } | null; // seconds, null if the active scene has none
fontFamilies: string[];
selection: number[]; // ids of the selected nodes, empty if nothing is selected
}