@equinor/videx-map 1.14.3 → 1.14.5
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/EventHandler.d.ts +21 -21
- package/dist/ExplorationLayer.d.ts +38 -38
- package/dist/FaultlineModule.d.ts +51 -51
- package/dist/FieldModule.d.ts +113 -113
- package/dist/GeoJSONModule/GeoJSONModule.d.ts +47 -47
- package/dist/GeoJSONModule/constants.d.ts +13 -13
- package/dist/GeoJSONModule/index.d.ts +6 -6
- package/dist/GeoJSONModule/interfaces.d.ts +15 -15
- package/dist/GeoJSONModule/labels.d.ts +46 -46
- package/dist/GeoJSONModule/linestring.d.ts +55 -55
- package/dist/GeoJSONModule/multipolygon.d.ts +94 -94
- package/dist/GeoJSONModule/point.d.ts +26 -26
- package/dist/GeoJSONModule/polygon.d.ts +96 -96
- package/dist/GeoJSONModule/shader.d.ts +10 -10
- package/dist/ModuleInterface.d.ts +26 -26
- package/dist/OutlineModule.d.ts +81 -81
- package/dist/ResizeConfigInterface.d.ts +14 -14
- package/dist/WellboreModule.d.ts +126 -126
- package/dist/index.d.ts +8 -8
- package/dist/pixiOverlayInterfaces.d.ts +16 -16
- package/dist/utils/ComparableArray.d.ts +60 -60
- package/dist/utils/LineDictionary.d.ts +89 -89
- package/dist/utils/LineInterpolator.d.ts +84 -84
- package/dist/utils/Log.d.ts +1 -1
- package/dist/utils/Mesh.d.ts +46 -46
- package/dist/utils/PointDictionary.d.ts +58 -58
- package/dist/utils/Radius.d.ts +2 -2
- package/dist/utils/Rect.d.ts +27 -27
- package/dist/utils/TriangleDictionary.d.ts +21 -21
- package/dist/utils/WellboreMesh.d.ts +51 -51
- package/dist/utils/centerOfMass.d.ts +8 -8
- package/dist/utils/fields/Highlighter.d.ts +33 -33
- package/dist/utils/fields/LabelManager.d.ts +62 -62
- package/dist/utils/fields/groupLabels.d.ts +5 -5
- package/dist/utils/fields/preprocessFields.d.ts +29 -29
- package/dist/utils/generateCircle.d.ts +10 -10
- package/dist/utils/linePoint.d.ts +27 -27
- package/dist/utils/lineReducer.d.ts +9 -9
- package/dist/utils/wellbores/AsyncLoop.d.ts +35 -35
- package/dist/utils/wellbores/Colors.d.ts +40 -40
- package/dist/utils/wellbores/Config.d.ts +80 -80
- package/dist/utils/wellbores/DataManager.d.ts +15 -15
- package/dist/utils/wellbores/Highlight.d.ts +18 -18
- package/dist/utils/wellbores/LabelType.d.ts +9 -9
- package/dist/utils/wellbores/Projector.d.ts +20 -20
- package/dist/utils/wellbores/RealtimeWellbore.d.ts +21 -21
- package/dist/utils/wellbores/Shader.d.ts +41 -41
- package/dist/utils/wellbores/data/Group.d.ts +48 -48
- package/dist/utils/wellbores/data/RootData.d.ts +29 -29
- package/dist/utils/wellbores/data/SourceData.d.ts +25 -25
- package/dist/utils/wellbores/data/WellboreData.d.ts +76 -76
- package/dist/utils/wellbores/data/WellboreEventData.d.ts +16 -16
- package/dist/utils/wellbores/data/details/Detail.d.ts +20 -20
- package/dist/utils/wellbores/data/details/DetailOptions.d.ts +7 -7
- package/dist/utils/wellbores/data/details/ShoeDetail.d.ts +14 -14
- package/dist/utils/wellbores/data/details/index.d.ts +11 -11
- package/dist/utils/wellbores/data/index.d.ts +6 -6
- package/dist/utils/wellbores/highlight-helper.d.ts +6 -6
- package/dist/utils/wellbores/intervals.d.ts +15 -15
- package/dist/utils/wellbores/labels/Label.d.ts +39 -39
- package/dist/utils/wellbores/labels/index.d.ts +2 -2
- package/dist/utils/wellbores/labels/label-helper.d.ts +3 -3
- package/dist/utils/wellbores/registries/CallbackRegistry.d.ts +23 -23
- package/dist/utils/wellbores/registries/ColorRegistry.d.ts +22 -22
- package/dist/utils/wellbores/registries/index.d.ts +2 -2
- package/package.json +23 -13
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import Vector2 from '@equinor/videx-vector2';
|
|
2
|
-
import { VectorLike } from '@equinor/videx-linear-algebra';
|
|
3
|
-
/**
|
|
4
|
-
* Find the position along a line segment closest to a given point.
|
|
5
|
-
* @param point Reference point
|
|
6
|
-
* @param lineStart Start of line segment
|
|
7
|
-
* @param lineEnd End of line segment
|
|
8
|
-
* @returns Closest point on line
|
|
9
|
-
*/
|
|
10
|
-
export declare function closestPointOnLine(point: Vector2, lineStart: Vector2, lineEnd: Vector2): Vector2;
|
|
11
|
-
/**
|
|
12
|
-
* Find the shortest distance from a point to a line segment.
|
|
13
|
-
* @param point Reference point
|
|
14
|
-
* @param lineStart Start of line segment
|
|
15
|
-
* @param lineEnd End of line segment
|
|
16
|
-
* @returns Distance to line
|
|
17
|
-
*/
|
|
18
|
-
export declare function distanceToLine(point: Vector2, lineStart: Vector2, lineEnd: Vector2): number;
|
|
19
|
-
/**
|
|
20
|
-
* Get the relative displacement of the point in respect to lineStart.
|
|
21
|
-
* X-component contains displacement along line.
|
|
22
|
-
* Y component contains displacement perpendicular to line.
|
|
23
|
-
* @param point Reference point
|
|
24
|
-
* @param lineStart Start of line segment
|
|
25
|
-
* @param lineEnd End of line segment
|
|
26
|
-
*/
|
|
27
|
-
export declare function displacementToLineOrigin(point: VectorLike, lineStart: VectorLike, lineEnd: VectorLike): Vector2;
|
|
1
|
+
import Vector2 from '@equinor/videx-vector2';
|
|
2
|
+
import { VectorLike } from '@equinor/videx-linear-algebra';
|
|
3
|
+
/**
|
|
4
|
+
* Find the position along a line segment closest to a given point.
|
|
5
|
+
* @param point Reference point
|
|
6
|
+
* @param lineStart Start of line segment
|
|
7
|
+
* @param lineEnd End of line segment
|
|
8
|
+
* @returns Closest point on line
|
|
9
|
+
*/
|
|
10
|
+
export declare function closestPointOnLine(point: Vector2, lineStart: Vector2, lineEnd: Vector2): Vector2;
|
|
11
|
+
/**
|
|
12
|
+
* Find the shortest distance from a point to a line segment.
|
|
13
|
+
* @param point Reference point
|
|
14
|
+
* @param lineStart Start of line segment
|
|
15
|
+
* @param lineEnd End of line segment
|
|
16
|
+
* @returns Distance to line
|
|
17
|
+
*/
|
|
18
|
+
export declare function distanceToLine(point: Vector2, lineStart: Vector2, lineEnd: Vector2): number;
|
|
19
|
+
/**
|
|
20
|
+
* Get the relative displacement of the point in respect to lineStart.
|
|
21
|
+
* X-component contains displacement along line.
|
|
22
|
+
* Y component contains displacement perpendicular to line.
|
|
23
|
+
* @param point Reference point
|
|
24
|
+
* @param lineStart Start of line segment
|
|
25
|
+
* @param lineEnd End of line segment
|
|
26
|
+
*/
|
|
27
|
+
export declare function displacementToLineOrigin(point: VectorLike, lineStart: VectorLike, lineEnd: VectorLike): Vector2;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { VectorLike } from '@equinor/videx-linear-algebra';
|
|
2
|
-
/**
|
|
3
|
-
* Reduce complexity of a line by removing points with little information.
|
|
4
|
-
* @param points Collection of points to reduce
|
|
5
|
-
* @param maxDeviation Max deviation of a single point
|
|
6
|
-
* @param distanceWeight Scale allowed deviatin by distance from last point
|
|
7
|
-
* @returns Reduced line
|
|
8
|
-
*/
|
|
9
|
-
export declare function reduce<T extends VectorLike>(points: T[], maxDeviation: number, distanceWeight: number): T[];
|
|
1
|
+
import { VectorLike } from '@equinor/videx-linear-algebra';
|
|
2
|
+
/**
|
|
3
|
+
* Reduce complexity of a line by removing points with little information.
|
|
4
|
+
* @param points Collection of points to reduce
|
|
5
|
+
* @param maxDeviation Max deviation of a single point
|
|
6
|
+
* @param distanceWeight Scale allowed deviatin by distance from last point
|
|
7
|
+
* @returns Reduced line
|
|
8
|
+
*/
|
|
9
|
+
export declare function reduce<T extends VectorLike>(points: T[], maxDeviation: number, distanceWeight: number): T[];
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
interface Config {
|
|
3
|
-
/** Total number of iterations. */
|
|
4
|
-
iterations: number;
|
|
5
|
-
/** Size of each individual batch. */
|
|
6
|
-
batchSize: number;
|
|
7
|
-
/** Function to call for each iteration. */
|
|
8
|
-
func: (i: number) => void;
|
|
9
|
-
/** Function to call after each batch. */
|
|
10
|
-
postFunc?: () => void;
|
|
11
|
-
/** Function to call after finishing loop. */
|
|
12
|
-
endFunc?: () => void;
|
|
13
|
-
}
|
|
14
|
-
/** Class for running non-blocking for loops. */
|
|
15
|
-
export default class AsyncLoop {
|
|
16
|
-
/** Dictionary with intervals */
|
|
17
|
-
timers: {
|
|
18
|
-
[key: string]: NodeJS.Timeout;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Start a new asynchronous loop.
|
|
22
|
-
* @param key Key of loop
|
|
23
|
-
* @param config Configurations for asynchronous loop.
|
|
24
|
-
* @param interval Configurations interval between batches
|
|
25
|
-
*/
|
|
26
|
-
Start(key: string, config: Config, interval?: number): void;
|
|
27
|
-
/**
|
|
28
|
-
* Stop a single loop
|
|
29
|
-
* @param key Key of loop
|
|
30
|
-
*/
|
|
31
|
-
Stop(key: string): void;
|
|
32
|
-
/** Stop all ongoing loops */
|
|
33
|
-
StopAll(): void;
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
interface Config {
|
|
3
|
+
/** Total number of iterations. */
|
|
4
|
+
iterations: number;
|
|
5
|
+
/** Size of each individual batch. */
|
|
6
|
+
batchSize: number;
|
|
7
|
+
/** Function to call for each iteration. */
|
|
8
|
+
func: (i: number) => void;
|
|
9
|
+
/** Function to call after each batch. */
|
|
10
|
+
postFunc?: () => void;
|
|
11
|
+
/** Function to call after finishing loop. */
|
|
12
|
+
endFunc?: () => void;
|
|
13
|
+
}
|
|
14
|
+
/** Class for running non-blocking for loops. */
|
|
15
|
+
export default class AsyncLoop {
|
|
16
|
+
/** Dictionary with intervals */
|
|
17
|
+
timers: {
|
|
18
|
+
[key: string]: NodeJS.Timeout;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Start a new asynchronous loop.
|
|
22
|
+
* @param key Key of loop
|
|
23
|
+
* @param config Configurations for asynchronous loop.
|
|
24
|
+
* @param interval Configurations interval between batches
|
|
25
|
+
*/
|
|
26
|
+
Start(key: string, config: Config, interval?: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* Stop a single loop
|
|
29
|
+
* @param key Key of loop
|
|
30
|
+
*/
|
|
31
|
+
Stop(key: string): void;
|
|
32
|
+
/** Stop all ongoing loops */
|
|
33
|
+
StopAll(): void;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
type vec3 = [number, number, number];
|
|
2
|
-
export interface Color {
|
|
3
|
-
col1: vec3;
|
|
4
|
-
col2: vec3;
|
|
5
|
-
labelBg: number;
|
|
6
|
-
}
|
|
7
|
-
export interface Colors {
|
|
8
|
-
fontColor: number;
|
|
9
|
-
interactFontColor: number;
|
|
10
|
-
default: Color;
|
|
11
|
-
highlight: Color;
|
|
12
|
-
multiHighlight: Color;
|
|
13
|
-
selected: Color;
|
|
14
|
-
}
|
|
15
|
-
/** Enum for selecting color. [ Default, Highlight, MultiHighlight, Selected ] */
|
|
16
|
-
export declare enum ColorType {
|
|
17
|
-
Default = 0,
|
|
18
|
-
Highlight = 1,
|
|
19
|
-
MultiHighlight = 2,
|
|
20
|
-
Selected = 3
|
|
21
|
-
}
|
|
22
|
-
export interface InputColors {
|
|
23
|
-
fontColor?: number;
|
|
24
|
-
interactFontColor?: number;
|
|
25
|
-
defaultColor1?: vec3;
|
|
26
|
-
defaultColor2?: vec3;
|
|
27
|
-
defaultLabelBg?: number;
|
|
28
|
-
highlightColor1?: vec3;
|
|
29
|
-
highlightColor2?: vec3;
|
|
30
|
-
highlightLabelBg?: number;
|
|
31
|
-
multiHighlightColor1?: vec3;
|
|
32
|
-
multiHighlightColor2?: vec3;
|
|
33
|
-
multiHighlightLabelBg?: number;
|
|
34
|
-
selectedColor1?: vec3;
|
|
35
|
-
selectedColor2?: vec3;
|
|
36
|
-
selectedLabelBg?: number;
|
|
37
|
-
}
|
|
38
|
-
/** Get default configuration for wellbores. */
|
|
39
|
-
export declare function getDefaultColors(input?: InputColors): Colors;
|
|
40
|
-
export {};
|
|
1
|
+
type vec3 = [number, number, number];
|
|
2
|
+
export interface Color {
|
|
3
|
+
col1: vec3;
|
|
4
|
+
col2: vec3;
|
|
5
|
+
labelBg: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Colors {
|
|
8
|
+
fontColor: number;
|
|
9
|
+
interactFontColor: number;
|
|
10
|
+
default: Color;
|
|
11
|
+
highlight: Color;
|
|
12
|
+
multiHighlight: Color;
|
|
13
|
+
selected: Color;
|
|
14
|
+
}
|
|
15
|
+
/** Enum for selecting color. [ Default, Highlight, MultiHighlight, Selected ] */
|
|
16
|
+
export declare enum ColorType {
|
|
17
|
+
Default = 0,
|
|
18
|
+
Highlight = 1,
|
|
19
|
+
MultiHighlight = 2,
|
|
20
|
+
Selected = 3
|
|
21
|
+
}
|
|
22
|
+
export interface InputColors {
|
|
23
|
+
fontColor?: number;
|
|
24
|
+
interactFontColor?: number;
|
|
25
|
+
defaultColor1?: vec3;
|
|
26
|
+
defaultColor2?: vec3;
|
|
27
|
+
defaultLabelBg?: number;
|
|
28
|
+
highlightColor1?: vec3;
|
|
29
|
+
highlightColor2?: vec3;
|
|
30
|
+
highlightLabelBg?: number;
|
|
31
|
+
multiHighlightColor1?: vec3;
|
|
32
|
+
multiHighlightColor2?: vec3;
|
|
33
|
+
multiHighlightLabelBg?: number;
|
|
34
|
+
selectedColor1?: vec3;
|
|
35
|
+
selectedColor2?: vec3;
|
|
36
|
+
selectedLabelBg?: number;
|
|
37
|
+
}
|
|
38
|
+
/** Get default configuration for wellbores. */
|
|
39
|
+
export declare function getDefaultColors(input?: InputColors): Colors;
|
|
40
|
+
export {};
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { WellboreEventData } from './data';
|
|
2
|
-
import { HighlightEvent } from './data/WellboreEventData';
|
|
3
|
-
import { EventHandler } from '../../EventHandler';
|
|
4
|
-
import { ResizeConfig } from '../../ResizeConfigInterface';
|
|
5
|
-
export interface TickConfig {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
/** Interface for wellbore config. */
|
|
10
|
-
export interface Config {
|
|
11
|
-
/** Relative scale of all components (Default: 1.0). */
|
|
12
|
-
scale: number;
|
|
13
|
-
/** Amount of wellbores per batch. (Default: 20) */
|
|
14
|
-
batchSize: number;
|
|
15
|
-
/** Origin zoom level, i.e. where input for scaling function is 0. (Default: 0) */
|
|
16
|
-
zoomOrigin: number;
|
|
17
|
-
/** Grid size to control resolution of spacial indexing. */
|
|
18
|
-
gridSize: number;
|
|
19
|
-
/** Resize configurations of wellbores. */
|
|
20
|
-
wellboreResize: ResizeConfig;
|
|
21
|
-
/** Resize configurations of roots. */
|
|
22
|
-
rootResize: ResizeConfig;
|
|
23
|
-
/** Settings for ticks along wellbore lines, these do not scale. */
|
|
24
|
-
tick: TickConfig;
|
|
25
|
-
/** Function to be called when a wellbore is selected. */
|
|
26
|
-
onWellboreClick?: (wellbore: WellboreEventData) => void;
|
|
27
|
-
/** Function to be called when wellbores are highlighted. */
|
|
28
|
-
onHighlightOn?: (event: HighlightEvent) => void;
|
|
29
|
-
/** Function to be called when highlight is removed. */
|
|
30
|
-
onHighlightOff?: () => void;
|
|
31
|
-
}
|
|
32
|
-
/** Data from 'InputConfig' not included in 'Config'. */
|
|
33
|
-
export interface ExtraConfig {
|
|
34
|
-
/** Opacity of label background. (Default: 0.5) */
|
|
35
|
-
labelBgOpacity: number;
|
|
36
|
-
/** Scale of labels. (Default: 0.011) */
|
|
37
|
-
labelScale: number;
|
|
38
|
-
/** Size of font. (Default: 24) */
|
|
39
|
-
fontSize: number;
|
|
40
|
-
/** Zoom event handler. */
|
|
41
|
-
scaling: (zoom: number) => number;
|
|
42
|
-
/** Size of wellbore dash. (Default: 0.01) */
|
|
43
|
-
wellboreDash: number;
|
|
44
|
-
}
|
|
45
|
-
export interface InputConfig {
|
|
46
|
-
/** Relative scale of all components. (Default: 1.0) */
|
|
47
|
-
scale?: number;
|
|
48
|
-
/** Scale of labels. (Default: 0.011) */
|
|
49
|
-
labelScale?: number;
|
|
50
|
-
/** Opacity of label background. (Default: 0.5) */
|
|
51
|
-
labelBgOpacity?: number;
|
|
52
|
-
/** Size of font. (Default: 24) */
|
|
53
|
-
fontSize?: number;
|
|
54
|
-
/** Amount of wellbores per batch. (Default: 25) */
|
|
55
|
-
batchSize?: number;
|
|
56
|
-
/** Origin zoom level, i.e. where input for scaling function is 0. (Default: 0) */
|
|
57
|
-
zoomOrigin?: number;
|
|
58
|
-
/** Size of wellbore dash. (Default: 0.01) */
|
|
59
|
-
wellboreDash?: number;
|
|
60
|
-
/** Provide your custom event handler. */
|
|
61
|
-
customEventHandler?: EventHandler;
|
|
62
|
-
/** Zoom event handler. */
|
|
63
|
-
scaling?: (zoom: number) => number;
|
|
64
|
-
/** Grid size to control resolution of spatial indexing. */
|
|
65
|
-
gridSize?: number;
|
|
66
|
-
/** Resize configurations of wellbores. */
|
|
67
|
-
wellboreResize: ResizeConfig;
|
|
68
|
-
/** Resize configurations of roots. */
|
|
69
|
-
rootResize?: ResizeConfig;
|
|
70
|
-
/** Settings for ticks along wellbore lines, these do not scale. */
|
|
71
|
-
tick?: TickConfig;
|
|
72
|
-
/** Function to be called when a wellbore is selected. */
|
|
73
|
-
onWellboreClick?: (selected: WellboreEventData) => void;
|
|
74
|
-
/** Function to be called when wellbores are highlighted. */
|
|
75
|
-
onHighlightOn?: (event: HighlightEvent) => void;
|
|
76
|
-
/** Function to be called when highlight is removed. */
|
|
77
|
-
onHighlightOff?: () => void;
|
|
78
|
-
}
|
|
79
|
-
/** Get default configuration for wellbores. */
|
|
80
|
-
export declare function getDefaultConfig(input?: InputConfig): [Config, ExtraConfig];
|
|
1
|
+
import { WellboreEventData } from './data';
|
|
2
|
+
import { HighlightEvent } from './data/WellboreEventData';
|
|
3
|
+
import { EventHandler } from '../../EventHandler';
|
|
4
|
+
import { ResizeConfig } from '../../ResizeConfigInterface';
|
|
5
|
+
export interface TickConfig {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
9
|
+
/** Interface for wellbore config. */
|
|
10
|
+
export interface Config {
|
|
11
|
+
/** Relative scale of all components (Default: 1.0). */
|
|
12
|
+
scale: number;
|
|
13
|
+
/** Amount of wellbores per batch. (Default: 20) */
|
|
14
|
+
batchSize: number;
|
|
15
|
+
/** Origin zoom level, i.e. where input for scaling function is 0. (Default: 0) */
|
|
16
|
+
zoomOrigin: number;
|
|
17
|
+
/** Grid size to control resolution of spacial indexing. */
|
|
18
|
+
gridSize: number;
|
|
19
|
+
/** Resize configurations of wellbores. */
|
|
20
|
+
wellboreResize: ResizeConfig;
|
|
21
|
+
/** Resize configurations of roots. */
|
|
22
|
+
rootResize: ResizeConfig;
|
|
23
|
+
/** Settings for ticks along wellbore lines, these do not scale. */
|
|
24
|
+
tick: TickConfig;
|
|
25
|
+
/** Function to be called when a wellbore is selected. */
|
|
26
|
+
onWellboreClick?: (wellbore: WellboreEventData) => void;
|
|
27
|
+
/** Function to be called when wellbores are highlighted. */
|
|
28
|
+
onHighlightOn?: (event: HighlightEvent) => void;
|
|
29
|
+
/** Function to be called when highlight is removed. */
|
|
30
|
+
onHighlightOff?: () => void;
|
|
31
|
+
}
|
|
32
|
+
/** Data from 'InputConfig' not included in 'Config'. */
|
|
33
|
+
export interface ExtraConfig {
|
|
34
|
+
/** Opacity of label background. (Default: 0.5) */
|
|
35
|
+
labelBgOpacity: number;
|
|
36
|
+
/** Scale of labels. (Default: 0.011) */
|
|
37
|
+
labelScale: number;
|
|
38
|
+
/** Size of font. (Default: 24) */
|
|
39
|
+
fontSize: number;
|
|
40
|
+
/** Zoom event handler. */
|
|
41
|
+
scaling: (zoom: number) => number;
|
|
42
|
+
/** Size of wellbore dash. (Default: 0.01) */
|
|
43
|
+
wellboreDash: number;
|
|
44
|
+
}
|
|
45
|
+
export interface InputConfig {
|
|
46
|
+
/** Relative scale of all components. (Default: 1.0) */
|
|
47
|
+
scale?: number;
|
|
48
|
+
/** Scale of labels. (Default: 0.011) */
|
|
49
|
+
labelScale?: number;
|
|
50
|
+
/** Opacity of label background. (Default: 0.5) */
|
|
51
|
+
labelBgOpacity?: number;
|
|
52
|
+
/** Size of font. (Default: 24) */
|
|
53
|
+
fontSize?: number;
|
|
54
|
+
/** Amount of wellbores per batch. (Default: 25) */
|
|
55
|
+
batchSize?: number;
|
|
56
|
+
/** Origin zoom level, i.e. where input for scaling function is 0. (Default: 0) */
|
|
57
|
+
zoomOrigin?: number;
|
|
58
|
+
/** Size of wellbore dash. (Default: 0.01) */
|
|
59
|
+
wellboreDash?: number;
|
|
60
|
+
/** Provide your custom event handler. */
|
|
61
|
+
customEventHandler?: EventHandler;
|
|
62
|
+
/** Zoom event handler. */
|
|
63
|
+
scaling?: (zoom: number) => number;
|
|
64
|
+
/** Grid size to control resolution of spatial indexing. */
|
|
65
|
+
gridSize?: number;
|
|
66
|
+
/** Resize configurations of wellbores. */
|
|
67
|
+
wellboreResize: ResizeConfig;
|
|
68
|
+
/** Resize configurations of roots. */
|
|
69
|
+
rootResize?: ResizeConfig;
|
|
70
|
+
/** Settings for ticks along wellbore lines, these do not scale. */
|
|
71
|
+
tick?: TickConfig;
|
|
72
|
+
/** Function to be called when a wellbore is selected. */
|
|
73
|
+
onWellboreClick?: (selected: WellboreEventData) => void;
|
|
74
|
+
/** Function to be called when wellbores are highlighted. */
|
|
75
|
+
onHighlightOn?: (event: HighlightEvent) => void;
|
|
76
|
+
/** Function to be called when highlight is removed. */
|
|
77
|
+
onHighlightOff?: () => void;
|
|
78
|
+
}
|
|
79
|
+
/** Get default configuration for wellbores. */
|
|
80
|
+
export declare function getDefaultConfig(input?: InputConfig): [Config, ExtraConfig];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { SourceData, WellboreData, RootData, Group } from './data';
|
|
2
|
-
export default abstract class DataManager {
|
|
3
|
-
wellbores: {
|
|
4
|
-
[key: number]: WellboreData;
|
|
5
|
-
};
|
|
6
|
-
roots: {
|
|
7
|
-
[key: number]: RootData;
|
|
8
|
-
};
|
|
9
|
-
/** Map group keys ('Drilled', 'Planned', etc.) to keys in wellbores dictionary. */
|
|
10
|
-
groups: {
|
|
11
|
-
[key: string]: Group;
|
|
12
|
-
};
|
|
13
|
-
addWellbore(_key: number, _data: SourceData): void;
|
|
14
|
-
removeWellbore(_key: number): void;
|
|
15
|
-
}
|
|
1
|
+
import { SourceData, WellboreData, RootData, Group } from './data';
|
|
2
|
+
export default abstract class DataManager {
|
|
3
|
+
wellbores: {
|
|
4
|
+
[key: number]: WellboreData;
|
|
5
|
+
};
|
|
6
|
+
roots: {
|
|
7
|
+
[key: number]: RootData;
|
|
8
|
+
};
|
|
9
|
+
/** Map group keys ('Drilled', 'Planned', etc.) to keys in wellbores dictionary. */
|
|
10
|
+
groups: {
|
|
11
|
+
[key: string]: Group;
|
|
12
|
+
};
|
|
13
|
+
addWellbore(_key: number, _data: SourceData): void;
|
|
14
|
+
removeWellbore(_key: number): void;
|
|
15
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { WellboreData, RootData } from './data';
|
|
2
|
-
export declare class Highlight {
|
|
3
|
-
active: boolean;
|
|
4
|
-
root: RootData;
|
|
5
|
-
wellbores: WellboreData[];
|
|
6
|
-
/** Return true of highlight is single. */
|
|
7
|
-
get single(): boolean;
|
|
8
|
-
/** Get first wellbore. */
|
|
9
|
-
get first(): WellboreData;
|
|
10
|
-
/** Set highlight */
|
|
11
|
-
set(root: RootData, wellbores: WellboreData[]): void;
|
|
12
|
-
private highlightRoot;
|
|
13
|
-
private highlightWellbores;
|
|
14
|
-
clear(): void;
|
|
15
|
-
private clearRoot;
|
|
16
|
-
private clearWellbores;
|
|
17
|
-
equals(root: RootData, wellbores: WellboreData[]): boolean;
|
|
18
|
-
}
|
|
1
|
+
import { WellboreData, RootData } from './data';
|
|
2
|
+
export declare class Highlight {
|
|
3
|
+
active: boolean;
|
|
4
|
+
root: RootData;
|
|
5
|
+
wellbores: WellboreData[];
|
|
6
|
+
/** Return true of highlight is single. */
|
|
7
|
+
get single(): boolean;
|
|
8
|
+
/** Get first wellbore. */
|
|
9
|
+
get first(): WellboreData;
|
|
10
|
+
/** Set highlight */
|
|
11
|
+
set(root: RootData, wellbores: WellboreData[]): void;
|
|
12
|
+
private highlightRoot;
|
|
13
|
+
private highlightWellbores;
|
|
14
|
+
clear(): void;
|
|
15
|
+
private clearRoot;
|
|
16
|
+
private clearWellbores;
|
|
17
|
+
equals(root: RootData, wellbores: WellboreData[]): boolean;
|
|
18
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** Enum for dividing labels into three groups. */
|
|
2
|
-
export declare enum LabelType {
|
|
3
|
-
/** Labels attached to wellbores. */
|
|
4
|
-
Wellbore = 0,
|
|
5
|
-
/** Multiple wellbore-labels or under root. */
|
|
6
|
-
Multi = 1,
|
|
7
|
-
/** Single label under root. */
|
|
8
|
-
Single = 2
|
|
9
|
-
}
|
|
1
|
+
/** Enum for dividing labels into three groups. */
|
|
2
|
+
export declare enum LabelType {
|
|
3
|
+
/** Labels attached to wellbores. */
|
|
4
|
+
Wellbore = 0,
|
|
5
|
+
/** Multiple wellbore-labels or under root. */
|
|
6
|
+
Multi = 1,
|
|
7
|
+
/** Single label under root. */
|
|
8
|
+
Single = 2
|
|
9
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import Vector2 from '@equinor/videx-vector2';
|
|
2
|
-
type projectFunction = (coord: [number, number], zoom?: number) => {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
};
|
|
6
|
-
export default class Projector {
|
|
7
|
-
project: projectFunction;
|
|
8
|
-
constructor(project: projectFunction);
|
|
9
|
-
get(coord: [number, number], zoom?: number): {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
};
|
|
13
|
-
getVector2(coord: [number, number], zoom?: number): Vector2;
|
|
14
|
-
batch(coords: [number, number][], zoom?: number): {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
}[];
|
|
18
|
-
batchVector2(coords: [number, number][], zoom?: number): Vector2[];
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
import Vector2 from '@equinor/videx-vector2';
|
|
2
|
+
type projectFunction = (coord: [number, number], zoom?: number) => {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
export default class Projector {
|
|
7
|
+
project: projectFunction;
|
|
8
|
+
constructor(project: projectFunction);
|
|
9
|
+
get(coord: [number, number], zoom?: number): {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
getVector2(coord: [number, number], zoom?: number): Vector2;
|
|
14
|
+
batch(coords: [number, number][], zoom?: number): {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
}[];
|
|
18
|
+
batchVector2(coords: [number, number][], zoom?: number): Vector2[];
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { WellboreData } from './data/WellboreData';
|
|
2
|
-
import { pixiOverlayBase } from '../../pixiOverlayInterfaces';
|
|
3
|
-
type vec2 = [number, number];
|
|
4
|
-
/** Class for handling realtime position of wellbore. */
|
|
5
|
-
export default class RealtimeWellbore {
|
|
6
|
-
private map;
|
|
7
|
-
private root;
|
|
8
|
-
private prevCoords;
|
|
9
|
-
constructor(pixiOverlay: pixiOverlayBase, wellbore: WellboreData);
|
|
10
|
-
constructor(map: L.Map, wellbore: WellboreData);
|
|
11
|
-
/** Get pixel coordinates of wellbore within map. */
|
|
12
|
-
get pixelCoordinates(): vec2;
|
|
13
|
-
/** Get pixel coordinates and check if value have changed since last call */
|
|
14
|
-
getPixelCoordinates(): {
|
|
15
|
-
coords: vec2;
|
|
16
|
-
changed: boolean;
|
|
17
|
-
};
|
|
18
|
-
/** Returns true, if coordinates are equal with delta precision */
|
|
19
|
-
private coordinatesEqual;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
1
|
+
import { WellboreData } from './data/WellboreData';
|
|
2
|
+
import { pixiOverlayBase } from '../../pixiOverlayInterfaces';
|
|
3
|
+
type vec2 = [number, number];
|
|
4
|
+
/** Class for handling realtime position of wellbore. */
|
|
5
|
+
export default class RealtimeWellbore {
|
|
6
|
+
private map;
|
|
7
|
+
private root;
|
|
8
|
+
private prevCoords;
|
|
9
|
+
constructor(pixiOverlay: pixiOverlayBase, wellbore: WellboreData);
|
|
10
|
+
constructor(map: L.Map, wellbore: WellboreData);
|
|
11
|
+
/** Get pixel coordinates of wellbore within map. */
|
|
12
|
+
get pixelCoordinates(): vec2;
|
|
13
|
+
/** Get pixel coordinates and check if value have changed since last call */
|
|
14
|
+
getPixelCoordinates(): {
|
|
15
|
+
coords: vec2;
|
|
16
|
+
changed: boolean;
|
|
17
|
+
};
|
|
18
|
+
/** Returns true, if coordinates are equal with delta precision */
|
|
19
|
+
private coordinatesEqual;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import * as PIXI from 'pixi.js';
|
|
2
|
-
import { Color } from './Colors';
|
|
3
|
-
type vec3 = [number, number, number];
|
|
4
|
-
/** Uniforms used by the shader. */
|
|
5
|
-
export interface WellboreUniforms {
|
|
6
|
-
/** Color of lighted wellbore on the format: [R, G, B]. */
|
|
7
|
-
wellboreColor1: vec3;
|
|
8
|
-
/** Color of shaded wellbore on the format: [R, G, B]. */
|
|
9
|
-
wellboreColor2: vec3;
|
|
10
|
-
/** True if completion and ticks should be visible. */
|
|
11
|
-
completionVisible: boolean;
|
|
12
|
-
/** True if wellbore should be visible. */
|
|
13
|
-
wellboreVisible: boolean;
|
|
14
|
-
status: number;
|
|
15
|
-
}
|
|
16
|
-
export declare class WellboreShader {
|
|
17
|
-
private static program;
|
|
18
|
-
/**
|
|
19
|
-
* Get shader for wellbore.
|
|
20
|
-
* @param color Color used for wellbore
|
|
21
|
-
* @param wellboreWidth Width of wellbore
|
|
22
|
-
* @return PIXI shader
|
|
23
|
-
*/
|
|
24
|
-
static get(color: Color, completionVisible: boolean, wellboreVisible: boolean): PIXI.Shader;
|
|
25
|
-
/** Build wellbore shader with assigned variables. */
|
|
26
|
-
static build(maxScale: number, wellboreDash: number): void;
|
|
27
|
-
}
|
|
28
|
-
export interface RootUniforms {
|
|
29
|
-
active: boolean;
|
|
30
|
-
circleColor1: [number, number, number];
|
|
31
|
-
circleColor2: [number, number, number];
|
|
32
|
-
rootRadius: number;
|
|
33
|
-
}
|
|
34
|
-
export declare class RootShader {
|
|
35
|
-
private static program;
|
|
36
|
-
/** Get root shader */
|
|
37
|
-
static get(): PIXI.Shader;
|
|
38
|
-
/** Build vertex shader from given resize configs */
|
|
39
|
-
static build(maxScale: number): void;
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
1
|
+
import * as PIXI from 'pixi.js';
|
|
2
|
+
import { Color } from './Colors';
|
|
3
|
+
type vec3 = [number, number, number];
|
|
4
|
+
/** Uniforms used by the shader. */
|
|
5
|
+
export interface WellboreUniforms {
|
|
6
|
+
/** Color of lighted wellbore on the format: [R, G, B]. */
|
|
7
|
+
wellboreColor1: vec3;
|
|
8
|
+
/** Color of shaded wellbore on the format: [R, G, B]. */
|
|
9
|
+
wellboreColor2: vec3;
|
|
10
|
+
/** True if completion and ticks should be visible. */
|
|
11
|
+
completionVisible: boolean;
|
|
12
|
+
/** True if wellbore should be visible. */
|
|
13
|
+
wellboreVisible: boolean;
|
|
14
|
+
status: number;
|
|
15
|
+
}
|
|
16
|
+
export declare class WellboreShader {
|
|
17
|
+
private static program;
|
|
18
|
+
/**
|
|
19
|
+
* Get shader for wellbore.
|
|
20
|
+
* @param color Color used for wellbore
|
|
21
|
+
* @param wellboreWidth Width of wellbore
|
|
22
|
+
* @return PIXI shader
|
|
23
|
+
*/
|
|
24
|
+
static get(color: Color, completionVisible: boolean, wellboreVisible: boolean): PIXI.Shader;
|
|
25
|
+
/** Build wellbore shader with assigned variables. */
|
|
26
|
+
static build(maxScale: number, wellboreDash: number): void;
|
|
27
|
+
}
|
|
28
|
+
export interface RootUniforms {
|
|
29
|
+
active: boolean;
|
|
30
|
+
circleColor1: [number, number, number];
|
|
31
|
+
circleColor2: [number, number, number];
|
|
32
|
+
rootRadius: number;
|
|
33
|
+
}
|
|
34
|
+
export declare class RootShader {
|
|
35
|
+
private static program;
|
|
36
|
+
/** Get root shader */
|
|
37
|
+
static get(): PIXI.Shader;
|
|
38
|
+
/** Build vertex shader from given resize configs */
|
|
39
|
+
static build(maxScale: number): void;
|
|
40
|
+
}
|
|
41
|
+
export {};
|