Promote dev to main - #52
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Promotes the latest changes from
devtomain(3 commits), modernizing framework integration guides with the officialtextmode.overlay.jsplugin architecture, enhancing 3D and generative visual examples (Three.js, p5.js, Hydra, Webcam), providing comprehensive guidance on WebGL drawing buffer preservation and render-loop coordination, and updating TypeDoc API references.Key Highlights
1. Framework Integration Modernization & Examples
All framework integration examples have been upgraded to leverage the official
textmode.overlay.jsplugin pattern (plugins: [OverlayPlugin]andconst source = tm.overlay.setTarget(...)):Three.js (
docs/examples/integration/threejs.md):WebGLRendererwithpreserveDrawingBuffer: true,antialias: true,ACESFilmicToneMapping, and exposure tuning.resizeRendererToDisplaySize(), dynamically synchronizing canvas display size and updating the camera projection matrix.renderer.setAnimationLoop(animate)alongsidetextmode.js's independent rendering loop.p5.js (
docs/examples/integration/p5js.md):OverlayPlugin+setTarget(canvas.canvas).ambientLight,directionalLight,pointLight) and trigonometric distance-wave dynamics.Hydra Synth (
docs/examples/integration/hydra-synth.md):OverlayPlugin+setTarget(canvas).{ preserveDrawingBuffer: true }so Hydra's WebGL context preserves buffer contents for independent sampling bytextmode.js.osc().kaleid().modulate(noise)).Live Webcam (
docs/examples/integration/webcam.md):OverlayPlugin+setTarget(video).beforeunload, ensuringtm.destroy()is invoked and all active media tracks are cleanly stopped.Framework Integration Architecture Guide (
docs/framework-integration.md):preserveDrawingBuffer: trueor synchronous sampling before the browser discards buffer contents.gl) integration guidance: clarified that passingglis an advanced pattern where both renderers share the same WebGL state and presentation target, requiring state resets (renderer.resetState()) and deterministic loop coordination (t.noLoop()+t.redraw()).video.mdintegration include.2. Ecosystem API Reference Update
textmode.js,textmode.overlay.js, andtextmode.synth.js.frameStarthook inTextmodePluginHookMap(() => void), executing once at the beginning of each rendered frame before anypreDrawhooks.lastModifiedmetadata stamps.Detailed Commit Log
04977f8docs: enhance Three.js integration example for better responsiveness and renderingde8084fdocs: updated framework integration examples + docsce26d12chore: update API docsVerification and Testing