@equinor/videx-map 1.14.3 → 1.14.4

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.
Files changed (66) hide show
  1. package/dist/EventHandler.d.ts +21 -21
  2. package/dist/ExplorationLayer.d.ts +38 -38
  3. package/dist/FaultlineModule.d.ts +51 -51
  4. package/dist/FieldModule.d.ts +113 -113
  5. package/dist/GeoJSONModule/GeoJSONModule.d.ts +47 -47
  6. package/dist/GeoJSONModule/constants.d.ts +13 -13
  7. package/dist/GeoJSONModule/index.d.ts +6 -6
  8. package/dist/GeoJSONModule/interfaces.d.ts +15 -15
  9. package/dist/GeoJSONModule/labels.d.ts +46 -46
  10. package/dist/GeoJSONModule/linestring.d.ts +55 -55
  11. package/dist/GeoJSONModule/multipolygon.d.ts +94 -94
  12. package/dist/GeoJSONModule/point.d.ts +26 -26
  13. package/dist/GeoJSONModule/polygon.d.ts +96 -96
  14. package/dist/GeoJSONModule/shader.d.ts +10 -10
  15. package/dist/ModuleInterface.d.ts +26 -26
  16. package/dist/OutlineModule.d.ts +81 -81
  17. package/dist/ResizeConfigInterface.d.ts +14 -14
  18. package/dist/WellboreModule.d.ts +126 -126
  19. package/dist/index.d.ts +8 -8
  20. package/dist/pixiOverlayInterfaces.d.ts +16 -16
  21. package/dist/utils/ComparableArray.d.ts +60 -60
  22. package/dist/utils/LineDictionary.d.ts +89 -89
  23. package/dist/utils/LineInterpolator.d.ts +84 -84
  24. package/dist/utils/Log.d.ts +1 -1
  25. package/dist/utils/Mesh.d.ts +46 -46
  26. package/dist/utils/PointDictionary.d.ts +58 -58
  27. package/dist/utils/Radius.d.ts +2 -2
  28. package/dist/utils/Rect.d.ts +27 -27
  29. package/dist/utils/TriangleDictionary.d.ts +21 -21
  30. package/dist/utils/WellboreMesh.d.ts +51 -51
  31. package/dist/utils/centerOfMass.d.ts +8 -8
  32. package/dist/utils/fields/Highlighter.d.ts +33 -33
  33. package/dist/utils/fields/LabelManager.d.ts +62 -62
  34. package/dist/utils/fields/groupLabels.d.ts +5 -5
  35. package/dist/utils/fields/preprocessFields.d.ts +29 -29
  36. package/dist/utils/generateCircle.d.ts +10 -10
  37. package/dist/utils/linePoint.d.ts +27 -27
  38. package/dist/utils/lineReducer.d.ts +9 -9
  39. package/dist/utils/wellbores/AsyncLoop.d.ts +35 -35
  40. package/dist/utils/wellbores/Colors.d.ts +40 -40
  41. package/dist/utils/wellbores/Config.d.ts +80 -80
  42. package/dist/utils/wellbores/DataManager.d.ts +15 -15
  43. package/dist/utils/wellbores/Highlight.d.ts +18 -18
  44. package/dist/utils/wellbores/LabelType.d.ts +9 -9
  45. package/dist/utils/wellbores/Projector.d.ts +20 -20
  46. package/dist/utils/wellbores/RealtimeWellbore.d.ts +21 -21
  47. package/dist/utils/wellbores/Shader.d.ts +41 -41
  48. package/dist/utils/wellbores/data/Group.d.ts +48 -48
  49. package/dist/utils/wellbores/data/RootData.d.ts +29 -29
  50. package/dist/utils/wellbores/data/SourceData.d.ts +25 -25
  51. package/dist/utils/wellbores/data/WellboreData.d.ts +76 -76
  52. package/dist/utils/wellbores/data/WellboreEventData.d.ts +16 -16
  53. package/dist/utils/wellbores/data/details/Detail.d.ts +20 -20
  54. package/dist/utils/wellbores/data/details/DetailOptions.d.ts +7 -7
  55. package/dist/utils/wellbores/data/details/ShoeDetail.d.ts +14 -14
  56. package/dist/utils/wellbores/data/details/index.d.ts +11 -11
  57. package/dist/utils/wellbores/data/index.d.ts +6 -6
  58. package/dist/utils/wellbores/highlight-helper.d.ts +6 -6
  59. package/dist/utils/wellbores/intervals.d.ts +15 -15
  60. package/dist/utils/wellbores/labels/Label.d.ts +39 -39
  61. package/dist/utils/wellbores/labels/index.d.ts +2 -2
  62. package/dist/utils/wellbores/labels/label-helper.d.ts +3 -3
  63. package/dist/utils/wellbores/registries/CallbackRegistry.d.ts +23 -23
  64. package/dist/utils/wellbores/registries/ColorRegistry.d.ts +22 -22
  65. package/dist/utils/wellbores/registries/index.d.ts +2 -2
  66. package/package.json +12 -9
@@ -1,3 +1,3 @@
1
- import { WellboreData } from '../data';
2
- export declare function positionAtRoot(wellbore: WellboreData, position: number): void;
3
- export declare function positionAlongWellbore(wellbore: WellboreData): void;
1
+ import { WellboreData } from '../data';
2
+ export declare function positionAtRoot(wellbore: WellboreData, position: number): void;
3
+ export declare function positionAlongWellbore(wellbore: WellboreData): void;
@@ -1,23 +1,23 @@
1
- type Callback = (wellboreId: number) => void;
2
- export declare class CallbackRegistry {
3
- /** Internal callback register. */
4
- registry: {
5
- [key: string]: Callback;
6
- };
7
- /** Can map multiple strings to same callback. */
8
- map: {
9
- [key: string]: Callback;
10
- };
11
- constructor();
12
- /** Register callback */
13
- register(key: string, callback: Callback): void;
14
- /**
15
- * Used to map key given as first parameter in 'WellboreModule' with a callback in internal registy.
16
- * If key is blank, will try to retrieve 'setKey' from registry. Else key will map to default callback.
17
- * @param setKey Key to map to registry.
18
- * @param key Key in registry.
19
- */
20
- mapKey(setKey: string, key?: string): void;
21
- get(setKey?: string): Callback;
22
- }
23
- export {};
1
+ type Callback = (wellboreId: number) => void;
2
+ export declare class CallbackRegistry {
3
+ /** Internal callback register. */
4
+ registry: {
5
+ [key: string]: Callback;
6
+ };
7
+ /** Can map multiple strings to same callback. */
8
+ map: {
9
+ [key: string]: Callback;
10
+ };
11
+ constructor();
12
+ /** Register callback */
13
+ register(key: string, callback: Callback): void;
14
+ /**
15
+ * Used to map key given as first parameter in 'WellboreModule' with a callback in internal registy.
16
+ * If key is blank, will try to retrieve 'setKey' from registry. Else key will map to default callback.
17
+ * @param setKey Key to map to registry.
18
+ * @param key Key in registry.
19
+ */
20
+ mapKey(setKey: string, key?: string): void;
21
+ get(setKey?: string): Callback;
22
+ }
23
+ export {};
@@ -1,22 +1,22 @@
1
- import { Colors } from '../Colors';
2
- export declare class ColorRegistry {
3
- /** Internal color register. */
4
- registry: {
5
- [key: string]: Colors;
6
- };
7
- /** Can map multiple strings to same instance in registry. */
8
- map: {
9
- [key: string]: Colors;
10
- };
11
- constructor();
12
- /** Color collection */
13
- register(key: string, colors: Colors): void;
14
- /**
15
- * Used to map key given as first parameter in 'WellboreModule' with a color collection in internal registy.
16
- * If key is blank, will try to retrieve 'setKey' from registry. Else key will map to default color configurations.
17
- * @param setKey Key to map to registry.
18
- * @param key Key in registry.
19
- */
20
- mapKey(setKey: string, key?: string): void;
21
- get(setKey?: string): Colors;
22
- }
1
+ import { Colors } from '../Colors';
2
+ export declare class ColorRegistry {
3
+ /** Internal color register. */
4
+ registry: {
5
+ [key: string]: Colors;
6
+ };
7
+ /** Can map multiple strings to same instance in registry. */
8
+ map: {
9
+ [key: string]: Colors;
10
+ };
11
+ constructor();
12
+ /** Color collection */
13
+ register(key: string, colors: Colors): void;
14
+ /**
15
+ * Used to map key given as first parameter in 'WellboreModule' with a color collection in internal registy.
16
+ * If key is blank, will try to retrieve 'setKey' from registry. Else key will map to default color configurations.
17
+ * @param setKey Key to map to registry.
18
+ * @param key Key in registry.
19
+ */
20
+ mapKey(setKey: string, key?: string): void;
21
+ get(setKey?: string): Colors;
22
+ }
@@ -1,2 +1,2 @@
1
- export { ColorRegistry } from './ColorRegistry';
2
- export { CallbackRegistry } from './CallbackRegistry';
1
+ export { ColorRegistry } from './ColorRegistry';
2
+ export { CallbackRegistry } from './CallbackRegistry';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/videx-map",
3
- "version": "1.14.3",
3
+ "version": "1.14.4",
4
4
  "description": "Component for Pixi-overlay in Leaflet.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -46,20 +46,22 @@
46
46
  "@babel/core": "^7.22.1",
47
47
  "@equinor/videx-storybook-input": "^1.0.0",
48
48
  "@storybook/html": "^6.2.3",
49
+ "@types/babel__core": "^7.20.5",
49
50
  "@types/d3": "^5.7.2",
50
51
  "@types/earcut": "^2.1.1",
51
52
  "@types/geojson": "^7946.0.3",
52
- "@types/jest": "^26.0.13",
53
+ "@types/jest": "^29.5.11",
53
54
  "@types/leaflet": "^1.5.17",
54
55
  "@types/uuid": "^8.3.0",
55
- "@typescript-eslint/eslint-plugin": "^5.46.1",
56
- "@typescript-eslint/parser": "^5.46.1",
56
+ "@typescript-eslint/eslint-plugin": "^6.16.0",
57
+ "@typescript-eslint/parser": "^6.16.0",
57
58
  "babel-loader": "^8.1.0",
58
59
  "copyfiles": "^2.3.0",
59
60
  "eslint-formatter-table": "^7.32.1",
60
61
  "husky": "^8.0.3",
61
- "jest": "^26.4.2",
62
+ "jest": "^29.7.0",
62
63
  "jest-canvas-mock": "^2.2.0",
64
+ "jest-environment-jsdom": "^29.7.0",
63
65
  "leaflet": "^1.7.1",
64
66
  "leaflet-pixi-overlay": "^1.8.2",
65
67
  "lint-staged": "^11.1.2",
@@ -69,13 +71,14 @@
69
71
  "rollup-plugin-terser": "^7.0.2",
70
72
  "rollup-plugin-typescript2": "^0.35.0",
71
73
  "simplex-noise": "^2.4.0",
72
- "ts-jest": "^26.3.0",
74
+ "ts-jest": "^29.1.1",
73
75
  "ts-loader": "^9.4.2",
74
76
  "tslib": "^2.6.1",
75
- "typedoc": "^0.23.23",
76
- "typescript": "^4.9.4"
77
+ "typedoc": "^0.25.4",
78
+ "typescript": "^5.3.3"
77
79
  },
78
80
  "jest": {
81
+ "testEnvironment": "jsdom",
79
82
  "transform": {
80
83
  ".(ts|tsx)": "ts-jest"
81
84
  },
@@ -95,7 +98,7 @@
95
98
  "@equinor/videx-vector2": "^1.0.44",
96
99
  "d3-color": "^3.1.0",
97
100
  "earcut": "^2.2.4",
98
- "pixi.js": "^7.2.2",
101
+ "pixi.js": "^7.3.2",
99
102
  "uuid": "^8.3.2"
100
103
  }
101
104
  }