- Introduced new SVG icons for stroke styles, including solid, dashed, and various dash configurations.
- Updated the StrokeInspector component to support line styles with dash properties (dash, dashGap, dashOffset).
- Enhanced the stroke handling in the rendering system to apply dash styles correctly.
- Updated documentation to include new stroke properties and their usage in animations and styling.
- Improved entity serialization and deserialization to handle new stroke dash attributes effectively.
- Introduced a new PivotRow component to manage pivot properties (pivotX, pivotY) for entities.
- Updated TransformSettings to conditionally display PivotRow instead of AnchorRow based on the entity's pivot state.
- Enhanced the clip-path and group handling logic to utilize pivot instead of anchor for transformations.
- Updated documentation to reflect the new pivot properties and their usage in the context of groups and transformations.
- Added support for VectorPath, EvenOdd, ViewBox, and PathTrim properties in the EntityRecord interface.
- Updated the serializeEntity function to handle new path-related data, ensuring full precision for VectorPath.
- Enhanced the deserializeEntity function to correctly parse and set new path properties from EntityRecord.
- Improved keyframe handling to include path data for keyframes, allowing for more detailed animation control.
- Updated the source file to include 'path' in the set of ambiguous SVG tags.
- Added new SVG icons for path trimming (trim-start, trim-end, trim-offset) and a small pen tool icon.
- Implemented a PathSettings component to manage path-specific properties such as fill rule and trim settings.
- Enhanced the Toolbar and ToolMenu components to include the new Pen tool for drawing and editing paths.
- Integrated path editing functionality, allowing users to edit vertices and manage path outlines directly on the canvas.
- Updated the inspector components to support path properties and interactions, improving the overall user experience for path manipulation.
- Enhanced documentation to include details about the new path features and SVG elements.
- Introduced new shape tools for Ellipse and Polygon, enhancing the drawing capabilities within the application.
- Updated the Toolbar component to include shape tools, allowing users to select and utilize these new shapes.
- Enhanced the ToolMenu to provide options for selecting Ellipse and Polygon tools.
- Implemented functionality for managing point counts in polygons and added relevant controls in the AppearanceSettings.
- Updated the rendering engine to support the new shapes, ensuring they can be drawn and manipulated effectively.
- Enhanced documentation to include details about the new shapes and their properties.
- Replaced Keyframe component with PaintKeyframe to manage keyframes for paint properties more effectively.
- Updated SolidFillPicker and FillItem components to utilize the new PaintKeyframe for improved keyframe management.
- Enhanced keyframe logic in the engine to support multiple paint properties, ensuring consistent behavior across paint types.
- Improved overall code clarity and maintainability by consolidating keyframe functionality related to paint.
- Updated FillPicker to manage stroke paint placement and gradient handling more effectively.
- Refactored StrokeInspector to utilize the new useStrokePaint hook for improved paint management.
- Adjusted rendering logic in strokes and related components to support both solid and gradient paints.
- Enhanced documentation to clarify stroke and fill interactions, including the use of paint children in strokes.
- Improved overall user experience by ensuring consistent behavior across fill and stroke components.
- Introduced AngularGradientPaint to support angular gradients in the fill-picker component.
- Updated fill-row and gradient-picker components to recognize and handle angular gradients.
- Enhanced gradient handling logic to accommodate angular gradient properties and interactions.
- Updated documentation to reflect the new angular gradient capabilities and usage examples.
- Refactored gradient tool logic to include angular gradient manipulation and rendering.
- Introduced a new `shimmer` function to visually indicate when a scene is being captioned, enhancing user experience.
- Updated the `generateCaptions` function to prevent multiple caption generations on the same scene.
- Added `Shimmering` trait to manage the shimmer state and timing.
- Updated rendering logic to include the shimmer effect around scenes during processing.
- Added `@diffusionstudio/api-contract` dependency to `package-lock.json` for improved API integration.
- Introduced a new `parseTranscriptJson` function to handle various transcript JSON formats, ensuring robust parsing and error handling.
- Updated the `resolveTranscript` function to utilize `parseTranscriptJson` for improved transcript processing, replacing direct JSON parsing.
- Enhanced the overall structure and clarity of transcript handling within the media captioning system.
- Enhanced documentation to specify that waveforms are only drawn in the editor and not included in exports, particularly when part of a scene composition.
- Modified the condition for rendering waveforms in real-time to ensure it only occurs when the entity is not part of a parent node, improving rendering accuracy.
- Deleted the "Add audio" button from the ActionBar and its associated logic in the PromptInputActions component.
- Updated the TransformType definition to exclude "addAudio" and removed related handling in the use-transforms module.
- Adjusted the model configuration to reflect the removal of audio-related transformations, streamlining the available options for users.
- Replaced individual generation hooks for image, video, voice, and audio with a unified `useGenerate` hook to streamline generation processes.
- Updated the `ActionBar` and `PromptInputActions` components to utilize the new `useGenerate` hook for rerunning generation jobs.
- Enhanced media selection handling by refactoring the `useMediaSelection` hook to return image and video media more efficiently.
- Removed deprecated placeholder functionality and related imports, improving code clarity and maintainability.
- Introduced a new `requests.ts` file to manage API request configurations for generation tasks.
- Updated the `useGenerationRecords` hook to track job information more effectively, including the first job and total credits.
- Improved transform handling in the `useTransforms` hook to apply transformations over selected media nodes.
- Added auto-caption generation functionality in the `useAutoCaptions` hook, integrating with the project context.
- Removed unused files and code related to legacy generation methods, enhancing overall project structure.
- Removed unused imports and code related to generative assets in various components.
- Updated the `package-lock.json` to remove `@diffusionstudio/api-contract` and `@trpc` dependencies.
- Introduced a placeholder mechanism for generative AI features that are currently being rebuilt.
- Adjusted the CLI and documentation to reflect changes in available commands and features.
- Enhanced the handling of timeouts in the CLI client for media analysis and rendering tasks.
- Changed font family from 'Poppins' to 'Outfit' and adjusted font weights in both `guinea.ts` and `spotlight.ts` for consistency in text styling.
- Updated the highlight color in `spotlight.ts` to improve visual distinction in captions.
- Introduced new options for the `fonts` command to filter by provider and popular fonts, enhancing user experience in font selection.
- Updated the documentation to reflect the inclusion of Google Fonts and local fonts, clarifying how to access and utilize them in projects.
- Implemented a new `FontDropdown` component in the web inspector for improved font selection, allowing users to choose from popular and Google Fonts seamlessly.
- Refactored existing components to integrate the new font selection logic, ensuring consistency across the application.
- Updated the animations documentation to clarify the behavior of presets, emphasizing that they scale or shift the node's authored properties rather than replacing them.
- Modified the `applyAnimation` function to ensure that computed values are compounded correctly for overlapping animations, improving the accuracy of visual effects during animation playback.
- Added the `ClipPathBar` component to the toolbar for managing clip paths.
- Updated the toolbar logic to clear the clip path target when switching tools.
- Refactored the toolbar's tool selection to use a `Switch` statement for better readability.
- Integrated clip path functionality into the inspector, allowing users to begin clip paths directly from the UI.
- Updated cursor settings to reflect the new clip path tool type.
- Enhanced keyboard shortcuts to support clip path actions, improving user interaction.
- Updated references from "matte" to "mask" across various components and files to align with new terminology.
- Adjusted related logic in the `EffectsInspector`, `ObjectMaskInspector`, and other components to ensure consistent behavior with the updated mask handling.
- Refactored caching and serialization processes to accommodate the new mask structure, enhancing overall functionality.
- Improved documentation and type definitions to reflect the transition from mattes to masks, ensuring clarity for developers.
- Renamed mask-related components and functions to reflect the new terminology of "clip path" throughout the codebase.
- Introduced a new `ClipPathsSettings` component for managing clip paths in the inspector.
- Updated the `Inspector` to integrate clip path settings and adjusted related logic to accommodate the new structure.
- Enhanced the `ObjectMenu` to change "Set mask target" to "Set clip path target" for clarity.
- Refactored various utility functions and traits to replace mask references with clip path equivalents, ensuring consistent behavior across the application.
- Updated documentation and type definitions to reflect the transition from masks to clip paths, improving clarity for developers.
- Added new `ObjectMaskPanel` component to manage object masks within the effects inspector.
- Introduced functionality for adding and managing object masks, including dropdown menus for selecting masks and controls for editing.
- Enhanced the `EffectsInspector` to support object mask interactions, including displaying existing masks and allowing users to track new objects.
- Implemented brush functionality for painting masks directly onto video clips, improving user experience for object segmentation.
- Updated cursor styles for the object mask tool to provide clearer visual feedback during interactions.
- Refactored related components and utilities to support the new object mask features, ensuring seamless integration with existing functionality.
- Added the `Object Mask` tool to the toolbar and sidebar menu, allowing users to select and utilize this new functionality.
- Introduced a new SVG icon for the `Object Mask` tool to improve visual representation in the UI.
- Updated the `Inspector` component to display the `ObjectMaskPanel` when the `Object Mask` tool is selected.
- Enhanced the `Effect` options to include `opacity`, allowing for more refined control over visual effects.
- Updated documentation to reflect the new `<mask>` element and its properties, improving clarity for developers.
- Refactored related components to ensure seamless integration of the new tool and its functionalities.
- Updated the caption positioning function to account for `Sequential` traits, ensuring proper handling of parent nodes that are not spatial constructs.
- Improved the logic for retrieving the parent node, enhancing the accuracy of caption placement within the media runtime.
- Enhanced the `scene.md` documentation to clarify the `workarea` property and its implications for playback and export.
- Revised the `stage.md` documentation to provide clearer guidance on the `camera` property, emphasizing the importance of setting a camera for non-standard compositions.
- Updated the default camera settings in the `world.ts` and `types.ts` files to better frame typical project dimensions, ensuring a more intuitive starting point for users.
- Replaced the `useModifiers` hook with `useTransforms` to better reflect the new transform functionality.
- Updated components to utilize the new `useTransforms` hook, including `ActionBar` and `PromptInputActions`, improving the handling of transformations.
- Introduced new `TransformItem` component for managing transform actions in the UI.
- Refactored asset handling logic to accommodate the new transform types and ensure compatibility with existing features.
- Removed deprecated modifier-related code and documentation, streamlining the codebase and enhancing clarity.
- Updated documentation to reflect changes in transform functionality and usage examples.
- Updated the `Assets` component to include support for partial assets, allowing for better management of assets that are still generating.
- Introduced a new `PartialAssetItem` component to represent partial documents in the asset panel, providing options to retry or delete failed generations.
- Modified the `AssetInfoPanel` to display information about partial assets, including their status and error messages.
- Refactored the `useAssetSelection` hook to accommodate both assets and partial assets, improving the selection logic.
- Updated the `FolderItem` component to count partial assets alongside regular assets, enhancing folder statistics.
- Removed the `sourceErrorSystem` as part of the cleanup, streamlining error handling for asset generations.
- Added documentation updates to reflect changes in asset handling and the introduction of partial assets.
- Introduced new keyboard shortcuts for shuttle playback (J and L) to control scene speed and direction.
- Added a stop playback shortcut (K) to halt the active scene.
- Enhanced playback functionality with `shuttlePlayback` and `stopPlayback` methods in the runtime actions.
- Updated the playback system to accommodate shuttling speeds and ensure proper audio context management.
- 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.