@webviz/well-log-viewer 2.3.2 → 2.3.4

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.
Files changed (56) hide show
  1. package/dist/SyncLogViewer.d.ts +4 -5
  2. package/dist/SyncLogViewer.js +14 -59
  3. package/dist/SyncLogViewer.js.map +1 -1
  4. package/dist/WellLogViewer.js +2 -1
  5. package/dist/WellLogViewer.js.map +1 -1
  6. package/dist/components/WellLogAxesPanel.js +1 -1
  7. package/dist/components/WellLogAxesPanel.js.map +1 -1
  8. package/dist/components/WellLogSpacer.d.ts +1 -1
  9. package/dist/components/WellLogView.d.ts +17 -19
  10. package/dist/components/WellLogView.js +96 -142
  11. package/dist/components/WellLogView.js.map +1 -1
  12. package/dist/components/WellLogViewWithScroller.js +0 -14
  13. package/dist/components/WellLogViewWithScroller.js.map +1 -1
  14. package/dist/utils/arrays.d.ts +64 -0
  15. package/dist/utils/arrays.js +117 -0
  16. package/dist/utils/arrays.js.map +1 -0
  17. package/dist/utils/axes.d.ts +7 -0
  18. package/dist/utils/axes.js +3 -0
  19. package/dist/utils/axes.js.map +1 -1
  20. package/dist/{components/ColorMapFunction.d.ts → utils/color-function.d.ts} +2 -1
  21. package/dist/utils/color-function.js +20 -0
  22. package/dist/utils/color-function.js.map +1 -0
  23. package/dist/utils/color-table.d.ts +1 -1
  24. package/dist/utils/color-table.js +1 -1
  25. package/dist/utils/color-table.js.map +1 -1
  26. package/dist/utils/fill-info.js +1 -1
  27. package/dist/utils/fill-info.js.map +1 -1
  28. package/dist/utils/generateColor.d.ts +1 -0
  29. package/dist/utils/generateColor.js +15 -0
  30. package/dist/utils/generateColor.js.map +1 -0
  31. package/dist/utils/gradientfill-plot-legend.js +1 -1
  32. package/dist/utils/gradientfill-plot-legend.js.map +1 -1
  33. package/dist/utils/gradientfill-plot.d.ts +1 -1
  34. package/dist/utils/gradientfill-plot.js +2 -2
  35. package/dist/utils/gradientfill-plot.js.map +1 -1
  36. package/dist/utils/log-viewer.d.ts +174 -19
  37. package/dist/utils/log-viewer.js +311 -68
  38. package/dist/utils/log-viewer.js.map +1 -1
  39. package/dist/utils/plots.d.ts +109 -0
  40. package/dist/utils/plots.js +344 -0
  41. package/dist/utils/plots.js.map +1 -0
  42. package/dist/utils/template.d.ts +25 -0
  43. package/dist/utils/template.js +124 -0
  44. package/dist/utils/template.js.map +1 -0
  45. package/dist/utils/trackFactory.d.ts +39 -0
  46. package/dist/utils/trackFactory.js +79 -0
  47. package/dist/utils/trackFactory.js.map +1 -0
  48. package/dist/utils/tracks.d.ts +100 -52
  49. package/dist/utils/tracks.js +323 -935
  50. package/dist/utils/tracks.js.map +1 -1
  51. package/dist/utils/well-log.d.ts +14 -2
  52. package/dist/utils/well-log.js +102 -0
  53. package/dist/utils/well-log.js.map +1 -1
  54. package/package.json +2 -2
  55. package/dist/components/ColorMapFunction.js +0 -6
  56. package/dist/components/ColorMapFunction.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/utils/template.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE/D;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAkB;IACtD,IAAI,CAAC,QAAQ,CAAC,MAAM;QAAE,OAAO,QAAQ,CAAC,MAAM,CAAC;IAE7C,OAAO,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACjC,0BAA0B,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,CACrD,CAAC;AACN,CAAC;AAED,SAAS,0BAA0B,CAC/B,aAA4B,EAC5B,cAAgC;IAEhC,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,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AAI,MAAK,SAAS,CAAC;AACtD,CAAC,CAAC,yEAAyE;AAC3E,YAAY;AACZ,4BAA4B;AAC5B,sDAAsD;AACtD,sDAAsD;AACtD,SAAS,gBAAgB,CAAC,WAAmB;IACzC,OAAO,WAAW,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAC3B,MAAsB,EACtB,aAA4B;IAE5B,IAAI,aAAa,CAAC,KAAK;QAAE,OAAO,aAAa,CAAC,KAAK,CAAC;IACpD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO,EAAE,CAAC;IAEvC,MAAM,YAAY,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IAEvD,uBAAuB;IACvB,IAAI,CAAC,KAAK;QAAE,OAAO,YAAY,CAAC,IAAI,CAAC;IACrC,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;AAChF,CAAC;AAED,8DAA8D"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Utilities for instantiating different types of videx-tracks for well log visualization
3
+ */
4
+ import type { StackedTrackOptions } from "@equinor/videx-wellog";
5
+ import type { GraphTrackOptions } from "@equinor/videx-wellog/dist/tracks/graph/interfaces";
6
+ import { DualScaleTrack, GraphTrack, ScaleTrack, StackedTrack } from "@equinor/videx-wellog";
7
+ /**
8
+ * Creates a new GraphTrack with default options and custom configuration.
9
+ *
10
+ * @param options - Configuration options for the graph track
11
+ * @returns A new GraphTrack instance with generated ID
12
+ */
13
+ export declare function newGraphTrack(options: GraphTrackOptions): GraphTrack;
14
+ /**
15
+ * Creates a new StackedTrack with the provided options.
16
+ *
17
+ * @param options - Configuration options for the stacked track
18
+ * @returns A new StackedTrack instance with generated ID
19
+ */
20
+ export declare function newStackedTrack(options: StackedTrackOptions): StackedTrack;
21
+ /**
22
+ * Creates a new ScaleTrack with the specified title and optional abbreviation and units.
23
+ *
24
+ * @param title - The title of the scale track
25
+ * @param abbr - Optional abbreviation, defaults to title if not provided
26
+ * @param units - Optional units, defaults to empty string if not provided
27
+ * @returns A new ScaleTrack instance with generated ID and default configuration
28
+ */
29
+ export declare function newScaleTrack(title: string, abbr?: string | null, units?: string | null): ScaleTrack;
30
+ /**
31
+ * Creates a new DualScaleTrack with the specified mode, title and optional abbreviation and units.
32
+ *
33
+ * @param mode - The mode number for the dual scale track
34
+ * @param title - The title of the dual scale track
35
+ * @param abbr - Optional abbreviation, defaults to title if not provided
36
+ * @param units - Optional units, defaults to empty string if not provided
37
+ * @returns A new DualScaleTrack instance with generated ID and default configuration
38
+ */
39
+ export declare function newDualScaleTrack(mode: number, title: string, abbr?: string | null, units?: string | null): DualScaleTrack;
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Utilities for instantiating different types of videx-tracks for well log visualization
3
+ */
4
+ import { DualScaleTrack, GraphTrack, ScaleTrack, StackedTrack, createPlotType, defaultPlotFactory, graphLegendConfig, } from "@equinor/videx-wellog";
5
+ import GradientFillPlot from "./gradientfill-plot";
6
+ import { scaleLegendConfig } from "./stack/scale-legend";
7
+ /**
8
+ * Creates a new GraphTrack with default options and custom configuration.
9
+ *
10
+ * @param options - Configuration options for the graph track
11
+ * @returns A new GraphTrack instance with generated ID
12
+ */
13
+ export function newGraphTrack(
14
+ /* should contain:
15
+ title: string,
16
+ data: [number, number][][],
17
+ plots: PlotConfig[]
18
+ */
19
+ // ? Should we enforce this with an extended type? (@anders2303)
20
+ options) {
21
+ const gradientFillPlotFactory = Object.assign(Object.assign({}, defaultPlotFactory), { gradientfill: createPlotType(GradientFillPlot) });
22
+ const defaultGraphTrackOptions = {
23
+ legendConfig: graphLegendConfig,
24
+ plotFactory: gradientFillPlotFactory,
25
+ };
26
+ // ! Explicitly passing undefined so videx generates a random ID
27
+ return new GraphTrack(undefined, Object.assign(Object.assign({}, defaultGraphTrackOptions), options));
28
+ }
29
+ /**
30
+ * Creates a new StackedTrack with the provided options.
31
+ *
32
+ * @param options - Configuration options for the stacked track
33
+ * @returns A new StackedTrack instance with generated ID
34
+ */
35
+ export function newStackedTrack(options) {
36
+ // ! Explicitly passing undefined so videx generates a random ID
37
+ return new StackedTrack(undefined, options);
38
+ }
39
+ /**
40
+ * Creates a new ScaleTrack with the specified title and optional abbreviation and units.
41
+ *
42
+ * @param title - The title of the scale track
43
+ * @param abbr - Optional abbreviation, defaults to title if not provided
44
+ * @param units - Optional units, defaults to empty string if not provided
45
+ * @returns A new ScaleTrack instance with generated ID and default configuration
46
+ */
47
+ export function newScaleTrack(title, abbr, units) {
48
+ // ! Explicitly passing undefined so videx generates a random ID
49
+ return new ScaleTrack(undefined, {
50
+ maxWidth: 50,
51
+ width: 2,
52
+ label: title,
53
+ abbr: abbr ? abbr : title,
54
+ units: units ? units : "",
55
+ legendConfig: scaleLegendConfig,
56
+ });
57
+ }
58
+ /**
59
+ * Creates a new DualScaleTrack with the specified mode, title and optional abbreviation and units.
60
+ *
61
+ * @param mode - The mode number for the dual scale track
62
+ * @param title - The title of the dual scale track
63
+ * @param abbr - Optional abbreviation, defaults to title if not provided
64
+ * @param units - Optional units, defaults to empty string if not provided
65
+ * @returns A new DualScaleTrack instance with generated ID and default configuration
66
+ */
67
+ export function newDualScaleTrack(mode, title, abbr, units) {
68
+ // ! Explicitly passing undefined so videx generates a random ID
69
+ return new DualScaleTrack(undefined, {
70
+ mode: mode,
71
+ maxWidth: 50,
72
+ width: 2,
73
+ label: title,
74
+ abbr: abbr ? abbr : title,
75
+ units: units ? units : "",
76
+ legendConfig: scaleLegendConfig,
77
+ });
78
+ }
79
+ //# sourceMappingURL=trackFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trackFactory.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,UAAU,iBAAiB,CAC7B,IAAY,EACZ,KAAa,EACb,IAAoB,EACpB,KAAqB;IAErB,gEAAgE;IAChE,OAAO,IAAI,cAAc,CAAC,SAA8B,EAAE;QACtD,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,CAAC;QACR,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;QACzB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;QACzB,YAAY,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACP,CAAC"}
@@ -1,62 +1,110 @@
1
- import type { Track } from "@equinor/videx-wellog";
2
- import { GraphTrack, StackedTrack } from "@equinor/videx-wellog";
3
- import type { TrackOptions } from "@equinor/videx-wellog/dist/tracks/interfaces";
4
- import type { GraphTrackOptions } from "@equinor/videx-wellog/dist/tracks/graph/interfaces";
5
- import type { LegendInfo } from "@equinor/videx-wellog/dist/plots/legend/interfaces";
6
- import type { GradientFillPlotOptions } from "./gradientfill-plot";
7
- export interface ExtPlotOptions extends GradientFillPlotOptions {
8
- legendInfo: () => LegendInfo;
9
- }
10
- import type WellLogView from "../components/WellLogView";
11
- import type { TemplatePlotType, TemplateTrack, TemplatePlot, TemplateStyle } from "../components/WellLogTemplateTypes";
12
- import type { WellLogSet, WellLogMetadataDiscreteObjects } from "../components/WellLogTypes";
13
- import type { ColorMapFunction } from "../components/ColorMapFunction";
14
- export declare function indexOfElementByName(array: Named[], name: string): number;
15
- export declare function elementByName<T extends Named>(namedArr: T[], name: string): T | undefined;
1
+ /**
2
+ * Utilities for creating, editing, and managing videx-wellog tracks.
3
+ *
4
+ * The module supports two different track types:
5
+ * - GraphTrack: For displaying curve data
6
+ * - StackedTrack: For displaying discrete/category data
7
+ *
8
+ */
9
+ import type { Track, Plot } from "@equinor/videx-wellog";
10
+ import { GraphTrack } from "@equinor/videx-wellog";
11
+ import { type ColorMapFunction } from "./color-function";
12
+ import type { TemplateTrack, TemplatePlot } from "../components/WellLogTemplateTypes";
13
+ import type { WellLogSet } from "../components/WellLogTypes";
14
+ import { type AxesInfo } from "./axes";
16
15
  declare class TracksInfo {
17
16
  tracks: Track[];
18
17
  minmaxPrimaryAxis: [number, number];
19
18
  minmaxSecondaryAxis: [number, number];
20
- primaries: Float32Array;
21
- secondaries: Float32Array;
22
- constructor();
23
- }
24
- type Named = {
25
- name: string;
26
- };
27
- export declare function getAvailableAxes(wellLog: WellLogSet[], axisMnemos: Record<string, string[]>): string[];
28
- import type { Plot } from "@equinor/videx-wellog";
29
- export declare function getPlotType(plot: Plot): TemplatePlotType;
30
- export declare function addOrEditGraphTrackPlot(wellLogView: WellLogView, track: GraphTrack, plot: Plot | null, templatePlot: TemplatePlot): void;
31
- export declare function removeGraphTrackPlot(wellLogView: WellLogView, track: GraphTrack, plot: Plot): void;
32
- interface DiscreteMeta {
33
- iCode: number;
34
- iColor: number;
35
- objects: WellLogMetadataDiscreteObjects;
36
- }
37
- export declare function getDiscreteColorAndName(value: number | string | null, colorMapFunction: ColorMapFunction | undefined, meta?: DiscreteMeta | null): {
38
- color: number[];
39
- name: string;
40
- };
41
- export declare function getDiscreteMeta(wellLogSet: WellLogSet, name: string): DiscreteMeta | null;
42
- export interface TrackOptionsEx extends TrackOptions {
43
- __template: TemplateTrack;
19
+ expandDomainToTrack(track: Track): void;
44
20
  }
21
+ /**
22
+ * Builds a list of videx well-log track objects based on on a set of JSON well-logs.
23
+ * @param wellLog A Well-log JSON set
24
+ * @param axes The axes to match data to
25
+ * @param templateTracks Templates describing individual tracks
26
+ * @param templateStyles Global styles/options for track plots
27
+ * @param colorMapFunctions Overview of methods used to color rendered plots
28
+ * @returns An object containing videx tracks and related meta-info
29
+ */
30
+ export declare function createWellLogTracks(wellLog: WellLogSet[], axes: AxesInfo, templateTracks: TemplateTrack[], // Part of JSON
31
+ colorMapFunctions: ColorMapFunction[]): TracksInfo;
32
+ /**
33
+ * Creates a single well-log viewer track from a template object.
34
+ * @param wellLog Well log data set
35
+ * @param axesInfo Information about data axes to use
36
+ * @param templateTrack Track setup template
37
+ * @param colorMapFunctions Optional - Functions for coloring the plot
38
+ * @returns A videx well-log track, if the template was valid. Otherwise null
39
+ */
40
+ export declare function createTrack(wellLog: WellLogSet[], axesInfo: AxesInfo, templateTrack: TemplateTrack, colorMapFunctions?: ColorMapFunction[]): Track | null;
41
+ /**
42
+ * Edits a videx track to match a new template.
43
+ * **NOTE:** Mutates the track!
44
+ * @param existingTrack The track to edit
45
+ * @param newTemplateTrack The new template to apply
46
+ * @param wellLogSets JSON Well-log containing curve data
47
+ * @param axisInfo Description of the axes to plot data against
48
+ * @param colorMapFunctions Methods used when coloring the plot
49
+ * @returns The edited track
50
+ */
51
+ export declare function editTrack(existingTrack: Track, newTemplateTrack: TemplateTrack, wellLogSets: WellLogSet[], axisInfo: AxesInfo, colorMapFunctions: ColorMapFunction[]): Track;
52
+ /**
53
+ * Adds a new plot to a videx track.
54
+ * **NOTE:** Mutates the track
55
+ * @param track A videx track. **Note:** Currently only supports graph tracks
56
+ * @param templatePlot Template object for the new plot,
57
+ * @param wellLogSets JSON Well-log sets to source data from
58
+ * @param axesInfo
59
+ * @param colorMapFunctions
60
+ */
61
+ export declare function addPlotToTrack(track: Track, templatePlot: TemplatePlot, wellLogSets: WellLogSet[], axesInfo: AxesInfo, colorMapFunctions: ColorMapFunction[]): void;
62
+ /**
63
+ * Modifies one of the plots in a videx track.
64
+ * **NOTE:** Mutates the track!
65
+ * @param track A videx track
66
+ * @param oldPlot The plot that's being edited
67
+ * @param templatePlot The new template to apply
68
+ * @param wellLogSets JSON Well-log sets to source data from
69
+ * @param axesInfo Description of the axes to plot data against
70
+ * @param colorMapFunctions Methods used when coloring the plot
71
+ */
72
+ export declare function editTrackPlot(track: Track, oldPlot: Plot, templatePlot: TemplatePlot, wellLogSets: WellLogSet[], axesInfo: AxesInfo, colorMapFunctions: ColorMapFunction[]): void;
73
+ /**
74
+ * Removes a plot from a videx track.
75
+ * **NOTE:** Mutates the track!
76
+ * @param track A videx track
77
+ * @param plot The plot that should be removed
78
+ */
79
+ export declare function removeTrackPlot(track: Track, plot: Plot): void;
80
+ /**
81
+ * Gets the index range (along the primary axis) that a track's plots have valid data in
82
+ * @param track A videx track
83
+ * @returns A number tuple, with the lower and upper axis values
84
+ */
85
+ export declare function getTrackIndexRange(track: Track): [number, number];
86
+ /**
87
+ * Gets the template object that was used when a track was created.
88
+ * @param track A videx track
89
+ * @returns The template object associated with the track
90
+ */
45
91
  export declare function getTrackTemplate(track: Track): TemplateTrack;
46
- export declare function newGraphTrack(options: GraphTrackOptions): GraphTrack;
92
+ /**
93
+ * Determines if a track is a scale track.
94
+ * @param track - The track to check.
95
+ * @returns True if the track is an instance of ScaleTrack or DualScaleTrack, false otherwise.
96
+ */
47
97
  export declare function isScaleTrack(track: Track): boolean;
98
+ /**
99
+ * Counts the number of scale tracks in the given array of tracks.
100
+ * @param tracks - The array of tracks to count scale tracks from.
101
+ * @returns The number of scale tracks found.
102
+ */
48
103
  export declare function getScaleTrackNum(tracks: Track[]): number;
49
- export interface AxesInfo {
50
- primaryAxis: string;
51
- secondaryAxis: string;
52
- titles: Record<string, string>;
53
- mnemos: Record<string, string[]>;
54
- }
55
- export declare function createTracks(wellLog: WellLogSet[], axes: AxesInfo, templateTracks: TemplateTrack[], // Part of JSON
56
- templateStyles: TemplateStyle[] | undefined, // Part of JSON
57
- colorMapFunctions: ColorMapFunction[]): TracksInfo;
58
- export declare function addOrEditGraphTrack(wellLogView: WellLogView, track: GraphTrack | null, templateTrack: TemplateTrack, trackCurrent: Track, bAfter: boolean): GraphTrack;
59
- export declare function addOrEditStackedTrack(wellLogView: WellLogView, track: StackedTrack | null, templateTrack: TemplateTrack, trackCurrent: Track, bAfter: boolean): StackedTrack | null;
104
+ /**
105
+ * Determines if a given track contains a differential plot.
106
+ * @param track - The graph track to check for differential plots.
107
+ * @returns True if the track contains at least one differential plot, false otherwise.
108
+ */
60
109
  export declare function hasDifferentialPlot(track: GraphTrack): boolean;
61
- export declare function toggleId(trackIds: (string | number)[], trackId: string | number): void;
62
110
  export {};