@equinor/esv-intersection 2.1.0 → 2.2.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.
@@ -1,11 +1,11 @@
1
1
  import { ScaleLinear } from 'd3-scale';
2
2
  import { CanvasLayer } from './base/CanvasLayer';
3
3
  import { OnUpdateEvent, Annotation, OnRescaleEvent, BoundingBox, CalloutOptions } from '../interfaces';
4
- declare type Point = {
4
+ export declare type Point = {
5
5
  x: number;
6
6
  y: number;
7
7
  };
8
- declare type Callout = {
8
+ export declare type Callout = {
9
9
  title: string;
10
10
  label: string;
11
11
  color: string;
@@ -49,4 +49,3 @@ export declare class CalloutCanvasLayer extends CanvasLayer {
49
49
  adjustTopPositions(top: Callout[]): void;
50
50
  adjustBottomPositions(bottom: Callout[]): void;
51
51
  }
52
- export {};
@@ -1,7 +1,7 @@
1
1
  import { Point, Texture } from 'pixi.js';
2
2
  import { WellboreBaseComponentLayer } from './WellboreBaseComponentLayer';
3
3
  import { CementLayerOptions, Cement, Casing, HoleSize } from '../interfaces';
4
- interface CementShape {
4
+ export interface CementShape {
5
5
  rightPolygon: Point[];
6
6
  leftPolygon: Point[];
7
7
  path: Point[];
@@ -12,4 +12,3 @@ export declare class CementLayer extends WellboreBaseComponentLayer {
12
12
  createCementShape: (cement: Cement, casings: Casing[], holes: HoleSize[]) => CementShape;
13
13
  createTexture(): Texture;
14
14
  }
15
- export {};
@@ -2,7 +2,7 @@ import { Graphics } from 'pixi.js';
2
2
  import { PixiLayer } from './base/PixiLayer';
3
3
  import { OnUpdateEvent } from '..';
4
4
  import { CompletionLayerOptions, OnRescaleEvent } from '../interfaces';
5
- interface CompletionItem {
5
+ export interface CompletionItem {
6
6
  }
7
7
  export declare class CompletionLayer extends PixiLayer {
8
8
  constructor(id: string, options: CompletionLayerOptions);
@@ -18,4 +18,3 @@ export declare class CompletionLayer extends PixiLayer {
18
18
  generateCompletionItem(wbp: any, data: any): CompletionItem;
19
19
  drawCompletionItem(item: any): void;
20
20
  }
21
- export {};
@@ -1,7 +1,7 @@
1
1
  import { AbstractRenderer, Container, IRendererOptionsAuto, RENDERER_TYPE } from 'pixi.js';
2
2
  import { Layer } from './Layer';
3
3
  import { OnMountEvent, OnRescaleEvent, OnResizeEvent, OnUnmountEvent, PixiLayerOptions } from '../../interfaces';
4
- declare class PixiRenderApplication {
4
+ export declare class PixiRenderApplication {
5
5
  stage: Container;
6
6
  renderer: AbstractRenderer;
7
7
  constructor(pixiRenderOptions: IRendererOptionsAuto);
@@ -25,4 +25,3 @@ export declare abstract class PixiLayer extends Layer {
25
25
  onInteractivityChanged(interactive: boolean): void;
26
26
  renderType(): RENDERER_TYPE;
27
27
  }
28
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/esv-intersection",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Intersection component package with testing and automatic documentation.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -40,38 +40,39 @@
40
40
  },
41
41
  "homepage": "https://github.com/equinor/esv-intersection#readme",
42
42
  "devDependencies": {
43
- "@babel/core": "^7.16.7",
44
- "@babel/preset-env": "^7.16.8",
45
- "@babel/preset-typescript": "^7.16.7",
46
- "@storybook/addon-docs": "^6.4.22",
47
- "@storybook/addon-storysource": "^6.4.22",
48
- "@storybook/html": "^6.4.22",
49
- "@types/d3": "^7.1.0",
50
- "@types/jest": "^27.4.0",
51
- "@types/mock-raf": "^1.0.2",
52
- "@typescript-eslint/eslint-plugin": "^4.15.2",
53
- "@typescript-eslint/parser": "^4.15.2",
54
- "babel-jest": "^27.4.6",
43
+ "@babel/core": "^7.19.1",
44
+ "@babel/preset-env": "^7.19.1",
45
+ "@babel/preset-typescript": "^7.18.6",
46
+ "@storybook/addon-docs": "^6.5.12",
47
+ "@storybook/addon-storysource": "^6.5.12",
48
+ "@storybook/html": "^6.5.12",
49
+ "@types/d3": "^7.4.0",
50
+ "@types/jest": "^29.0.2",
51
+ "@types/mock-raf": "^1.0.3",
52
+ "@typescript-eslint/eslint-plugin": "^5.37.0",
53
+ "@typescript-eslint/parser": "^5.37.0",
54
+ "babel-jest": "^29.0.3",
55
55
  "copyfiles": "^2.4.1",
56
- "eslint": "^7.20.0",
57
- "eslint-config-prettier": "^8.1.0",
58
- "eslint-plugin-prettier": "^3.3.1",
59
- "eslint-plugin-storybook": "^0.5.10",
60
- "jest": "^27.4.7",
61
- "jest-canvas-mock": "^2.3.1",
56
+ "eslint": "^8.23.1",
57
+ "eslint-config-prettier": "^8.5.0",
58
+ "eslint-plugin-prettier": "^4.2.1",
59
+ "eslint-plugin-storybook": "^0.6.4",
60
+ "jest": "^29.0.3",
61
+ "jest-canvas-mock": "^2.4.0",
62
+ "jest-environment-jsdom": "^29.0.3",
62
63
  "mock-raf": "^1.0.1",
63
- "pixi.js": "^6.4.2",
64
+ "pixi.js": "^6.5.3",
64
65
  "prettier": "^2.6.1",
65
66
  "rimraf": "^3.0.2",
66
- "rollup": "^2.39.1",
67
+ "rollup": "^2.79.0",
67
68
  "rollup-plugin-commonjs": "^10.1.0",
68
69
  "rollup-plugin-node-resolve": "^5.2.0",
69
70
  "rollup-plugin-terser": "^7.0.2",
70
- "rollup-plugin-typescript2": "^0.30.0",
71
- "storybook-dark-mode": "^1.0.9",
72
- "tslib": "^2.1.0",
73
- "typedoc": "^0.22.13",
74
- "typescript": "^4.2.2"
71
+ "rollup-plugin-typescript2": "^0.34.0",
72
+ "storybook-dark-mode": "^1.1.2",
73
+ "tslib": "^2.4.0",
74
+ "typedoc": "^0.23.14",
75
+ "typescript": "^4.8.3"
75
76
  },
76
77
  "jest": {
77
78
  "setupFiles": [
@@ -89,10 +90,10 @@
89
90
  ]
90
91
  },
91
92
  "peerDependencies": {
92
- "pixi.js": "^6.4.2"
93
+ "pixi.js": "^6.5.3"
93
94
  },
94
95
  "dependencies": {
95
- "@equinor/videx-math": "^1.0.12",
96
+ "@equinor/videx-math": "^1.1.0",
96
97
  "@equinor/videx-vector2": "^1.0.44",
97
98
  "curve-interpolator": "2.0.8",
98
99
  "d3-array": "^3.2.0",