@webviz/well-log-viewer 2.4.6 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { CallbackManager } from "./components/CallbackManager";
6
6
  import type { ViewerLayout } from "./components/WellLogLayout";
7
7
  import type { WellLogSet } from "./components/WellLogTypes";
8
8
  import type { Template } from "./components/WellLogTemplateTypes";
9
- import type { ColorMapFunction } from "./utils/color-function";
9
+ import type { ColormapFunction } from "./utils/color-function";
10
10
  import type { PatternsTable, Pattern } from "./utils/pattern";
11
11
  import type { WellLogController, WellPickProps } from "./components/WellLogView";
12
12
  import type WellLogView from "./components/WellLogView";
@@ -39,7 +39,7 @@ export interface SyncLogViewerProps {
39
39
  /**
40
40
  * Prop containing color function/table array.
41
41
  */
42
- colorMapFunctions: ColorMapFunction[];
42
+ colorMapFunctions: ColormapFunction[];
43
43
  /**
44
44
  * Set to true for default titles or to array of individual well log titles
45
45
  */
@@ -6,7 +6,7 @@ export const PatternsTableType = PropTypes.shape({
6
6
  patternImages: PropTypes.arrayOf(PropTypes.string).isRequired,
7
7
  patternNames: PropTypes.arrayOf(PropTypes.string),
8
8
  });
9
- // see ./ColorMapFunction.ts
9
+ // see color-function.ts
10
10
  export const ColorFunctionType = PropTypes.oneOfType([
11
11
  PropTypes.func,
12
12
  PropTypes.object,
@@ -1 +1 @@
1
- {"version":3,"file":"CommonPropTypes.js","sourceRoot":"","sources":["../../src/components/CommonPropTypes.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,2BAA2B;AAC3B,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,sBAAsB,CAAC,mBAAmB;AAEvF,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC,KAAK,CAAC;IAC7C,WAAW,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACxC,aAAa,EAAE,SAAS,CA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KAAK,CAAC;IACxC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IACjC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC;QACnB,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;QACpC,cAAc,EAAE,SAAS,CAAC,IAAI;KACjC,CAAC,CAAC,UAAU;IACb,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,UAAU;IACvD,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAC5C,KAAK;CACR,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
2
  import { Component } from "react";
3
3
  import type { WellLogController, WellPickProps } from "./WellLogView";
4
- import type { ColorMapFunction } from "../utils/color-function";
4
+ import type { ColormapFunction } from "../utils/color-function";
5
5
  import type { PatternsTable, Pattern } from "../utils/pattern";
6
6
  export interface WellLogSpacerOptions {
7
7
  /**
@@ -19,7 +19,7 @@ export interface WellLogSpacerProps {
19
19
  /**
20
20
  * Prop containing color function/table data.
21
21
  */
22
- colorMapFunctions: ColorMapFunction[];
22
+ colorMapFunctions: ColormapFunction[];
23
23
  /**
24
24
  * Well Picks data
25
25
  */
@@ -5,7 +5,7 @@ import PropTypes from "prop-types";
5
5
  import { LogViewer } from "@equinor/videx-wellog";
6
6
  import type { ScaleInterpolator, Plot, Track } from "@equinor/videx-wellog";
7
7
  import type { AxesInfo } from "../utils/axes";
8
- import type { ColorMapFunction } from "../utils/color-function";
8
+ import type { ColormapFunction } from "../utils/color-function";
9
9
  import type { Pattern, PatternsTable } from "../utils/pattern";
10
10
  import type { Info } from "./InfoTypes";
11
11
  import type { WellLogSet } from "./WellLogTypes";
@@ -17,7 +17,7 @@ export interface WellPickProps {
17
17
  /**
18
18
  * Prop containing color tables or color functions array for well picks
19
19
  */
20
- colorMapFunctions: ColorMapFunction[];
20
+ colorMapFunctions: ColormapFunction[];
21
21
  colorMapFunctionName: string;
22
22
  }
23
23
  export declare const WellPickPropsType: PropTypes.Requireable<PropTypes.InferProps<{
@@ -129,7 +129,7 @@ export interface WellLogViewProps {
129
129
  /**
130
130
  Prop containing color table or color functions array for discrete well logs
131
131
  */
132
- colorMapFunctions: ColorMapFunction[];
132
+ colorMapFunctions: ColormapFunction[];
133
133
  /**
134
134
  * Well Picks data
135
135
  */
@@ -4,6 +4,8 @@ export type ColorFunction = {
4
4
  name: string;
5
5
  func: (v: number) => [number, number, number];
6
6
  };
7
- export type ColorMapFunction = colorTablesObj | ColorFunction;
8
- export declare function isFunction(colormapFunction: ColorMapFunction | undefined): boolean;
9
- export declare function getColormapFunction(functionName?: string, colormapFunctions?: ColorMapFunction[]): ColorMapFunction | undefined;
7
+ export type ColormapFunction = colorTablesObj | ColorFunction;
8
+ /** @deprecated Use ColormapFunction instead. */
9
+ export type ColorMapFunction = ColormapFunction;
10
+ export declare function isFunction(colormapFunction: ColormapFunction | undefined): boolean;
11
+ export declare function getColormapFunction(functionName?: string, colormapFunctions?: ColormapFunction[]): ColormapFunction | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"color-function.js","sourceRoot":"","sources":["../../src/utils/color-function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAUzC,MAAM,UAAU,UAAU,CACtB,gBAA8C;IAE9C,IAAI,CAAC,gBAAgB;QAAE,OAAO,KAAK,CAAC;IACpC,OAAO,CAAC,CAAE,gBAAkC,CAAC,IAAI,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,YAAqB,EACrB,iBAAsC;IAEtC,IAAI,CAAC,YAAY;QAAE,OAAO,SAAS,CAAC;IACpC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACrB,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;QACxD,iBAAiB,GAAG,EAAE,CAAC;IAC3B,CAAC;IAED,MAAM,aAAa,GAAG,aAAa,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;IAErE,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,OAAO,CAAC,KAAK,CAAC,mBAAmB,YAAY,aAAa,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,aAAa,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"color-function.js","sourceRoot":"","sources":["../../src/utils/color-function.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAYzC,MAAM,UAAU,UAAU,CACtB,gBAA8C;IAE9C,IAAI,CAAC,gBAAgB;QAAE,OAAO,KAAK,CAAC;IACpC,OAAO,CAAC,CAAE,gBAAkC,CAAC,IAAI,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,YAAqB,EACrB,iBAAsC;IAEtC,IAAI,CAAC,YAAY;QAAE,OAAO,SAAS,CAAC;IACpC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACrB,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;QACxD,iBAAiB,GAAG,EAAE,CAAC;IAC3B,CAAC;IAED,MAAM,aAAa,GAAG,aAAa,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;IAErE,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,OAAO,CAAC,KAAK,CAAC,mBAAmB,YAAY,aAAa,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,aAAa,CAAC;AACzB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { type ColorMapFunction } from "./color-function";
1
+ import { type ColormapFunction } from "./color-function";
2
2
  export declare function colorToString(color: [number, number, number] | undefined, // [r,g,b]
3
3
  cDefault: string): string;
4
4
  export declare function color4ToString(color: [number, number, number, number]): string;
5
- export declare function getInterpolatedColor(colormapFunction: ColorMapFunction, v: number): [number, number, number];
6
- export declare function getInterpolatedColorString(colormapFunction: ColorMapFunction, v: number): string;
5
+ export declare function getInterpolatedColor(colormapFunction: ColormapFunction, v: number): [number, number, number];
6
+ export declare function getInterpolatedColorString(colormapFunction: ColormapFunction, v: number): string;
@@ -1,10 +1,10 @@
1
1
  import type { Scale } from "@equinor/videx-wellog/dist/common/interfaces";
2
2
  import { Plot } from "@equinor/videx-wellog";
3
3
  import type { AreaPlotOptions } from "@equinor/videx-wellog/dist/plots/interfaces";
4
- import type { ColorMapFunction } from "./color-function";
4
+ import type { ColormapFunction } from "./color-function";
5
5
  export interface GradientFillPlotOptions extends AreaPlotOptions {
6
- colorMapFunction?: ColorMapFunction;
7
- inverseColorMapFunction?: ColorMapFunction;
6
+ colorMapFunction?: ColormapFunction;
7
+ inverseColorMapFunction?: ColormapFunction;
8
8
  colorScale?: "linear" | "log";
9
9
  inverseColorScale?: "linear" | "log";
10
10
  }
@@ -4,7 +4,7 @@
4
4
  import type { LogViewer as VidexLogViewer, ScaleInterpolator, Track } from "@equinor/videx-wellog";
5
5
  import type { TrackOptions } from "@equinor/videx-wellog/dist/tracks/interfaces";
6
6
  import type { AxesInfo } from "./axes";
7
- import type { ColorMapFunction } from "./color-function";
7
+ import type { ColormapFunction } from "./color-function";
8
8
  import type { TemplateTrack } from "../components/WellLogTemplateTypes";
9
9
  import type { WellLogSet } from "../components/WellLogTypes";
10
10
  /**
@@ -148,7 +148,7 @@ export declare function updateLegendRows(logViewer: VidexLogViewer): void;
148
148
  * @param colormapFunctions An array of color map functions to apply to the track
149
149
  * @returns The new track if successful, otherwise `null`
150
150
  */
151
- export declare function createNewViewTrack(logViewer: VidexLogViewer, template: TemplateTrack, position: number, axesInfo: AxesInfo, wellLogSets: WellLogSet[], colormapFunctions?: ColorMapFunction[]): Track<TrackOptions> | null;
151
+ export declare function createNewViewTrack(logViewer: VidexLogViewer, template: TemplateTrack, position: number, axesInfo: AxesInfo, wellLogSets: WellLogSet[], colormapFunctions?: ColormapFunction[]): Track<TrackOptions> | null;
152
152
  /**
153
153
  * Modifies a videx track with a new template configuration.
154
154
  * @param logViewer A videx log view controller
@@ -159,7 +159,7 @@ export declare function createNewViewTrack(logViewer: VidexLogViewer, template:
159
159
  * @param colormapFunctions An array of color map functions to apply to the track
160
160
  * @returns The modified track
161
161
  */
162
- export declare function editViewTrack(logViewer: VidexLogViewer, track: Track, newTemplate: TemplateTrack, axesInfo: AxesInfo, wellLogSets: WellLogSet[], colormapFunctions?: ColorMapFunction[]): Track;
162
+ export declare function editViewTrack(logViewer: VidexLogViewer, track: Track, newTemplate: TemplateTrack, axesInfo: AxesInfo, wellLogSets: WellLogSet[], colormapFunctions?: ColormapFunction[]): Track;
163
163
  /**
164
164
  * Removes a videx track from a log viewer.
165
165
  * @param logViewer A videx log view controller
@@ -8,7 +8,7 @@ import { type AreaData } from "@equinor/videx-wellog";
8
8
  import type { TemplatePlot, TemplatePlotType, TemplateTrack } from "../components/WellLogTemplateTypes";
9
9
  import type { WellLogCurve, WellLogDataRow, WellLogSet } from "../components/WellLogTypes";
10
10
  import { type AxesInfo } from "./axes";
11
- import type { ColorMapFunction } from "./color-function";
11
+ import type { ColormapFunction } from "./color-function";
12
12
  import { type GradientFillPlotOptions } from "./gradientfill-plot";
13
13
  import { type DiscreteMeta } from "./well-log";
14
14
  export declare const DEFAULT_SCALE = "linear";
@@ -70,7 +70,7 @@ export declare function getPlotType(plot: Plot): TemplatePlotType;
70
70
  * @param iData2 - The index for the secondary curve, if any.
71
71
  * @returns The configuration for the plot.
72
72
  */
73
- export declare function buildPlotConfig(plotSetup: PlotSetup, plotSetup2: PlotSetup | null, trackTemplate: TemplateTrack, colormapFunctions: ColorMapFunction[] | undefined, iData: number, iData2: number): PlotConfig;
73
+ export declare function buildPlotConfig(plotSetup: PlotSetup, plotSetup2: PlotSetup | null, trackTemplate: TemplateTrack, colormapFunctions: ColormapFunction[] | undefined, iData: number, iData2: number): PlotConfig;
74
74
  /**
75
75
  * Creates an array of `AreaData` objects that together form a discrete stacked graph.
76
76
  *
@@ -80,7 +80,7 @@ export declare function buildPlotConfig(plotSetup: PlotSetup, plotSetup2: PlotSe
80
80
  *
81
81
  * @returns A promise that resolves to an array of `AreaData` objects.
82
82
  */
83
- export declare function createStackData(data: [number | null, number | string | null][], colormapFunction: ColorMapFunction | undefined, meta: DiscreteMeta | undefined | null): Promise<AreaData[]>;
83
+ export declare function createStackData(data: [number | null, number | string | null][], colormapFunction: ColormapFunction | undefined, meta: DiscreteMeta | undefined | null): Promise<AreaData[]>;
84
84
  /**
85
85
  * Sets up the plot configuration for a given well log set and template plot.
86
86
  *
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import type { Track, Plot } from "@equinor/videx-wellog";
10
10
  import { GraphTrack } from "@equinor/videx-wellog";
11
- import { type ColorMapFunction } from "./color-function";
11
+ import { type ColormapFunction } from "./color-function";
12
12
  import type { TemplateTrack, TemplatePlot } from "../components/WellLogTemplateTypes";
13
13
  import type { WellLogSet } from "../components/WellLogTypes";
14
14
  import { type AxesInfo } from "./axes";
@@ -28,7 +28,7 @@ declare class TracksInfo {
28
28
  * @returns An object containing videx tracks and related meta-info
29
29
  */
30
30
  export declare function createWellLogTracks(wellLog: WellLogSet[], axes: AxesInfo, templateTracks: TemplateTrack[], // Part of JSON
31
- colormapFunctions: ColorMapFunction[]): TracksInfo;
31
+ colormapFunctions: ColormapFunction[]): TracksInfo;
32
32
  /**
33
33
  * Creates a single well-log viewer track from a template object.
34
34
  * @param wellLog Well log data set
@@ -37,7 +37,7 @@ colormapFunctions: ColorMapFunction[]): TracksInfo;
37
37
  * @param colormapFunctions Optional - Functions for coloring the plot
38
38
  * @returns A videx well-log track, if the template was valid. Otherwise null
39
39
  */
40
- export declare function createTrack(wellLog: WellLogSet[], axesInfo: AxesInfo, templateTrack: TemplateTrack, colormapFunctions?: ColorMapFunction[]): Track | null;
40
+ export declare function createTrack(wellLog: WellLogSet[], axesInfo: AxesInfo, templateTrack: TemplateTrack, colormapFunctions?: ColormapFunction[]): Track | null;
41
41
  /**
42
42
  * Edits a videx track to match a new template.
43
43
  * **NOTE:** Mutates the track!
@@ -48,7 +48,7 @@ export declare function createTrack(wellLog: WellLogSet[], axesInfo: AxesInfo, t
48
48
  * @param colormapFunctions Methods used when coloring the plot
49
49
  * @returns The edited track
50
50
  */
51
- export declare function editTrack(existingTrack: Track, newTemplateTrack: TemplateTrack, wellLogSets: WellLogSet[], axisInfo: AxesInfo, colormapFunctions: ColorMapFunction[]): Track;
51
+ export declare function editTrack(existingTrack: Track, newTemplateTrack: TemplateTrack, wellLogSets: WellLogSet[], axisInfo: AxesInfo, colormapFunctions: ColormapFunction[]): Track;
52
52
  /**
53
53
  * Adds a new plot to a videx track.
54
54
  * **NOTE:** Mutates the track
@@ -58,7 +58,7 @@ export declare function editTrack(existingTrack: Track, newTemplateTrack: Templa
58
58
  * @param axesInfo
59
59
  * @param colormapFunctions
60
60
  */
61
- export declare function addPlotToTrack(track: Track, templatePlot: TemplatePlot, wellLogSets: WellLogSet[], axesInfo: AxesInfo, colormapFunctions: ColorMapFunction[]): void;
61
+ export declare function addPlotToTrack(track: Track, templatePlot: TemplatePlot, wellLogSets: WellLogSet[], axesInfo: AxesInfo, colormapFunctions: ColormapFunction[]): void;
62
62
  /**
63
63
  * Modifies one of the plots in a videx track.
64
64
  * **NOTE:** Mutates the track!
@@ -69,7 +69,7 @@ export declare function addPlotToTrack(track: Track, templatePlot: TemplatePlot,
69
69
  * @param axesInfo Description of the axes to plot data against
70
70
  * @param colormapFunctions Methods used when coloring the plot
71
71
  */
72
- export declare function editTrackPlot(track: Track, oldPlot: Plot, templatePlot: TemplatePlot, wellLogSets: WellLogSet[], axesInfo: AxesInfo, colormapFunctions: ColorMapFunction[]): void;
72
+ export declare function editTrackPlot(track: Track, oldPlot: Plot, templatePlot: TemplatePlot, wellLogSets: WellLogSet[], axesInfo: AxesInfo, colormapFunctions: ColormapFunction[]): void;
73
73
  /**
74
74
  * Removes a plot from a videx track.
75
75
  * **NOTE:** Mutates the track!
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import type { WellLogCurve, WellLogMetadataDiscrete, WellLogMetadataDiscreteObjects, WellLogSet } from "../components/WellLogTypes";
5
5
  import type { WellLogViewProps } from "../components/WellLogView";
6
- import type { ColorMapFunction } from "./color-function";
6
+ import type { ColormapFunction } from "./color-function";
7
7
  import type { AxesInfo } from "./axes";
8
8
  /**
9
9
  * Get all well log curves from a collection of well log sets
@@ -81,7 +81,7 @@ export interface DiscreteMeta {
81
81
  objects: WellLogMetadataDiscreteObjects;
82
82
  }
83
83
  export declare function getDiscreteMeta(wellLogSet: WellLogSet, name: string): DiscreteMeta | null;
84
- export declare function getDiscreteColorAndName(value: number | string | null, colormapFunction: ColorMapFunction | undefined, meta?: DiscreteMeta | null): {
84
+ export declare function getDiscreteColorAndName(value: number | string | null, colormapFunction: ColormapFunction | undefined, meta?: DiscreteMeta | null): {
85
85
  color: number[];
86
86
  name: string;
87
87
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webviz/well-log-viewer",
3
- "version": "2.4.6",
3
+ "version": "2.5.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",