Skip to content

Commit

Permalink
fixing getRoots
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollman committed Dec 5, 2024
1 parent 1cc9426 commit d32add4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/datasource/graphene/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ import {
} from "#src/widget/layer_control.js";
import type { LayerControlDefinition } from "#src/widget/layer_control.js";
import { rangeLayerControl } from "#src/widget/layer_control_range.js";
import { time } from "console";

Check failure on line 221 in src/datasource/graphene/frontend.ts

View workflow job for this annotation

GitHub Actions / build-and-deploy (ubuntu-latest)

'time' is declared but its value is never read.


function vec4FromVec3(vec: vec3, alpha = 0) {
Expand Down Expand Up @@ -1681,7 +1682,7 @@ class GraphConnection extends SegmentationGraphSourceConnection {
const segmentConst = segmentId.clone();
if (added && isBaseSegment) {
this.graph
.getRoot(segmentConst, segmentsState.timestamp.value, this.layer.displayState.stopLayer.value)
.getRoot(segmentConst, this.layer.displayState.stopLayer.value, segmentsState.timestamp.value)
.then((rootId) => {
if (segmentsState.visibleSegments.has(segmentConst)) {
segmentsState.visibleSegments.add(rootId);
Expand Down Expand Up @@ -2255,12 +2256,12 @@ class GrapheneGraphSource extends SegmentationGraphSource {
}
}

getRoot(segment: Uint64, stop_layer: number) {
getRoot(segment: Uint64, stop_layer: number, timestamp?: number,) {
if (stop_layer > 0) {
return this.graphServer.getRoot(segment, "", stop_layer);
return this.graphServer.getRoot(segment, timestamp, stop_layer);
}
else {
return this.graphServer.getRoot(segment);
return this.graphServer.getRoot(segment, timestamp);
}
}

Expand Down

0 comments on commit d32add4

Please sign in to comment.