33 Commits

Author SHA1 Message Date
konstantin-paulus
c023aa9950 Update package.json and README.md for improved build and documentation
Added `publishConfig` for public access in package.json and enhanced build scripts with prepublish and packing hooks. Removed outdated example code and streamlined the README.md to focus on essential package functionality and tooling, improving clarity for users.
2026-08-09 14:40:29 +02:00
konstantin-paulus
2899573a36 Remove example HTML scene and update documentation references
Deleted the `09-html-scene.tsx` example file, which demonstrated an HTML scene as a mount root. Updated the README and related documentation to remove references to this example and clarified that only `<rect>` can be promoted to a scene. Adjusted descriptions in the JSX documentation to reflect this change.
2026-08-08 23:21:54 +02:00
konstantin-paulus
1539ded67a Add image source handling and readiness mechanism to HtmlHost
Implemented a new `whenReady` method in the HtmlHost class to ensure all images in its subtree are decoded before rendering updates. Updated the playback system to utilize this method for improved rendering reliability. Enhanced the WorldDocument class to manage image sources more effectively, including support for various input types and object URL management. Updated documentation to reflect changes in image handling and source resolution.
2026-07-31 16:01:25 +02:00
konstantin-paulus
c8583eda7f Enhance audio generation options with optional duration parameter
Updated the audio generation functionality to include an optional `duration` parameter in the `GenerateAudioOptions` type. This change allows users to specify the duration for audio prompts, improving flexibility in audio generation. Additionally, validation was added to ensure the duration is a positive number. Updated related documentation to reflect this new option.
2026-07-26 15:18:09 +02:00
konstantin-paulus
5c30d91613 Enhance audio fingerprinting and transcription process with optional seed parameter
Updated the `sceneAudioFingerprint` and `transcribeScene` functions to accept an optional `seed` parameter, allowing for more flexible transcript caching. Adjusted related logic in the `WorldDocument` class to utilize the seed for generating unique transcription keys. Additionally, updated documentation to reflect the new `seed` prop in the captions API, clarifying its role in bypassing cached transcripts.
2026-07-26 14:59:17 +02:00
konstantin-paulus
90d0959a91 Refactor JSX elements to replace <scene> with <rect> using the scene property for root promotion
Updated multiple files to transition from using `<scene>` elements to `<rect>` elements with the `scene` property, promoting rectangle geometries to mount roots. This change enhances the JSX API by clarifying the role of scenes and ensuring consistency across examples and documentation. Additionally, modified related documentation to reflect the new usage and constraints of the `scene` property.
2026-07-24 12:01:41 +02:00
konstantin-paulus
fba355e052 Update README for clarity and enhance WorldDocument component with timing properties
Revised the README to replace "media compositor" with "multimedia editor" and improved the description of the `dapi` CLI. Enhanced the `WorldDocument` class in the JSX utility by updating the `setComponent` logic to conditionally handle trim properties based on the presence of timing attributes, improving the functionality of scene transcriptions. Updated the `CaptionsProps` type to include new timing properties for better integration.
2026-07-21 14:37:45 +02:00
konstantin-paulus
81d29d5d88 Add Shader Paint functionality and related components
Introduced a new `<shaderPaint>` element that applies a WGSL fragment shader to the media paint directly below it in the paint stack. Implemented support for shader uniforms and updated the rendering logic to handle shader paints in the engine. Enhanced the API to include shader-related methods and types, ensuring seamless integration with existing media elements. Updated documentation and examples to demonstrate the new shader capabilities, improving user guidance and showcasing practical implementations.
2026-07-20 20:56:32 +02:00
konstantin-paulus
5e42ec2084 Refactor JSX elements to use lowercase tags for consistency
Updated all JSX elements in the documentation and codebase to use lowercase tags (e.g., `<Scene>` to `<scene>`, `<Video>` to `<video>`, etc.) for uniformity and adherence to the new standards. This change enhances clarity and consistency across the JSX API, ensuring that users have a cohesive experience when working with the elements. Updated related documentation to reflect these changes.
2026-07-20 14:15:45 +02:00
konstantin-paulus
7180de47ae Enhance <Captions /> component with verticalAlign property and update related functionality
Added a `verticalAlign` property to the `<Captions />` component, allowing for customizable vertical positioning of caption blocks. Updated the relevant API, decoders, and serialization logic to support this new feature. Enhanced documentation to reflect the changes and clarify usage, improving the overall flexibility and usability of the captioning system.
2026-07-20 11:17:00 +02:00
konstantin-paulus
5ab9652d06 Add offsetX and offsetY properties to JSX elements and update related documentation
Introduced `offsetX` and `offsetY` as new animatable properties for visual elements, allowing for render-time translations without altering layout boxes. Updated the documentation to reflect these changes, ensuring clarity on their usage. Enhanced the type definitions and functionality in the editor API to support these new properties, improving the overall flexibility of animations in the application.
2026-07-20 10:57:29 +02:00
konstantin-paulus
d4b23008f0 Update JSX handling to reject <audio> and <video> tags in paint hosts
Modified the JSX runtime and related documentation to clarify that `<audio>` and `<video>` tags are not supported within paint hosts. Users are now directed to use the `<Audio>` and `<Video>` composition elements for media playback, ensuring better adherence to the paint host's functionality and improving overall documentation clarity.
2026-07-19 23:25:23 +02:00
konstantin-paulus
2bb2add67b Update JSX elements to PascalCase and enhance type handling in documentation
Refactored JSX elements from lowercase to PascalCase, including `<scene>` to `<Scene>`, `<text>` to `<Text>`, and others, to improve consistency and clarity in the codebase. Updated related documentation to reflect these changes, ensuring that the usage of JSX elements aligns with the new naming conventions. This update enhances the overall readability and usability of the JSX API.
2026-07-19 20:25:33 +02:00
konstantin-paulus
e011b1d593 Refactor mount and insert commands for improved clarity and functionality
Updated the `dapi mount` command to ensure the reactive graph remains live after execution, enhancing the persistence and re-execution of modules across contexts. Simplified the `dapi node insert` command to accept only inline JSX tags, removing the `export default` requirement and clarifying its non-persistent nature. Adjusted related documentation to reflect these changes, ensuring consistency and clarity in usage. This refactor improves the overall usability and understanding of the mounting and insertion processes in the application.
2026-07-19 12:37:08 +02:00
konstantin-paulus
9feb7badc3 Refactor <canvas> to <surface> for improved clarity and functionality
Replaced all instances of `<canvas>` and `<canvasPaint>` with `<surface>` and `<surfacePaint>` across the codebase. Updated related documentation to reflect this change, ensuring consistency in naming and usage. Adjusted rendering logic and component imports to support the new surface functionality, enhancing the drawing capabilities for various context types (2D, WebGL, WebGPU). This refactor improves the overall clarity and usability of the rendering system.
2026-07-18 14:34:18 +02:00
konstantin-paulus
8b9c8ef0cc Add useFile hook for resolving file sources in effects
Introduced the `useFile` hook, which resolves a source (path, asset id, URL, or `generate.*` ref) to its `File`, allowing for reading raw bytes within effects. This hook returns Solid's `createResource` tuple, enabling async resolution and providing loading and error states. Updated documentation to include usage examples for drawing images onto a `<canvas>` and parsing data files, enhancing the functionality for handling media assets in the application.
2026-07-18 10:41:45 +02:00
konstantin-paulus
aaafd86eaa Add <canvas> element and related functionality for custom drawing
Introduced the `<canvas>` element as a shorthand for a rectangle carrying a `<canvasPaint>`, enabling users to draw custom graphics using various context types (2D, WebGL, WebGPU). Updated the rendering system to support this new element, ensuring it integrates with existing components. Enhanced documentation to clarify the usage of `<canvas>` and its properties, and added new samples demonstrating its functionality in different contexts. This update improves the flexibility and creative potential of rendered content.
2026-07-18 09:48:26 +02:00
konstantin-paulus
924218d0d4 Enhance HTML rendering capabilities with new <html> element
Introduced the `<html>` element as a shorthand for a rectangle carrying an `<htmlPaint>`, allowing for browser-laid-out HTML/SVG children. Updated the rendering logic to support this new element, ensuring it integrates seamlessly with existing components. Enhanced documentation to clarify the usage of `<html>` and its properties, and added new samples demonstrating its functionality in various contexts. This update improves the flexibility and interactivity of rendered content.
2026-07-17 19:19:22 +02:00
konstantin-paulus
7c6406c8e7 Update Electron version and enhance documentation for JSX elements
Bumped the Electron version in both `package-lock.json` and `package.json` to `43.1.1`. Removed the deprecated `<jstemp>` component and updated the JSX elements documentation to reflect new aliases for paint elements, including `<solid>`, `<linearGradient>`, `<radialGradient>`, and `<stop>`. Revised the `html-paint.md` and `elements.md` files to clarify the usage of the `<html>` element and its properties. Added new samples demonstrating the use of the `<html>` element in various contexts.
2026-07-17 14:30:04 +02:00
konstantin-paulus
1582db9862 Add <htmlPaint> element and related documentation for reactive HTML rendering
Introduced the `<htmlPaint>` element, allowing real HTML children to be rendered within a defined box using the html-in-canvas API. Updated the `elements.md`, `paints.md`, and `README.md` to include details about `<htmlPaint>`, its properties, and usage examples. Added a new `html-paint.md` file for comprehensive documentation on the element's functionality and limitations. Enhanced the rendering system to support HTML content, ensuring it integrates seamlessly with existing paint types.
2026-07-17 12:13:30 +02:00
konstantin-paulus
86b06ac300 Enhance documentation and implement live mode features for mounting
Updated the `mount.md` and `lifecycle.md` documentation to clarify the new `--live` option, detailing its behavior and implications for the reactive graph. Introduced the `useTicker` hook in the `renderer.ts` to facilitate access to the project's timeline during live mounts. Additionally, modified the `playback.ts` and `live-mounts.ts` to support the new live functionality, ensuring that the reactive graph remains active and responsive during playback. These changes improve the overall usability and clarity of the mounting process.
2026-07-17 09:53:37 +02:00
konstantin-paulus
5a8b56d29b Add animations prop to various components and documentation
Introduce the `animations` prop across multiple components, including audio, elements, and text, allowing for preset in/out animations. Update related documentation to reflect this new feature and enhance the `animations` handling in the node patching process. This change improves the flexibility and visual dynamics of the UI elements.
2026-07-15 15:33:44 +02:00
konstantin-paulus
e3bbc1e77b Add subtitle support and enhance transcript handling
Introduce parsing for SRT and WebVTT subtitle formats, allowing transcripts to be mounted directly from these files. Update the asset detection logic to recognize subtitle MIME types and adjust the caption handling in the playback system to ensure proper integration. Additionally, enhance the documentation to clarify the usage of the `<captions>` component for manual transcript sourcing.
2026-07-14 11:37:06 +02:00
konstantin-paulus
8fcf8884b8 Update audio and video documentation to reflect volume changes in decibels
Revise the JSX documentation for `<audio>` and `<video>` components to clarify the `volume` prop, now expressed in decibels instead of a linear scale. Update example usages in the README and ensure consistency across related documentation. Additionally, modify the description of volume handling in the CLI to align with the new decibel representation, enhancing user understanding of audio properties.
2026-07-12 13:57:58 +02:00
konstantin-paulus
efb17d896c Refactor timing properties in JSX elements for improved clarity and consistency
Update timing-related properties across various JSX elements, replacing `inPoint`, `outPoint`, and `startTime` with `start`, `end`, `sourceIn`, and `sourceOut`. This change enhances the clarity of temporal placement semantics and aligns with the new structure for managing media timelines. Additionally, update related documentation to reflect these changes, ensuring users have accurate information on timing properties.
2026-07-12 08:39:04 +02:00
konstantin-paulus
31332d23a1 Refactor and replace @diffusionstudio/ai and @diffusionstudio/solid with @diffusionstudio/jsx across the codebase. Update dependencies in package-lock.json and documentation to reflect the new JSX runtime and asset generation capabilities. Remove the @diffusionstudio/ai package and its references, ensuring a cohesive transition to the new structure. 2026-07-08 13:30:09 +02:00
konstantin-paulus
7acdd62008 Implement transition support in JSX and rendering systems. Introduce transition prop for clips within <sequence>, allowing for various transition types and durations. Update related type definitions and documentation to reflect these changes, ensuring clarity on usage and behavior of transitions in the composition system. 2026-07-08 13:03:57 +02:00
konstantin-paulus
310ee8eb36 Introduce animatable properties and keyframe support in JSX and rendering systems. Update documentation to reflect new animation capabilities for properties like x, y, width, height, rotation, opacity, and cornerRadius. Implement keyframe management functions and enhance easing options for smoother animations. Ensure compatibility with existing rendering logic and improve type definitions for better clarity. 2026-07-08 10:08:58 +02:00
konstantin-paulus
13ef14208e Refactor rendering functions to include dispose logic for cleanup in handleMount and handleNodeInsert. Update renderProject to return a dispose function, ensuring proper resource management during project rendering. Introduce DocumentContext for improved context handling in the Solid renderer. 2026-07-08 08:41:19 +02:00
konstantin-paulus
bd723d4334 Implement @diffusionstudio/ai and @diffusionstudio/solid packages for generative asset management and Solid JSX runtime. Updated dependencies in package-lock.json and README to reflect new imports. Refactored CLI and documentation to utilize the new packages, ensuring consistency across asset generation and rendering processes. 2026-07-07 21:09:37 +02:00
konstantin-paulus
aac0dad45e Refactor CLI commands and documentation to replace export with render for scene rendering. Updated README, API specifications, and various documentation files to reflect this change and clarify the new syncTo feature for audio alignment. 2026-07-07 16:59:03 +02:00
konstantin-paulus
997d9f30b9 Refactor documentation and descriptions in CLI commands and comments. Removed references to JSX_API.md for clarity and improved readability in compile-project.ts, index.ts, and jsx.ts files. 2026-07-07 13:37:31 +02:00
konstantin-paulus
c3c105aa22 Initial open source release.
This repository contains the initial public version of the project.
The previous development history was intentionally not included.
2026-07-07 09:27:28 +02:00