@equinor/esv-intersection 1.4.4 → 1.6.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/README.md +1 -1
- package/dist/control/ExtendedCurveInterpolator.d.ts +58 -0
- package/dist/control/IntersectionReferenceSystem.d.ts +2 -2
- package/dist/control/ZoomPanHandler.d.ts +1 -1
- package/dist/datautils/seismicimage.d.ts +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.js +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/interfaces.d.ts +2 -0
- package/dist/layers/CasingLayer.d.ts +11 -1
- package/dist/layers/GeomodelCanvasLayer.d.ts +1 -0
- package/dist/utils/arc-length.d.ts +23 -0
- package/dist/utils/binary-search.d.ts +8 -0
- package/dist/utils/root-finder.d.ts +34 -0
- package/package.json +24 -21
- package/CHANGELOG.md +0 -221
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ $ npm run storybook
|
|
|
36
36
|
import { Controller, GridLayer } from '@equinor/esv-intersection';
|
|
37
37
|
|
|
38
38
|
const container = document.createElement('div');
|
|
39
|
-
const controller = new Controller(container);
|
|
39
|
+
const controller = new Controller({container: container});
|
|
40
40
|
|
|
41
41
|
// the controller initially has zero height
|
|
42
42
|
controller.adjustToSize(400, 400);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CurveInterpolator } from 'curve-interpolator';
|
|
2
|
+
import { Vector } from 'curve-interpolator/dist/src/interfaces';
|
|
3
|
+
import { CurveInterpolatorOptions } from 'curve-interpolator/dist/src/curve-interpolator';
|
|
4
|
+
export declare class ExtendedCurveInterpolator extends CurveInterpolator {
|
|
5
|
+
arcLengthLookup: number[];
|
|
6
|
+
constructor(points: Vector[], options?: CurveInterpolatorOptions);
|
|
7
|
+
/**
|
|
8
|
+
* Function which finds t value for arc length
|
|
9
|
+
* @param {Number} arcLength Target arc length
|
|
10
|
+
* @param {Number} tolerance Tolerance for result
|
|
11
|
+
* @param {Number} iterations Max number of iterations to use
|
|
12
|
+
*/
|
|
13
|
+
findTForArcLength(arcLength: number, options?: {
|
|
14
|
+
approxT?: boolean;
|
|
15
|
+
quickT?: boolean;
|
|
16
|
+
normalizedLength?: number;
|
|
17
|
+
}): number;
|
|
18
|
+
/**
|
|
19
|
+
* Function which finds t value for arc length by finding root
|
|
20
|
+
* @param {Number} arcLength Target arc length
|
|
21
|
+
* @param {Number} tolerance Tolerance for result
|
|
22
|
+
* @param {Number} iterations Max number of iterations to use
|
|
23
|
+
*/
|
|
24
|
+
findTByRootForArcLength(arcLength: number, tolerance?: number, iterations?: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* Function which finds t value for arc length by simple approximation
|
|
27
|
+
* @param {Number} arcLength Target arclength
|
|
28
|
+
*/
|
|
29
|
+
findApproxTForArcLength(arcLength: number, normalizedLength?: number): number;
|
|
30
|
+
/**
|
|
31
|
+
* Function which finds t value for arc length using lookup table
|
|
32
|
+
* @param {Number} arcLength Target arclength
|
|
33
|
+
*/
|
|
34
|
+
findTQuickForArcLength(arcLength: number): number;
|
|
35
|
+
generateArcLengthLookup(segments?: number): void;
|
|
36
|
+
/**
|
|
37
|
+
* Function calculating length along curve using interpolator.
|
|
38
|
+
* @param {Number} from t at start (default = 0)
|
|
39
|
+
* @param {Number} to t at end (default = 1)
|
|
40
|
+
*/
|
|
41
|
+
getArcLength(from?: number, to?: number): number;
|
|
42
|
+
/**
|
|
43
|
+
* Function calculating length along curve using interpolator.
|
|
44
|
+
* @param {Number} from t at start (default = 0)
|
|
45
|
+
* @param {Number} to t at end (default = 1)
|
|
46
|
+
*/
|
|
47
|
+
getQuickArcLength(from?: number, to?: number): number;
|
|
48
|
+
/**
|
|
49
|
+
* Function getting a point at curve length.
|
|
50
|
+
* @param {Number} arcLength
|
|
51
|
+
*/
|
|
52
|
+
getPointAtArcLength(arcLength: number, options?: {
|
|
53
|
+
approxT?: boolean;
|
|
54
|
+
quickT?: boolean;
|
|
55
|
+
normalizedLength?: number;
|
|
56
|
+
}): Vector;
|
|
57
|
+
getPointAt(t: number): Vector;
|
|
58
|
+
}
|
|
@@ -70,11 +70,11 @@ export declare class IntersectionReferenceSystem {
|
|
|
70
70
|
static toDisplacement(points: number[][], offset?: number): number[][];
|
|
71
71
|
/**
|
|
72
72
|
* returns a normalized vector
|
|
73
|
-
* @param
|
|
73
|
+
* @param interpolator interpolated curve
|
|
74
74
|
* @param from number between 0 and 1
|
|
75
75
|
* @param to number between 0 and 1
|
|
76
76
|
*/
|
|
77
|
-
static getDirectionVector(
|
|
77
|
+
static getDirectionVector(interpolator: any, from: number, to: number): number[];
|
|
78
78
|
get length(): number;
|
|
79
79
|
get offset(): number;
|
|
80
80
|
set offset(offset: number);
|
|
@@ -24,7 +24,7 @@ export declare function getSeismicInfo(data: {
|
|
|
24
24
|
export declare function generateSeismicSliceImage(data: {
|
|
25
25
|
datapoints: number[][];
|
|
26
26
|
yAxisValues: number[];
|
|
27
|
-
}, trajectory: number[][], colormap: string[], options
|
|
27
|
+
}, trajectory: number[][], colormap: string[], options?: {
|
|
28
28
|
isLeftToRight: true;
|
|
29
29
|
seismicRange?: number;
|
|
30
30
|
seismicMin?: number;
|