@equinor/videx-map 1.14.14 → 2.0.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,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container } from 'pixi.js';
2
2
  import Vector2 from '@equinor/videx-vector2';
3
3
  import { SourceData } from './SourceData';
4
4
  import { RootData } from './RootData';
@@ -41,7 +41,7 @@ export declare class WellboreData {
41
41
  group: Group;
42
42
  wellboreWidth: number;
43
43
  interpolator: LineInterpolator;
44
- container: PIXI.Container;
44
+ container: Container;
45
45
  label: Label;
46
46
  private _zIndex;
47
47
  private details;
@@ -67,8 +67,8 @@ export declare class WellboreData {
67
67
  get order(): number;
68
68
  get uniforms(): WellboreUniforms;
69
69
  private createWellboreMesh;
70
- setCompletionVisibility(visible: boolean): void;
71
- setWellboreVisibility(visible: boolean): void;
70
+ setCompletionVisibility(visible: number): void;
71
+ setWellboreVisibility(visible: number): void;
72
72
  setDetailsVisibility(key: string, visible: boolean): void;
73
73
  setHighlight(isHighlighted: boolean, multiple?: boolean): void;
74
74
  setSelected(isSelected: boolean): void;
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Color, Graphics } from 'pixi.js';
2
2
  import { SourceData } from '../SourceData';
3
3
  import { LineInterpolator } from '../../../LineInterpolator';
4
4
  import { DetailOptions, RelativePosition } from './DetailOptions';
@@ -7,7 +7,7 @@ export declare abstract class Detail {
7
7
  initialized: boolean;
8
8
  visible: boolean;
9
9
  protected getData: (wellbore: SourceData, group: string) => RelativePosition[];
10
- protected color: PIXI.Color;
10
+ protected color: Color;
11
11
  protected group: string;
12
12
  constructor(options: DetailOptions, group?: string);
13
13
  /**
@@ -16,5 +16,5 @@ export declare abstract class Detail {
16
16
  * @returns Relative position along the wellbore needed for drawing graphics
17
17
  */
18
18
  getRelative(wellbore: SourceData): RelativePosition[];
19
- abstract getGraphics(relative: RelativePosition, interpolator: LineInterpolator): PIXI.Graphics;
19
+ abstract getGraphics(relative: RelativePosition, interpolator: LineInterpolator): Graphics;
20
20
  }
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Graphics } from 'pixi.js';
2
2
  import { LineInterpolator } from '../../../LineInterpolator';
3
3
  import { DetailOptions } from './DetailOptions';
4
4
  import { Detail } from './Detail';
@@ -10,5 +10,5 @@ export declare class ShoeDetail extends Detail {
10
10
  private widthTop;
11
11
  private widthBottom;
12
12
  constructor(options: ShoeOptions, group?: string);
13
- getGraphics([top, bottom]: [number, number], interpolator: LineInterpolator): PIXI.Graphics;
13
+ getGraphics([top, bottom]: [number, number], interpolator: LineInterpolator): Graphics;
14
14
  }
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { CanvasTextMetrics, Container, Graphics, Rectangle } from 'pixi.js';
2
2
  interface State {
3
3
  zoom: number;
4
4
  scale: number;
@@ -15,10 +15,10 @@ export declare class Label {
15
15
  private static style;
16
16
  static config: Common;
17
17
  static height: number;
18
- container: PIXI.Container;
18
+ container: Container;
19
19
  private text;
20
- background: PIXI.Graphics;
21
- metrics: PIXI.TextMetrics;
20
+ background: Graphics;
21
+ metrics: CanvasTextMetrics;
22
22
  private _attachToRoot;
23
23
  static setStyle(fontSize: number): void;
24
24
  static setCommon(config: Common): void;
@@ -34,6 +34,6 @@ export declare class Label {
34
34
  set fontColor(color: number);
35
35
  get attachToRoot(): boolean;
36
36
  set attachToRoot(val: boolean);
37
- getBoundingBox(): PIXI.Rectangle;
37
+ getBoundingBox(): Rectangle;
38
38
  }
39
39
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/videx-map",
3
- "version": "1.14.14",
3
+ "version": "2.0.0",
4
4
  "description": "Component for Pixi-overlay in Leaflet.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -65,9 +65,9 @@
65
65
  "eslint-plugin-storybook": "^0.11.6",
66
66
  "husky": "^9.1.7",
67
67
  "jsdom": "^27.1.0",
68
- "leaflet": "^1.7.1",
69
- "leaflet-pixi-overlay": "^1.9.4",
68
+ "leaflet": "^1.9.4",
70
69
  "lint-staged": "^15.5.2",
70
+ "proj4": "^2.20.2",
71
71
  "rimraf": "^6.1.2",
72
72
  "rollup": "^4.46.3",
73
73
  "simplex-noise": "^4.0.3",
@@ -93,7 +93,7 @@
93
93
  "d3-scale-chromatic": "^3.1.0",
94
94
  "d3-selection": "^3.0.0",
95
95
  "earcut": "^3.0.2",
96
- "pixi.js": "^7.3.2",
96
+ "pixi.js": "^8.16.0",
97
97
  "uuid": "^11.1.0",
98
98
  "yaml": "^2.8.1"
99
99
  }