@equinor/esv-intersection 3.0.4 → 3.0.6

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 (169) hide show
  1. package/README.md +18 -3
  2. package/dist/components/axis.d.ts +48 -0
  3. package/dist/components/axis.d.ts.map +1 -0
  4. package/dist/components/index.d.ts +2 -0
  5. package/dist/components/index.d.ts.map +1 -0
  6. package/dist/constants.d.ts +1 -0
  7. package/dist/constants.d.ts.map +1 -0
  8. package/dist/control/ExtendedCurveInterpolator.d.ts +59 -0
  9. package/dist/control/ExtendedCurveInterpolator.d.ts.map +1 -0
  10. package/dist/control/IntersectionReferenceSystem.d.ts +97 -0
  11. package/dist/control/IntersectionReferenceSystem.d.ts.map +1 -0
  12. package/dist/control/LayerManager.d.ts +77 -0
  13. package/dist/control/LayerManager.d.ts.map +1 -0
  14. package/dist/control/MainController.d.ts +155 -0
  15. package/dist/control/MainController.d.ts.map +1 -0
  16. package/dist/control/ZoomPanHandler.d.ts +159 -0
  17. package/dist/control/ZoomPanHandler.d.ts.map +1 -0
  18. package/dist/control/index.d.ts +6 -0
  19. package/dist/control/index.d.ts.map +1 -0
  20. package/dist/control/interfaces.d.ts +38 -0
  21. package/dist/control/interfaces.d.ts.map +1 -0
  22. package/dist/control/overlay.d.ts +21 -0
  23. package/dist/control/overlay.d.ts.map +1 -0
  24. package/dist/datautils/colortable.d.ts +2 -0
  25. package/dist/datautils/colortable.d.ts.map +1 -0
  26. package/dist/datautils/findsample.d.ts +3 -0
  27. package/dist/datautils/findsample.d.ts.map +1 -0
  28. package/dist/datautils/index.d.ts +7 -0
  29. package/dist/datautils/index.d.ts.map +1 -0
  30. package/dist/datautils/interfaces.d.ts +64 -0
  31. package/dist/datautils/interfaces.d.ts.map +1 -0
  32. package/dist/datautils/picks.d.ts +75 -0
  33. package/dist/datautils/picks.d.ts.map +1 -0
  34. package/dist/datautils/schematicShapeGenerator.d.ts +60 -0
  35. package/dist/datautils/schematicShapeGenerator.d.ts.map +1 -0
  36. package/dist/datautils/seismicimage.d.ts +46 -0
  37. package/dist/datautils/seismicimage.d.ts.map +1 -0
  38. package/dist/datautils/surfacedata.d.ts +11 -0
  39. package/dist/datautils/surfacedata.d.ts.map +1 -0
  40. package/dist/datautils/trajectory.d.ts +15 -0
  41. package/dist/datautils/trajectory.d.ts.map +1 -0
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.d.ts +1 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.mjs +141 -143
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/index.umd.js +1 -1
  49. package/dist/index.umd.js.map +1 -1
  50. package/dist/interfaces.d.ts +1 -0
  51. package/dist/interfaces.d.ts.map +1 -0
  52. package/dist/layers/CalloutCanvasLayer.d.ts +61 -0
  53. package/dist/layers/CalloutCanvasLayer.d.ts.map +1 -0
  54. package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts +22 -0
  55. package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts.map +1 -0
  56. package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts +24 -0
  57. package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts.map +1 -0
  58. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts +21 -0
  59. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts.map +1 -0
  60. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts +27 -0
  61. package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts.map +1 -0
  62. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts +18 -0
  63. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts.map +1 -0
  64. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts +25 -0
  65. package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts.map +1 -0
  66. package/dist/layers/GeomodelCanvasLayer.d.ts +29 -0
  67. package/dist/layers/GeomodelCanvasLayer.d.ts.map +1 -0
  68. package/dist/layers/GeomodelLabelsLayer.d.ts +50 -0
  69. package/dist/layers/GeomodelLabelsLayer.d.ts.map +1 -0
  70. package/dist/layers/GeomodelLayerV2.d.ts +13 -0
  71. package/dist/layers/GeomodelLayerV2.d.ts.map +1 -0
  72. package/dist/layers/GridLayer.d.ts +30 -0
  73. package/dist/layers/GridLayer.d.ts.map +1 -0
  74. package/dist/layers/ImageCanvasLayer.d.ts +21 -0
  75. package/dist/layers/ImageCanvasLayer.d.ts.map +1 -0
  76. package/dist/layers/ReferenceLineLayer.d.ts +30 -0
  77. package/dist/layers/ReferenceLineLayer.d.ts.map +1 -0
  78. package/dist/layers/SchematicLayer.d.ts +114 -0
  79. package/dist/layers/SchematicLayer.d.ts.map +1 -0
  80. package/dist/layers/SeismicCanvasLayer.d.ts +19 -0
  81. package/dist/layers/SeismicCanvasLayer.d.ts.map +1 -0
  82. package/dist/layers/WellborePathLayer.d.ts +18 -0
  83. package/dist/layers/WellborePathLayer.d.ts.map +1 -0
  84. package/dist/layers/base/CanvasLayer.d.ts +20 -0
  85. package/dist/layers/base/CanvasLayer.d.ts.map +1 -0
  86. package/dist/layers/base/HTMLLayer.d.ts +14 -0
  87. package/dist/layers/base/HTMLLayer.d.ts.map +1 -0
  88. package/dist/layers/base/Layer.d.ts +70 -0
  89. package/dist/layers/base/Layer.d.ts.map +1 -0
  90. package/dist/layers/base/PixiLayer.d.ts +33 -0
  91. package/dist/layers/base/PixiLayer.d.ts.map +1 -0
  92. package/dist/layers/base/SVGLayer.d.ts +14 -0
  93. package/dist/layers/base/SVGLayer.d.ts.map +1 -0
  94. package/dist/layers/base/index.d.ts +6 -0
  95. package/dist/layers/base/index.d.ts.map +1 -0
  96. package/dist/layers/index.d.ts +17 -0
  97. package/dist/layers/index.d.ts.map +1 -0
  98. package/dist/layers/schematicInterfaces.d.ts +210 -0
  99. package/dist/layers/schematicInterfaces.d.ts.map +1 -0
  100. package/dist/utils/arc-length.d.ts +24 -0
  101. package/dist/utils/arc-length.d.ts.map +1 -0
  102. package/dist/utils/binary-search.d.ts +9 -0
  103. package/dist/utils/binary-search.d.ts.map +1 -0
  104. package/dist/utils/color.d.ts +6 -0
  105. package/dist/utils/color.d.ts.map +1 -0
  106. package/dist/utils/index.d.ts +2 -0
  107. package/dist/utils/index.d.ts.map +1 -0
  108. package/dist/utils/root-finder.d.ts +35 -0
  109. package/dist/utils/root-finder.d.ts.map +1 -0
  110. package/dist/utils/text.d.ts +15 -0
  111. package/dist/utils/text.d.ts.map +1 -0
  112. package/dist/utils/vectorUtils.d.ts +16 -0
  113. package/dist/utils/vectorUtils.d.ts.map +1 -0
  114. package/dist/vendor/pixi-dashed-line/index.d.ts +57 -0
  115. package/dist/vendor/pixi-dashed-line/index.d.ts.map +1 -0
  116. package/package.json +28 -21
  117. package/src/.eslintrc.json +5 -0
  118. package/src/components/axis.ts +247 -0
  119. package/src/components/index.ts +1 -0
  120. package/src/control/ExtendedCurveInterpolator.ts +155 -0
  121. package/src/control/IntersectionReferenceSystem.ts +391 -0
  122. package/src/control/LayerManager.ts +294 -0
  123. package/src/control/MainController.ts +296 -0
  124. package/src/control/ZoomPanHandler.ts +436 -0
  125. package/src/control/index.ts +5 -0
  126. package/src/control/interfaces.ts +42 -0
  127. package/src/control/overlay.ts +118 -0
  128. package/src/datautils/colortable.ts +14 -0
  129. package/src/datautils/findsample.ts +64 -0
  130. package/src/datautils/index.ts +6 -0
  131. package/src/datautils/interfaces.ts +68 -0
  132. package/src/datautils/picks.ts +328 -0
  133. package/src/datautils/schematicShapeGenerator.ts +1008 -0
  134. package/src/datautils/seismicimage.ts +180 -0
  135. package/src/datautils/surfacedata.ts +317 -0
  136. package/src/datautils/trajectory.ts +206 -0
  137. package/src/layers/CalloutCanvasLayer.ts +338 -0
  138. package/src/layers/CustomDisplayObjects/ComplexRope.ts +44 -0
  139. package/src/layers/CustomDisplayObjects/ComplexRopeGeometry.ts +184 -0
  140. package/src/layers/CustomDisplayObjects/FixedWidthSimpleRope.ts +41 -0
  141. package/src/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.ts +149 -0
  142. package/src/layers/CustomDisplayObjects/UniformTextureStretchRope.ts +39 -0
  143. package/src/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.ts +174 -0
  144. package/src/layers/GeomodelCanvasLayer.ts +176 -0
  145. package/src/layers/GeomodelLabelsLayer.ts +615 -0
  146. package/src/layers/GeomodelLayerV2.ts +111 -0
  147. package/src/layers/GridLayer.ts +145 -0
  148. package/src/layers/ImageCanvasLayer.ts +55 -0
  149. package/src/layers/ReferenceLineLayer.ts +185 -0
  150. package/src/layers/SchematicLayer.ts +870 -0
  151. package/src/layers/SeismicCanvasLayer.ts +46 -0
  152. package/src/layers/WellborePathLayer.ts +129 -0
  153. package/src/layers/base/CanvasLayer.ts +102 -0
  154. package/src/layers/base/HTMLLayer.ts +70 -0
  155. package/src/layers/base/Layer.ts +217 -0
  156. package/src/layers/base/PixiLayer.ts +190 -0
  157. package/src/layers/base/SVGLayer.ts +63 -0
  158. package/src/layers/base/index.ts +5 -0
  159. package/src/layers/index.ts +16 -0
  160. package/src/layers/schematicInterfaces.ts +472 -0
  161. package/src/tsconfig.json +9 -0
  162. package/src/utils/arc-length.ts +66 -0
  163. package/src/utils/binary-search.ts +26 -0
  164. package/src/utils/color.ts +22 -0
  165. package/src/utils/index.ts +1 -0
  166. package/src/utils/root-finder.ts +78 -0
  167. package/src/utils/text.ts +88 -0
  168. package/src/utils/vectorUtils.ts +67 -0
  169. package/src/vendor/pixi-dashed-line/index.ts +390 -0
@@ -0,0 +1,159 @@
1
+ import { Selection } from 'd3-selection';
2
+ import { ScaleLinear } from 'd3-scale';
3
+ import { ZoomBehavior, ZoomTransform } from 'd3-zoom';
4
+ import { ZoomAndPanOptions, OnRescaleEvent } from '../interfaces';
5
+ export type RescaleFunction = (event: OnRescaleEvent) => void;
6
+ /**
7
+ * Handle zoom and pan for intersection layers
8
+ */
9
+ export declare class ZoomPanHandler {
10
+ zoom: ZoomBehavior<Element, unknown>;
11
+ elm: HTMLElement;
12
+ container: Selection<HTMLElement, unknown, null, undefined>;
13
+ onRescale: RescaleFunction;
14
+ options: ZoomAndPanOptions;
15
+ xBounds: [number, number];
16
+ yBounds: [number, number];
17
+ translateBoundsX: [number, number];
18
+ translateBoundsY: [number, number];
19
+ scaleX: ScaleLinear<number, number>;
20
+ scaleY: ScaleLinear<number, number>;
21
+ _zFactor: number;
22
+ _enableTranslateExtent: boolean;
23
+ currentTransform: ZoomTransform;
24
+ /**
25
+ * Constructor
26
+ * @param elm, -
27
+ * @param options - options
28
+ */
29
+ constructor(elm: HTMLElement, onRescale: RescaleFunction, options?: ZoomAndPanOptions);
30
+ /**
31
+ * Getter returning width of target
32
+ * @returns width
33
+ */
34
+ get width(): number;
35
+ /**
36
+ * Getter returning height of target
37
+ * @returns height
38
+ */
39
+ get height(): number;
40
+ /**
41
+ * Getter which calculate span from x bounds
42
+ * @returns x span
43
+ */
44
+ get xSpan(): number;
45
+ /**
46
+ * Calculate span from y bounds
47
+ * @returns y span
48
+ */
49
+ get ySpan(): number;
50
+ /**
51
+ * Ratio between height and width
52
+ * @returns ratio
53
+ */
54
+ get viewportRatio(): number;
55
+ /**
56
+ * x ratios screen to value ratio
57
+ * @returns ratio
58
+ */
59
+ get xRatio(): number;
60
+ /**
61
+ * y scale screen to value ratio
62
+ * @returns ratio
63
+ */
64
+ get yRatio(): number;
65
+ /**
66
+ * Get z-factor
67
+ * @returns z-factor
68
+ */
69
+ get zFactor(): number;
70
+ /**
71
+ * Set z factor
72
+ * @param factor
73
+ */
74
+ set zFactor(factor: number);
75
+ /**
76
+ * Check if x is inverted (right to left is positive) from x bounds
77
+ * @returns true if inverted
78
+ */
79
+ get isXInverted(): boolean;
80
+ /**
81
+ * Check if y is inverted (bottom to top is positive) from y bounds
82
+ * @returns true if inverted
83
+ */
84
+ get isYInverted(): boolean;
85
+ /**
86
+ * Get if enable translate extent (pan limit)
87
+ * @returns true if enabled
88
+ */
89
+ get enableTranslateExtent(): boolean;
90
+ /**
91
+ * Set enable translate extent (pan limit)
92
+ * @param enabled - If should be enabled
93
+ */
94
+ set enableTranslateExtent(enabled: boolean);
95
+ /**
96
+ * Update translate extent (pan limits)
97
+ */
98
+ updateTranslateExtent(): void;
99
+ /**
100
+ * Create an event object from current state
101
+ */
102
+ currentStateAsEvent(): OnRescaleEvent;
103
+ /**
104
+ * Update scale
105
+ */
106
+ rescale(): void;
107
+ /**
108
+ * Initialized handler
109
+ */
110
+ init(): void;
111
+ /**
112
+ * Handle zoom
113
+ */
114
+ onZoom(event: {
115
+ transform: ZoomTransform;
116
+ }): void;
117
+ /**
118
+ * Update scale
119
+ */
120
+ applyTransform(transform: ZoomTransform): void;
121
+ /**
122
+ * Set new viewport
123
+ * @param cx - center X pos
124
+ * @param cy - center Y pos
125
+ * @param displ
126
+ * @param duration - duration of transition
127
+ * @returns a merge of filter and payload
128
+ */
129
+ setViewport(cx?: number, cy?: number, displ?: number, duration?: number): void;
130
+ /**
131
+ * Set bounds
132
+ */
133
+ setBounds(xBounds: [number, number], yBounds: [number, number]): void;
134
+ /**
135
+ * Set bounds
136
+ */
137
+ setTranslateBounds(xBounds: [number, number], yBounds: [number, number]): void;
138
+ /**
139
+ * Adjust zoom due to changes in size of target
140
+ * @param force - force update even if size did not change
141
+ */
142
+ adjustToSize(width?: number | boolean, height?: number, force?: boolean): void;
143
+ /**
144
+ * Calculate new transform
145
+ * @param dx0
146
+ * @param dx1
147
+ * @param dy
148
+ * @returns New transformation matrix
149
+ */
150
+ calculateTransform(dx0: number, dx1: number, dy: number): ZoomTransform;
151
+ /**
152
+ * Recalcualate the transform
153
+ */
154
+ recalculateZoomTransform(): void;
155
+ setZoomLevelBoundary(zoomlevels: [number, number]): ZoomPanHandler;
156
+ setMaxZoomLevel(zoomlevel: number): ZoomPanHandler;
157
+ setMinZoomLevel(zoomlevel: number): ZoomPanHandler;
158
+ }
159
+ //# sourceMappingURL=ZoomPanHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoomPanHandler.d.ts","sourceRoot":"","sources":["../../../src/control/ZoomPanHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAe,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAsB,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAKlE,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;AAC9D;;GAEG;AACH,qBAAa,cAAc;IACzB,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAQ;IAC5C,GAAG,EAAE,WAAW,CAAQ;IACxB,SAAS,EAAE,SAAS,CAAC,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAQ;IACnE,SAAS,EAAE,eAAe,CAAQ;IAClC,OAAO,EAAE,iBAAiB,CAAQ;IAClC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAU;IACnC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAU;IACnC,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAU;IAC5C,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAU;IAC5C,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAQ;IAC3C,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAQ;IAC3C,QAAQ,EAAE,MAAM,CAAK;IACrB,sBAAsB,EAAE,OAAO,CAAC;IAChC,gBAAgB,EAAE,aAAa,CAAC;IAEhC;;;;OAIG;gBAED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,SAAS,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAOrE;;OAEG;IACH,kBAAkB,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAO9E;;;OAGG;IACH,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,OAAe,GAAG,IAAI;IA8BrF;;;;;;OAMG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa;IAgBvE;;OAEG;IACH,wBAAwB,IAAI,IAAI;IAehC,oBAAoB,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,cAAc;IAKlE,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc;IAMlD,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc;CAKnD"}
@@ -0,0 +1,6 @@
1
+ export * from './interfaces';
2
+ export * from './IntersectionReferenceSystem';
3
+ export * from './LayerManager';
4
+ export * from './MainController';
5
+ export * from './ZoomPanHandler';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/control/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { IntersectionReferenceSystem } from './IntersectionReferenceSystem';
2
+ import { ScaleOptions } from '../interfaces';
3
+ import { Layer } from '../layers';
4
+ export interface AxisOptions {
5
+ xLabel: string;
6
+ yLabel: string;
7
+ unitOfMeasure: string;
8
+ }
9
+ export interface ControllerOptions {
10
+ container: HTMLElement;
11
+ axisOptions?: AxisOptions;
12
+ scaleOptions?: ScaleOptions;
13
+ referenceSystem?: IntersectionReferenceSystem;
14
+ layers?: Layer<unknown>[];
15
+ path?: number[][];
16
+ }
17
+ interface OverlayEvent<T> {
18
+ target?: Element;
19
+ source: Element;
20
+ caller: T;
21
+ }
22
+ export interface OverlayResizeEvent<T> extends OverlayEvent<T> {
23
+ width: number;
24
+ height: number;
25
+ }
26
+ export interface OverlayMouseMoveEvent<T> extends OverlayEvent<T> {
27
+ x: number;
28
+ y: number;
29
+ }
30
+ export interface OverlayMouseExitEvent<T> extends OverlayEvent<T> {
31
+ }
32
+ export interface OverlayCallbacks<T> {
33
+ onMouseMove?(event: OverlayMouseMoveEvent<T>): void;
34
+ onMouseExit?(event: OverlayMouseExitEvent<T>): void;
35
+ onResize?(event: OverlayResizeEvent<T>): void;
36
+ }
37
+ export {};
38
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/control/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,WAAW,CAAC;IACvB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,2BAA2B,CAAC;IAC9C,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;CACnB;AAED,UAAU,YAAY,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,CAAC,CAAC;CACX;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC/D,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;CAAG;AAEpE,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,WAAW,CAAC,CAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACpD,WAAW,CAAC,CAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACpD,QAAQ,CAAC,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAC/C"}
@@ -0,0 +1,21 @@
1
+ import { Selection } from 'd3-selection';
2
+ import { OverlayCallbacks } from './interfaces';
3
+ export declare class Overlay<T> {
4
+ elm: Selection<Element, unknown, null, undefined>;
5
+ source: Element;
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;
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,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,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;IA4E7C,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,WAAW;IASjE,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,2 @@
1
+ export declare function createColorTable(colorMap: string[], size: number): number[][];
2
+ //# sourceMappingURL=colortable.d.ts.map
@@ -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,MAAM,EAAE,EAAE,CAU7E"}
@@ -0,0 +1,3 @@
1
+ export declare function findIndexOfSample(data: number[][], pos: number): number;
2
+ export declare function findSampleAtPos(data: number[][], pos: number, topLimit?: number, bottomLimit?: number): number;
3
+ //# sourceMappingURL=findsample.d.ts.map
@@ -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,CAuCvE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAa,EAAE,WAAW,GAAE,MAAa,GAAG,MAAM,CAsB1H"}
@@ -0,0 +1,7 @@
1
+ export * from './findsample';
2
+ export * from './interfaces';
3
+ export * from './picks';
4
+ export * from './seismicimage';
5
+ export * from './surfacedata';
6
+ export * from './trajectory';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -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.d.ts","sourceRoot":"","sources":["../../../src/datautils/picks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,KAAK,IAAI,GAAG;IACV,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,UAAU,EAAE,MAAM,CAAC;C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AAC;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[], leftPath: IPoint[]) => {
26
+ top: IPoint[];
27
+ bottom: 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,EAA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4B,WAAY,MAAM,cAAc,MAAM,EAAE,KAAG,sBAMnF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,QAAQ,GAAG,eAAe,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAKF,eAAO,MAAM,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;AA8UF,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: true;
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,CAAC,EAAE;IACR,aAAa,EAAE,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACA,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAgFlC"}
@@ -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[][];
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,MAAM,EAAE,EAAE,CAehF;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE,wBAAwB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAsEhH"}