@equinor/videx-map 1.12.5 → 1.13.0-beta.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/ExplorationLayer.d.ts +1 -1
- package/dist/FaultlineModule.d.ts +2 -2
- package/dist/FieldModule.d.ts +3 -3
- package/dist/GeoJSONModule/GeoJSONModule.d.ts +2 -2
- package/dist/GeoJSONModule/labels.d.ts +1 -1
- package/dist/GeoJSONModule/linestring.d.ts +2 -2
- package/dist/GeoJSONModule/multipolygon.d.ts +2 -2
- package/dist/GeoJSONModule/point.d.ts +1 -1
- package/dist/GeoJSONModule/polygon.d.ts +1 -1
- package/dist/ModuleInterface.d.ts +3 -3
- package/dist/WellboreModule.d.ts +2 -2
- package/dist/index.esm.js +1 -15
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/utils/ComparableArray.d.ts +60 -0
- package/dist/utils/LineDictionary.d.ts +2 -2
- package/dist/utils/Mesh.d.ts +2 -2
- package/dist/utils/PointDictionary.d.ts +1 -1
- package/dist/utils/Rect.d.ts +27 -0
- package/dist/utils/TriangleDictionary.d.ts +1 -1
- package/dist/utils/centerOfMass.d.ts +1 -1
- package/dist/utils/fields/Highlighter.d.ts +1 -1
- package/dist/utils/fields/LabelManager.d.ts +2 -2
- package/dist/utils/generateCircle.d.ts +1 -1
- package/dist/utils/lineReducer.d.ts +9 -0
- package/dist/utils/wellbores/Colors.d.ts +1 -1
- package/dist/utils/wellbores/Config.d.ts +3 -3
- package/dist/utils/wellbores/DataManager.d.ts +15 -0
- package/dist/utils/wellbores/Highlight.d.ts +1 -1
- package/dist/utils/wellbores/LabelType.d.ts +9 -0
- package/dist/utils/wellbores/Projector.d.ts +1 -1
- package/dist/utils/wellbores/RealtimeWellbore.d.ts +1 -1
- package/dist/utils/wellbores/Shader.d.ts +2 -1
- package/dist/utils/wellbores/data/Group.d.ts +1 -1
- package/dist/utils/wellbores/data/RootData.d.ts +2 -1
- package/dist/utils/wellbores/data/SourceData.d.ts +25 -0
- package/dist/utils/wellbores/data/WellboreData.d.ts +4 -0
- package/dist/utils/wellbores/data/WellboreEventData.d.ts +2 -2
- package/dist/utils/wellbores/highlight-helper.d.ts +3 -3
- package/dist/utils/wellbores/labels/label-helper.d.ts +1 -1
- package/dist/utils/wellbores/registries/CallbackRegistry.d.ts +23 -0
- package/dist/utils/wellbores/registries/ColorRegistry.d.ts +22 -0
- package/dist/utils/wellbores/registries/index.d.ts +2 -0
- package/package.json +24 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import * as PIXI from 'pixi.js';
|
|
1
2
|
import { ModuleInterface } from './ModuleInterface';
|
|
2
3
|
import { RootUniforms } from './utils/wellbores/Shader';
|
|
3
4
|
import PointDictionary from './utils/PointDictionary';
|
|
4
|
-
import { selection } from 'd3';
|
|
5
5
|
/**
|
|
6
6
|
* Data assigned each point in point dictionary.
|
|
7
7
|
*/
|
|
@@ -13,7 +13,7 @@ interface FaultlineData {
|
|
|
13
13
|
sourceUpdateDate: string;
|
|
14
14
|
}
|
|
15
15
|
/** Interface for faultline config. */
|
|
16
|
-
interface InputConfig {
|
|
16
|
+
export interface InputConfig {
|
|
17
17
|
/** Color of faultline on format 0xRRGGBB. (Default: 0x727D88) */
|
|
18
18
|
color?: number;
|
|
19
19
|
/** Alpha of faultlines. (Default: 1.0) */
|
|
@@ -46,6 +46,6 @@ export default class FaultlineModule extends ModuleInterface {
|
|
|
46
46
|
set(data: FaultlineData[]): void;
|
|
47
47
|
/** Clear all spawned graphic elements and return to pool. */
|
|
48
48
|
clear(): void;
|
|
49
|
-
resize(
|
|
49
|
+
resize(_zoom: number): void;
|
|
50
50
|
}
|
|
51
51
|
export {};
|
package/dist/FieldModule.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as PIXI from 'pixi.js';
|
|
2
|
+
import Vector2 from '@equinor/videx-vector2';
|
|
2
3
|
import { ModuleInterface } from './ModuleInterface';
|
|
3
4
|
import { MeshData, MeshNormalData } from './utils/Mesh';
|
|
4
5
|
import Highlighter from './utils/fields/Highlighter';
|
|
5
6
|
import LabelManager from './utils/fields/LabelManager';
|
|
6
7
|
import TriangleDictionary from './utils/TriangleDictionary';
|
|
7
|
-
|
|
8
|
-
declare type vec3 = [number, number, number];
|
|
8
|
+
type vec3 = [number, number, number];
|
|
9
9
|
interface FillUniform {
|
|
10
10
|
col1: vec3;
|
|
11
11
|
col2: vec3;
|
|
@@ -106,7 +106,7 @@ export default class FieldModule extends ModuleInterface {
|
|
|
106
106
|
* @returns Projected polygons
|
|
107
107
|
*/
|
|
108
108
|
projectPolygons(points: [number, number][]): Vector2[];
|
|
109
|
-
resize(
|
|
109
|
+
resize(_zoom: number): void;
|
|
110
110
|
highlight(lat: number, long: number): boolean;
|
|
111
111
|
tryUnselect(): void;
|
|
112
112
|
}
|
|
@@ -35,8 +35,8 @@ export default class GeoJSONModule extends ModuleInterface {
|
|
|
35
35
|
* @returns List of features at the given position
|
|
36
36
|
*/
|
|
37
37
|
testPosition(pos: Vector2): any;
|
|
38
|
-
onAdd(map: import(
|
|
39
|
-
onRemove(
|
|
38
|
+
onAdd(map: import('leaflet').Map): void;
|
|
39
|
+
onRemove(_map: import('leaflet').Map): void;
|
|
40
40
|
resize(zoom: number): void;
|
|
41
41
|
private handleMouseMove;
|
|
42
42
|
private handleMouseOut;
|
|
@@ -5,7 +5,7 @@ import { MeshNormalData } from '../utils/Mesh';
|
|
|
5
5
|
import LineDictionary from '../utils/LineDictionary';
|
|
6
6
|
import { FeatureProps, FeatureStyle } from '.';
|
|
7
7
|
import { ResizeConfig } from '../ResizeConfigInterface';
|
|
8
|
-
|
|
8
|
+
type vec3 = [number, number, number];
|
|
9
9
|
interface OutlineUniform {
|
|
10
10
|
color: vec3;
|
|
11
11
|
width: number;
|
|
@@ -49,7 +49,7 @@ export default class GeoJSONLineString {
|
|
|
49
49
|
*/
|
|
50
50
|
projectPolygons(points: [number, number][]): Vector2[];
|
|
51
51
|
resize(zoom: number): void;
|
|
52
|
-
testPosition(pos: Vector2):
|
|
52
|
+
testPosition(pos: Vector2): number;
|
|
53
53
|
getOutlineRadius(zoom?: number): number;
|
|
54
54
|
}
|
|
55
55
|
export {};
|
|
@@ -6,7 +6,7 @@ import GeoJSONLabels from './labels';
|
|
|
6
6
|
import TriangleDictionary from '../utils/TriangleDictionary';
|
|
7
7
|
import { FeatureProps, FeatureStyle } from '.';
|
|
8
8
|
import { ResizeConfig, LabelResizeConfig } from '../ResizeConfigInterface';
|
|
9
|
-
|
|
9
|
+
type vec3 = [number, number, number];
|
|
10
10
|
interface FillUniform {
|
|
11
11
|
col1: vec3;
|
|
12
12
|
col2: vec3;
|
|
@@ -87,7 +87,7 @@ export default class GeoJSONMultiPolygon {
|
|
|
87
87
|
*/
|
|
88
88
|
projectPolygons(points: [number, number][]): Vector2[];
|
|
89
89
|
resize(zoom: number): void;
|
|
90
|
-
testPosition(pos: Vector2):
|
|
90
|
+
testPosition(pos: Vector2): number;
|
|
91
91
|
getOutlineRadius(zoom?: number): number;
|
|
92
92
|
getLabelSize(zoom?: number): number;
|
|
93
93
|
}
|
|
@@ -6,7 +6,7 @@ import GeoJSONLabels from './labels';
|
|
|
6
6
|
import TriangleDictionary from '../utils/TriangleDictionary';
|
|
7
7
|
import { FeatureProps, FeatureStyle } from '.';
|
|
8
8
|
import { ResizeConfig, LabelResizeConfig } from '../ResizeConfigInterface';
|
|
9
|
-
|
|
9
|
+
type vec3 = [number, number, number];
|
|
10
10
|
interface FillUniform {
|
|
11
11
|
col1: vec3;
|
|
12
12
|
col2: vec3;
|
|
@@ -20,7 +20,7 @@ export declare abstract class ModuleInterface {
|
|
|
20
20
|
* @returns True if new visibility was set
|
|
21
21
|
*/
|
|
22
22
|
setVisibility(visible: boolean): boolean;
|
|
23
|
-
onAdd(
|
|
24
|
-
onRemove(
|
|
25
|
-
resize(
|
|
23
|
+
onAdd(_map: L.Map): void;
|
|
24
|
+
onRemove(_map: L.Map): void;
|
|
25
|
+
resize(_zoom: number): void;
|
|
26
26
|
}
|
package/dist/WellboreModule.d.ts
CHANGED
|
@@ -94,8 +94,8 @@ export default class WellboreModule extends ModuleInterface {
|
|
|
94
94
|
*/
|
|
95
95
|
clear(...keys: string[]): void;
|
|
96
96
|
resize(zoom: number): void;
|
|
97
|
-
onAdd(map: import(
|
|
98
|
-
onRemove(
|
|
97
|
+
onAdd(map: import('leaflet').Map): void;
|
|
98
|
+
onRemove(_map: import('leaflet').Map): void;
|
|
99
99
|
get projector(): Projector;
|
|
100
100
|
/**
|
|
101
101
|
* Calculate root radius based on formula used in Shader.ts!
|