Closed andreamancuso closed 3 months ago
[!CAUTION]
Review failed
The pull request is closed.
The recent updates to the dear-imgui
package enhance the management of internal operations across various components. Key changes include the introduction of HasInternalOps()
methods in classes like Element
, Combo
, InputText
, MapView
, and Table
, allowing them to indicate their support for internal operations. Additionally, the handling of rendering logic has been refactored for improved modularity, particularly in the ReactImgui
class, which now leverages a more dynamic approach to internal operations.
File Path | Change Summary |
---|---|
packages/dear-imgui/.../wasm-glfw3-boilerplate |
Updated commit reference for the wasm-glfw3-boilerplate dependency. |
packages/dear-imgui/cpp/include/element/element.h , cpp/src/element/element.cpp |
Added HasInternalOps() method in Element class; returns false . |
packages/dear-imgui/cpp/include/reactimgui.h , cpp/src/reactimgui.cpp |
Removed OpInternal enum; refactored internal ops handling using subjects. |
packages/dear-imgui/cpp/include/widget/combo.h , cpp/src/widget/combo.cpp |
Introduced HasInternalOps() method; indicates presence of internal operations. |
packages/dear-imgui/cpp/include/widget/input_text.h , cpp/src/widget/input_text.cpp |
Added HasInternalOps() method; indicates presence of internal operations. |
packages/dear-imgui/cpp/include/widget/map_view.h , cpp/src/widget/map_view.cpp |
Introduced HasInternalOps() and HandleInternalOp() ; enhanced texture management. |
packages/dear-imgui/cpp/include/widget/table.h , cpp/src/widget/table.cpp |
Added HasInternalOps() method; indicates presence of internal operations. |
packages/dear-imgui/cpp/src/main.cpp |
Removed renderMap function; refactored rendering logic. |
packages/dear-imgui/ts/src/lib/widgetRegistrationService.ts |
Changed rendering calls to use JSON for parameters; enhances flexibility. |
sequenceDiagram
participant User
participant ReactImgui
participant Element
participant Combo
participant InputText
participant MapView
participant Table
User->>ReactImgui: Request Component
ReactImgui->>Element: Check HasInternalOps()
Element-->>ReactImgui: Returns false
ReactImgui->>Combo: Check HasInternalOps()
Combo-->>ReactImgui: Returns true
ReactImgui->>InputText: Check HasInternalOps()
InputText-->>ReactImgui: Returns true
ReactImgui->>MapView: Check HasInternalOps()
MapView-->>ReactImgui: Returns true
ReactImgui->>Table: Check HasInternalOps()
Table-->>ReactImgui: Returns true
ReactImgui->>User: Render with Components
🐰 In the garden of code, changes bloom bright,
New paths for our widgets, a marvelous sight!
WithHasInternalOps
, they dance and they play,
Managing tasks in a new, clever way.
So hop, little rabbit, and cheer with delight,
For our code's spruced up, everything feels right! ✨
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?
Moved map rendering logic to map view CPP file
Summary by CodeRabbit
Summary by CodeRabbit
New Features
HasInternalOps()
methods across various classes, enhancing control over internal operations.MapView
class.Refactor
ReactImgui
, shifting to a more reactive architecture.Render
method in theMapView
class for better encapsulation and streamlined texture management.RenderMap
function from theReactImgui
class to streamline rendering logic, preventing potential errors.Documentation