Skip to content

Commit

Permalink
test: add discrete log example data and new storybook example for syn…
Browse files Browse the repository at this point in the history
…c log view (#1856)

Add example data for wells and discrete logs that are used by apps. Show
this example data in a story book example for SyncLogView which also
includes selective control of the display for the specific wells.

![image](https://github.com/equinor/webviz-subsurface-components/assets/18436935/038f4556-7ad5-4a09-b3f3-22b650ef3e93)
  • Loading branch information
mirisb committed Jan 8, 2024
1 parent 7958df9 commit dc63bb4
Show file tree
Hide file tree
Showing 25 changed files with 2,780 additions and 448 deletions.
2,250 changes: 2,250 additions & 0 deletions example-data/facies3wells.json

Large diffs are not rendered by default.

42 changes: 29 additions & 13 deletions typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ const Map: React.FC<MapProps> = ({
return (item as Layer).clone({
// Inject "dispatchBoundingBox" function into layer for it to report back its respective bounding box.
// eslint-disable-next-line
// @ts-ignore
// @ts-ignore
reportBoundingBox: dispatchBoundingBox,
// Set "modelLayer" matrix to reflect correct z scaling.
modelMatrix: m,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class BoxLayer extends Layer<BoxLayerProps> {
}

//eslint-disable-next-line
_getModels(gl: any) {
_getModels(gl: any) {
const color = this.props.color.map((x) => (x ?? 0) / 255);
const grids = new Model(gl, {
id: `${this.props.id}-grids`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ export default class Axes2DLayer extends Layer<Axes2DLayerProps> {
const p3 = [x_max_w, y_min, zDepth];
const p4 = [x_min_w, y_min, zDepth];

/*eslint-disable */
const background_lines: number[] = [
...p1, ...p2, ...p4, // triangle 1
...p2, ...p4, ...p3, // triangle 2
];
/*eslint-disable */
const background_lines: number[] = [
...p1, ...p2, ...p4, // triangle 1
...p2, ...p4, ...p3, // triangle 2
];
/*eslint-enable */

return background_lines;
Expand All @@ -334,11 +334,11 @@ export default class Axes2DLayer extends Layer<Axes2DLayerProps> {
const p3 = [x_min, y_max_w, zDepth];
const p4 = [x_min, y_min_w, zDepth];

/*eslint-disable */
const background_lines: number[] = [
...p1, ...p2, ...p4, // triangle 1
...p2, ...p4, ...p3, // triangle 2
];
/*eslint-disable */
const background_lines: number[] = [
...p1, ...p2, ...p4, // triangle 1
...p2, ...p4, ...p3, // triangle 2
];
/*eslint-enable */

return background_lines;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class ColormapLayer extends BitmapLayer<ColormapLayerProps> {

// Signature from the base class, eslint doesn't like the any type.
// eslint-disable-next-line
draw({ moduleParameters, uniforms, context }: any): void {
draw({ moduleParameters, uniforms, context }: any): void {
if (!this.state["isLoaded"]) {
this.setState({
isLoaded: true,
Expand Down Expand Up @@ -200,7 +200,7 @@ export default class ColormapLayer extends BitmapLayer<ColormapLayerProps> {

// Signature from the base class, eslint doesn't like the any type.
// eslint-disable-next-line
getShaders(): any {
getShaders(): any {
const parentShaders = super.getShaders();
// Overwrite the BitmapLayer's default fragment shader with ours, that does colormapping.
parentShaders.fs = fsColormap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default class privateLayer extends Layer<privateLayerProps> {
this.initializeState(context as DeckGLLayerContext);
}
//eslint-disable-next-line
_getModels(gl: any) {
_getModels(gl: any) {
// MESH MODEL
const mesh_model = new Model(gl, {
id: `${this.props.id}-mesh`,
Expand Down Expand Up @@ -147,7 +147,7 @@ export default class privateLayer extends Layer<privateLayerProps> {

// Signature from the base class, eslint doesn't like the any type.
// eslint-disable-next-line
draw(args: any): void {
draw(args: any): void {
if (!this.state["models"]) {
return;
}
Expand Down
Loading

0 comments on commit dc63bb4

Please sign in to comment.