@equinor/esv-intersection 3.0.11 → 3.1.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.
- package/dist/components/axis.d.ts +47 -0
- package/dist/components/axis.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/constants.d.ts +12 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/control/ExtendedCurveInterpolator.d.ts +1 -0
- package/dist/control/ExtendedCurveInterpolator.d.ts.map +1 -0
- package/dist/control/IntersectionReferenceSystem.d.ts +93 -0
- package/dist/control/IntersectionReferenceSystem.d.ts.map +1 -0
- package/dist/control/LayerManager.d.ts +77 -0
- package/dist/control/LayerManager.d.ts.map +1 -0
- package/dist/control/MainController.d.ts +155 -0
- package/dist/control/MainController.d.ts.map +1 -0
- package/dist/control/ZoomPanHandler.d.ts +160 -0
- package/dist/control/ZoomPanHandler.d.ts.map +1 -0
- package/dist/control/index.d.ts +6 -0
- package/dist/control/index.d.ts.map +1 -0
- package/dist/control/interfaces.d.ts +37 -0
- package/dist/control/interfaces.d.ts.map +1 -0
- package/dist/control/overlay.d.ts +21 -0
- package/dist/control/overlay.d.ts.map +1 -0
- package/dist/datautils/colortable.d.ts +2 -0
- package/dist/datautils/colortable.d.ts.map +1 -0
- package/dist/datautils/findsample.d.ts +3 -0
- package/dist/datautils/findsample.d.ts.map +1 -0
- package/dist/datautils/index.d.ts +7 -0
- package/dist/datautils/index.d.ts.map +1 -0
- package/dist/datautils/interfaces.d.ts +64 -0
- package/dist/datautils/interfaces.d.ts.map +1 -0
- package/dist/datautils/picks.d.ts +75 -0
- package/dist/datautils/picks.d.ts.map +1 -0
- package/dist/datautils/schematicShapeGenerator.d.ts +60 -0
- package/dist/datautils/schematicShapeGenerator.d.ts.map +1 -0
- package/dist/datautils/seismicimage.d.ts +46 -0
- package/dist/datautils/seismicimage.d.ts.map +1 -0
- package/dist/datautils/surfacedata.d.ts +11 -0
- package/dist/datautils/surfacedata.d.ts.map +1 -0
- package/dist/datautils/trajectory.d.ts +15 -0
- package/dist/datautils/trajectory.d.ts.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +608 -589
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/dist/interfaces.d.ts.map +1 -0
- package/dist/layers/CalloutCanvasLayer.d.ts +72 -0
- package/dist/layers/CalloutCanvasLayer.d.ts.map +1 -0
- package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts +22 -0
- package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts.map +1 -0
- package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts +24 -0
- package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts.map +1 -0
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts +21 -0
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts.map +1 -0
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts +27 -0
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts.map +1 -0
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts +18 -0
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts.map +1 -0
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts +25 -0
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts.map +1 -0
- package/dist/layers/GeomodelCanvasLayer.d.ts +29 -0
- package/dist/layers/GeomodelCanvasLayer.d.ts.map +1 -0
- package/dist/layers/GeomodelLabelsLayer.d.ts +50 -0
- package/dist/layers/GeomodelLabelsLayer.d.ts.map +1 -0
- package/dist/layers/GeomodelLayerV2.d.ts +13 -0
- package/dist/layers/GeomodelLayerV2.d.ts.map +1 -0
- package/dist/layers/GridLayer.d.ts +30 -0
- package/dist/layers/GridLayer.d.ts.map +1 -0
- package/dist/layers/ImageCanvasLayer.d.ts +21 -0
- package/dist/layers/ImageCanvasLayer.d.ts.map +1 -0
- package/dist/layers/ReferenceLineLayer.d.ts +29 -0
- package/dist/layers/ReferenceLineLayer.d.ts.map +1 -0
- package/dist/layers/SchematicLayer.d.ts +114 -0
- package/dist/layers/SchematicLayer.d.ts.map +1 -0
- package/dist/layers/SeismicCanvasLayer.d.ts +19 -0
- package/dist/layers/SeismicCanvasLayer.d.ts.map +1 -0
- package/dist/layers/WellborePathLayer.d.ts +18 -0
- package/dist/layers/WellborePathLayer.d.ts.map +1 -0
- package/dist/layers/base/CanvasLayer.d.ts +20 -0
- package/dist/layers/base/CanvasLayer.d.ts.map +1 -0
- package/dist/layers/base/HTMLLayer.d.ts +14 -0
- package/dist/layers/base/HTMLLayer.d.ts.map +1 -0
- package/dist/layers/base/Layer.d.ts +70 -0
- package/dist/layers/base/Layer.d.ts.map +1 -0
- package/dist/layers/base/PixiLayer.d.ts +33 -0
- package/dist/layers/base/PixiLayer.d.ts.map +1 -0
- package/dist/layers/base/SVGLayer.d.ts +14 -0
- package/dist/layers/base/SVGLayer.d.ts.map +1 -0
- package/dist/layers/base/index.d.ts +6 -0
- package/dist/layers/base/index.d.ts.map +1 -0
- package/dist/layers/index.d.ts +17 -0
- package/dist/layers/index.d.ts.map +1 -0
- package/dist/layers/schematicInterfaces.d.ts +210 -0
- package/dist/layers/schematicInterfaces.d.ts.map +1 -0
- package/dist/utils/arc-length.d.ts +1 -0
- package/dist/utils/arc-length.d.ts.map +1 -0
- package/dist/utils/binary-search.d.ts +1 -0
- package/dist/utils/binary-search.d.ts.map +1 -0
- package/dist/utils/color.d.ts +6 -0
- package/dist/utils/color.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/root-finder.d.ts +1 -0
- package/dist/utils/root-finder.d.ts.map +1 -0
- package/dist/utils/text.d.ts +15 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/vectorUtils.d.ts +16 -0
- package/dist/utils/vectorUtils.d.ts.map +1 -0
- package/dist/vendor/pixi-dashed-line/index.d.ts +57 -0
- package/dist/vendor/pixi-dashed-line/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/layers/CalloutCanvasLayer.ts +98 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Selection } from 'd3-selection';
|
|
2
|
+
import { OverlayCallbacks } from './interfaces';
|
|
3
|
+
export declare class Overlay<T> {
|
|
4
|
+
elm: Selection<HTMLDivElement, unknown, null, undefined>;
|
|
5
|
+
source: HTMLDivElement | undefined;
|
|
6
|
+
elements: {
|
|
7
|
+
[propName: string]: Element;
|
|
8
|
+
};
|
|
9
|
+
listeners: {
|
|
10
|
+
[propName: string]: OverlayCallbacks<T>;
|
|
11
|
+
};
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
constructor(caller: T, container: HTMLElement);
|
|
14
|
+
create(key: string, callbacks?: OverlayCallbacks<T>): HTMLElement | undefined;
|
|
15
|
+
register(key: string, callbacks: OverlayCallbacks<T>): void;
|
|
16
|
+
remove(key: string): void;
|
|
17
|
+
setZIndex(zIndex: number): void;
|
|
18
|
+
destroy(): void;
|
|
19
|
+
}
|
|
20
|
+
export declare const overlay: <T>(caller: T, container: HTMLElement) => Overlay<T>;
|
|
21
|
+
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/control/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAA6B,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,qBAAa,OAAO,CAAC,CAAC;IACpB,GAAG,EAAE,SAAS,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,EAAE,cAAc,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAM;IAC/C,SAAS,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAA;KAAE,CAAM;IAC5D,OAAO,UAAQ;gBAEH,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,WAAW;IA8E7C,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,WAAW,GAAG,SAAS;IAc7E,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,IAAI;IAI3D,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IASzB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAI/B,OAAO,IAAI,IAAI;CAGhB;AAED,eAAO,MAAM,OAAO,4BAA6B,WAAW,eAAkD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colortable.d.ts","sourceRoot":"","sources":["../../src/datautils/colortable.ts"],"names":[],"mappings":"AAGA,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAU7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findsample.d.ts","sourceRoot":"","sources":["../../src/datautils/findsample.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CA+CvE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,SAAI,EAAE,WAAW,SAAI,GAAG,MAAM,CAuBpG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/datautils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Survey data from SDMA
|
|
3
|
+
*/
|
|
4
|
+
export interface SurveySample {
|
|
5
|
+
md: number;
|
|
6
|
+
tvd: number;
|
|
7
|
+
easting: number;
|
|
8
|
+
northing: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Strat unit element as retrieved from SDMA
|
|
12
|
+
*/
|
|
13
|
+
export interface StratUnit {
|
|
14
|
+
identifier: string;
|
|
15
|
+
stratUnitParent: string;
|
|
16
|
+
colorR: null | number;
|
|
17
|
+
colorG: null | number;
|
|
18
|
+
colorB: null | number;
|
|
19
|
+
topAge: number;
|
|
20
|
+
baseAge: number;
|
|
21
|
+
stratUnitLevel: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Surfaces meta data as received from surface API with surface values injected
|
|
25
|
+
*/
|
|
26
|
+
export interface SurfaceMetaAndValues {
|
|
27
|
+
data: {
|
|
28
|
+
values: number[];
|
|
29
|
+
};
|
|
30
|
+
visualSettings: {
|
|
31
|
+
displayName: string;
|
|
32
|
+
crossSection: string;
|
|
33
|
+
colors: {
|
|
34
|
+
crossSection: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Surfaces lines ready for drawing by geomodel layer
|
|
40
|
+
*/
|
|
41
|
+
export interface SurfaceLine {
|
|
42
|
+
id?: string;
|
|
43
|
+
label: string;
|
|
44
|
+
color: number | string;
|
|
45
|
+
data: number[][];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Surfaces areas ready for drawing by geomodel layer
|
|
49
|
+
*/
|
|
50
|
+
export interface SurfaceArea {
|
|
51
|
+
id?: string;
|
|
52
|
+
label?: string;
|
|
53
|
+
color: number | string;
|
|
54
|
+
data: number[][];
|
|
55
|
+
exclude?: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Surfaces lines and areas ready for drawing by geomodel layer
|
|
59
|
+
*/
|
|
60
|
+
export interface SurfaceData {
|
|
61
|
+
lines: SurfaceLine[];
|
|
62
|
+
areas: SurfaceArea[];
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/datautils/interfaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;IACF,cAAc,EAAE;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE;YACN,YAAY,EAAE,MAAM,CAAC;SACtB,CAAC;KACH,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Annotation } from '../interfaces';
|
|
2
|
+
type Pick = {
|
|
3
|
+
pickIdentifier?: string;
|
|
4
|
+
confidence: string | null;
|
|
5
|
+
depthReferencePoint: string;
|
|
6
|
+
md: number;
|
|
7
|
+
mdUnit: string;
|
|
8
|
+
tvd: number;
|
|
9
|
+
};
|
|
10
|
+
type PickWithId = {
|
|
11
|
+
identifier: string;
|
|
12
|
+
} & Pick;
|
|
13
|
+
type Unit = {
|
|
14
|
+
identifier: string;
|
|
15
|
+
top: string;
|
|
16
|
+
base: string;
|
|
17
|
+
baseAge: number;
|
|
18
|
+
topAge: number;
|
|
19
|
+
colorR: number;
|
|
20
|
+
colorG: number;
|
|
21
|
+
colorB: number;
|
|
22
|
+
stratUnitLevel: number;
|
|
23
|
+
lithologyType: number;
|
|
24
|
+
stratUnitParent: number;
|
|
25
|
+
};
|
|
26
|
+
type UnitDto = {
|
|
27
|
+
unitName: string;
|
|
28
|
+
topSurface: string;
|
|
29
|
+
baseSurface: string;
|
|
30
|
+
ageBase: number;
|
|
31
|
+
ageTop: number;
|
|
32
|
+
color: {
|
|
33
|
+
r: number;
|
|
34
|
+
g: number;
|
|
35
|
+
b: number;
|
|
36
|
+
};
|
|
37
|
+
level: number;
|
|
38
|
+
lithType: number;
|
|
39
|
+
parent: number;
|
|
40
|
+
};
|
|
41
|
+
type PickAndUnit = PickWithId & UnitDto;
|
|
42
|
+
type PairedPickAndUnit = {
|
|
43
|
+
name: string;
|
|
44
|
+
mdEntry: number;
|
|
45
|
+
tvdEntry: number;
|
|
46
|
+
color: {
|
|
47
|
+
r: number;
|
|
48
|
+
g: number;
|
|
49
|
+
b: number;
|
|
50
|
+
};
|
|
51
|
+
level: number;
|
|
52
|
+
entryPick: PickAndUnit;
|
|
53
|
+
mdExit: number;
|
|
54
|
+
tvdExit: number;
|
|
55
|
+
exitPick: PickAndUnit;
|
|
56
|
+
confidenceEntry: string;
|
|
57
|
+
confidenceExit: string;
|
|
58
|
+
from?: number;
|
|
59
|
+
to?: number;
|
|
60
|
+
};
|
|
61
|
+
export declare const getPicksData: (picksData: {
|
|
62
|
+
unitPicks: PairedPickAndUnit[];
|
|
63
|
+
nonUnitPicks: PickWithId[];
|
|
64
|
+
}) => Annotation[];
|
|
65
|
+
/**
|
|
66
|
+
* Transform data for formation track
|
|
67
|
+
* @param {Pick[]} picks picks
|
|
68
|
+
* @param {Unit[]} stratColumn strat column
|
|
69
|
+
*/
|
|
70
|
+
export declare function transformFormationData(picks: Pick[], stratColumn: Unit[]): {
|
|
71
|
+
unitPicks: PairedPickAndUnit[];
|
|
72
|
+
nonUnitPicks: PickWithId[];
|
|
73
|
+
};
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=picks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picks.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GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,WAAW,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,WAAW,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AA0CF,eAAO,MAAM,YAAY,cAAe;IAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAAC,YAAY,EAAE,UAAU,EAAE,CAAA;CAAE,KAAG,UAAU,EAGhH,CAAC;AAqLJ;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG;IAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAAC,YAAY,EAAE,UAAU,EAAE,CAAA;CAAE,CAmCzI"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IPoint, Point, Texture } from 'pixi.js';
|
|
2
|
+
import { Casing, Cement, CementOptions, CementPlug, CementPlugOptions, CementSqueeze, CementSqueezeOptions, Completion, HoleOptions, HoleSize, ScreenOptions, TubingOptions, Perforation, PerforationOptions, PerforationSubKind } from '../layers/schematicInterfaces';
|
|
3
|
+
import { ComplexRopeSegment } from '../layers/CustomDisplayObjects/ComplexRope';
|
|
4
|
+
export type PerforationShape = ComplexRopeSegment;
|
|
5
|
+
export interface TubularRenderingObject {
|
|
6
|
+
leftPath: Point[];
|
|
7
|
+
rightPath: Point[];
|
|
8
|
+
}
|
|
9
|
+
export interface CasingRenderObject {
|
|
10
|
+
id: string;
|
|
11
|
+
kind: 'casing';
|
|
12
|
+
referenceDiameter: number;
|
|
13
|
+
referenceRadius: number;
|
|
14
|
+
casingWallWidth: number;
|
|
15
|
+
hasShoe: boolean;
|
|
16
|
+
bottom: number;
|
|
17
|
+
zIndex?: number;
|
|
18
|
+
sections: {
|
|
19
|
+
kind: 'casing' | 'casing-window';
|
|
20
|
+
leftPath: Point[];
|
|
21
|
+
rightPath: Point[];
|
|
22
|
+
pathPoints: Point[];
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
25
|
+
export declare const getEndLines: (rightPath: [IPoint, IPoint, ...IPoint[]], leftPath: [IPoint, IPoint, ...IPoint[]]) => {
|
|
26
|
+
top: [IPoint, IPoint];
|
|
27
|
+
bottom: [IPoint, IPoint];
|
|
28
|
+
};
|
|
29
|
+
export declare const overlaps: (top1: number, bottom1: number, top2: number, bottom2: number) => boolean;
|
|
30
|
+
export declare const strictlyOverlaps: (top1: number, bottom1: number, top2: number, bottom2: number) => boolean;
|
|
31
|
+
export declare const uniq: <T>(arr: T[]) => T[];
|
|
32
|
+
export declare const getUniqueDiameterChangeDepths: ([intervalStart, intervalEnd]: [number, number], diameterIntervals: {
|
|
33
|
+
start: number;
|
|
34
|
+
end: number;
|
|
35
|
+
}[]) => number[];
|
|
36
|
+
export declare const findCementOuterDiameterAtDepth: (attachedStrings: (Casing | Completion)[], nonAttachedStrings: (Casing | Completion)[], holes: HoleSize[], depth: number) => number;
|
|
37
|
+
export declare const findPerforationOuterDiameterAtDepth: (nonAttachedStrings: (Casing | Completion)[], holes: HoleSize[], depth: number, perforationSubKind: PerforationSubKind) => number;
|
|
38
|
+
export declare const findCementPlugInnerDiameterAtDepth: (attachedStrings: (Casing | Completion)[], nonAttachedStrings: (Casing | Completion)[], holes: HoleSize[], depth: number) => number;
|
|
39
|
+
export declare const createComplexRopeSegmentsForCement: (cement: Cement, casings: Casing[], completion: Completion[], holes: HoleSize[], exaggerationFactor: number, getPoints: (start: number, end: number) => Point[]) => ComplexRopeSegment[];
|
|
40
|
+
export declare const createComplexRopeSegmentsForCementSqueeze: (squeeze: CementSqueeze, casings: Casing[], completion: Completion[], holes: HoleSize[], exaggerationFactor: number, getPoints: (start: number, end: number) => Point[]) => ComplexRopeSegment[];
|
|
41
|
+
export declare const createComplexRopeSegmentsForCementPlug: (plug: CementPlug, casings: Casing[], completion: Completion[], holes: HoleSize[], exaggerationFactor: number, getPoints: (start: number, end: number) => Point[]) => ComplexRopeSegment[];
|
|
42
|
+
export declare const createHoleBaseTexture: ({ firstColor, secondColor }: HoleOptions, width: number, height: number) => Texture;
|
|
43
|
+
export declare const createScreenTexture: ({ scalingFactor }: ScreenOptions) => Texture;
|
|
44
|
+
export declare const createTubingTexture: ({ innerColor, outerColor, scalingFactor }: TubingOptions) => Texture;
|
|
45
|
+
export declare const createCementTexture: ({ firstColor, secondColor, scalingFactor }: CementOptions) => Texture;
|
|
46
|
+
export declare const createCementPlugTexture: ({ firstColor, secondColor, scalingFactor }: CementPlugOptions) => Texture;
|
|
47
|
+
export declare const createCementSqueezeTexture: ({ firstColor, secondColor, scalingFactor }: CementSqueezeOptions) => Texture;
|
|
48
|
+
export declare const createTubularRenderingObject: (radius: number, pathPoints: IPoint[]) => TubularRenderingObject;
|
|
49
|
+
export type CasingInterval = {
|
|
50
|
+
kind: 'casing' | 'casing-window';
|
|
51
|
+
start: number;
|
|
52
|
+
end: number;
|
|
53
|
+
};
|
|
54
|
+
export declare const getCasingIntervalsWithWindows: (casing: Casing) => CasingInterval[];
|
|
55
|
+
export declare const prepareCasingRenderObject: (exaggerationFactor: number, casing: Casing, getPathPoints: (start: number, end: number) => Point[]) => CasingRenderObject;
|
|
56
|
+
export declare const createComplexRopeSegmentsForPerforation: (perforation: Perforation, casings: Casing[], holes: HoleSize[], exaggerationFactor: number, getPoints: (start: number, end: number) => Point[]) => ComplexRopeSegment[];
|
|
57
|
+
export declare const createPerforationPackingTexture: (perforation: Perforation, perfShape: ComplexRopeSegment, perforationOptions: PerforationOptions) => Texture;
|
|
58
|
+
export declare const createPerforationFracLineTexture: (perforation: Perforation, perfShape: ComplexRopeSegment, perforationOptions: PerforationOptions) => Texture;
|
|
59
|
+
export declare const createPerforationSpikeTexture: (perforation: Perforation, otherPerforations: Perforation[], perfShape: ComplexRopeSegment, perforationOptions: PerforationOptions) => Texture;
|
|
60
|
+
//# sourceMappingURL=schematicShapeGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schematicShapeGenerator.d.ts","sourceRoot":"","sources":["../../src/datautils/schematicShapeGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,KAAK,EAAa,OAAO,EAAc,MAAM,SAAS,CAAC;AAEjF,OAAO,EACL,MAAM,EAEN,MAAM,EACN,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,aAAa,EACb,aAAa,EACb,WAAW,EACX,kBAAkB,EAKlB,kBAAkB,EAEnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAGhF,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClB,SAAS,EAAE,KAAK,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAA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6BAA6B,WAAY,MAAM,KAAG,cAAc,EAqC5E,CAAC;AAEF,eAAO,MAAM,yBAAyB,uBAChB,MAAM,UAClB,MAAM,yBACS,MAAM,OAAO,MAAM,KAAK,KAAK,EAAE,KACrD,kBAuBF,CAAC;AAEF,eAAO,MAAM,uCAAuC,gBACrC,WAAW,WACf,MAAM,EAAE,SACV,QAAQ,EAAE,sBACG,MAAM,qBACP,MAAM,OAAO,MAAM,KAAK,KAAK,EAAE,KACjD,kBAAkB,EAkCpB,CAAC;AAqVF,eAAO,MAAM,+BAA+B,gBAC7B,WAAW,aACb,kBAAkB,sBACT,kBAAkB,KACrC,OAYF,CAAC;AAEF,eAAO,MAAM,gCAAgC,gBAC9B,WAAW,aACb,kBAAkB,sBACT,kBAAkB,KACrC,OAYF,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAC3B,WAAW,qBACL,WAAW,EAAE,aACrB,kBAAkB,sBACT,kBAAkB,KACrC,OAYF,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SeismicCanvasDataOptions } from '../layers/SeismicCanvasLayer';
|
|
2
|
+
export type SeismicInfo = {
|
|
3
|
+
minX: number;
|
|
4
|
+
maxX: number;
|
|
5
|
+
minTvdMsl: number;
|
|
6
|
+
maxTvdMsl: number;
|
|
7
|
+
domain: {
|
|
8
|
+
min: number;
|
|
9
|
+
max: number;
|
|
10
|
+
difference: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const getSeismicOptions: (info: SeismicInfo | null) => SeismicCanvasDataOptions;
|
|
14
|
+
/**
|
|
15
|
+
* Get key information about the seismic data
|
|
16
|
+
* Code originally developed for the REP project
|
|
17
|
+
* @param data Seismic data
|
|
18
|
+
* @param trajectory Wellbore or freehand trajectory
|
|
19
|
+
* @return Key domain and depth information for seismic data
|
|
20
|
+
*/
|
|
21
|
+
export declare function getSeismicInfo(data: {
|
|
22
|
+
datapoints: number[][];
|
|
23
|
+
yAxisValues: number[];
|
|
24
|
+
}, trajectory: number[][]): SeismicInfo | null;
|
|
25
|
+
/**
|
|
26
|
+
* Generate seismic
|
|
27
|
+
* Code originally developed for the REP project
|
|
28
|
+
* @param data Seismic data
|
|
29
|
+
* @param trajectory Wellbore or freehand trajectory
|
|
30
|
+
* @param colormap Color map for rendering
|
|
31
|
+
* @param options.isLeftToRight (optional) draw left to right
|
|
32
|
+
* @param options.seismicRange (optional) Range for mapping seimic values to color map
|
|
33
|
+
* @param options.seismicMin (optional) Min seismic value for mapping seimic values to color map
|
|
34
|
+
* @param options.seismicMax (optional) Max seismic value for mapping seimic values to color map
|
|
35
|
+
* @return Key domain and depth information for seismic data
|
|
36
|
+
*/
|
|
37
|
+
export declare function generateSeismicSliceImage(data: {
|
|
38
|
+
datapoints: number[][];
|
|
39
|
+
yAxisValues: number[];
|
|
40
|
+
}, trajectory: number[][], colormap: string[], options?: {
|
|
41
|
+
isLeftToRight: boolean;
|
|
42
|
+
seismicRange?: number;
|
|
43
|
+
seismicMin?: number;
|
|
44
|
+
seismicMax?: number;
|
|
45
|
+
}): Promise<ImageBitmap | undefined>;
|
|
46
|
+
//# sourceMappingURL=seismicimage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seismicimage.d.ts","sourceRoot":"","sources":["../../src/datautils/seismicimage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAKxE,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,iBAAiB,SAAU,WAAW,GAAG,IAAI,KAAG,wBAe5D,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,GAAG,WAAW,GAAG,IAAI,CAiClI;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,EAAE,CAAA;CAAE,EACvD,UAAU,EAAE,MAAM,EAAE,EAAE,EACtB,QAAQ,EAAE,MAAM,EAAE,EAClB,OAAO,GAAE;IACP,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACK,GAC1B,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CA+ElC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StratUnit, SurfaceMetaAndValues, SurfaceData } from './interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Generate surface data from trajectory, stratcolum and surface data
|
|
4
|
+
* Code originally developed for the REP project
|
|
5
|
+
* @param trajectory Projected trajectory generated from the poslog used when retrieving surface data from surface API
|
|
6
|
+
* @param stratColumn Strat columnd from SMDA
|
|
7
|
+
* @param surfaceData - Surfaces meta data with surface values in data section
|
|
8
|
+
* @return Surface areas ready for rendering in geolayer
|
|
9
|
+
*/
|
|
10
|
+
export declare function generateSurfaceData(trajectory: number[][], stratColumn: StratUnit[], surfaceData: SurfaceMetaAndValues[]): SurfaceData;
|
|
11
|
+
//# sourceMappingURL=surfacedata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surfacedata.d.ts","sourceRoot":"","sources":["../../src/datautils/surfacedata.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAA4B,WAAW,EAAE,MAAM,cAAc,CAAC;AAuCtG;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,GAAG,WAAW,CA4BtI"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SurveySample } from './interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Generate projected wellbore path for drawing using wellbore path layer
|
|
4
|
+
* Code originally developed for REP
|
|
5
|
+
* @param {[]} poslog Position log from SMDA
|
|
6
|
+
*/
|
|
7
|
+
export declare function generateProjectedWellborePath(poslog: SurveySample[]): [number, number][];
|
|
8
|
+
/**
|
|
9
|
+
* Generate Trajectory
|
|
10
|
+
* Code originally developed for REP
|
|
11
|
+
* @param {[]} poslog Position log from SMDA
|
|
12
|
+
* @param {number} defaultIntersectionAngle Default intersection angle for the field
|
|
13
|
+
*/
|
|
14
|
+
export declare function generateProjectedTrajectory(poslog: SurveySample[], defaultIntersectionAngle: number): number[][];
|
|
15
|
+
//# sourceMappingURL=trajectory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trajectory.d.ts","sourceRoot":"","sources":["../../src/datautils/trajectory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAS5C;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAiBxF;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,wBAAwB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAsEhH"}
|