Skip to content

Commit

Permalink
ColorTableTypes.ts => ColorMapFunction.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
iWowik committed Sep 27, 2024
1 parent 09d11d7 commit a3cba4a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion example-data/facies3wells.json
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@
"name": "discrete",
"type": "stacked",
"color": "red",
"colorFunction": "Stratigraphy"
"colorMapFunction": "Stratigraphy"
},
{ "name": "categorical", "type": "stacked", "color": "green" }
]
Expand Down
2 changes: 1 addition & 1 deletion example-data/welllog_template_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
{
"name": "discrete",
"type": "stacked",
"colorFunction": "Stratigraphy"
"colorMapFunction": "Stratigraphy"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { Meta, StoryObj } from "@storybook/react";
import React from "react";

import type { ColorMapFunction } from "./components/ColorTableTypes";
import type ColorMapFunction from "./components/ColorMapFunction";
import { colorTables } from "@emerson-eps/color-tables";
const exampleColorMapFunctions = colorTables as ColorMapFunction[];
import wellpickColorTables from "../../../../example-data/wellpick_colors.json";
Expand All @@ -21,7 +21,7 @@ import type {
} from "./components/WellLogView";

const ComponentCode =
'<SyncLogViewer id="SyncLogViewer" \r\n' +
"<SyncLogViewer id='SyncLogViewer' \r\n" +
" syncTrackPos==true \r\n" +
" syncContentDomain=true \r\n" +
" syncContentSelection=true \r\n" +
Expand Down Expand Up @@ -534,7 +534,7 @@ CustomLayout.parameters = {

Default.tags = ["no-screenshot-test"];

const TemplateWithSelection = (args: { welllogs: WellLog[] }) => {
const TemplateWithSelection = (args: SyncLogViewerProps) => {
const [showWell1, setShowWell1] = React.useState(true);
const [showWell2, setShowWell2] = React.useState(true);
const [showWell3, setShowWell3] = React.useState(true);
Expand Down Expand Up @@ -614,8 +614,6 @@ const TemplateWithSelection = (args: { welllogs: WellLog[] }) => {
</button>
</div>
<div style={{ width: "100%", height: "100%", flex: 1 }}>
{/*
// @ts-expect-error TS2739 */}
<SyncLogViewer
id="SyncLogViewer2"
{...argsWithSelection}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from "react";
import SyncLogViewer from "./SyncLogViewer";
import { axisMnemos, axisTitles } from "./utils/axes";

import type { ColorMapFunction } from "./components/ColorTableTypes";
import type ColorMapFunction from "./components/ColorMapFunction";
const exampleColorFunction = colorTables as ColorMapFunction[];
// TODO: Fix this the next time the file is edited.
// eslint-disable-next-line @typescript-eslint/no-require-imports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const welllogs = welllogsJson as unknown as WellLog[];
import templateJson from "../../../../example-data/welllog_template_2.json";
const template = templateJson as unknown as Template;

import type { ColorMapFunction } from "./components/ColorTableTypes";
import type ColorMapFunction from "./components/ColorMapFunction";

import type { MapMouseEvent } from "@webviz/subsurface-viewer/dist/components/Map";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "jest-styled-components";
import React from "react";
import WellLogViewer from "./WellLogViewer";
import type { WellLogController } from "./components/WellLogView";
import type { ColorMapFunction } from "./components/ColorTableTypes";
import type ColorMapFunction from "./components/ColorMapFunction";
import { axisMnemos, axisTitles } from "./utils/axes";

// TODO: Fix this the next time the file is edited.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, { Profiler } from "react";
import WellLogViewer from "./WellLogViewer";
import logTimes, { obj } from "./test/performanceMetrics";
import { axisMnemos, axisTitles } from "./utils/axes";
import type { ColorMapFunction } from "./components/ColorTableTypes";
import type ColorMapFunction from "./components/ColorMapFunction";

// TODO: Fix this the next time the file is edited.
// eslint-disable-next-line @typescript-eslint/no-require-imports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const PatternsTableType = PropTypes.shape({
patternNames: PropTypes.arrayOf(PropTypes.string),
});

// see ./ColorTableTypes.ts
// see ./ColorMapFunction.ts
export const ColorFunctionType = PropTypes.oneOfType([
PropTypes.func,
PropTypes.object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Track, GraphTrack } from "@equinor/videx-wellog";

import type { TemplatePlot, TemplatePlotType } from "./WellLogTemplateTypes";
import type { WellLog } from "./WellLogTypes";
import type { ColorMapFunction } from "./ColorTableTypes";
import type ColorMapFunction from "./ColorMapFunction";

import type WellLogView from "./WellLogView";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const Template = (args: ScaleSelectorProps) => {
<div>
Scale:
<ScaleSelector
//id="ScaleSelector"
{...args}
onChange={function (value: number): void {
setInfo("scale value=" + value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { WellLogController, WellPickProps } from "./WellLogView";
import { getWellPicks } from "./WellLogView";
import type WellLogView from "./WellLogView";

import type { ColorMapFunction } from "./ColorTableTypes";
import type ColorMapFunction from "./ColorMapFunction";
import type { PatternsTable, Pattern } from "../utils/pattern";
import { createDefs, patternId } from "../utils/pattern";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const Template = (args: ZoomSliderProps) => {
<div style={{ width: "97%", height: "100%", flex: 1 }}>
Zoom:
<ZoomSlider
//id="ZoomSlider"
{...args}
onChange={function (value: number): void {
setInfo("zoom value=" + value);
Expand Down

0 comments on commit a3cba4a

Please sign in to comment.