- Updated the `EXCLUDED_PROPS` in `history.ts` to include 'timeline', ensuring proper state handling.
- Introduced `reportView` function in `controller.ts` to track timeline view changes, integrating it into the timeline update process.
- Modified `timeline.ts` to call `updateTimelineTransform` every draw pass, improving responsiveness to view changes.
- Added `timeline` property to `SceneProps` in `types.ts` to store the scene's timeline viewport state.
- Updated documentation to reflect the new `timeline` property and its implications for scene state management.
- Added console error logging for compile, render, and load failures in the EditorPage component to enhance debugging capabilities.
- Refactored the loadProject function call into a separate load function to handle errors more gracefully during project loading.
- Updated the motion system to use getLocalWindow instead of getSourceWindow for improved accuracy in local frame calculations.
- Removed the `sceneSpan` function from the `useAutoCaptions` hook to simplify caption insertion logic.
- Updated the `insertFresh` function to streamline caption creation by removing unnecessary parameters.
- Introduced new functions in the `timing.ts` file to manage transcript duration and caption source handling, improving accuracy in timing calculations.
- Added caching for transcript lengths in `utils.ts`, allowing for synchronous access to transcript durations after initial reading.
- Enhanced the overall caption handling process to ensure better integration with the timing system and improve performance.
- Updated the `CaptionSettings` component to clarify the relationship between caption presets and authored styles, enhancing user understanding.
- Simplified the `Inspector` component by removing unnecessary checks for caption targets, streamlining the rendering logic.
- Wrapped the "Grow" control in the `TextPanel` with a conditional display to ensure it only appears when text is selected, improving UI responsiveness.
- Introduced new constants for caption preset styles and fills, centralizing style management and ensuring consistency across different caption types.
- Enhanced the `applyStyles` method in various caption decoders to utilize the new preset styles, improving the overall styling process and ensuring authored properties are correctly applied.
- Modified the `sceneSpan` function to calculate frames based on `computed.duration` for improved accuracy.
- Enhanced the `insertFresh` function to include a unique seed for each caption insertion, ensuring fresh transcriptions.
- Refactored the seed management logic to utilize `Date.now()` for generating new seeds, streamlining the re-transcription process.
- Cleaned up the `CaptionSettings` component by removing unused alignment logic and context menu, simplifying the UI and improving maintainability.
- Adjusted the `EditorGenAi` class to ensure proper key management for generated assets, preventing unnecessary re-transcriptions.
- Updated the `insertGenerated` function to accept an array of asset references, allowing for dynamic naming of generated entities based on their corresponding assets.
- Modified the `useGenerateAudio`, `useGenerateImage`, `useGenerateVideo`, and `useGenerateVoice` hooks to pass asset references during insertion, ensuring generated elements are appropriately named.
- Introduced a new `nameAfterGeneration` function to handle the naming process asynchronously, improving the clarity and organization of the codebase.
- Updated the `LayoutPanel` component to improve aspect ratio management by introducing a `lockedRatio` function, which determines the aspect ratio based on the current dimensions or authored values.
- Simplified the `resize` function to utilize the new `lockedRatio` for enforcing aspect ratios during resizing operations.
- Enhanced the `toggleAspectRatio` function to directly edit the `keepAspectRatio` property, streamlining the locking mechanism.
- Added documentation for the `keepAspectRatio` property in relevant types and reference materials, clarifying its purpose and usage in the editor.
- Replaced direct queries for `SourceError` and `Generating` with utility functions `getSourceFailure` and `isGenerating` to streamline error handling and improve code readability.
- Updated the `drawHeader`, `renderClip`, and `renderGenerating` functions to utilize the new utility functions, enhancing consistency across the rendering logic.
- Improved the `isGenerating` and `getSourceFailure` functions to check both the entity and its fills for generation status and source failure, ensuring comprehensive error reporting.
- Updated the canvas creation in `createCapture` to ensure it remains within the viewport, preventing issues with cached paints and blank captures.
- Enhanced the `AnimeTimeline` component to use alpha colors instead of opacity for better rendering during animations, avoiding subtree blanking.
- Introduced a `WeakSet` in `render.ts` to track failed HTML roots, preventing console flooding by logging errors only once per root.
- Clarified documentation regarding nested opacity effects on captures to improve user understanding of rendering limitations.
- Added support for the `syncTo` trait, allowing elements to align their playback based on the timing of another element's recording.
- Introduced `PendingSync` to manage in-progress sync requests and ensure proper correlation between audio and video sources.
- Enhanced the asset system to handle sync requests, including error handling for cycles and missing sources.
- Updated documentation to reflect the new `syncTo` functionality and its implications for element placement and playback management.
- Introduced a new ticker system to manage playback timing and state updates within the document.
- Refactored the mount function to integrate the ticker, ensuring it advances with each frame.
- Removed the deprecated live mounts utility, streamlining the codebase and enhancing performance.
- Updated the playback system to utilize the new ticker for consistent frame updates across entities.
- Updated all example files to replace <rect> with <stage> and <scene> for improved structure and consistency.
- Enhanced the README.md to reflect the new project entry format for examples.
- Added a new dependency on "koota" in package.json for better integration.
- Improved documentation and comments throughout the examples for clarity.
- Updated the `handlePlayInteraction` function to utilize the new `togglePlayback` utility for improved media control.
- Introduced `syncStagePlayback` to manage playback state based on entity hierarchy, ensuring proper media playback for nested entities.
- Enhanced the `togglePlayback` function to reset the playhead position for finished scenes, improving playback experience.
- Refactored imports in `interactions.ts` and `playback.ts` for better organization and clarity.
- Updated the canvas interaction logic to include checks for scenes that are covered by the marquee selection, ensuring that only visible and interactive entities are selected.
- Introduced a new utility function, `quadContainsQuad`, to determine if one quad fully contains another, improving selection accuracy.
- Refactored the selection process to filter out entities obscured by covered scenes, enhancing user experience during selection operations.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 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.
- 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.
- 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.
- 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.
- Added `@diffusionstudio/encoder` dependency to support audio encoding features.
- Implemented transcription capabilities in the `EditorGenAi` class, allowing for scene audio transcription and caching.
- Enhanced asset management by introducing `TranscriptionRequest` trait for handling transcription requests in the asset system.
- Updated `assetSystem` to process transcription requests, improving audio handling within scenes.
- Refactored related components to accommodate new transcription logic, ensuring seamless integration with existing workflows.
- Added `@diffusionstudio/jsx` dependency to support JSX generation features.
- Integrated `assetSystem` into various components to streamline asset handling.
- Refactored `create-engine.ts`, `image-encoder.ts`, and `encoder.ts` to utilize the new asset management structure.
- Removed the obsolete `jsx-generation.ts` file, consolidating asset generation logic.
- Updated `library.ts` to improve asset resolution and management processes.
- Enhanced the `EditorPage` to incorporate AI generation capabilities, improving project workflows.
- Introduced a new `editTransform` function to streamline the editing of transform properties (x, y, width, height, rotation) for entities, ensuring keyframes are synchronized correctly during user interactions.
- Refactored existing interaction functions to utilize `editTransform`, enhancing the consistency and readability of the code.
- Updated the `nudgeSelection` function to apply transformations using the new method, improving the handling of animated nodes during nudging.
- Improved overall code organization and readability across affected components, setting the stage for future enhancements.
- Introduced `<adjustmentLayer>` element to the JSX framework, allowing for transformations on the clip below it without drawing its own content.
- Updated type definitions to include `AdjustmentLayerProps` for better type safety and documentation.
- Enhanced the reconciler to handle the new adjustment layer entity, ensuring proper integration within the document structure.
- Added comprehensive documentation for the adjustment layer, detailing its functionality and usage examples.
- Improved overall code organization and readability across affected components, setting the stage for future enhancements.
- Enhanced the `DocumentEditor` class to improve the reparenting of entities by reversing the order of insertion, ensuring correct placement in the file structure.
- Introduced a new `orderedInserts` method in the `EditWriter` class to manage insert dependencies more effectively, allowing for better handling of unnamed entities.
- Updated the `splitAtPlayhead` function to incorporate `handOffDecoders`, improving the management of entity states during splits.
- Improved overall code organization and readability across the affected components, setting the stage for future enhancements.
- Updated the timeline component to utilize new hooks and improve asset management, including the integration of `useWorld` and `useLibrary`.
- Introduced a new `setRowHover` function to manage hover states for timeline layers, enhancing user interaction.
- Refactored layer components to streamline the handling of keyframes, nodes, and sub-items, improving overall code organization and readability.
- Implemented drag-and-drop functionality for reparenting layers, allowing for intuitive rearrangement of timeline elements.
- Enhanced the context management for layers, ensuring proper state handling during drag-and-drop operations.
- Added `clipHeight` and `expanded` properties to the entity model, allowing for more flexible timeline management and UI representation.
- Updated the `index.ts` file to export the new `overlap` functionality, improving modularity.
- Enhanced the `RuntimeDocument` class to handle the new properties, ensuring proper entity state management.
- Improved overall code organization and readability across the affected components, setting the stage for future enhancements.
- Imported `InterpolationSettings` into the `Inspector` component, allowing users to manage easing for selected keyframes.
- Updated the `InterpolationSettings` component to utilize new hooks and improve state management, transitioning to a more reactive approach with `useEditor`.
- Enhanced the user interface for selecting easing types and presets, ensuring seamless integration with existing inspector functionalities.
- Improved overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Imported `CaptionSettings` into the `Inspector` component, enabling users to manage captions for selected entities.
- Updated the `CaptionSettings` component to utilize new hooks and improve state management, transitioning to a more reactive approach with `useEditor`.
- Enhanced the user interface for selecting caption presets, colors, and vertical alignment, ensuring seamless integration with existing inspector functionalities.
- Improved overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Integrated new hooks and refactored components within the Transform Settings panel, transitioning to a more reactive approach with `useWorld` and `useEditor`.
- Updated the handling of transform properties such as position, rotation, offset, scale, skew, and constraints to support entity-based systems, enhancing user interaction.
- Improved keyframe synchronization for transform properties, ensuring accurate representation and editing capabilities.
- Enhanced overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Updated the `FillPicker`, `FillsSettings`, and related components to utilize new hooks and improve state management, transitioning to a more reactive approach with `useWorld` and `useEditor`.
- Refactored fill handling to support entity-based systems, enhancing user interaction and responsiveness.
- Introduced new gradient stop management functionality, allowing for dynamic editing of gradient fills.
- Improved overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Updated the `gain` animation logic to ensure it now ramps amplitude and adds it to the volume in decibels, addressing the previous issue where it incorrectly ramped from 0 dB to 1 dB.
- Introduced a new `amplitudeToDecibels` function to convert amplitude values to decibels, ensuring accurate audio playback.
- Enhanced the migration documentation to reflect these changes and clarify the behavior of volume adjustments in the audio panel.
- Updated the `AudioSettings` component to utilize new hooks and improve state management, transitioning to a more reactive approach with `useWorld` and `useEditor`.
- Refactored volume, mute, and solo controls to leverage the new entity-based system, enhancing user interaction and responsiveness.
- Improved keyframe synchronization for volume changes, ensuring accurate representation in the audio panel.
- Enhanced overall code organization and readability within the inspector components, setting the stage for future audio-related enhancements.
- Imported `MasksSettings` into the `Inspector` component, allowing users to manage masks for selected entities.
- Updated the `MasksSettings` component to utilize new hooks and improve state management, transitioning to a more reactive approach.
- Enhanced the user interface for adding and editing masks, ensuring seamless integration with existing inspector functionalities.
- Improved overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Imported `TransitionSettings` into the `Inspector` component, allowing users to manage transitions for selected entities.
- Updated the `TransitionSettings` component to utilize new hooks and improve state management, transitioning to a more reactive approach.
- Enhanced the user interface for adding and editing transitions, ensuring seamless integration with existing inspector functionalities.
- Improved overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Introduced a new `animation-types.ts` file defining animation options and their properties, including groups and default values.
- Updated `AnimationsSettings` to utilize the new animation types, enhancing the user interface for selecting and managing animations.
- Refactored animation handling in `animations.tsx` to improve state management and reactivity using hooks from `@diffusionstudio/koota-solid`.
- Integrated animation options into the inspector, allowing for seamless addition and editing of animations for selected entities.
- Improved overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Introduced a new `effect-types.ts` file defining effect options and their properties, including units and default values.
- Updated `EffectsInspector` to utilize the new effect types, enhancing the user interface for selecting and managing effects.
- Refactored `EffectsSettings` to support the addition of effects directly, improving the workflow for users.
- Enhanced state management using hooks from `@diffusionstudio/koota-solid`, ensuring better reactivity and performance.
- Improved overall code organization and readability across the inspector components, setting the stage for future enhancements.
- Imported `ShadowsSettings` into the `Inspector` component, allowing for shadow management for selected entities.
- Updated `ShadowInspector` to utilize new hooks and improve state management, transitioning to `useDerived` for reactive properties.
- Enhanced shadow editing capabilities, including color, opacity, offset, and blur adjustments, with proper keyframe synchronization.
- Improved overall code organization and readability across the inspector components, preparing for future enhancements.
- Imported `StrokesSettings` into the `Inspector` component, enabling stroke management for selected entities.
- Updated the `StrokesSettings` component to utilize new hooks and improve state management, transitioning from `Set<number>` to `Entity[]` for better type safety.
- Removed unused keyframe target properties from `SolidFillPicker` and `ShadowInspector`, streamlining their functionality.
- Improved overall code readability and organization across the inspector components, preparing for future enhancements.
- Replaced direct style property access with reactive signals for font family and weight in the TextPanel component, enhancing state management.
- Updated font family and weight change handlers to utilize the new signals, ensuring proper updates and preventing unnecessary edits.
- Adjusted the FontDropdown and Select components to reflect the new state management approach, improving user experience during text editing.
- Enhanced migration documentation to clarify the behavior of pickers that preview on hover, ensuring consistency in trait management.
- Introduced a new `TextEdit` interface to handle changes to `<text>` elements, allowing for direct editing of their content.
- Updated the `DocumentEditor` class with an `editText` method to facilitate text updates, ensuring proper reporting of changes.
- Modified the `EditWriter` to manage text edits separately, integrating them into the overall editing workflow.
- Enhanced the `RuntimeDocument` class with a `setText` method to replace the content of `<text>` elements, maintaining the integrity of text nodes during rendering.
- Refactored the `SourceSet` interface to include a `text` property, enabling the writing of text content alongside element properties.
- Improved the `TextPanel` component to utilize the new text editing functionality, streamlining the user experience for text modifications.
- Streamlined the migration status document, focusing on the transition from bitecs to the koota runtime package.
- Consolidated sections to improve clarity and reduce redundancy, ensuring a more concise overview of completed tasks and goals.
- Updated the structure to better reflect the current state of the migration process, enhancing readability for future reference.
- Removed outdated information and clarified the purpose of various components and systems involved in the migration.
- Introduced the `LayoutPanel` component to the `Inspector`, enhancing layout management for selected entities.
- Updated the `LayoutPanel` to utilize new hooks from `@diffusionstudio/koota-solid`, improving state management and interaction with the editor.
- Refactored entity selection handling within `LayoutPanel`, transitioning from `Set<number>` to `Entity[]` for better type safety and clarity.
- Enhanced resizing functionality to maintain aspect ratios and synchronize keyframe updates, improving user experience during layout adjustments.
- Cleaned up commented-out code and improved overall readability across the inspector components.
- Introduced new channels for reading and writing project configuration from the `diffusion` field in `package.json`, enhancing project management capabilities.
- Implemented `readConfig` and `writeConfig` functions to handle project configuration, allowing for dynamic updates and retrieval of project settings.
- Updated `main-channels.ts` to include new channel definitions for project config operations, ensuring proper integration with the main bridge.
- Refactored related components to utilize the new project config functionality, improving overall state management and user experience in the application.
- Added necessary types and utility functions to support the new project configuration structure, ensuring type safety and maintainability.