@equinor/videx-map 2.0.0 → 2.1.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.
@@ -30,11 +30,11 @@ export default class GeoJSONModule extends ModuleInterface {
30
30
  constructor(config?: Config);
31
31
  set(data: GeoJSON.FeatureCollection, props?: (feature: any) => FeatureProps): void;
32
32
  /**
33
- * Check for features at the given coordinates.
34
- * Will give a list of feature data if any are hit or an empty list if not.
35
- * @param pos Target position in lat-long
36
- * @returns List of features at the given position
37
- */
33
+ * Check for features at the given coordinates.
34
+ * Will give a list of feature data if any are hit or an empty list if not.
35
+ * @param pos Target position in lat-long
36
+ * @returns List of features at the given position
37
+ */
38
38
  testPosition(pos: Vector2): any;
39
39
  onAdd(map: L.Map): void;
40
40
  onRemove(_map: L.Map): void;
@@ -16,10 +16,10 @@ export default class GeoJSONPoint {
16
16
  constructor(root: Container, pixiOverlay: pixiOverlayBase);
17
17
  add(feature: GeoJSON.Feature, props: (feature: object) => FeatureProps): void;
18
18
  /**
19
- * Project a point coordinate.
20
- * @param point x,y pair
21
- * @returns Projected point
22
- */
19
+ * Project a point coordinate.
20
+ * @param point x,y pair
21
+ * @returns Projected point
22
+ */
23
23
  projectPoint(point: [number, number]): Vector2;
24
24
  resize(_zoom: number): void;
25
25
  testPosition(pos: Vector2): any;
@@ -16,11 +16,11 @@ export interface WellboreUniforms {
16
16
  export declare class WellboreShader {
17
17
  private static program;
18
18
  /**
19
- * Get shader for wellbore.
20
- * @param color Color used for wellbore
21
- * @param wellboreWidth Width of wellbore
22
- * @return PIXI shader
23
- */
19
+ * Get shader for wellbore.
20
+ * @param color Color used for wellbore
21
+ * @param wellboreWidth Width of wellbore
22
+ * @return PIXI shader
23
+ */
24
24
  static get(color: Color, completionVisible: boolean, wellboreVisible: boolean): Shader;
25
25
  /** Build wellbore shader with assigned variables. */
26
26
  static build(maxScale: number, wellboreDash: number): void;
@@ -1,5 +1,5 @@
1
1
  import { SourceData } from '../SourceData';
2
- export type RelativePosition = (number | [number, number]);
2
+ export type RelativePosition = number | [number, number];
3
3
  export interface DetailOptions {
4
4
  getData: (wellbore: SourceData, group: string) => RelativePosition[];
5
5
  shape?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/videx-map",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Component for Pixi-overlay in Leaflet.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -24,7 +24,8 @@
24
24
  "docs": "typedoc --out docs src",
25
25
  "postdocs": "node postdocs.copyfiles.mjs",
26
26
  "lint-staged": "lint-staged",
27
- "prepare": "husky"
27
+ "prepare": "husky",
28
+ "prettier": "prettier . --write"
28
29
  },
29
30
  "repository": {
30
31
  "type": "git",
@@ -68,6 +69,7 @@
68
69
  "leaflet": "^1.9.4",
69
70
  "lint-staged": "^15.5.2",
70
71
  "proj4": "^2.20.2",
72
+ "prettier": "3.7.4",
71
73
  "rimraf": "^6.1.2",
72
74
  "rollup": "^4.46.3",
73
75
  "simplex-noise": "^4.0.3",