Export the change in tslib/react

This commit is contained in:
porink0424
2024-06-21 11:51:10 +09:00
parent 82d0c4445b
commit 63a4c8b105
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import {
GraphContainer,
PlotEdf,
getPlotDomId,
getPlotEdfDomId,
useGraphComponentState,
} from "@optuna/react"
import * as plotly from "plotly.js-dist-min"
@@ -29,7 +29,7 @@ const GraphEdfBackend: FC<{
const { graphComponentState, notifyGraphDidRender } = useGraphComponentState()
const studyIds = studies.map((s) => s.id)
const domId = getPlotDomId(-1)
const domId = getPlotEdfDomId(-1)
const numCompletedTrials = studies.reduce(
(acc, study) =>
acc + study?.trials.filter((t) => t.state === "Complete").length,
+2 -1
View File
@@ -1,10 +1,11 @@
export { DataGrid } from "./components/DataGrid"
export { plotlyDarkTemplate } from "./components/PlotlyDarkMode"
export { PlotEdf, getPlotDomId } from "./components/PlotEdf"
export { PlotEdf, getPlotEdfDomId } from "./components/PlotEdf"
export type { EdfPlotInfo } from "./components/PlotEdf"
export { PlotHistory } from "./components/PlotHistory"
export { PlotImportance } from "./components/PlotImportance"
export { PlotIntermediateValues } from "./components/PlotIntermediateValues"
export { PlotSlice, getPlotSliceDomId } from "./components/PlotSlice"
export { TrialTable } from "./components/TrialTable"
export { GraphContainer } from "./components/GraphContainer"
export { useGraphComponentState } from "./hooks/useGraphComponentState"