@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 { Mesh, Geometry, Shader } from 'pixi.js';
2
2
  import { ModuleInterface } from './ModuleInterface';
3
3
  import { RootUniforms } from './utils/wellbores/Shader';
4
4
  import PointDictionary from './utils/PointDictionary';
@@ -6,7 +6,7 @@ import PointDictionary from './utils/PointDictionary';
6
6
  * Data assigned each point in point dictionary.
7
7
  */
8
8
  interface PointData {
9
- mesh: PIXI.Mesh;
9
+ mesh: Mesh<Geometry, Shader>;
10
10
  uniforms: RootUniforms;
11
11
  }
12
12
  interface selection {
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Graphics } from 'pixi.js';
2
2
  import { ModuleInterface } from './ModuleInterface';
3
3
  /** Data format on incoming faultlines */
4
4
  interface FaultlineData {
@@ -32,9 +32,9 @@ interface Config {
32
32
  /** Module for displaying faultlines. */
33
33
  export default class FaultlineModule extends ModuleInterface {
34
34
  /** Graphic elements currently existing in world space. */
35
- spawned: PIXI.Graphics[];
35
+ spawned: Graphics[];
36
36
  /** Pool of initialized graphic elements. */
37
- pool: PIXI.Graphics[];
37
+ pool: Graphics[];
38
38
  /** Default config. */
39
39
  config: Config;
40
40
  constructor(config?: InputConfig);
@@ -1,22 +1,46 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Geometry, Mesh, Shader } from 'pixi.js';
2
2
  import Vector2 from '@equinor/videx-vector2';
3
3
  import { ModuleInterface } from './ModuleInterface';
4
- import { MeshData, MeshNormalData } from './utils/Mesh';
4
+ import { MeshData, MeshNormalData } from './utils/LineMesh';
5
5
  import Highlighter from './utils/fields/Highlighter';
6
6
  import LabelManager from './utils/fields/LabelManager';
7
7
  import TriangleDictionary from './utils/TriangleDictionary';
8
8
  type vec3 = [number, number, number];
9
9
  interface FillUniform {
10
- col1: vec3;
11
- col2: vec3;
12
- opacity: number;
13
- hashed: boolean;
14
- hashDisp: number;
15
- hashWidth: number;
10
+ col1: {
11
+ value: vec3;
12
+ type: string;
13
+ };
14
+ col2: {
15
+ value: vec3;
16
+ type: string;
17
+ };
18
+ opacity: {
19
+ value: number;
20
+ type: string;
21
+ };
22
+ hashed: {
23
+ value: number;
24
+ type: string;
25
+ };
26
+ hashDisp: {
27
+ value: number;
28
+ type: string;
29
+ };
30
+ hashWidth: {
31
+ value: number;
32
+ type: string;
33
+ };
16
34
  }
17
35
  interface OutlineUniform {
18
- color: vec3;
19
- width: number;
36
+ color: {
37
+ value: vec3;
38
+ type: string;
39
+ };
40
+ outlineWidth: {
41
+ value: number;
42
+ type: string;
43
+ };
20
44
  }
21
45
  /** Collection of data describing colors used for fill. */
22
46
  interface FieldStyle {
@@ -24,7 +48,7 @@ interface FieldStyle {
24
48
  fillColor2: vec3;
25
49
  fillOpacity: number;
26
50
  outlineColor: vec3;
27
- hashed: boolean;
51
+ hashed: number;
28
52
  }
29
53
  export interface Field {
30
54
  type: string;
@@ -51,11 +75,11 @@ export interface Field {
51
75
  }
52
76
  export interface FieldMesh {
53
77
  fill: {
54
- mesh: PIXI.Mesh;
78
+ mesh: Mesh<Geometry, Shader>;
55
79
  uniform: FillUniform;
56
80
  };
57
81
  outline: {
58
- mesh: PIXI.Mesh;
82
+ mesh: Mesh<Geometry, Shader>;
59
83
  uniform: OutlineUniform;
60
84
  };
61
85
  }
@@ -1,4 +1,5 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container } from 'pixi.js';
2
+ import * as L from 'leaflet';
2
3
  import Vector2 from '@equinor/videx-vector2';
3
4
  import { ModuleInterface } from '../ModuleInterface';
4
5
  import { EventHandler } from '../EventHandler';
@@ -24,7 +25,7 @@ export default class GeoJSONModule extends ModuleInterface {
24
25
  multipolygons: GeoJSONMultiPolygon;
25
26
  _eventHandler: EventHandler;
26
27
  mapmoving: boolean;
27
- labelRoot: PIXI.Container;
28
+ labelRoot: Container;
28
29
  config?: Config;
29
30
  constructor(config?: Config);
30
31
  set(data: GeoJSON.FeatureCollection, props?: (feature: any) => FeatureProps): void;
@@ -35,8 +36,8 @@ export default class GeoJSONModule extends ModuleInterface {
35
36
  * @returns List of features at the given position
36
37
  */
37
38
  testPosition(pos: Vector2): any;
38
- onAdd(map: import('leaflet').Map): void;
39
- onRemove(_map: import('leaflet').Map): void;
39
+ onAdd(map: L.Map): void;
40
+ onRemove(_map: L.Map): void;
40
41
  resize(zoom: number): void;
41
42
  private handleMouseMove;
42
43
  private handleMouseOut;
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container, BitmapFont, BitmapText, TextStyle } from 'pixi.js';
2
2
  import Vector2 from '@equinor/videx-vector2';
3
3
  /** Data for label. */
4
4
  export type GeoJSONLabelData = {
@@ -8,16 +8,16 @@ export type GeoJSONLabelData = {
8
8
  interface Label {
9
9
  name: string;
10
10
  position: Vector2;
11
- instance?: PIXI.BitmapText;
11
+ instance?: BitmapText;
12
12
  }
13
13
  /** Class used to manage field labels. Handles scaling and grouping of labels. */
14
14
  export default class GeoJSONLabels {
15
15
  /**PIXI container to hold all labels*/
16
- container: PIXI.Container;
16
+ container: Container;
17
17
  /** The textstyle used for labels. */
18
- textStyle: PIXI.TextStyle;
18
+ textStyle: TextStyle;
19
19
  /** The font used for labels. */
20
- font: PIXI.BitmapFont;
20
+ font: BitmapFont;
21
21
  /** font name */
22
22
  fontName: string;
23
23
  /** Scale of labels when size is set to 1. */
@@ -27,7 +27,7 @@ export default class GeoJSONLabels {
27
27
  /** Visibility */
28
28
  visible: boolean;
29
29
  /** construct a new label container. */
30
- constructor(root: PIXI.Container, textStyle: PIXI.TextStyle, baseScale: number, fontName?: string);
30
+ constructor(root: Container, textStyle: TextStyle, baseScale: number, fontName?: string);
31
31
  /**
32
32
  * Add a new label.
33
33
  * @param name label name
@@ -1,18 +1,24 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container, Geometry, Mesh, Shader, TextStyle } from 'pixi.js';
2
2
  import Vector2 from '@equinor/videx-vector2';
3
3
  import { pixiOverlayBase } from '../pixiOverlayInterfaces';
4
- import { MeshNormalData } from '../utils/Mesh';
4
+ import { MeshNormalData } from '../utils/LineMesh';
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
- color: vec3;
11
- width: number;
10
+ color: {
11
+ value: vec3;
12
+ type: string;
13
+ };
14
+ width: {
15
+ value: number;
16
+ type: string;
17
+ };
12
18
  }
13
19
  export interface FeatureMesh {
14
20
  outline: {
15
- mesh: PIXI.Mesh;
21
+ mesh: Mesh<Geometry, Shader>;
16
22
  uniform: OutlineUniform;
17
23
  };
18
24
  }
@@ -30,18 +36,18 @@ export default class GeoJSONLineString {
30
36
  features: FeatureMesh[];
31
37
  /** Settings for how to render fields. */
32
38
  config: Config;
33
- container: PIXI.Container;
39
+ container: Container;
34
40
  pixiOverlay: pixiOverlayBase;
35
41
  dict: LineDictionary<any>;
36
- textStyle: PIXI.TextStyle;
42
+ textStyle: TextStyle;
37
43
  currentZoom: number;
38
- constructor(root: PIXI.Container, pixiOverlay: pixiOverlayBase, config?: Config);
44
+ constructor(root: Container, pixiOverlay: pixiOverlayBase, config?: Config);
39
45
  add(feature: GeoJSON.Feature, props: (feature: object) => FeatureProps): void;
40
46
  /**
41
47
  * Draw each polygon in a polygon collection.
42
48
  * @param polygons
43
49
  */
44
- drawPolygons(container: PIXI.Container, outlineData: MeshNormalData, featureStyle: FeatureStyle, zIndex: number): FeatureMesh;
50
+ drawPolygons(container: Container, outlineData: MeshNormalData, featureStyle: FeatureStyle, zIndex: number): FeatureMesh;
45
51
  /**
46
52
  * Project a collection of polygons.
47
53
  * @param points Points within polygons
@@ -1,31 +1,55 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container, Geometry, Mesh, Shader, TextStyle } from 'pixi.js';
2
2
  import Vector2 from '@equinor/videx-vector2';
3
3
  import { pixiOverlayBase } from '../pixiOverlayInterfaces';
4
- import { MeshData, MeshNormalData } from '../utils/Mesh';
4
+ import { MeshData, MeshNormalData } from '../utils/LineMesh';
5
5
  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
- col1: vec3;
12
- col2: vec3;
13
- opacity: number;
14
- hashed: boolean;
15
- hashDisp: number;
16
- hashWidth: number;
11
+ col1: {
12
+ value: vec3;
13
+ type: string;
14
+ };
15
+ col2: {
16
+ value: vec3;
17
+ type: string;
18
+ };
19
+ opacity: {
20
+ value: number;
21
+ type: string;
22
+ };
23
+ hashed: {
24
+ value: boolean;
25
+ type: string;
26
+ };
27
+ hashDisp: {
28
+ value: number;
29
+ type: string;
30
+ };
31
+ hashWidth: {
32
+ value: number;
33
+ type: string;
34
+ };
17
35
  }
18
36
  interface OutlineUniform {
19
- color: vec3;
20
- outlineWidth: number;
37
+ color: {
38
+ value: vec3;
39
+ type: string;
40
+ };
41
+ outlineWidth: {
42
+ value: number;
43
+ type: string;
44
+ };
21
45
  }
22
46
  export interface FeatureMesh {
23
47
  fill: {
24
- mesh: PIXI.Mesh;
48
+ mesh: Mesh<Geometry, Shader>;
25
49
  uniform: FillUniform;
26
50
  };
27
51
  outline: {
28
- mesh: PIXI.Mesh;
52
+ mesh: Mesh<Geometry, Shader>;
29
53
  uniform: OutlineUniform;
30
54
  };
31
55
  }
@@ -66,19 +90,19 @@ export default class GeoJSONMultiPolygon {
66
90
  features: FeatureMesh[];
67
91
  /** Settings for how to render data. */
68
92
  config: Config;
69
- container: PIXI.Container;
93
+ container: Container;
70
94
  pixiOverlay: pixiOverlayBase;
71
95
  dict: TriangleDictionary<any>;
72
- textStyle: PIXI.TextStyle;
96
+ textStyle: TextStyle;
73
97
  labels: GeoJSONLabels;
74
98
  currentZoom: number;
75
- constructor(root: PIXI.Container, labelRoot: PIXI.Container, pixiOverlay: pixiOverlayBase, config?: Config);
99
+ constructor(root: Container, labelRoot: Container, pixiOverlay: pixiOverlayBase, config?: Config);
76
100
  add(feature: GeoJSON.Feature, props: (feature: object) => FeatureProps): void;
77
101
  /**
78
102
  * Draw each polygon in a polygon collection.
79
103
  * @param polygons
80
104
  */
81
- drawPolygons(container: PIXI.Container, meshData: MeshData, outlineData: MeshNormalData, featureStyle: FeatureStyle, zIndex: number): FeatureMesh;
105
+ drawPolygons(container: Container, meshData: MeshData, outlineData: MeshNormalData, featureStyle: FeatureStyle, zIndex: number): FeatureMesh;
82
106
  drawLabels(): void;
83
107
  /**
84
108
  * Project a collection of polygons.
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container, Graphics, TextStyle } from 'pixi.js';
2
2
  import Vector2 from '@equinor/videx-vector2';
3
3
  import { pixiOverlayBase } from '../pixiOverlayInterfaces';
4
4
  import PointDictionary from '../utils/PointDictionary';
@@ -6,14 +6,14 @@ import { FeatureProps } from '.';
6
6
  /** Module for displaying fields. */
7
7
  export default class GeoJSONPoint {
8
8
  /** Graphic elements currently existing in world space. */
9
- spawned: PIXI.Graphics[];
9
+ spawned: Graphics[];
10
10
  /** Pool of initialized graphic elements. */
11
- pool: PIXI.Graphics[];
12
- container: PIXI.Container;
11
+ pool: Graphics[];
12
+ container: Container;
13
13
  pixiOverlay: pixiOverlayBase;
14
14
  dict: PointDictionary<any>;
15
- textStyle: PIXI.TextStyle;
16
- constructor(root: PIXI.Container, pixiOverlay: pixiOverlayBase);
15
+ textStyle: TextStyle;
16
+ constructor(root: Container, pixiOverlay: pixiOverlayBase);
17
17
  add(feature: GeoJSON.Feature, props: (feature: object) => FeatureProps): void;
18
18
  /**
19
19
  * Project a point coordinate.
@@ -1,31 +1,55 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container, Mesh, Geometry, Shader, TextStyle } from 'pixi.js';
2
2
  import Vector2 from '@equinor/videx-vector2';
3
3
  import { pixiOverlayBase } from '../pixiOverlayInterfaces';
4
- import { MeshData, MeshNormalData } from '../utils/Mesh';
4
+ import { MeshData, MeshNormalData } from '../utils/LineMesh';
5
5
  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
- col1: vec3;
12
- col2: vec3;
13
- opacity: number;
14
- hashed: boolean;
15
- hashDisp: number;
16
- hashWidth: number;
11
+ col1: {
12
+ value: vec3;
13
+ type: string;
14
+ };
15
+ col2: {
16
+ value: vec3;
17
+ type: string;
18
+ };
19
+ opacity: {
20
+ value: number;
21
+ type: string;
22
+ };
23
+ hashed: {
24
+ value: number;
25
+ type: string;
26
+ };
27
+ hashDisp: {
28
+ value: number;
29
+ type: string;
30
+ };
31
+ hashWidth: {
32
+ value: number;
33
+ type: string;
34
+ };
17
35
  }
18
36
  interface OutlineUniform {
19
- color: vec3;
20
- outlineWidth: number;
37
+ color: {
38
+ value: vec3;
39
+ type: string;
40
+ };
41
+ outlineWidth: {
42
+ value: number;
43
+ type: string;
44
+ };
21
45
  }
22
46
  export interface FeatureMesh {
23
47
  fill: {
24
- mesh: PIXI.Mesh;
48
+ mesh: Mesh<Geometry, Shader>;
25
49
  uniform: FillUniform;
26
50
  };
27
51
  outline: {
28
- mesh: PIXI.Mesh;
52
+ mesh: Mesh<Geometry, Shader>;
29
53
  uniform: OutlineUniform;
30
54
  };
31
55
  }
@@ -66,21 +90,21 @@ export default class GeoJSONPolygon {
66
90
  features: FeatureMesh[];
67
91
  /** Settings for how to render data. */
68
92
  config: Config;
69
- container: PIXI.Container;
93
+ container: Container;
70
94
  pixiOverlay: pixiOverlayBase;
71
95
  dict: TriangleDictionary<any>;
72
- textStyle: PIXI.TextStyle;
96
+ textStyle: TextStyle;
73
97
  labels: GeoJSONLabels;
74
98
  currentZoom: number;
75
99
  outlineThickness: number;
76
100
  zIndex: number;
77
- constructor(root: PIXI.Container, labelRoot: PIXI.Container, pixiOverlay: pixiOverlayBase, config?: Config);
101
+ constructor(root: Container, labelRoot: Container, pixiOverlay: pixiOverlayBase, config?: Config);
78
102
  add(feature: GeoJSON.Feature, props: (feature: object) => FeatureProps): void;
79
103
  /**
80
104
  * Draw each polygon in a polygon collection.
81
105
  * @param polygons
82
106
  */
83
- drawPolygons(container: PIXI.Container, meshData: MeshData, outlineData: MeshNormalData, featureStyle: FeatureStyle, zIndex: number): FeatureMesh;
107
+ drawPolygons(container: Container, meshData: MeshData, outlineData: MeshNormalData, featureStyle: FeatureStyle, zIndex: number): FeatureMesh;
84
108
  drawLabels(): void;
85
109
  /**
86
110
  * Project a collection of polygons.
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Shared shaders for polygon and multipolygon
3
3
  */
4
- export declare const GeoJSONVertexShaderFill = "\n attribute vec2 inputVerts;\n\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n\n varying vec2 verts;\n\n void main() {\n verts = inputVerts;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(inputVerts, 1.0)).xy, 0.0, 1.0);\n }\n ";
5
- export declare const GeoJSONFragmentShaderFill = "\n precision mediump float;\n\n varying vec2 verts;\n\n uniform vec3 col1;\n uniform vec3 col2;\n uniform float opacity;\n\n uniform bool hashed;\n uniform float hashDisp;\n uniform float hashWidth;\n\n void main() {\n if(hashed && mod(verts.y + hashDisp, hashWidth * 2.0) > hashWidth) {\n gl_FragColor = vec4(col2 / 255., 1.0) * opacity;\n }\n else {\n gl_FragColor = vec4(col1 / 255., 1.0) * opacity;\n }\n }\n ";
4
+ export declare const GeoJSONVertexShaderFill = "\n in vec2 inputVerts;\n\n uniform mat3 uWorldTransformMatrix;\n uniform mat3 uProjectionMatrix;\n\n out vec2 verts;\n\n void main() {\n verts = inputVerts;\n gl_Position = vec4((uProjectionMatrix * uWorldTransformMatrix * vec3(inputVerts, 1.0)).xy, 0.0, 1.0);\n }\n ";
5
+ export declare const GeoJSONFragmentShaderFill = "\n precision mediump float;\n\n in vec2 verts;\n\n uniform vec3 col1;\n uniform vec3 col2;\n uniform float opacity;\n uniform float hashDisp;\n uniform float hashWidth;\n\n void main() {\n if(mod(verts.y + hashDisp, hashWidth * 2.0) > hashWidth) {\n gl_FragColor = vec4(col2 / 255., 1.0) * opacity;\n }\n else {\n gl_FragColor = vec4(col1 / 255., 1.0) * opacity;\n }\n }\n ";
6
6
  /**
7
7
  * Shared shaders for polygon, multipolygon and linestring
8
8
  */
9
- export declare const GeoJSONVertexShaderOutline = "\n attribute vec2 inputVerts;\n attribute vec2 inputNormals;\n\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n\n uniform float outlineWidth;\n\n void main() {\n vec2 pos = inputVerts + inputNormals * outlineWidth;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(pos, 1.0)).xy, 0.0, 1.0);\n }\n ";
9
+ export declare const GeoJSONVertexShaderOutline = "\n in vec2 inputVerts;\n in vec2 inputNormals;\n\n uniform mat3 uWorldTransformMatrix;\n uniform mat3 uProjectionMatrix;\n\n uniform float outlineWidth;\n\n void main() {\n vec2 pos = inputVerts + inputNormals * outlineWidth;\n gl_Position = vec4((uProjectionMatrix * uWorldTransformMatrix * vec3(pos, 1.0)).xy, 0.0, 1.0);\n }\n ";
10
10
  export declare const GeoJSONFragmentShaderOutline = "\n precision mediump float;\n\n uniform vec3 color;\n\n void main() {\n gl_FragColor = vec4(color / 255., 1.0);\n }\n ";
@@ -1,11 +1,11 @@
1
1
  import { pixiOverlayBase } from './pixiOverlayInterfaces';
2
- import * as PIXI from 'pixi.js';
2
+ import { Container } from 'pixi.js';
3
3
  /** Class with common functions shared by all layers. */
4
4
  export declare abstract class ModuleInterface {
5
5
  /** Function for pixi overlay. */
6
6
  pixiOverlay: pixiOverlayBase;
7
7
  /** Root container for layer. */
8
- root: PIXI.Container;
8
+ root: Container;
9
9
  /** True if layer is currently visible. */
10
10
  visibility: boolean;
11
11
  /** Common constructor for all map layers. */
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Geometry, Shader, Mesh } from 'pixi.js';
2
2
  import { ModuleInterface } from './ModuleInterface';
3
3
  export interface OutlineData {
4
4
  coordinates: [number, number][][];
@@ -51,7 +51,7 @@ export default class OutlineModule extends ModuleInterface {
51
51
  [key: string]: Uniforms;
52
52
  };
53
53
  /** Graphic elements currently existing in world space. */
54
- spawned: PIXI.Mesh[];
54
+ spawned: Mesh<Geometry, Shader>[];
55
55
  /** Vertex shader for the outlines. */
56
56
  static vertexShader: string;
57
57
  /** Fragment shader for the outlines. */
@@ -1,4 +1,5 @@
1
- import * as PIXI from 'pixi.js';
1
+ import { Container, Graphics } from 'pixi.js';
2
+ import * as L from 'leaflet';
2
3
  import { ModuleInterface } from './ModuleInterface';
3
4
  import { Config, InputConfig } from './utils/wellbores/Config';
4
5
  import { SourceData, Group, GroupOptions, DetailOptions, WellboreData, RootData } from './utils/wellbores/data';
@@ -25,13 +26,13 @@ export default class WellboreModule extends ModuleInterface {
25
26
  private _eventHandler;
26
27
  private _redrawAnimFrame;
27
28
  containers: {
28
- wellbores: PIXI.Container;
29
- roots: PIXI.Container;
30
- labels: PIXI.Container;
29
+ wellbores: Container;
30
+ roots: Container;
31
+ labels: Container;
31
32
  };
32
33
  /** Zoom event handler. */
33
34
  scaling: (zoom: number) => number;
34
- marker: PIXI.Graphics;
35
+ marker: Graphics;
35
36
  constructor(inputConfig?: InputConfig);
36
37
  destroy(): void;
37
38
  registerGroup(key: string, options?: GroupOptions): void;
@@ -108,8 +109,8 @@ export default class WellboreModule extends ModuleInterface {
108
109
  */
109
110
  clear(...keys: string[]): void;
110
111
  resize(zoom: number): void;
111
- onAdd(map: import('leaflet').Map): void;
112
- onRemove(_map: import('leaflet').Map): void;
112
+ onAdd(map: L.Map): void;
113
+ onRemove(_map: L.Map): void;
113
114
  get projector(): Projector;
114
115
  /**
115
116
  * Calculate root radius based on formula used in Shader.ts!