Skip to content

Commit

Permalink
fix: Process initial domain and selection props in WelLogView (#1861)
Browse files Browse the repository at this point in the history
1) fix initial **domain** and **selection** props processing
2) add **domain** and **selection** props to WellLogViewer storybook
example
  • Loading branch information
Vladimir-Kokin authored Jan 9, 2024
1 parent 49f7f46 commit fb83135
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ Default.args = {
axisTitles: axisTitles,
axisMnemos: axisMnemos,
viewTitle: true, // show default welllog view title (a wellname from the welllog)
domain: [2500, 4000],
selection: [3500, 3700],
options: {
hideTrackTitle: false,
hideTrackLegend: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1254,8 +1254,6 @@ class WellLogView

// set callback to component's caller
if (this.props.onCreateController) this.props.onCreateController(this);

this.setControllerZoom();
}

componentDidMount(): void {
Expand Down Expand Up @@ -1462,6 +1460,8 @@ class WellLogView
);
addWellPickOverlay(this.logController, this);
}
this.setControllerZoom();
this.setControllerSelection();
this.onTrackScroll();
this.onTrackSelection();
this.setInfo(); // Clear old track information
Expand Down

0 comments on commit fb83135

Please sign in to comment.