@equinor/videx-map 1.13.0 → 1.14.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.
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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;
@@ -2,4 +2,5 @@ export { RootData } from './RootData';
2
2
  export { WellboreData } from './WellboreData';
3
3
  export { SourceData, Interval } from './SourceData';
4
4
  export { Group, GroupOptions } from './Group';
5
+ export { Detail, DetailOptions } from './details';
5
6
  export { WellboreEventData, HighlightEvent } from './WellboreEventData';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/videx-map",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "Component for Pixi-overlay in Leaflet.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",