Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v0.6.0

Choose a tag to compare

@mori2003 mori2003 released this 02 Aug 15:52
· 103 commits to main since this release

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 Mod module private, use ImGuiImplWeb.GetEmscriptenExports() instead

  • Changed Image loading API:

    • Removed ImGuiImplWeb.LoadImageWebGL/WebGPU()
    • New function for loading/updating images: ImGuiImplWeb.LoadTexture(...)
    • Support loading Images using Uint8Array

Full Changelog: v0.5.0...v0.6.0