Skip to content

Commit

Permalink
[TRON-16423] Integrate Observation logging into the graphs-renderer l…
Browse files Browse the repository at this point in the history
…ibrary
  • Loading branch information
ClaudiaGivan committed Sep 13, 2023
1 parent 6efc69d commit 9927a1f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<div>
<div id="layout">

<h1 class="py-4 text-center font-bold bg-black text-white"> Graphs library</h1>
<div class="absolute z-10 w-8 border-2 border-black bg-black transition-width duration-200 overflow-x-hidden"
id="left-sidebar">
<button class="w-full h-10 p-1" id="left-sidebar-button">
Expand Down
2 changes: 1 addition & 1 deletion src/graphs/cfd/CFDRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class CFDRenderer extends UIControlsRenderer {
lineX: xPosition,
lineY: this.height,
tooltipLeft: event.pageX,
tooltipTop: this.height,
tooltipTop: event.pageY,
metrics: metrics,
observationBody: observation?.body,
observationId: observation?.id,
Expand Down
27 changes: 18 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
import CFDRenderer from "./graphs/cfd/CFDRenderer.js";
import CFDGraph from "./graphs/cfd/CFDGraph.js";
import ScatterplotGraph from "./graphs/scatterplot/ScatterplotGraph.js";
import ScatterplotRenderer from "./graphs/scatterplot/ScatterplotRenderer.js";
import HistogramRenderer from "./graphs/histogram/HistogramRenderer.js";
import { eventBus } from "./utils/EventBus.js";
import { processServiceData } from "./data-processor.js";
import ObservationLoggingService from "./graphs/ObservationLoggingService.js";
import CFDRenderer from './graphs/cfd/CFDRenderer.js';
import CFDGraph from './graphs/cfd/CFDGraph.js';
import ScatterplotGraph from './graphs/scatterplot/ScatterplotGraph.js';
import ScatterplotRenderer from './graphs/scatterplot/ScatterplotRenderer.js';
import HistogramRenderer from './graphs/histogram/HistogramRenderer.js';
import { eventBus } from './utils/EventBus.js';
import { processServiceData } from './data-processor.js';
import ObservationLoggingService from './graphs/ObservationLoggingService.js';

export { CFDGraph, CFDRenderer, ScatterplotGraph, ScatterplotRenderer, HistogramRenderer, ObservationLoggingService, eventBus, processServiceData };
export {
CFDGraph,
CFDRenderer,
ScatterplotGraph,
ScatterplotRenderer,
HistogramRenderer,
ObservationLoggingService,
eventBus,
processServiceData,
};

0 comments on commit 9927a1f

Please sign in to comment.