- Added logic to reset animated values in the cache when evicting from 'animations' or 'keyframeTracks' lists, ensuring proper state management during animation transitions.
- Improved the handling of cache members to maintain integrity when entities are removed.
- Added new options for grouping and ungrouping selections in the Object Menu, improving user interaction with selected elements.
- Introduced `wrapSelectionInScene` function to allow users to encapsulate selected elements within a scene, maintaining their positions.
- Updated keyboard shortcuts for grouping, ungrouping, and wrapping selections, streamlining workflow efficiency.
- Refactored related functions in the engine to support the new scene wrapping feature, ensuring consistent behavior across the editor.
- Replaced Start and End traits with Delay and Trim to better represent the node's timing on the timeline.
- Updated related functions and components to utilize the new timing structure, ensuring accurate handling of authored time.
- Enhanced the timing logic to reconcile authored time properties into the runtime's vocabulary, improving consistency across the editor and runtime.
- Refactored serialization and deserialization processes to accommodate the new timing traits, ensuring proper data handling during entity state changes.
- Introduced `wrapSelectionInSequence` and `unwrapSequenceSelection` functions to allow users to group selected elements into sequences, maintaining their positions and start times.
- Updated the `ungroupSelection` function to handle both groups and sequences, ensuring consistent behavior when dissolving selections.
- Enhanced keyboard shortcuts to trigger sequence wrapping and unwrapping, improving user interaction and workflow efficiency.
- Introduced a new `LayerContext` to manage drag-and-drop interactions for timeline layers, allowing users to reorder and reparent layers visually.
- Added `DropIndicator` component to provide visual feedback on potential drop targets during dragging.
- Enhanced `NodeLayer` to initiate dragging on pointer down events, integrating drag state management.
- Created utility functions in `drag.ts` for handling drop targets and layer positioning, improving the overall user experience in the timeline.
- Updated the timeline controller to support programmatic scrolling during drag operations, enhancing usability when dragging layers near the viewport edges.
- Introduced `groupSelection` and `ungroupSelection` functions to allow users to group and ungroup selected elements without altering their positions on the canvas.
- Updated keyboard shortcuts to trigger grouping with 'G' and ungrouping with 'G + Shift', enhancing user interaction.
- Refactored the `SceneTemplatePanel` to integrate `SolidPaint` for fill colors, improving rendering consistency.
- Updated the DrawOverlay and createScene functions to replace direct fill color attributes with SolidPaint components, enhancing rendering flexibility.
- Improved the structure of Scene and Rect elements to support the new SolidPaint integration, ensuring consistent fill handling across components.
- Removed the WeakMap for registered traits, simplifying the trait registration process.
- Enhanced error handling in the store function to ensure traits are queried correctly, improving reliability in accessing the store.
- Streamlined the logic for retrieving the store, reducing unnecessary checks and improving performance.
- Integrated `getEditHistory` into the `EditMenu` component, enabling undo and redo actions based on edit history state.
- Updated the `Engine` class to improve modifier key handling, ensuring accurate key state management during input events.
- Refactored the `DocumentEditor` to support capturing previous values during edits, enhancing the undo/redo capabilities.
- Added new methods for undo and redo actions in the shortcuts system, streamlining keyboard shortcut functionality.
- Improved documentation and type definitions related to edit history and input handling for better clarity and maintainability.
- Updated `useGenerateImage` and `useGenerateVideo` to replace direct `<Image>` and `<Video>` elements with `<ImagePaint>` and `<VideoPaint>` wrapped in `<Rect>`, enhancing the rendering process.
- Modified `insertAsset` function to accommodate the new structure for inserting images and videos, ensuring consistency across asset types.
- Improved error handling in the timeline rendering by refining how generating and error states are determined, leading to better visual feedback during asset generation.
- Changed the import type from `HostNode` to `SceneNode` in `editor.ts` to align with the updated project structure.
- Modified the `recording` method's return type to `ProjectDocument<SceneNode>`, ensuring consistency in type usage across the document editor.
- Introduced a new `SourceSettings` component to manage media source properties in the inspector, enhancing the user interface for asset management.
- Updated the `Inspector` component to include the `SourceSettings` when the target is a shape, improving the overall functionality.
- Refactored `fill-picker` to export `FIT_OPTIONS` and `FIT_NAMES`, making them accessible for use in other components.
- Enhanced documentation within the `FitMenu` function to clarify its purpose and usage.
- Changed the `id` type in `CaptureRequest` from number to string to accommodate JSX element IDs.
- Refactored the `resolveNode` function to handle string IDs, improving error handling for ambiguous and non-existent nodes.
- Updated the `README.md` and `capture.md` to clarify the expected format for node IDs, including the use of `file:id` for disambiguation.
- Enhanced the `dapi capture` command documentation to reflect changes in ID handling and provide clearer usage instructions.
- Integrated the `timelineSystem` function into the resize handler of the timeline controller, ensuring that timeline updates are processed during window resizing events.
- This enhancement improves the responsiveness of the timeline component, maintaining accurate visual representation as the viewport changes.
- Updated the `renderScene` function to accept a `dir` parameter, allowing for project-specific directory handling during scene rendering.
- Modified the `handleCapture` function to utilize the project context, ensuring captures are created with the correct project directory.
- Refactored the `createCapture` function to compile project bundles based on the provided directory, improving rendering accuracy and efficiency.
- Enhanced type definitions in `RenderSceneOptions` and `CaptureOptions` to include the new `dir` parameter, ensuring clarity in function signatures.
- Implemented the `addLayer` function to allow users to add a new layer to the timeline, ensuring it is linked to an existing scene.
- Integrated a toast notification to inform users when attempting to add a layer without an open scene.
- Updated the dropdown menu to include an option for adding layers, enhancing the user interface for timeline management.
- Added the `dapi open` command to launch the app and open or create a project folder, with updates to the `README.md` and `projects.ts` for clarity.
- Implemented `initProject` function to initialize project folders, ensuring they can be opened from any location on disk.
- Updated the `main-channels.ts` and `main.ts` to handle new project initialization requests.
- Enhanced the database schema to support project root types, allowing for better project organization and retrieval.
- Improved the IPC layer to manage multiple routers for different command contexts, ensuring efficient command handling.
- Revised the `dapi context` command description in `README.md`, `index.ts`, and `projects.ts` to clarify its purpose in reporting the current project and playhead position.
- Enhanced the `handleContextGet` function to return detailed project information, including project ID, name, directory, and frame rate.
- Updated the API response structure in `context.ts` to reflect the new project context format, ensuring accurate data representation for users.
- Improved documentation in `context.md` and `README.md` to provide clearer guidance on the command's functionality and expected output.
- Removed the `bitecs` package from `package-lock.json` and `package.json` as it is no longer needed.
- Deleted unused engine components and API files, including `constants.ts`, `index.ts`, `selection.ts`, `thumbnail.ts`, `assets.ts`, `base.ts`, `clipboard.ts`, `components.ts`, `engine.ts`, `entities.ts`, `events.ts`, `folders.ts`, and `frame.ts`, to streamline the codebase.
- Updated the `Canvas` component to remove references to the deprecated `bitecs` canvas.
- Refactored import paths in `projects-view.tsx` to align with the new structure.
- Revised the documentation in `projects.ts` to clarify that npm packages are treated as standard packages, allowing for direct installation and bundling from `node_modules`.
- Updated `module.md` to reflect changes in userland package resolution, emphasizing the need for browser compatibility and the removal of CDN fallback.
- Enhanced clarity on local imports and the handling of type declarations for userland packages, ensuring accurate guidance for developers.
- Introduced `ProjectBundle` interface to manage project bundles in the database, allowing for efficient storage and retrieval of project data.
- Updated the `GlobalDBSchema` to include a new `bundles` object store, enhancing the database structure for better project management.
- Integrated `forgetProjectBundle` and `rememberProjectBundle` functions to handle project bundle lifecycle during project deletion and loading.
- Refactored the `createCapture` function to utilize the loaded project bundle, improving scene rendering efficiency.
- Enhanced the `EditorPage` to load cached project bundles, ensuring a smoother user experience during project editing.
- Updated the export system to utilize the new `createCapture` function, allowing for more efficient scene rendering in a dedicated capture world.
- Refactored the `exportScene` method to accept an `Entity` instead of a scene ID, improving type safety and clarity.
- Enhanced the `FileExportMenu` and `FileExportSpecificSceneMenu` components to leverage the updated export logic, ensuring proper scene selection and export configuration.
- Improved error handling and user feedback during the export process, including checks for active scenes and clearer toast notifications.
- Streamlined the integration of the encoder and capture systems, ensuring consistent behavior across different export scenarios.
- Introduced an `attempt` function to safely execute operations and handle errors during entity disposal.
- Updated the `dispose` method to skip excluded entities and ensure proper cleanup of DOM nodes and resources.
- Improved error handling for URL revocation and entity destruction, enhancing stability during document disposal.
- Introduced `canonicalizeTagsPlugin` to rewrite composition tags to PascalCase, preventing naming collisions with native DOM elements.
- Updated `sourcePlugin` to integrate SVG collision detection and ensure proper handling of composition tags within SVG contexts.
- Refactored `DocumentEditor` to improve scene node management and ensure correct DOM node handling during element creation.
- Removed deprecated `SurfaceHost` and `HtmlHost` implementations, streamlining media handling and improving performance.
- Enhanced type definitions and documentation for better clarity on scene node properties and DOM interactions.
- Updated KeyframeLayer to utilize the new trackProperty function for better property path management, enhancing clarity in property representation.
- Refactored formatProperty function to improve naming consistency for properties displayed in the UI.
- Added a visual element in SubItemLayer for improved layout consistency.
- Enhanced type definitions for better maintainability and understanding of property paths.
- Eliminated the observer for the AudioBus entity, which was responsible for rebuilding the timeline index during playback. This change simplifies the observation logic and improves performance by reducing unnecessary updates to the timeline index.
- Updated the Soundboard component to utilize the new `@diffusionstudio/koota-solid` engine, enhancing audio layer querying and management.
- Replaced deprecated hooks with new ones for better integration with the audio system, including the use of `useWorld`, `useEditor`, and `useTimelineIndex`.
- Improved the handling of audio layers and meters, ensuring that only audio-bearing layers are metered and simplifying the selection logic for left and right meters.
- Enhanced volume control functionality by introducing a unified `editVolume` method, streamlining volume adjustments across different entities.
- Added volume property documentation to the SceneProps type for better clarity on audio mixing behavior.
- Updated the peaks management system to streamline audio peak handling, including the removal of the `peaks-worker` and integration of waveform derivation directly in the asset cache.
- Enhanced the `derivePeaks` function to utilize the new `deriveWaveform` method, improving efficiency in generating audio peaks from media files.
- Refactored the `requestPeaks` and `getClipSamples` functions to accommodate changes in data structure, ensuring better performance and clarity in waveform rendering.
- Improved type definitions and documentation for better maintainability and understanding of the audio processing workflow.
- Updated media handling in the timeline to utilize new functions for managing asset visuals, including `forgetAssetMedia` and `forgetAssetPeaks`, improving clarity in asset state management.
- Introduced `cloneFramesForSplit` and `clonePeaksForSplit` functions to streamline the duplication of clip visuals during splits, enhancing performance and usability.
- Added new `peaks.ts` module to manage audio peaks for timeline clips, improving organization and maintainability of audio-related functionality.
- Refactored rendering functions to accommodate changes in thumbnail and waveform rendering, ensuring consistent visual representation across different asset types.
- Updated the `editProperty`, `insertNode`, and `removeNode` methods in `DocumentEditor` to utilize the new `node` method from `RuntimeDocument`, improving consistency in node handling.
- Enhanced the `SceneNode` interface in `document.ts` to include `tag`, `props`, `parent`, and `children`, streamlining the structure of document nodes.
- Refactored various functions to operate on `SceneNode` instead of `Entity`, improving clarity and maintainability in document manipulation.
- Updated the `dispose` method in `RuntimeDocument` to ensure proper cleanup of the document registry when a document is replaced.
- Added error handling in `createRuntimeDocument` to prevent multiple mounts in the same world, ensuring that only one project can be mounted at a time.
- Improved documentation to clarify the behavior of runtime documents and the importance of disposing of previous mounts before creating new ones.
- Removed references to `SEQUENCE` from various components, including `fill-picker`, `fill-row`, and `sub-item`, streamlining media type management.
- Updated `PaintItemIcon` and `TimeSettings` to handle only `VIDEO` and `IMAGE` types, enhancing clarity in media selection.
- Introduced `SourceFrameRate` trait to manage frame rates for frames directories, ensuring accurate playback duration.
- Refactored asset actions and timing utilities to accommodate the removal of sequence handling, improving overall code maintainability.
- Updated EditMenu, FileMenu, ViewMenu, and InspectorHeader components to use the new `@diffusionstudio/koota-solid` engine, enhancing performance and maintainability.
- Replaced deprecated functions with new selection and zoom utilities, streamlining user interactions.
- Improved keyboard shortcuts for selection management and zooming, ensuring a more intuitive user experience.
- Enhanced the handling of disabled states for menu items based on selection availability, improving usability.
- Removed deprecated keyboard shortcuts related to asset import and folder creation in the keyboard system, streamlining input handling.
- Introduced a new shortcut handling mechanism in the Assets component to manage library-specific commands, enhancing user interaction.
- Updated the ExportProvider to handle keyboard shortcuts for exporting scenes and frames, improving accessibility and consistency across components.
- Improved input target checks to prevent conflicts with active input fields, ensuring smoother user experience during keyboard interactions.
- Added keyboard shortcuts for zooming in, out, and resetting zoom in the inspector header, improving user accessibility.
- Refactored the focus function to frame all content on the stage, enhancing the zoom menu's usability.
- Updated input shortcuts to reflect the new focus functionality, streamlining user interactions with the scene.
- Refactored input handling to include new functions for managing selection visibility, focusing on active scenes, and adjusting camera zoom.
- Introduced new shortcuts for cutting selections, seeking by frames or seconds, and restacking selected entities.
- Improved selection management by adding functions to select parents and children of the current selection, enhancing user interaction with the scene.
- Updated type definitions and imports for better clarity and maintainability.
- Updated the CameraController to enhance pointer handling and tool-based cursor updates, ensuring a more intuitive user experience.
- Introduced a new cursor management system that dynamically adjusts based on the active tool, improving visual feedback during interactions.
- Refactored input handling to streamline cursor updates, reducing reliance on hardcoded cursor states and enhancing maintainability.
- Added functionality to manage tool selection and cursor states when the space key is held, allowing for smoother transitions between tools.
- Updated the asset drop handling to ensure that assets are placed correctly on the canvas, even when no scene is present.
- Introduced a fallback mechanism to use the world root as the parent for dropped assets, improving usability and consistency in asset placement.
- Enhanced documentation to clarify the behavior of asset drops when no active scene is detected.
- Added `clearTimeline` function to reset the canvas and surface state when there is no active scene, preventing leftover visual artifacts.
- Updated `timelineSystem` to call `clearTimeline` if the scene is null, enhancing the user experience by ensuring a clean slate for new scenes.
- Improved type definitions by importing `TimelinePointer` and `TimelineSurfaceState` for better clarity and maintainability.
- Refactored SceneInitOverlay to support scene creation from dropped assets, ensuring proper placement and camera focus.
- Introduced new functions for handling asset drops and scene initialization, improving user experience when adding assets.
- Updated Timeline component to manage asset drops more effectively, creating new scenes when necessary and providing feedback for missing scenes.
- Added new utility functions in new-scene.tsx for creating scenes and inserting assets, streamlining asset management across components.
- Introduced `useMediaSelection` to streamline the management of selected image and video nodes.
- Updated `ActionBar` to utilize the new media selection logic, simplifying the determination of media types.
- Refactored `PromptInputActions` to leverage `useMediaSelection`, enhancing clarity and reducing complexity in handling selected nodes.
- Removed obsolete functions related to media type determination, improving code maintainability.
- Added new constants for voice model and aspect ratio dimensions in `config.ts`, enhancing configurability for media generation.
- Added `sourceErrorSystem` to manage source error states within the engine, improving error handling during asset generation.
- Updated HUD rendering logic to display error messages for entities with source errors, enhancing user awareness of issues.
- Introduced new color constants for failed states in the timeline, providing visual differentiation for failed generations.
- Enhanced clip rendering to account for source errors, ensuring clarity in the UI when an asset fails to generate.
- Refactored `EditorGenAi` to report generation failures with descriptive messages, improving user feedback on errors.
- Updated relevant types to include error handling, ensuring consistency across the codebase for managing generation failures.
- Introduced a new utility `getGeneratingColor` to manage the color pulsing effect for entities marked as generating.
- Updated `renderClip` to conditionally render the clip background based on the generating state, improving visual feedback during generation.
- Refactored `renderGenerating` to utilize the new color utility, streamlining the rendering process for generating entities.
- Enhanced label rendering logic to account for the generating state, ensuring clarity in the UI during the generation phase.
- Added a new file `generating.ts` to encapsulate generating-related utilities, promoting better code organization.
- Added new imports for `Computed`, `FrameRate`, and `framesToSeconds` to support dynamic caption timing.
- Implemented `sceneSpan` function to calculate the duration of scenes for accurate caption end timing.
- Updated the `insertFresh` function to utilize the calculated scene length when inserting captions, improving caption accuracy.
- Introduced `SerializedAssetRef` and `EditValue` types to support new asset reference handling in JSX.
- Updated `setProp` and related functions to accommodate `SerializedAssetRef`, allowing for more complex prop values.
- Refactored `SourceSet`, `SourceInsert`, and `SourceIteration` interfaces to utilize `EditValue`, improving type safety and flexibility.
- Implemented `ensureGenerateImport` function to manage `generate` imports dynamically, enhancing code organization.
- Removed obsolete `use-auto-captions.ts` and integrated its functionality into `use-auto-captions.tsx`, streamlining the codebase.
- Added new `use-generate-image.tsx` to replace the previous image generation logic, improving asset management and integration with the editor.
- Enhanced the `PromptInput` component to support new asset handling and improve user experience in image generation workflows.