- Updated the engine instantiation in `EngineProvider` to use a new `createEngine` function for improved clarity.
- Refactored the `Engine` class to directly manage system execution, replacing the previous `runSystems` function with individual system calls for playback, motion, transform, and rendering.
- Removed the obsolete `schedule` system file to streamline the engine's architecture.
- Enhanced the overall structure and readability of the engine code, aligning with best practices for modular design.
- Replaced `switchActiveScene` with a new `activate` method in `DocumentEditor` to manage the active entity more effectively.
- Updated `DrawOverlay` and `SceneInitOverlay` components to utilize the new `activate` method, streamlining scene selection.
- Introduced `Active` trait to represent the active entity directly, enhancing clarity in entity management.
- Refactored related hooks and actions to align with the new active entity handling, improving overall code consistency and maintainability.
- Updated `SourceInsert` and `InsertEdit` interfaces to include `text` for handling literal text content in elements.
- Introduced `jsxText` function for proper text content formatting in JSX.
- Refactored `DrawOverlay` and `SceneInitOverlay` components to utilize the new text handling features and improved tool management.
- Implemented `useTool` hook for reactive access to the current tool, enhancing the toolbar and tool menu functionality.
- Enhanced `DocumentEditor` to manage text node insertion and editing, improving overall document interaction.
- Replaced references to `DocumentRoot` with `Stage` across the codebase, aligning with the new stage model.
- Updated entity management and hierarchy functions to reflect the transition from document-based to stage-based parenting.
- Adjusted comments and documentation to clarify the role of the stage in the entity structure.
- Enhanced queries and actions to utilize the new stage terminology, ensuring consistency throughout the runtime environment.
- Replaced the `Delay` and `Trim` traits with four distinct traits: `Start`, `End`, `SourceIn`, and `SourceOut`, to better represent authored time values.
- Updated entity creation and serialization processes to accommodate the new timing traits, ensuring accurate handling of time-related properties.
- Refactored time range computation logic to utilize the new traits, enhancing clarity and consistency in how entities are managed within the timeline.
- Streamlined the propagation of time changes across entities, improving responsiveness to edits in authored time values.
- Replaced direct entity spawning with a new `createEntity` function for improved clarity and consistency.
- Updated the handling of `<scene>` and `<rect>` elements to utilize the new entity creation approach, ensuring proper component addition and resizing.
- Streamlined child entity management by refining the append and remove logic, enhancing overall document interaction.
- Updated camera control functions to utilize the new useDocument hook for reporting camera edits.
- Enhanced CameraController to report camera matrix changes directly to the document, ensuring real-time updates.
- Refactored InspectorHeader and BackgroundSettings to improve clarity and consistency in camera and background management.
- Introduced CameraMatrix type for better type handling in camera-related operations, enhancing overall code quality.
- Added support for writing project edits back to JSX, allowing real-time updates from the editor to the source files.
- Introduced new `writeProject` function to handle edits, ensuring changes are reflected in the project's JSX without triggering a full compile.
- Updated `main-channels` to include a new `PROJECTS_WRITE` channel for handling write requests.
- Enhanced `RuntimeDocument` to manage edits and maintain a connection between the editor and the JSX source.
- Improved type definitions in the JSX package to support new source properties, ensuring better integration with the editing workflow.
- Updated BackgroundSettings to utilize the new useDocument hook for managing background properties.
- Enhanced RuntimeDocument to streamline background color parsing and setting, ensuring consistent handling of background traits.
- Refactored mount function to create RuntimeDocument instances through a dedicated factory method, improving clarity and encapsulation.
- Adjusted color parsing logic to handle both string and number inputs, enhancing flexibility in background color management.
- Introduced CameraController to manage camera input and gestures, enhancing user interaction with the canvas.
- Updated Canvas component to include CameraController alongside EngineCanvas for improved functionality.
- Refactored InspectorHeader to utilize new camera scaling and zooming methods, streamlining the zoom management process.
- Enhanced camera-related hooks and actions for better integration with the new camera system.
- Updated documentation and comments to clarify the new camera management approach and its implications for component interactions.
- Updated various components and systems to replace direct world access with the Root entity for managing traits like Camera and Background.
- Enhanced BackgroundSettings and useCamera hooks to reflect the new approach in trait retrieval.
- Simplified entity management in the RuntimeDocument and other systems by ensuring consistent access to the Root entity.
- Removed deprecated getDocument function and adjusted related logic for improved clarity and performance.
- Updated various systems and actions to eliminate checks for the Deleted trait in entity queries, simplifying the logic and improving performance.
- Adjusted the handling of entity collections to ensure proper management of active entities without relying on soft deletion.
- Enhanced documentation to clarify the changes in entity lifecycle management and the implications for system behavior.
- Updated various components to replace direct world access with getDocument for managing Camera and Background traits.
- Enhanced BackgroundSettings and useCamera hooks to reflect changes in trait retrieval.
- Adjusted encoder and rendering systems to ensure consistent access to document-level state.
- Improved documentation comments to clarify the new approach to managing document traits.
- Updated the `RuntimeDocument` class to manage entities directly, removing the `SceneNode` interface for a more straightforward approach.
- Simplified the `createElement` and `insertNode` methods to work with `Entity` types, enhancing clarity and reducing complexity.
- Improved background handling by directly setting the `Background` trait in the world.
- Refactored methods for node management, ensuring better integration with the entity system and removing deprecated code.
- Enhanced the `getParentNode` and child retrieval methods for improved hierarchy management.
- Updated the `setFill` method in `RuntimeDocument` to directly manage the entity's `Color` trait, simplifying fill handling.
- Introduced `renderIntrinsicFill` function to ensure the geometry's solid fill is rendered correctly beneath paint sub-entities.
- Enhanced text rendering to support intrinsic fills, allowing for better visual consistency in text elements.
- Updated comments and documentation for clarity on the role of the `Color` trait in rendering.
Eliminated the `compile-project.ts` and `open-folder.ts` files from the CLI, streamlining the codebase. Updated the README to reflect changes in CLI commands, including the removal of outdated examples. Adjusted the API to enhance clarity and maintainability by consolidating asset handling functions and removing unused types. This refactor improves the overall architecture and reduces complexity in the CLI interactions.
Added exports for the new `contact-sheet` module in the encoder package and included `audio-sync` in the runtime media index. Updated migration documentation to reflect these changes, ensuring better organization and functionality for media handling within the application.
Added a new encoder package (`@diffusionstudio/encoder`) for handling media encoding, separating it from the main runtime. Updated the migration documentation to reflect the new encoder structure and its integration with the runtime. Enhanced the render system to support hit regions and callback-less interactions, improving the rendering process. Updated various system modules to ensure proper integration and functionality within the runtime package.
Added a comprehensive playback system that advances root playheads, manages local time and visibility for entities, and synchronizes audio and video decoders. The system supports looping and handles audio playback state transitions. Updated the index files to export the new playback module and integrated it into the existing systems structure, enhancing media handling capabilities within the runtime package.
Added new media-related exports and traits, including audio, video, and caption handling. Introduced the 'colord' dependency for color manipulation and '@webgpu/types' for WebGPU support. Enhanced text rendering capabilities with improved text style management and layout functions. Updated the observer pattern to manage media resources effectively during entity lifecycle events, ensuring proper disposal and resource management.
Introduced a new `observers.ts` module to handle runtime invariants through koota event subscriptions, including cache upkeep, authored-to-computed mirrors, and time-range reactions. Updated `createRuntimeWorld` to register observers, ensuring proper entity management during lifecycle events. Refactored actions to leverage observer-driven behavior, enhancing performance and maintainability. Adjusted cache rebuilding logic to exclude entities during updates, improving efficiency in hierarchy changes.
Added new asset actions for managing in-memory metadata, including allocation, appending, and removing assets. Introduced clipboard functionality for copying and pasting entity subtrees. Enhanced folder management with unique naming and moving capabilities. Updated package dependencies to include 'sqids' for unique ID generation, improving asset handling and organization within the runtime package.
Introduced a comprehensive motion system for keyframe interpolation and animation, leveraging the animejs library. Added new utilities for text animations, including functions for revealing words and characters, and scrambling text. Updated the runtime's world and queries to integrate the new document root trait, improving the structure and functionality of the animation system.
Added new exports for math primitives and deterministic systems in the runtime package. Introduced the transform system with functions for computing local and world transforms, as well as world bounds. Updated the createRuntimeWorld function to initialize necessary traits, improving the overall functionality and organization of the codebase.
Added new exports for query predicates, hierarchy, and timeline indexing in the runtime package. Removed the deprecated overlap query file and updated the utils index to include sorting utilities. This refactor improves the organization and functionality of query handling within the application.
Introduced a new module for world serialization in the runtime package, including the `serializeEntity` function and the `EntityRecord` interface. Updated the index file to export the new serialization module, enhancing the capabilities for entity management and persistence in the application.
Expanded the runtime package by adding new exports for world creation and singleton traits, including Project, Mode, ActiveScene, Camera, and more. Introduced font utilities and updated the utils index to include live-mounts, improving the structure and functionality of the codebase.
Added 'mediabunny' as a dependency in both package-lock.json and package.json. Expanded trait exports in the runtime package to include new modules for capture, traits, and timing, improving the overall functionality and organization of the codebase.
Introduced a new package, @diffusionstudio/runtime, with version 0.1.0, including its dependencies and devDependencies. Updated package-lock.json to reflect this addition.