@webviz/well-log-viewer 0.0.1-alpha.1 → 0.0.1-alpha.3
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.
- package/dist/SyncLogViewer.js +3 -4
- package/dist/SyncLogViewer.js.map +1 -1
- package/dist/components/WellLogView.js +5 -5
- package/dist/components/WellLogView.js.map +1 -1
- package/dist/demo/example-data/welllog_template_2.json +167 -167
- package/dist/demo/example-data/wellpick_colors.json +1 -1
- package/dist/demo/example-data/wellpicks.json +179 -179
- package/package.json +32 -5
- package/dist/Intro.stories.mdx +0 -59
- package/dist/package.json +0 -21
- package/src/Intro.stories.mdx +0 -59
- package/src/MapAndWellLogViewer.stories.jsx +0 -147
- package/src/MapAndWellLogViewer.test.tsx +0 -26
- package/src/MapAndWellLogViewer.tsx +0 -473
- package/src/SyncLogViewer.stories.jsx +0 -361
- package/src/SyncLogViewer.test.tsx +0 -41
- package/src/SyncLogViewer.tsx +0 -1188
- package/src/WellLogViewer.png +0 -0
- package/src/WellLogViewer.stories.jsx +0 -169
- package/src/WellLogViewer.test.tsx +0 -53
- package/src/WellLogViewer.tsx +0 -439
- package/src/WellLogViewer_performance.test.tsx +0 -78
- package/src/__snapshots__/MapAndWellLogViewer.test.tsx.snap +0 -365
- package/src/__snapshots__/SyncLogViewer.test.tsx.snap +0 -510
- package/src/__snapshots__/WellLogViewer.test.tsx.snap +0 -552
- package/src/components/AxisSelector.test.tsx +0 -50
- package/src/components/AxisSelector.tsx +0 -49
- package/src/components/ColorTableTypes.ts +0 -9
- package/src/components/InfoPanel.test.tsx +0 -58
- package/src/components/InfoPanel.tsx +0 -144
- package/src/components/InfoTypes.ts +0 -17
- package/src/components/LocalMenus.tsx +0 -336
- package/src/components/PlotDialog.tsx +0 -419
- package/src/components/Scroller.stories.jsx +0 -80
- package/src/components/Scroller.test.tsx +0 -22
- package/src/components/Scroller.tsx +0 -173
- package/src/components/TrackDialog.tsx +0 -217
- package/src/components/WellLogSpacer.tsx +0 -483
- package/src/components/WellLogTemplateTypes.ts +0 -65
- package/src/components/WellLogTypes.ts +0 -53
- package/src/components/WellLogView.stories.jsx +0 -84
- package/src/components/WellLogView.test.tsx +0 -52
- package/src/components/WellLogView.tsx +0 -2063
- package/src/components/WellLogViewWithScroller.stories.jsx +0 -69
- package/src/components/WellLogViewWithScroller.test.tsx +0 -47
- package/src/components/WellLogViewWithScroller.tsx +0 -179
- package/src/components/ZoomSlider.stories.jsx +0 -52
- package/src/components/ZoomSlider.test.tsx +0 -28
- package/src/components/ZoomSlider.tsx +0 -86
- package/src/components/__snapshots__/AxisSelector.test.tsx.snap +0 -28
- package/src/components/__snapshots__/InfoPanel.test.tsx.snap +0 -103
- package/src/components/__snapshots__/Scroller.test.tsx.snap +0 -13
- package/src/components/__snapshots__/WellLogView.test.tsx.snap +0 -54
- package/src/components/__snapshots__/WellLogViewWithScroller.test.tsx.snap +0 -270
- package/src/components/__snapshots__/ZoomSlider.test.tsx.snap +0 -50
- package/src/components/styles.scss +0 -106
- package/src/custom.d.ts +0 -13
- package/src/demo/example-data/volve_logs.json +0 -689617
- package/src/demo/example-data/welllog_template_2.json +0 -196
- package/src/demo/example-data/wellpick_colors.json +0 -156
- package/src/demo/example-data/wellpicks.json +0 -186
- package/src/index.ts +0 -8
- package/src/utils/axes.ts +0 -26
- package/src/utils/color-table.ts +0 -153
- package/src/utils/deepcopy.ts +0 -3
- package/src/utils/edit-track.tsx +0 -40
- package/src/utils/fill-info.ts +0 -224
- package/src/utils/gradientfill-plot-legend.ts +0 -177
- package/src/utils/gradientfill-plot.ts +0 -203
- package/src/utils/graph/factory.ts +0 -15
- package/src/utils/legend/common.ts +0 -153
- package/src/utils/log-viewer.ts +0 -209
- package/src/utils/minmax.ts +0 -126
- package/src/utils/pattern.tsx +0 -50
- package/src/utils/stack/stack-legend.ts +0 -100
- package/src/utils/tracks.ts +0 -1559
- package/tsconfig.json +0 -8
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Test Well Log View Component with Scroller snapshot test 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
style="overflow: scroll; width: 100%; height: 100%;"
|
|
6
|
-
>
|
|
7
|
-
<div
|
|
8
|
-
style="width: 0px; height: 0px;"
|
|
9
|
-
>
|
|
10
|
-
<div
|
|
11
|
-
style="position: absolute;"
|
|
12
|
-
>
|
|
13
|
-
<div
|
|
14
|
-
class="welllogview"
|
|
15
|
-
style="width: 100%; height: 100%; display: flex; flex-direction: column;"
|
|
16
|
-
>
|
|
17
|
-
<div
|
|
18
|
-
style="width: 100%; height: 100%; display: flex; flex-direction: column;"
|
|
19
|
-
>
|
|
20
|
-
<div
|
|
21
|
-
class="log-controller"
|
|
22
|
-
>
|
|
23
|
-
<div
|
|
24
|
-
class="overlay"
|
|
25
|
-
style="width: 0px; left: 0px; overflow: hidden;"
|
|
26
|
-
>
|
|
27
|
-
<div
|
|
28
|
-
class="depth"
|
|
29
|
-
style="position: absolute; pointer-events: none; visibility: hidden;"
|
|
30
|
-
/>
|
|
31
|
-
<div
|
|
32
|
-
class="rubber-band"
|
|
33
|
-
style="position: relative; pointer-events: none; height: 9px; width: 100%; visibility: hidden;"
|
|
34
|
-
>
|
|
35
|
-
<div
|
|
36
|
-
style="height: 1px; width: 100%; top: 4.5px; position: relative;"
|
|
37
|
-
/>
|
|
38
|
-
</div>
|
|
39
|
-
<div
|
|
40
|
-
class="pinned"
|
|
41
|
-
style="position: absolute; pointer-events: none; height: 9px; width: 100%; left: 0px; visibility: hidden;"
|
|
42
|
-
>
|
|
43
|
-
<div
|
|
44
|
-
style="height: 1px; width: 100%; top: 4.5px; position: absolute;"
|
|
45
|
-
/>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
<div
|
|
49
|
-
class="track"
|
|
50
|
-
style="max-width: 50px; flex: 2;"
|
|
51
|
-
>
|
|
52
|
-
<div
|
|
53
|
-
class="track-container"
|
|
54
|
-
>
|
|
55
|
-
<svg
|
|
56
|
-
style="position: absolute;"
|
|
57
|
-
/>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
<div
|
|
61
|
-
class="track"
|
|
62
|
-
style="max-width: 50px; flex: 2;"
|
|
63
|
-
>
|
|
64
|
-
<div
|
|
65
|
-
class="track-container"
|
|
66
|
-
>
|
|
67
|
-
<svg
|
|
68
|
-
style="position: absolute;"
|
|
69
|
-
/>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
<div
|
|
73
|
-
class="track"
|
|
74
|
-
style="display: flex; flex: 3;"
|
|
75
|
-
>
|
|
76
|
-
<div
|
|
77
|
-
class="track-container"
|
|
78
|
-
>
|
|
79
|
-
<canvas
|
|
80
|
-
style="position: absolute;"
|
|
81
|
-
/>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<div
|
|
85
|
-
class="track"
|
|
86
|
-
style="display: flex; flex: 3;"
|
|
87
|
-
>
|
|
88
|
-
<div
|
|
89
|
-
class="track-container"
|
|
90
|
-
>
|
|
91
|
-
<canvas
|
|
92
|
-
style="position: absolute;"
|
|
93
|
-
/>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
<div
|
|
97
|
-
class="track"
|
|
98
|
-
style="display: flex; flex: 3;"
|
|
99
|
-
>
|
|
100
|
-
<div
|
|
101
|
-
class="track-container"
|
|
102
|
-
>
|
|
103
|
-
<canvas
|
|
104
|
-
style="position: absolute;"
|
|
105
|
-
/>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
<div
|
|
109
|
-
class="track"
|
|
110
|
-
style="display: flex; flex: 3;"
|
|
111
|
-
>
|
|
112
|
-
<div
|
|
113
|
-
class="track-container"
|
|
114
|
-
>
|
|
115
|
-
<canvas
|
|
116
|
-
style="position: absolute;"
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
<div
|
|
121
|
-
class="track"
|
|
122
|
-
style="display: flex; flex: 3;"
|
|
123
|
-
>
|
|
124
|
-
<div
|
|
125
|
-
class="track-container"
|
|
126
|
-
>
|
|
127
|
-
<canvas
|
|
128
|
-
style="position: absolute;"
|
|
129
|
-
/>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
<div
|
|
133
|
-
class="track"
|
|
134
|
-
style="display: none; flex: 3;"
|
|
135
|
-
>
|
|
136
|
-
<div
|
|
137
|
-
class="track-container"
|
|
138
|
-
>
|
|
139
|
-
<canvas
|
|
140
|
-
style="position: absolute;"
|
|
141
|
-
/>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
<div
|
|
145
|
-
class="track"
|
|
146
|
-
style="display: none; flex: 3;"
|
|
147
|
-
>
|
|
148
|
-
<div
|
|
149
|
-
class="track-container"
|
|
150
|
-
>
|
|
151
|
-
<canvas
|
|
152
|
-
style="position: absolute;"
|
|
153
|
-
/>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
<div
|
|
157
|
-
class="track"
|
|
158
|
-
style="display: none; flex: 3;"
|
|
159
|
-
>
|
|
160
|
-
<div
|
|
161
|
-
class="track-container"
|
|
162
|
-
>
|
|
163
|
-
<canvas
|
|
164
|
-
style="position: absolute;"
|
|
165
|
-
/>
|
|
166
|
-
</div>
|
|
167
|
-
</div>
|
|
168
|
-
<div
|
|
169
|
-
class="track"
|
|
170
|
-
style="display: none; flex: 3;"
|
|
171
|
-
>
|
|
172
|
-
<div
|
|
173
|
-
class="track-container"
|
|
174
|
-
>
|
|
175
|
-
<canvas
|
|
176
|
-
style="position: absolute;"
|
|
177
|
-
/>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
<div
|
|
181
|
-
class="track"
|
|
182
|
-
style="display: none; flex: 3;"
|
|
183
|
-
>
|
|
184
|
-
<div
|
|
185
|
-
class="track-container"
|
|
186
|
-
>
|
|
187
|
-
<canvas
|
|
188
|
-
style="position: absolute;"
|
|
189
|
-
/>
|
|
190
|
-
</div>
|
|
191
|
-
</div>
|
|
192
|
-
<div
|
|
193
|
-
class="track"
|
|
194
|
-
style="display: none; flex: 3;"
|
|
195
|
-
>
|
|
196
|
-
<div
|
|
197
|
-
class="track-container"
|
|
198
|
-
>
|
|
199
|
-
<canvas
|
|
200
|
-
style="position: absolute;"
|
|
201
|
-
/>
|
|
202
|
-
</div>
|
|
203
|
-
</div>
|
|
204
|
-
<div
|
|
205
|
-
class="track"
|
|
206
|
-
style="display: none; flex: 3;"
|
|
207
|
-
>
|
|
208
|
-
<div
|
|
209
|
-
class="track-container"
|
|
210
|
-
>
|
|
211
|
-
<canvas
|
|
212
|
-
style="position: absolute;"
|
|
213
|
-
/>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
<div
|
|
217
|
-
class="track"
|
|
218
|
-
style="display: none; flex: 3;"
|
|
219
|
-
>
|
|
220
|
-
<div
|
|
221
|
-
class="track-container"
|
|
222
|
-
>
|
|
223
|
-
<canvas
|
|
224
|
-
style="position: absolute;"
|
|
225
|
-
/>
|
|
226
|
-
</div>
|
|
227
|
-
</div>
|
|
228
|
-
<div
|
|
229
|
-
class="track"
|
|
230
|
-
style="display: none; flex: 3;"
|
|
231
|
-
>
|
|
232
|
-
<div
|
|
233
|
-
class="track-container"
|
|
234
|
-
>
|
|
235
|
-
<canvas
|
|
236
|
-
style="position: absolute;"
|
|
237
|
-
/>
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
<div
|
|
241
|
-
class="track"
|
|
242
|
-
style="display: none; flex: 3;"
|
|
243
|
-
>
|
|
244
|
-
<div
|
|
245
|
-
class="track-container"
|
|
246
|
-
>
|
|
247
|
-
<canvas
|
|
248
|
-
style="position: absolute;"
|
|
249
|
-
/>
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
252
|
-
<div
|
|
253
|
-
class="track"
|
|
254
|
-
style="display: none; flex: 3;"
|
|
255
|
-
>
|
|
256
|
-
<div
|
|
257
|
-
class="track-container"
|
|
258
|
-
>
|
|
259
|
-
<canvas
|
|
260
|
-
style="position: absolute;"
|
|
261
|
-
/>
|
|
262
|
-
</div>
|
|
263
|
-
</div>
|
|
264
|
-
</div>
|
|
265
|
-
</div>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
</div>
|
|
269
|
-
</div>
|
|
270
|
-
`;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Test zoom slider snapshot test 1`] = `
|
|
4
|
-
<span
|
|
5
|
-
class="MuiSlider-root MuiSlider-colorPrimary MuiSlider-sizeMedium css-187mznn-MuiSlider-root"
|
|
6
|
-
>
|
|
7
|
-
<span
|
|
8
|
-
class="MuiSlider-rail css-14pt78w-MuiSlider-rail"
|
|
9
|
-
/>
|
|
10
|
-
<span
|
|
11
|
-
class="MuiSlider-track css-1gv0vcd-MuiSlider-track"
|
|
12
|
-
style="left: 0%; width: 0%;"
|
|
13
|
-
/>
|
|
14
|
-
<span
|
|
15
|
-
class="MuiSlider-thumb MuiSlider-thumbSizeMedium MuiSlider-thumbColorPrimary MuiSlider-thumb MuiSlider-thumbSizeMedium MuiSlider-thumbColorPrimary css-eg0mwd-MuiSlider-thumb"
|
|
16
|
-
data-index="0"
|
|
17
|
-
style="left: 0%;"
|
|
18
|
-
>
|
|
19
|
-
<input
|
|
20
|
-
aria-labelledby="non-linear-slider"
|
|
21
|
-
aria-orientation="horizontal"
|
|
22
|
-
aria-valuemax="256"
|
|
23
|
-
aria-valuemin="1"
|
|
24
|
-
aria-valuenow="1"
|
|
25
|
-
aria-valuetext="1"
|
|
26
|
-
data-index="0"
|
|
27
|
-
max="8"
|
|
28
|
-
min="0"
|
|
29
|
-
step="0.5"
|
|
30
|
-
style="border: 0px; height: 100%; margin: -1px; overflow: hidden; padding: 0px; position: absolute; white-space: nowrap; width: 100%; direction: ltr;"
|
|
31
|
-
type="range"
|
|
32
|
-
value="0"
|
|
33
|
-
/>
|
|
34
|
-
<span
|
|
35
|
-
aria-hidden="true"
|
|
36
|
-
class="MuiSlider-valueLabel css-nnid7-MuiSlider-valueLabel"
|
|
37
|
-
>
|
|
38
|
-
<span
|
|
39
|
-
class="MuiSlider-valueLabelCircle"
|
|
40
|
-
>
|
|
41
|
-
<span
|
|
42
|
-
class="MuiSlider-valueLabelLabel"
|
|
43
|
-
>
|
|
44
|
-
1
|
|
45
|
-
</span>
|
|
46
|
-
</span>
|
|
47
|
-
</span>
|
|
48
|
-
</span>
|
|
49
|
-
</span>
|
|
50
|
-
`;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
// These are important to properly display the component
|
|
2
|
-
@import '@equinor/videx-wellog/dist/styles/log-styles.scss';
|
|
3
|
-
//@import '@equinor/videx-wellog/dist/styles/loader-styles.scss';
|
|
4
|
-
@import '@equinor/videx-wellog/dist/styles/scale-styles.scss';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//$scale_slave_scale_bg: #ff0000;
|
|
8
|
-
|
|
9
|
-
.welllogview {
|
|
10
|
-
// for videx-wellog log-controller
|
|
11
|
-
height: inherit;
|
|
12
|
-
|
|
13
|
-
.track {
|
|
14
|
-
.track-title {
|
|
15
|
-
background-color: #ccc;
|
|
16
|
-
font-weight: normal;
|
|
17
|
-
color: black;
|
|
18
|
-
font-family: inherit;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.selected {
|
|
23
|
-
background-color: rgba(255, 155, 79, 0.1);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.slave-scale {
|
|
27
|
-
background-color: rgba(255, 255, 255, 0.0235); // to make track selection background visible
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.track-container {
|
|
31
|
-
pointer-events: all; // to allow mouse events handling
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.overlay {
|
|
35
|
-
.depth {
|
|
36
|
-
//not work?? position : absolute;
|
|
37
|
-
right: 5px;
|
|
38
|
-
bottom: 5px;
|
|
39
|
-
display: inline-block;
|
|
40
|
-
|
|
41
|
-
padding: 2px;
|
|
42
|
-
border-radius: 4px;
|
|
43
|
-
text-align: right;
|
|
44
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
45
|
-
color: white;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.rubber-band {
|
|
49
|
-
background-color: rgba(255, 0, 0, 0.1);
|
|
50
|
-
|
|
51
|
-
div {
|
|
52
|
-
background-color: rgba(255, 0, 0, 0.7);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.pinned {
|
|
57
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
58
|
-
|
|
59
|
-
div {
|
|
60
|
-
background-color: rgba(0, 255, 0, 0.7);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.title {
|
|
66
|
-
color: rgb(0, 0, 0);
|
|
67
|
-
background-color: rgb(241, 241, 241);
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
text-align: center;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.error {
|
|
73
|
-
color: rgb(255, 64, 64);
|
|
74
|
-
background-color: rgb(255, 255, 192)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.wellpick {
|
|
78
|
-
font-size: 9px;
|
|
79
|
-
.vertical-text {
|
|
80
|
-
writing-mode: vertical-lr;
|
|
81
|
-
transform: rotate(180deg);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.wellpick-fill {
|
|
86
|
-
opacity: 0.3;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.wellpick-pattern {
|
|
90
|
-
opacity: 0.57
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
//
|
|
96
|
-
.welllogspacer {
|
|
97
|
-
.wellpick {
|
|
98
|
-
opacity: 0.9
|
|
99
|
-
}
|
|
100
|
-
.wellpick-fill {
|
|
101
|
-
opacity: 0.3
|
|
102
|
-
}
|
|
103
|
-
.wellpick-pattern {
|
|
104
|
-
opacity: 0.57
|
|
105
|
-
}
|
|
106
|
-
}
|
package/src/custom.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare module "*.svg" {
|
|
2
|
-
import React = require("react");
|
|
3
|
-
export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>;
|
|
4
|
-
const src: string;
|
|
5
|
-
export default src;
|
|
6
|
-
}
|
|
7
|
-
declare module "*.png";
|
|
8
|
-
declare module "@emerson-eps/color-tables";
|
|
9
|
-
declare module "deck.gl";
|
|
10
|
-
declare module "*.scss" {
|
|
11
|
-
const content: string;
|
|
12
|
-
export default content;
|
|
13
|
-
}
|