@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,48 +1,48 @@
1
- import { Colors, InputColors } from '../Colors';
2
- import { WellboreData } from './WellboreData';
3
- import { SourceData } from './SourceData';
4
- import { Detail, DetailOptions } from './details';
5
- export interface GroupOptions {
6
- order?: number;
7
- mirrorLabels?: boolean;
8
- colors?: InputColors;
9
- }
10
- interface WellboreState {
11
- completionVisible: boolean;
12
- wellboreVisible: boolean;
13
- }
14
- type Filter = (data: SourceData) => boolean;
15
- export declare class Group {
16
- key: string;
17
- colors: Colors;
18
- order: number;
19
- mirrorLabels: boolean;
20
- wellbores: WellboreData[];
21
- details: {
22
- [key: string]: Detail;
23
- };
24
- active: boolean;
25
- activeFilter: Filter;
26
- /** Is active filter soft or hard (Ghost) */
27
- isHardFilter: boolean;
28
- /** State of wellbores attached to group */
29
- state: WellboreState;
30
- constructor(key: string, options?: GroupOptions);
31
- registerDetail(key: string, detail: DetailOptions): void;
32
- setDetailVisibility(key: string, visible: boolean): void;
33
- resetDetails(): void;
34
- append(wellbore: WellboreData): void;
35
- /**
36
- * Iterate over all wellbores and unique roots.
37
- * @param wellboreFunc Function to call on wellbores
38
- * @param rootFunc Function to call on roots
39
- */
40
- private forAll;
41
- setActive(active: boolean): void;
42
- softFilter(filter: Filter): void;
43
- hardFilter(filter: Filter): void;
44
- clearFilter(): void;
45
- setCompletionVisibility(visible: boolean): void;
46
- setWellboreVisibility(visible: boolean): void;
47
- }
48
- export {};
1
+ import { Colors, InputColors } from '../Colors';
2
+ import { WellboreData } from './WellboreData';
3
+ import { SourceData } from './SourceData';
4
+ import { Detail, DetailOptions } from './details';
5
+ export interface GroupOptions {
6
+ order?: number;
7
+ mirrorLabels?: boolean;
8
+ colors?: InputColors;
9
+ }
10
+ interface WellboreState {
11
+ completionVisible: boolean;
12
+ wellboreVisible: boolean;
13
+ }
14
+ type Filter = (data: SourceData) => boolean;
15
+ export declare class Group {
16
+ key: string;
17
+ colors: Colors;
18
+ order: number;
19
+ mirrorLabels: boolean;
20
+ wellbores: WellboreData[];
21
+ details: {
22
+ [key: string]: Detail;
23
+ };
24
+ active: boolean;
25
+ activeFilter: Filter;
26
+ /** Is active filter soft or hard (Ghost) */
27
+ isHardFilter: boolean;
28
+ /** State of wellbores attached to group */
29
+ state: WellboreState;
30
+ constructor(key: string, options?: GroupOptions);
31
+ registerDetail(key: string, detail: DetailOptions): void;
32
+ setDetailVisibility(key: string, visible: boolean): void;
33
+ resetDetails(): void;
34
+ append(wellbore: WellboreData): void;
35
+ /**
36
+ * Iterate over all wellbores and unique roots.
37
+ * @param wellboreFunc Function to call on wellbores
38
+ * @param rootFunc Function to call on roots
39
+ */
40
+ private forAll;
41
+ setActive(active: boolean): void;
42
+ softFilter(filter: Filter): void;
43
+ hardFilter(filter: Filter): void;
44
+ clearFilter(): void;
45
+ setCompletionVisibility(visible: boolean): void;
46
+ setWellboreVisibility(visible: boolean): void;
47
+ }
48
+ export {};
@@ -1,29 +1,29 @@
1
- import * as PIXI from 'pixi.js';
2
- import Vector2 from '@equinor/videx-vector2';
3
- import { WellboreData } from './WellboreData';
4
- export declare class RootData {
5
- static state: {
6
- rootRadius: number;
7
- maxScale: number;
8
- };
9
- mesh: PIXI.Mesh;
10
- wellbores: WellboreData[];
11
- position: Vector2;
12
- labelIndex: number;
13
- rootLabelsBBox: PIXI.Rectangle;
14
- /** Target wellbore data for color */
15
- target: WellboreData;
16
- constructor(position: Vector2);
17
- /** Active if */
18
- get active(): boolean;
19
- private updateLabelsBBox;
20
- /** Position wellbore label along wellbore. Should never be called if labels are disabled. */
21
- private positionLabel;
22
- append(wellbore: WellboreData): void;
23
- /** Recalculate target and update uniforms */
24
- recalculate(labelUpdate?: boolean): void;
25
- private updateTarget;
26
- private updateUniforms;
27
- updateLabels(): void;
28
- setLabelVisibility(visible: boolean): void;
29
- }
1
+ import * as PIXI from 'pixi.js';
2
+ import Vector2 from '@equinor/videx-vector2';
3
+ import { WellboreData } from './WellboreData';
4
+ export declare class RootData {
5
+ static state: {
6
+ rootRadius: number;
7
+ maxScale: number;
8
+ };
9
+ mesh: PIXI.Mesh;
10
+ wellbores: WellboreData[];
11
+ position: Vector2;
12
+ labelIndex: number;
13
+ rootLabelsBBox: PIXI.Rectangle;
14
+ /** Target wellbore data for color */
15
+ target: WellboreData;
16
+ constructor(position: Vector2);
17
+ /** Active if */
18
+ get active(): boolean;
19
+ private updateLabelsBBox;
20
+ /** Position wellbore label along wellbore. Should never be called if labels are disabled. */
21
+ private positionLabel;
22
+ append(wellbore: WellboreData): void;
23
+ /** Recalculate target and update uniforms */
24
+ recalculate(labelUpdate?: boolean): void;
25
+ private updateTarget;
26
+ private updateUniforms;
27
+ updateLabels(): void;
28
+ setLabelVisibility(visible: boolean): void;
29
+ }
@@ -1,25 +1,25 @@
1
- /** Date for each interval. */
2
- export interface Interval {
3
- /** Type of interval [Screen, Perforation]. */
4
- type: string;
5
- /** Start of interval as distance along wellbore. */
6
- start: number;
7
- /** End of interval as distance along wellbore. */
8
- end: number;
9
- /** Start of interval along wellbore as a value between 0 and 1. */
10
- l1: number;
11
- /** End of interval along wellbore as a value between 0 and 1. */
12
- l2: number;
13
- }
14
- /** Wellbore data. */
15
- export interface SourceData {
16
- [key: string]: any;
17
- /** Collection of intervals. */
18
- intervals: Interval[];
19
- /** Full label of wellbore. */
20
- label: string;
21
- /** Short label of wellbore, ie. no country code. */
22
- labelShort: string;
23
- /** Path along wellbore on lat/long format. */
24
- path: [number, number][];
25
- }
1
+ /** Date for each interval. */
2
+ export interface Interval {
3
+ /** Type of interval [Screen, Perforation]. */
4
+ type: string;
5
+ /** Start of interval as distance along wellbore. */
6
+ start: number;
7
+ /** End of interval as distance along wellbore. */
8
+ end: number;
9
+ /** Start of interval along wellbore as a value between 0 and 1. */
10
+ l1: number;
11
+ /** End of interval along wellbore as a value between 0 and 1. */
12
+ l2: number;
13
+ }
14
+ /** Wellbore data. */
15
+ export interface SourceData {
16
+ [key: string]: any;
17
+ /** Collection of intervals. */
18
+ intervals: Interval[];
19
+ /** Full label of wellbore. */
20
+ label: string;
21
+ /** Short label of wellbore, ie. no country code. */
22
+ labelShort: string;
23
+ /** Path along wellbore on lat/long format. */
24
+ path: [number, number][];
25
+ }
@@ -1,76 +1,76 @@
1
- import * as PIXI from 'pixi.js';
2
- import Vector2 from '@equinor/videx-vector2';
3
- import { SourceData } from './SourceData';
4
- import { RootData } from './RootData';
5
- import { Group } from './Group';
6
- import { LineInterpolator } from '../../LineInterpolator';
7
- import { WellboreUniforms } from '../Shader';
8
- import { Label } from '../labels/Label';
9
- import { Colors, Color } from '../Colors';
10
- import { TickConfig } from '../Config';
11
- import { Detail } from './details';
12
- export interface WellboreDataInput {
13
- data: SourceData;
14
- group: Group;
15
- root: RootData;
16
- /** Projected coordinates. */
17
- coords: Vector2[];
18
- /** Threshold for radius considered to be single point. */
19
- pointThreshold: number;
20
- wellboreWidth: number;
21
- tick: TickConfig;
22
- }
23
- export declare enum WellboreStatus {
24
- normal = 0,
25
- highlighted = 1,
26
- multiHighlighted = 2,
27
- selected = 3
28
- }
29
- /** Current filter status. Soft leaves gray wellbores, while hard leaves "ghost"-lines */
30
- export declare enum FilterStatus {
31
- none = 0,
32
- soft = 1,
33
- hard = 2
34
- }
35
- export declare class WellboreData {
36
- static state: {
37
- wellboreRadius: number;
38
- rootRadius: number;
39
- };
40
- data: SourceData;
41
- group: Group;
42
- wellboreWidth: number;
43
- interpolator: LineInterpolator;
44
- container: PIXI.Container;
45
- label: Label;
46
- private _zIndex;
47
- private details;
48
- private detailsDict;
49
- private mesh;
50
- root: RootData;
51
- status: WellboreStatus;
52
- private filter;
53
- constructor(input: WellboreDataInput);
54
- set zIndex(val: number);
55
- get colors(): Colors;
56
- get color(): Color;
57
- get active(): boolean;
58
- /**
59
- * Render wellbore details if data is available.
60
- * @param key - Unique identifier for the detail to render
61
- * @param detail - Object containing information to draw
62
- */
63
- tryDrawDetail(key: string, detail: Detail): void;
64
- setFilter(filter: FilterStatus): void;
65
- get selected(): boolean;
66
- get highlighted(): boolean;
67
- get order(): number;
68
- get uniforms(): WellboreUniforms;
69
- private createWellboreMesh;
70
- setCompletionVisibility(visible: boolean): void;
71
- setWellboreVisibility(visible: boolean): void;
72
- setDetailsVisibility(key: string, visible: boolean): void;
73
- setHighlight(isHighlighted: boolean, multiple?: boolean): void;
74
- setSelected(isSelected: boolean): void;
75
- update(): void;
76
- }
1
+ import * as PIXI from 'pixi.js';
2
+ import Vector2 from '@equinor/videx-vector2';
3
+ import { SourceData } from './SourceData';
4
+ import { RootData } from './RootData';
5
+ import { Group } from './Group';
6
+ import { LineInterpolator } from '../../LineInterpolator';
7
+ import { WellboreUniforms } from '../Shader';
8
+ import { Label } from '../labels/Label';
9
+ import { Colors, Color } from '../Colors';
10
+ import { TickConfig } from '../Config';
11
+ import { Detail } from './details';
12
+ export interface WellboreDataInput {
13
+ data: SourceData;
14
+ group: Group;
15
+ root: RootData;
16
+ /** Projected coordinates. */
17
+ coords: Vector2[];
18
+ /** Threshold for radius considered to be single point. */
19
+ pointThreshold: number;
20
+ wellboreWidth: number;
21
+ tick: TickConfig;
22
+ }
23
+ export declare enum WellboreStatus {
24
+ normal = 0,
25
+ highlighted = 1,
26
+ multiHighlighted = 2,
27
+ selected = 3
28
+ }
29
+ /** Current filter status. Soft leaves gray wellbores, while hard leaves "ghost"-lines */
30
+ export declare enum FilterStatus {
31
+ none = 0,
32
+ soft = 1,
33
+ hard = 2
34
+ }
35
+ export declare class WellboreData {
36
+ static state: {
37
+ wellboreRadius: number;
38
+ rootRadius: number;
39
+ };
40
+ data: SourceData;
41
+ group: Group;
42
+ wellboreWidth: number;
43
+ interpolator: LineInterpolator;
44
+ container: PIXI.Container;
45
+ label: Label;
46
+ private _zIndex;
47
+ private details;
48
+ private detailsDict;
49
+ private mesh;
50
+ root: RootData;
51
+ status: WellboreStatus;
52
+ private filter;
53
+ constructor(input: WellboreDataInput);
54
+ set zIndex(val: number);
55
+ get colors(): Colors;
56
+ get color(): Color;
57
+ get active(): boolean;
58
+ /**
59
+ * Render wellbore details if data is available.
60
+ * @param key - Unique identifier for the detail to render
61
+ * @param detail - Object containing information to draw
62
+ */
63
+ tryDrawDetail(key: string, detail: Detail): void;
64
+ setFilter(filter: FilterStatus): void;
65
+ get selected(): boolean;
66
+ get highlighted(): boolean;
67
+ get order(): number;
68
+ get uniforms(): WellboreUniforms;
69
+ private createWellboreMesh;
70
+ setCompletionVisibility(visible: boolean): void;
71
+ setWellboreVisibility(visible: boolean): void;
72
+ setDetailsVisibility(key: string, visible: boolean): void;
73
+ setHighlight(isHighlighted: boolean, multiple?: boolean): void;
74
+ setSelected(isSelected: boolean): void;
75
+ update(): void;
76
+ }
@@ -1,16 +1,16 @@
1
- import { SourceData } from './SourceData';
2
- import { WellboreData } from './WellboreData';
3
- export declare class WellboreEventData {
4
- group: string;
5
- data: SourceData;
6
- constructor(group: string, data: SourceData);
7
- static from(wellbore: WellboreData): WellboreEventData;
8
- }
9
- export declare class HighlightEvent {
10
- changed: boolean;
11
- originalEvent?: any;
12
- eventData: WellboreEventData[];
13
- constructor(eventData: WellboreEventData[], changed: boolean, originalEvent: any);
14
- static from(wellbores: WellboreData[], changed: boolean, originalEvent: any): HighlightEvent;
15
- get count(): number;
16
- }
1
+ import { SourceData } from './SourceData';
2
+ import { WellboreData } from './WellboreData';
3
+ export declare class WellboreEventData {
4
+ group: string;
5
+ data: SourceData;
6
+ constructor(group: string, data: SourceData);
7
+ static from(wellbore: WellboreData): WellboreEventData;
8
+ }
9
+ export declare class HighlightEvent {
10
+ changed: boolean;
11
+ originalEvent?: any;
12
+ eventData: WellboreEventData[];
13
+ constructor(eventData: WellboreEventData[], changed: boolean, originalEvent: any);
14
+ static from(wellbores: WellboreData[], changed: boolean, originalEvent: any): HighlightEvent;
15
+ get count(): number;
16
+ }
@@ -1,20 +1,20 @@
1
- import * as PIXI from 'pixi.js';
2
- import { SourceData } from '../SourceData';
3
- import { LineInterpolator } from '../../../LineInterpolator';
4
- import { DetailOptions, RelativePosition } from './DetailOptions';
5
- /** Detail represents graphics displayed along the wellbore, such as casing. */
6
- export declare abstract class Detail {
7
- initialized: boolean;
8
- visible: boolean;
9
- protected getData: (wellbore: SourceData, group: string) => RelativePosition[];
10
- protected color: PIXI.Color;
11
- protected group: string;
12
- constructor(options: DetailOptions, group?: string);
13
- /**
14
- * Obtain the relative position along the wellbore required for rendering graphics.
15
- * @param wellbore - Source data for the wellbore
16
- * @returns Relative position along the wellbore needed for drawing graphics
17
- */
18
- getRelative(wellbore: SourceData): RelativePosition[];
19
- abstract getGraphics(relative: RelativePosition, interpolator: LineInterpolator): PIXI.Graphics;
20
- }
1
+ import * as PIXI from 'pixi.js';
2
+ import { SourceData } from '../SourceData';
3
+ import { LineInterpolator } from '../../../LineInterpolator';
4
+ import { DetailOptions, RelativePosition } from './DetailOptions';
5
+ /** Detail represents graphics displayed along the wellbore, such as casing. */
6
+ export declare abstract class Detail {
7
+ initialized: boolean;
8
+ visible: boolean;
9
+ protected getData: (wellbore: SourceData, group: string) => RelativePosition[];
10
+ protected color: PIXI.Color;
11
+ protected group: string;
12
+ constructor(options: DetailOptions, group?: string);
13
+ /**
14
+ * Obtain the relative position along the wellbore required for rendering graphics.
15
+ * @param wellbore - Source data for the wellbore
16
+ * @returns Relative position along the wellbore needed for drawing graphics
17
+ */
18
+ getRelative(wellbore: SourceData): RelativePosition[];
19
+ abstract getGraphics(relative: RelativePosition, interpolator: LineInterpolator): PIXI.Graphics;
20
+ }
@@ -1,7 +1,7 @@
1
- import { SourceData } from '../SourceData';
2
- export type RelativePosition = (number | [number, number]);
3
- export interface DetailOptions {
4
- getData: (wellbore: SourceData, group: string) => RelativePosition[];
5
- shape?: string;
6
- color?: [number, number, number];
7
- }
1
+ import { SourceData } from '../SourceData';
2
+ export type RelativePosition = (number | [number, number]);
3
+ export interface DetailOptions {
4
+ getData: (wellbore: SourceData, group: string) => RelativePosition[];
5
+ shape?: string;
6
+ color?: [number, number, number];
7
+ }
@@ -1,14 +1,14 @@
1
- import * as PIXI from 'pixi.js';
2
- import { LineInterpolator } from '../../../LineInterpolator';
3
- import { DetailOptions } from './DetailOptions';
4
- import { Detail } from './Detail';
5
- export interface ShoeOptions extends DetailOptions {
6
- widthTop: number;
7
- widthBottom: number;
8
- }
9
- export declare class ShoeDetail extends Detail {
10
- private widthTop;
11
- private widthBottom;
12
- constructor(options: ShoeOptions, group?: string);
13
- getGraphics([top, bottom]: [number, number], interpolator: LineInterpolator): PIXI.Graphics;
14
- }
1
+ import * as PIXI from 'pixi.js';
2
+ import { LineInterpolator } from '../../../LineInterpolator';
3
+ import { DetailOptions } from './DetailOptions';
4
+ import { Detail } from './Detail';
5
+ export interface ShoeOptions extends DetailOptions {
6
+ widthTop: number;
7
+ widthBottom: number;
8
+ }
9
+ export declare class ShoeDetail extends Detail {
10
+ private widthTop;
11
+ private widthBottom;
12
+ constructor(options: ShoeOptions, group?: string);
13
+ getGraphics([top, bottom]: [number, number], interpolator: LineInterpolator): PIXI.Graphics;
14
+ }
@@ -1,11 +1,11 @@
1
- export { Detail } from './Detail';
2
- export { DetailOptions } from './DetailOptions';
3
- import { DetailOptions } from './DetailOptions';
4
- import { ShoeDetail } from './ShoeDetail';
5
- /**
6
- * Retrieve the appropriate detail based on the shape specified in the options.
7
- * @param options - Detail configuration parameters
8
- * @param group - Group to which the detail belongs
9
- * @returns The correct detail based on the provided shape
10
- */
11
- export declare const getDetail: (options: DetailOptions, group?: string) => ShoeDetail;
1
+ export { Detail } from './Detail';
2
+ export { DetailOptions } from './DetailOptions';
3
+ import { DetailOptions } from './DetailOptions';
4
+ import { ShoeDetail } from './ShoeDetail';
5
+ /**
6
+ * Retrieve the appropriate detail based on the shape specified in the options.
7
+ * @param options - Detail configuration parameters
8
+ * @param group - Group to which the detail belongs
9
+ * @returns The correct detail based on the provided shape
10
+ */
11
+ export declare const getDetail: (options: DetailOptions, group?: string) => ShoeDetail;
@@ -1,6 +1,6 @@
1
- export { RootData } from './RootData';
2
- export { WellboreData } from './WellboreData';
3
- export { SourceData, Interval } from './SourceData';
4
- export { Group, GroupOptions } from './Group';
5
- export { Detail, DetailOptions } from './details';
6
- export { WellboreEventData, HighlightEvent } from './WellboreEventData';
1
+ export { RootData } from './RootData';
2
+ export { WellboreData } from './WellboreData';
3
+ export { SourceData, Interval } from './SourceData';
4
+ export { Group, GroupOptions } from './Group';
5
+ export { Detail, DetailOptions } from './details';
6
+ export { WellboreEventData, HighlightEvent } from './WellboreEventData';
@@ -1,6 +1,6 @@
1
- import Vector2 from '@equinor/videx-vector2';
2
- import { WellboreData, HighlightEvent } from './data';
3
- import WellboreModule from '../../WellboreModule';
4
- export declare function updateHighlighted(module: WellboreModule, pos: Vector2, onHighlightOn?: (event: HighlightEvent) => void, onHighlightOff?: () => void, originalEvent?: any): void;
5
- export declare function forceHighlight(module: WellboreModule, wellbore: WellboreData): void;
6
- export declare function clearHighlight(module: WellboreModule, onHighlightOff?: () => void): void;
1
+ import Vector2 from '@equinor/videx-vector2';
2
+ import { WellboreData, HighlightEvent } from './data';
3
+ import WellboreModule from '../../WellboreModule';
4
+ export declare function updateHighlighted(module: WellboreModule, pos: Vector2, onHighlightOn?: (event: HighlightEvent) => void, onHighlightOff?: () => void, originalEvent?: any): void;
5
+ export declare function forceHighlight(module: WellboreModule, wellbore: WellboreData): void;
6
+ export declare function clearHighlight(module: WellboreModule, onHighlightOff?: () => void): void;
@@ -1,15 +1,15 @@
1
- import { Interval } from './data';
2
- /**
3
- * Combines overlapping intervals.
4
- * @param intervals A collection of intervals on the format: [start, stop]
5
- * @returns Array with compressed intervals
6
- *
7
- * @example compressInterval([ [1, 5], [4, 7] ]); // Returns: [[1, 7]]
8
- */
9
- export declare function compressIntervals(intervals: [number, number][]): [number, number][];
10
- /**
11
- * Sorts intervals by length and compresses.
12
- * @param intervals Intervals to process
13
- * @returns Processed intervals
14
- */
15
- export declare function processIntervals(intervals: Interval[]): [number, number][];
1
+ import { Interval } from './data';
2
+ /**
3
+ * Combines overlapping intervals.
4
+ * @param intervals A collection of intervals on the format: [start, stop]
5
+ * @returns Array with compressed intervals
6
+ *
7
+ * @example compressInterval([ [1, 5], [4, 7] ]); // Returns: [[1, 7]]
8
+ */
9
+ export declare function compressIntervals(intervals: [number, number][]): [number, number][];
10
+ /**
11
+ * Sorts intervals by length and compresses.
12
+ * @param intervals Intervals to process
13
+ * @returns Processed intervals
14
+ */
15
+ export declare function processIntervals(intervals: Interval[]): [number, number][];
@@ -1,39 +1,39 @@
1
- import * as PIXI from 'pixi.js';
2
- interface State {
3
- zoom: number;
4
- scale: number;
5
- visible: boolean;
6
- /** Displacement from root. */
7
- rootDisplacement: number;
8
- }
9
- /** Common configurations. */
10
- interface Common {
11
- backgroundOpacity: number;
12
- }
13
- export declare class Label {
14
- static state: State;
15
- private static style;
16
- static config: Common;
17
- static height: number;
18
- container: PIXI.Container;
19
- private text;
20
- background: PIXI.Graphics;
21
- metrics: PIXI.TextMetrics;
22
- private _attachToRoot;
23
- static setStyle(fontSize: number): void;
24
- static setCommon(config: Common): void;
25
- /**
26
- * Create a new label
27
- * @param label Content of label
28
- * @param fontColor Color of font
29
- * @param bgColor Color of background
30
- */
31
- constructor(label: string, fontColor: number, bgColor: number);
32
- get visible(): boolean;
33
- set visible(flag: boolean);
34
- set fontColor(color: number);
35
- get attachToRoot(): boolean;
36
- set attachToRoot(val: boolean);
37
- getBoundingBox(): PIXI.Rectangle;
38
- }
39
- export {};
1
+ import * as PIXI from 'pixi.js';
2
+ interface State {
3
+ zoom: number;
4
+ scale: number;
5
+ visible: boolean;
6
+ /** Displacement from root. */
7
+ rootDisplacement: number;
8
+ }
9
+ /** Common configurations. */
10
+ interface Common {
11
+ backgroundOpacity: number;
12
+ }
13
+ export declare class Label {
14
+ static state: State;
15
+ private static style;
16
+ static config: Common;
17
+ static height: number;
18
+ container: PIXI.Container;
19
+ private text;
20
+ background: PIXI.Graphics;
21
+ metrics: PIXI.TextMetrics;
22
+ private _attachToRoot;
23
+ static setStyle(fontSize: number): void;
24
+ static setCommon(config: Common): void;
25
+ /**
26
+ * Create a new label
27
+ * @param label Content of label
28
+ * @param fontColor Color of font
29
+ * @param bgColor Color of background
30
+ */
31
+ constructor(label: string, fontColor: number, bgColor: number);
32
+ get visible(): boolean;
33
+ set visible(flag: boolean);
34
+ set fontColor(color: number);
35
+ get attachToRoot(): boolean;
36
+ set attachToRoot(val: boolean);
37
+ getBoundingBox(): PIXI.Rectangle;
38
+ }
39
+ export {};
@@ -1,2 +1,2 @@
1
- export { Label } from './Label';
2
- export * from './label-helper';
1
+ export { Label } from './Label';
2
+ export * from './label-helper';