@equinor/esv-intersection 1.6.0 → 1.7.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/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +56 -56
- package/dist/interfaces.d.ts +8 -3
- package/dist/layers/base/PixiLayer.d.ts +2 -1
- package/package.json +12 -9
package/dist/interfaces.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZoomTransform } from 'd3-zoom';
|
|
2
|
-
import { Graphics } from 'pixi.js';
|
|
2
|
+
import { Application, Graphics } from 'pixi.js';
|
|
3
3
|
import { Layer } from './layers/base/Layer';
|
|
4
4
|
import { IntersectionReferenceSystem } from './control/IntersectionReferenceSystem';
|
|
5
5
|
import Vector2 from '@equinor/videx-vector2';
|
|
@@ -55,7 +55,7 @@ export interface WellborepathLayerOptions extends LayerOptions {
|
|
|
55
55
|
}
|
|
56
56
|
export interface GeomodelLayerOptions extends LayerOptions {
|
|
57
57
|
}
|
|
58
|
-
export interface CompletionLayerOptions extends
|
|
58
|
+
export interface CompletionLayerOptions extends PixiLayerOptions {
|
|
59
59
|
}
|
|
60
60
|
export interface GeomodelLayerLabelsOptions extends LayerOptions {
|
|
61
61
|
margins?: number;
|
|
@@ -77,7 +77,10 @@ export interface CementLayerOptions extends WellComponentBaseOptions {
|
|
|
77
77
|
firstColor?: string;
|
|
78
78
|
secondColor?: string;
|
|
79
79
|
}
|
|
80
|
-
export interface
|
|
80
|
+
export interface PixiLayerOptions extends LayerOptions {
|
|
81
|
+
pixiApplicationOptions?: PixiApplicationOptions;
|
|
82
|
+
}
|
|
83
|
+
export interface WellComponentBaseOptions extends PixiLayerOptions {
|
|
81
84
|
exaggerationFactor?: number;
|
|
82
85
|
}
|
|
83
86
|
export interface ZoomAndPanOptions {
|
|
@@ -175,4 +178,6 @@ export interface CalloutOptions extends LayerOptions {
|
|
|
175
178
|
offsetMax?: number;
|
|
176
179
|
offsetFactor?: number;
|
|
177
180
|
}
|
|
181
|
+
declare type PixiApplicationConstructorParameters = ConstructorParameters<typeof Application>;
|
|
182
|
+
declare type PixiApplicationOptions = PixiApplicationConstructorParameters[0];
|
|
178
183
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Application, RENDERER_TYPE } from 'pixi.js';
|
|
2
2
|
import { Layer } from './Layer';
|
|
3
|
-
import { OnMountEvent, OnRescaleEvent, OnResizeEvent, OnUnmountEvent } from '../../interfaces';
|
|
3
|
+
import { OnMountEvent, OnRescaleEvent, OnResizeEvent, OnUnmountEvent, PixiLayerOptions } from '../../interfaces';
|
|
4
4
|
export declare abstract class PixiLayer extends Layer {
|
|
5
5
|
elm: HTMLElement;
|
|
6
6
|
ctx: Application;
|
|
7
|
+
constructor(id?: string, options?: PixiLayerOptions);
|
|
7
8
|
onMount(event: OnMountEvent): void;
|
|
8
9
|
onUnmount(event?: OnUnmountEvent): void;
|
|
9
10
|
onResize(event: OnResizeEvent): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/esv-intersection",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@babel/core": "^7.16.7",
|
|
44
44
|
"@babel/preset-env": "^7.16.8",
|
|
45
45
|
"@babel/preset-typescript": "^7.16.7",
|
|
46
|
-
"@storybook/addon-docs": "^6.4.
|
|
47
|
-
"@storybook/addon-storysource": "^6.4.
|
|
48
|
-
"@storybook/html": "^6.4.
|
|
46
|
+
"@storybook/addon-docs": "^6.4.19",
|
|
47
|
+
"@storybook/addon-storysource": "^6.4.19",
|
|
48
|
+
"@storybook/html": "^6.4.19",
|
|
49
49
|
"@types/d3": "^7.1.0",
|
|
50
50
|
"@types/jest": "^27.4.0",
|
|
51
51
|
"@types/mock-raf": "^1.0.2",
|
|
@@ -56,20 +56,21 @@
|
|
|
56
56
|
"eslint": "^7.20.0",
|
|
57
57
|
"eslint-config-prettier": "^8.1.0",
|
|
58
58
|
"eslint-plugin-prettier": "^3.3.1",
|
|
59
|
+
"eslint-plugin-storybook": "^0.5.7",
|
|
59
60
|
"jest": "^27.4.7",
|
|
60
61
|
"jest-canvas-mock": "^2.3.1",
|
|
61
62
|
"mock-raf": "^1.0.1",
|
|
62
|
-
"pixi.js": "^5.3.
|
|
63
|
-
"prettier": "^2.
|
|
63
|
+
"pixi.js": "^5.3.11",
|
|
64
|
+
"prettier": "^2.6.1",
|
|
64
65
|
"rimraf": "^3.0.2",
|
|
65
66
|
"rollup": "^2.39.1",
|
|
66
67
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
67
68
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
68
69
|
"rollup-plugin-terser": "^7.0.2",
|
|
69
70
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
70
|
-
"storybook-dark-mode": "^1.0.
|
|
71
|
+
"storybook-dark-mode": "^1.0.9",
|
|
71
72
|
"tslib": "^2.1.0",
|
|
72
|
-
"typedoc": "^0.
|
|
73
|
+
"typedoc": "^0.22.13",
|
|
73
74
|
"typescript": "^4.2.2"
|
|
74
75
|
},
|
|
75
76
|
"jest": {
|
|
@@ -83,7 +84,9 @@
|
|
|
83
84
|
"js"
|
|
84
85
|
],
|
|
85
86
|
"testEnvironment": "jsdom",
|
|
86
|
-
"transformIgnorePatterns": [
|
|
87
|
+
"transformIgnorePatterns": [
|
|
88
|
+
"/node_modules/(?!d3)"
|
|
89
|
+
]
|
|
87
90
|
},
|
|
88
91
|
"peerDependencies": {
|
|
89
92
|
"pixi.js": "^5.2.1"
|