@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.
@@ -75,7 +75,7 @@ export interface Trajectory {
75
75
  points: number[][];
76
76
  offset: number;
77
77
  }
78
- export declare type BoundingBox = {
78
+ export type BoundingBox = {
79
79
  x: number;
80
80
  y: number;
81
81
  width: number;
@@ -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 declare type Point = {
5
+ export type Point = {
6
6
  x: number;
7
7
  y: number;
8
8
  };
9
- export declare type Callout = {
9
+ export type Callout = {
10
10
  title: string;
11
11
  label: string;
12
12
  color: string;
@@ -1,5 +1,5 @@
1
1
  import { Mesh, IPoint, Renderer, Texture } from 'pixi.js';
2
- export declare type ComplexRopeSegment = {
2
+ export type ComplexRopeSegment = {
3
3
  points: IPoint[];
4
4
  diameter: number;
5
5
  };
@@ -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
- declare type SurfacePaths = {
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 declare type OnImageLayerRescaleEvent<T> = OnImageLayerUpdateEvent<T> & OnRescaleEvent;
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 declare type ReferenceLineType = 'wavy' | 'dashed' | 'solid';
5
- export declare type ReferenceLine = {
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 declare type SeismicCanvasDataOptions = {
3
+ export type SeismicCanvasDataOptions = {
4
4
  x: number;
5
5
  y: number;
6
6
  width: number;
7
7
  height: number;
8
8
  };
9
- export declare type SeismicCanvasData = {
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 declare type OutlineClosure = 'None' | 'TopAndBottom' | 'Top' | 'Bottom';
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 declare type PAndA = PAndASymbol | CementSqueeze | CementPlug;
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 declare type Completion = Tubing | Screen | CompletionSymbol;
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 declare type PerforationSubKind = 'Perforation' | 'Open hole gravel pack' | 'Open hole frac pack' | 'Cased hole frac pack' | 'Cased hole gravel pack' | 'Cased hole fracturation';
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;
@@ -1,5 +1,5 @@
1
1
  import { Vector } from 'curve-interpolator/dist/src/interfaces';
2
- declare type fx = (n: number) => Vector;
2
+ type fx = (n: number) => Vector;
3
3
  export declare class ArcLength {
4
4
  /**
5
5
  * Calculate using an adaptive bisect method
@@ -1,4 +1,4 @@
1
- declare type fx = (n: number) => number;
1
+ type fx = (n: number) => number;
2
2
  export declare class RootFinder {
3
3
  /**
4
4
  * Find root using newthons method
@@ -1,6 +1,6 @@
1
1
  import * as PIXI from 'pixi.js';
2
2
  /** Define the dash: [dash length, gap size, dash size, gap size, ...] */
3
- export declare type Dashes = number[];
3
+ export type Dashes = number[];
4
4
  export interface DashLineOptions {
5
5
  dash?: Dashes;
6
6
  width?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/esv-intersection",
3
- "version": "3.0.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.25",
51
- "@storybook/html-vite": "^7.0.0-beta.25",
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.48.1",
55
- "@typescript-eslint/parser": "^5.48.1",
54
+ "@typescript-eslint/eslint-plugin": "^5.52.0",
55
+ "@typescript-eslint/parser": "^5.52.0",
56
56
  "copyfiles": "^2.4.1",
57
- "eslint": "^8.31.0",
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.0",
63
- "prettier": "^2.8.2",
64
- "rimraf": "^3.0.2",
65
- "storybook": "^7.0.0-beta.25",
66
- "storybook-dark-mode": "^2.0.5",
67
- "tslib": "^2.4.1",
68
- "typedoc": "^0.23.24",
69
- "typescript": "^4.9.4",
70
- "vite": "^4.0.4",
71
- "vite-plugin-dts": "^1.7.1",
72
- "vitest": "^0.27.1",
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.1",
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",