v0.6.0
v0.6.0
What's Changed
-
Added WebGL1 support
-
Added initial Clipboard support
-
Added Github actions workflows for:
- Building
- Publishing to JSR and npmjs
- Github pages
-
Added initial wiki
-
Reworked build script:
- Fixed displaying errors
- Fixed building WebGL/WebGL2
- Added building specific configurations:
node build.ts --backend=webgpu --font-loader=freetype --demos -
Updated Biome to v2.1.2
Breaking changes
Please see the wiki on how to work with these changes
-
Moved backend-specific functions into general ones:
ImGuiImplWeb.InitWebGl/WebGPU()->ImGuiImplWeb.Init()ImGuiImplWeb.BeginRenderWebGL/WebGPU()->ImGuiImplWeb.BeginRender()ImGuiImplWeb.EndRenderWebGL/WebGPU()->ImGuiImplWeb.BeginRender()
-
Added options for initializing jsimgui:
await ImGuiImplWeb.Init({
canvas: myCanvas,
device: myGPUDevice, // Required for WebGPU
backend: "webgl", // (optional) this is most likely already inferred from the canvas
fontLoader: "truetype", // (optional) you can choose between `truetype` and `freetype`
enableDemos: true, // (optional) enables the Dear ImGui demo windows.
loaderPath: "...", // (optional) you can specify a custom path to the emscripten loader script.
});-
Made
Modmodule private, useImGuiImplWeb.GetEmscriptenExports()instead -
Changed Image loading API:
- Removed
ImGuiImplWeb.LoadImageWebGL/WebGPU() - New function for loading/updating images:
ImGuiImplWeb.LoadTexture(...) - Support loading Images using
Uint8Array
- Removed
Full Changelog: v0.5.0...v0.6.0