Closed andreamancuso closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request involve the addition of two new submodules to the .gitmodules
file, enhancing the project's dependency management. Modifications include updates to several classes, primarily in the ImGuiRenderer
and ImPlotRenderer
, to incorporate optional parameters for asset paths. The Button
class saw the removal of debugging statements in its Measure
method. Additionally, the Runner
class was renamed from WasmRunner
, and various methods were updated for improved functionality and parameter handling. The package.json
was modified to allow for more flexible dependency versions.
File Path | Change Summary |
---|---|
.gitmodules |
Added submodule node-addon-api and node-api-headers with respective URLs. |
packages/dear-imgui/cpp/app/include/imgui_renderer.h |
Updated constructor to include std::optional<std::string>& basePath and added std::string m_assetsBasePath . |
packages/dear-imgui/cpp/app/include/implot_renderer.h |
Updated constructor to include std::optional<std::string> basePath . |
packages/dear-imgui/cpp/app/include/widget/button.h |
Removed debugging printf statements from Measure method. |
packages/dear-imgui/cpp/app/src/imgui_renderer.cpp |
Updated constructor and font handling to use m_assetsBasePath . |
packages/dear-imgui/cpp/app/src/implot_renderer.cpp |
Updated constructor to pass basePath to ImGuiRenderer . |
packages/dear-imgui/cpp/app/src/reactimgui.cpp |
Added mutex locks in PatchStyle for thread safety and debug prints in CalcTextSize . |
packages/dear-imgui/cpp/deps/node-addon-api |
Added subproject commit identifier. |
packages/dear-imgui/cpp/deps/node-api-headers |
Added subproject commit identifier. |
packages/dear-imgui/cpp/node/CMakeLists.txt |
Added include directories and updated NAPI_VERSION definition. |
packages/dear-imgui/cpp/node/hello.cc |
Renamed WasmRunner to Runner , added new member variables and setter methods. |
packages/dear-imgui/cpp/wasm/src/main.cpp |
Updated run method and other functions to accept parameters by value. |
packages/dear-imgui/ts/node-imgui/TradingGuiDemo/CryptoSymbolPairs/CryptoSymbolPair.tsx |
Commented out ReactImgui.Image components for Bitcoin and Dollar logos. |
packages/dear-imgui/ts/node-imgui/index.tsx |
Added fontDefs and assetsBasePath , updated nodeImgui.init() call. |
packages/dear-imgui/ts/package.json |
Updated peerDependencies for react and react-dom to caret versions. |
packages/dear-imgui/ts/src/App.tsx |
Updated import path for ReactImgui component and reordered import statements. |
In the garden of code, where rabbits play,
New paths for assets now light the way.
With optional strings, our classes now sing,
Debugging is simpler, oh what joy it brings!
So hop along, friends, let’s celebrate cheer,
For changes in code bring us all near! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Failed conditions
B Maintainability Rating on New Code (required ≥ A)
See analysis details on SonarCloud
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Still missing: images and maps (owing to being unable to fetch images from remote resources)
Summary by CodeRabbit
Release Notes
New Features
ImGuiRenderer
andImPlotRenderer
classes.nodeImgui
initialization with additional parameters for asset paths and font definitions.Bug Fixes
PatchStyle
method of theReactImgui
class.Documentation
App.tsx
.Chores
package.json
to allow flexible versions forreact
andreact-dom
.