@equinor/esv-intersection 3.0.0 → 3.0.1
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 +1 -1
- package/dist/control/ZoomPanHandler.d.ts +1 -1
- package/dist/datautils/picks.d.ts +6 -6
- package/dist/datautils/schematicShapeGenerator.d.ts +2 -2
- package/dist/datautils/seismicimage.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1285 -1274
- 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 -1
- package/dist/layers/CalloutCanvasLayer.d.ts +2 -2
- package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts +1 -1
- package/dist/layers/GeomodelCanvasLayer.d.ts +1 -1
- package/dist/layers/ImageCanvasLayer.d.ts +1 -1
- package/dist/layers/ReferenceLineLayer.d.ts +2 -2
- package/dist/layers/SeismicCanvasLayer.d.ts +2 -2
- package/dist/layers/schematicInterfaces.d.ts +4 -4
- package/dist/utils/arc-length.d.ts +1 -1
- package/dist/utils/root-finder.d.ts +1 -1
- package/dist/vendor/pixi-dashed-line/index.d.ts +1 -1
- package/package.json +18 -18
package/dist/interfaces.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { ScaleLinear } from 'd3-scale';
|
|
|
2
2
|
import { CanvasLayer } from './base/CanvasLayer';
|
|
3
3
|
import { OnUpdateEvent, Annotation, OnRescaleEvent, BoundingBox } from '../interfaces';
|
|
4
4
|
import { LayerOptions } from './base/Layer';
|
|
5
|
-
export
|
|
5
|
+
export type Point = {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type Callout = {
|
|
10
10
|
title: string;
|
|
11
11
|
label: string;
|
|
12
12
|
color: string;
|
|
@@ -2,7 +2,7 @@ import { SurfaceData, SurfaceLine } from '../datautils';
|
|
|
2
2
|
import { OnUpdateEvent, OnRescaleEvent } from '../interfaces';
|
|
3
3
|
import { LayerOptions } from './base';
|
|
4
4
|
import { CanvasLayer } from './base/CanvasLayer';
|
|
5
|
-
|
|
5
|
+
type SurfacePaths = {
|
|
6
6
|
color: string;
|
|
7
7
|
path: Path2D;
|
|
8
8
|
};
|
|
@@ -10,7 +10,7 @@ export interface OnImageLayerUpdateEvent<T> extends OnUpdateEvent<T> {
|
|
|
10
10
|
x?: number;
|
|
11
11
|
y?: number;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type OnImageLayerRescaleEvent<T> = OnImageLayerUpdateEvent<T> & OnRescaleEvent;
|
|
14
14
|
export declare class ImageLayer<T> extends CanvasLayer<T> {
|
|
15
15
|
img: HTMLImageElement;
|
|
16
16
|
onMount(event: OnMountEvent): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CanvasLayer, LayerOptions } from './base';
|
|
2
2
|
import { OnUpdateEvent, OnRescaleEvent, OnMountEvent } from '../interfaces';
|
|
3
3
|
import { ScaleLinear } from 'd3-scale';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type ReferenceLineType = 'wavy' | 'dashed' | 'solid';
|
|
5
|
+
export type ReferenceLine = {
|
|
6
6
|
text?: string;
|
|
7
7
|
lineType: ReferenceLineType;
|
|
8
8
|
color: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CanvasLayer } from './base/CanvasLayer';
|
|
2
2
|
import { OnUpdateEvent, OnMountEvent, OnRescaleEvent } from '../interfaces';
|
|
3
|
-
export
|
|
3
|
+
export type SeismicCanvasDataOptions = {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type SeismicCanvasData = {
|
|
10
10
|
image: CanvasImageSource | OffscreenCanvas;
|
|
11
11
|
options: SeismicCanvasDataOptions;
|
|
12
12
|
};
|
|
@@ -2,7 +2,7 @@ export declare function assertNever(x: never): never;
|
|
|
2
2
|
/**
|
|
3
3
|
* The closure type of the outline
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type OutlineClosure = 'None' | 'TopAndBottom' | 'Top' | 'Bottom';
|
|
6
6
|
export interface HoleSize {
|
|
7
7
|
kind: 'hole';
|
|
8
8
|
id: string;
|
|
@@ -58,7 +58,7 @@ export interface CementPlug {
|
|
|
58
58
|
referenceIds: string[];
|
|
59
59
|
}
|
|
60
60
|
export declare const isCementPlug: (item: PAndA) => item is CementSqueeze;
|
|
61
|
-
export
|
|
61
|
+
export type PAndA = PAndASymbol | CementSqueeze | CementPlug;
|
|
62
62
|
interface BaseCompletion {
|
|
63
63
|
id: string;
|
|
64
64
|
diameter: number;
|
|
@@ -75,7 +75,7 @@ export interface CompletionSymbol extends BaseCompletion {
|
|
|
75
75
|
kind: 'completionSymbol';
|
|
76
76
|
symbolKey: string;
|
|
77
77
|
}
|
|
78
|
-
export
|
|
78
|
+
export type Completion = Tubing | Screen | CompletionSymbol;
|
|
79
79
|
export declare const foldCompletion: <T>(fScreen: (obj: Screen) => T, fTubing: (obj: Tubing) => T, fSymbol: (obj: CompletionSymbol) => T) => (completion: Completion) => T;
|
|
80
80
|
export interface Cement {
|
|
81
81
|
kind: 'cement';
|
|
@@ -89,7 +89,7 @@ export interface Cement {
|
|
|
89
89
|
/**
|
|
90
90
|
* 'Open hole' and 'Open hole screen' are not included as they are not visualized and also not included in the ruleset
|
|
91
91
|
*/
|
|
92
|
-
export
|
|
92
|
+
export type PerforationSubKind = 'Perforation' | 'Open hole gravel pack' | 'Open hole frac pack' | 'Cased hole frac pack' | 'Cased hole gravel pack' | 'Cased hole fracturation';
|
|
93
93
|
export interface Perforation {
|
|
94
94
|
kind: 'perforation';
|
|
95
95
|
subKind: PerforationSubKind;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/esv-intersection",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Intersection component package with testing and automatic documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -47,29 +47,29 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://github.com/equinor/esv-intersection#readme",
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@storybook/addon-storysource": "^7.0.0-beta.
|
|
51
|
-
"@storybook/html-vite": "^7.0.0-beta.
|
|
50
|
+
"@storybook/addon-storysource": "^7.0.0-beta.49",
|
|
51
|
+
"@storybook/html-vite": "^7.0.0-beta.49",
|
|
52
52
|
"@types/d3": "^7.4.0",
|
|
53
53
|
"@types/mock-raf": "^1.0.3",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
55
|
-
"@typescript-eslint/parser": "^5.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
55
|
+
"@typescript-eslint/parser": "^5.52.0",
|
|
56
56
|
"copyfiles": "^2.4.1",
|
|
57
|
-
"eslint": "^8.
|
|
57
|
+
"eslint": "^8.34.0",
|
|
58
58
|
"eslint-config-prettier": "^8.6.0",
|
|
59
59
|
"eslint-plugin-prettier": "^4.2.1",
|
|
60
60
|
"eslint-plugin-storybook": "^0.6.10",
|
|
61
61
|
"mock-raf": "^1.0.1",
|
|
62
|
-
"pixi.js": "^7.1.
|
|
63
|
-
"prettier": "^2.8.
|
|
64
|
-
"rimraf": "^
|
|
65
|
-
"storybook": "^7.0.0-beta.
|
|
66
|
-
"storybook-dark-mode": "^2.0.
|
|
67
|
-
"tslib": "^2.
|
|
68
|
-
"typedoc": "^0.23.
|
|
69
|
-
"typescript": "^4.9.
|
|
70
|
-
"vite": "^4.
|
|
71
|
-
"vite-plugin-dts": "^1.7.
|
|
72
|
-
"vitest": "^0.
|
|
62
|
+
"pixi.js": "^7.1.4",
|
|
63
|
+
"prettier": "^2.8.4",
|
|
64
|
+
"rimraf": "^4.1.2",
|
|
65
|
+
"storybook": "^7.0.0-beta.49",
|
|
66
|
+
"storybook-dark-mode": "^2.0.6",
|
|
67
|
+
"tslib": "^2.5.0",
|
|
68
|
+
"typedoc": "^0.23.25",
|
|
69
|
+
"typescript": "^4.9.5",
|
|
70
|
+
"vite": "^4.1.2",
|
|
71
|
+
"vite-plugin-dts": "^1.7.3",
|
|
72
|
+
"vitest": "^0.28.5",
|
|
73
73
|
"vitest-canvas-mock": "^0.2.2"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@equinor/videx-math": "^1.1.0",
|
|
80
80
|
"@equinor/videx-vector2": "^1.0.44",
|
|
81
81
|
"curve-interpolator": "3.0.1",
|
|
82
|
-
"d3-array": "^3.2.
|
|
82
|
+
"d3-array": "^3.2.2",
|
|
83
83
|
"d3-axis": "^3.0.0",
|
|
84
84
|
"d3-scale": "^4.0.2",
|
|
85
85
|
"d3-selection": "^3.0.0",
|