remove const

This commit is contained in:
2025-12-03 22:46:44 -06:00
parent 80a6e8ad26
commit f56a7e92e0
14 changed files with 126 additions and 46 deletions

View File

@@ -731,13 +731,6 @@ JSC_SCALL(imgui_barplot,
ImPlot::PlotBars(str, &plotdata[0].x, &plotdata[0].y, JS_ArrayLength(js, argv[1]), js2number(js, argv[2]), 0, 0, sizeof(ImVec2));
)
JSC_SCALL(imgui_histogramplot,
size_t offset, len, per_e;
JSValue typed = JS_GetTypedArrayBuffer(js, argv[1], &offset, &len, &per_e);
ImPlot::PlotHistogram(str, js_get_blob_data(js, NULL, typed), JS_ArrayLength(js, argv[1]));
JS_FreeValue(js, typed);
)
JSC_SCALL(imgui_textplot,
ImVec2 c = js2imvec2(js, argv[1]);
ImPlot::PlotText(str, c.x, c.y);