@equinor/esv-intersection 3.0.10 → 3.0.11
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.
- package/dist/control/ExtendedCurveInterpolator.d.ts +0 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +1484 -1484
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/interfaces.d.ts +0 -1
- package/dist/utils/arc-length.d.ts +0 -1
- package/dist/utils/binary-search.d.ts +0 -1
- package/dist/utils/root-finder.d.ts +0 -1
- package/package.json +25 -25
- package/src/components/axis.ts +2 -2
- package/src/control/overlay.ts +25 -22
- package/dist/components/axis.d.ts +0 -47
- package/dist/components/axis.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -12
- package/dist/constants.d.ts.map +0 -1
- package/dist/control/ExtendedCurveInterpolator.d.ts.map +0 -1
- package/dist/control/IntersectionReferenceSystem.d.ts +0 -93
- package/dist/control/IntersectionReferenceSystem.d.ts.map +0 -1
- package/dist/control/LayerManager.d.ts +0 -77
- package/dist/control/LayerManager.d.ts.map +0 -1
- package/dist/control/MainController.d.ts +0 -155
- package/dist/control/MainController.d.ts.map +0 -1
- package/dist/control/ZoomPanHandler.d.ts +0 -160
- package/dist/control/ZoomPanHandler.d.ts.map +0 -1
- package/dist/control/index.d.ts +0 -6
- package/dist/control/index.d.ts.map +0 -1
- package/dist/control/interfaces.d.ts +0 -37
- package/dist/control/interfaces.d.ts.map +0 -1
- package/dist/control/overlay.d.ts +0 -21
- package/dist/control/overlay.d.ts.map +0 -1
- package/dist/datautils/colortable.d.ts +0 -2
- package/dist/datautils/colortable.d.ts.map +0 -1
- package/dist/datautils/findsample.d.ts +0 -3
- package/dist/datautils/findsample.d.ts.map +0 -1
- package/dist/datautils/index.d.ts +0 -7
- package/dist/datautils/index.d.ts.map +0 -1
- package/dist/datautils/interfaces.d.ts +0 -64
- package/dist/datautils/interfaces.d.ts.map +0 -1
- package/dist/datautils/picks.d.ts +0 -75
- package/dist/datautils/picks.d.ts.map +0 -1
- package/dist/datautils/schematicShapeGenerator.d.ts +0 -60
- package/dist/datautils/schematicShapeGenerator.d.ts.map +0 -1
- package/dist/datautils/seismicimage.d.ts +0 -46
- package/dist/datautils/seismicimage.d.ts.map +0 -1
- package/dist/datautils/surfacedata.d.ts +0 -11
- package/dist/datautils/surfacedata.d.ts.map +0 -1
- package/dist/datautils/trajectory.d.ts +0 -15
- package/dist/datautils/trajectory.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/interfaces.d.ts.map +0 -1
- package/dist/layers/CalloutCanvasLayer.d.ts +0 -61
- package/dist/layers/CalloutCanvasLayer.d.ts.map +0 -1
- package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts +0 -22
- package/dist/layers/CustomDisplayObjects/ComplexRope.d.ts.map +0 -1
- package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts +0 -24
- package/dist/layers/CustomDisplayObjects/ComplexRopeGeometry.d.ts.map +0 -1
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts +0 -21
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRope.d.ts.map +0 -1
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts +0 -27
- package/dist/layers/CustomDisplayObjects/FixedWidthSimpleRopeGeometry.d.ts.map +0 -1
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts +0 -18
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRope.d.ts.map +0 -1
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts +0 -25
- package/dist/layers/CustomDisplayObjects/UniformTextureStretchRopeGeometry.d.ts.map +0 -1
- package/dist/layers/GeomodelCanvasLayer.d.ts +0 -29
- package/dist/layers/GeomodelCanvasLayer.d.ts.map +0 -1
- package/dist/layers/GeomodelLabelsLayer.d.ts +0 -50
- package/dist/layers/GeomodelLabelsLayer.d.ts.map +0 -1
- package/dist/layers/GeomodelLayerV2.d.ts +0 -13
- package/dist/layers/GeomodelLayerV2.d.ts.map +0 -1
- package/dist/layers/GridLayer.d.ts +0 -30
- package/dist/layers/GridLayer.d.ts.map +0 -1
- package/dist/layers/ImageCanvasLayer.d.ts +0 -21
- package/dist/layers/ImageCanvasLayer.d.ts.map +0 -1
- package/dist/layers/ReferenceLineLayer.d.ts +0 -29
- package/dist/layers/ReferenceLineLayer.d.ts.map +0 -1
- package/dist/layers/SchematicLayer.d.ts +0 -114
- package/dist/layers/SchematicLayer.d.ts.map +0 -1
- package/dist/layers/SeismicCanvasLayer.d.ts +0 -19
- package/dist/layers/SeismicCanvasLayer.d.ts.map +0 -1
- package/dist/layers/WellborePathLayer.d.ts +0 -18
- package/dist/layers/WellborePathLayer.d.ts.map +0 -1
- package/dist/layers/base/CanvasLayer.d.ts +0 -20
- package/dist/layers/base/CanvasLayer.d.ts.map +0 -1
- package/dist/layers/base/HTMLLayer.d.ts +0 -14
- package/dist/layers/base/HTMLLayer.d.ts.map +0 -1
- package/dist/layers/base/Layer.d.ts +0 -70
- package/dist/layers/base/Layer.d.ts.map +0 -1
- package/dist/layers/base/PixiLayer.d.ts +0 -33
- package/dist/layers/base/PixiLayer.d.ts.map +0 -1
- package/dist/layers/base/SVGLayer.d.ts +0 -14
- package/dist/layers/base/SVGLayer.d.ts.map +0 -1
- package/dist/layers/base/index.d.ts +0 -6
- package/dist/layers/base/index.d.ts.map +0 -1
- package/dist/layers/index.d.ts +0 -17
- package/dist/layers/index.d.ts.map +0 -1
- package/dist/layers/schematicInterfaces.d.ts +0 -210
- package/dist/layers/schematicInterfaces.d.ts.map +0 -1
- package/dist/utils/arc-length.d.ts.map +0 -1
- package/dist/utils/binary-search.d.ts.map +0 -1
- package/dist/utils/color.d.ts +0 -6
- package/dist/utils/color.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/root-finder.d.ts.map +0 -1
- package/dist/utils/text.d.ts +0 -15
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/vectorUtils.d.ts +0 -16
- package/dist/utils/vectorUtils.d.ts.map +0 -1
- package/dist/vendor/pixi-dashed-line/index.d.ts +0 -57
- package/dist/vendor/pixi-dashed-line/index.d.ts.map +0 -1
package/dist/interfaces.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/esv-intersection",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "Intersection component package with testing and automatic documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -51,34 +51,34 @@
|
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://github.com/equinor/esv-intersection#readme",
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@changesets/cli": "^2.26.
|
|
55
|
-
"@storybook/addon-storysource": "^7.0
|
|
56
|
-
"@storybook/html-vite": "^7.0
|
|
57
|
-
"@types/d3": "^7.4.
|
|
58
|
-
"@types/mock-raf": "^1.0.
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
60
|
-
"@typescript-eslint/parser": "^
|
|
54
|
+
"@changesets/cli": "^2.26.2",
|
|
55
|
+
"@storybook/addon-storysource": "^7.5.0",
|
|
56
|
+
"@storybook/html-vite": "^7.5.0",
|
|
57
|
+
"@types/d3": "^7.4.2",
|
|
58
|
+
"@types/mock-raf": "^1.0.5",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^6.8.0",
|
|
60
|
+
"@typescript-eslint/parser": "^6.8.0",
|
|
61
61
|
"copyfiles": "^2.4.1",
|
|
62
|
-
"eslint": "^8.
|
|
63
|
-
"eslint-config-prettier": "^
|
|
64
|
-
"eslint-plugin-prettier": "^
|
|
65
|
-
"eslint-plugin-storybook": "^0.6.
|
|
62
|
+
"eslint": "^8.51.0",
|
|
63
|
+
"eslint-config-prettier": "^9.0.0",
|
|
64
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
65
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
66
66
|
"husky": "^8.0.3",
|
|
67
|
-
"lint-staged": "^
|
|
67
|
+
"lint-staged": "^15.0.1",
|
|
68
68
|
"mock-raf": "^1.0.1",
|
|
69
69
|
"npm-run-all": "^4.1.5",
|
|
70
|
-
"pixi.js": "^7.
|
|
71
|
-
"prettier": "^
|
|
72
|
-
"rimraf": "^5.0.
|
|
73
|
-
"storybook": "^7.0
|
|
74
|
-
"storybook-dark-mode": "^3.0.
|
|
75
|
-
"tslib": "^2.
|
|
76
|
-
"typedoc": "^0.
|
|
77
|
-
"typescript": "^5.
|
|
78
|
-
"vite": "^4.
|
|
79
|
-
"vite-plugin-dts": "^
|
|
80
|
-
"vitest": "^0.
|
|
81
|
-
"vitest-canvas-mock": "^0.3.
|
|
70
|
+
"pixi.js": "^7.3.1",
|
|
71
|
+
"prettier": "^3.0.3",
|
|
72
|
+
"rimraf": "^5.0.5",
|
|
73
|
+
"storybook": "^7.5.0",
|
|
74
|
+
"storybook-dark-mode": "^3.0.1",
|
|
75
|
+
"tslib": "^2.6.2",
|
|
76
|
+
"typedoc": "^0.25.2",
|
|
77
|
+
"typescript": "^5.2.2",
|
|
78
|
+
"vite": "^4.5.0",
|
|
79
|
+
"vite-plugin-dts": "^3.6.0",
|
|
80
|
+
"vitest": "^0.34.6",
|
|
81
|
+
"vitest-canvas-mock": "^0.3.3"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"pixi.js": "^7.1.0"
|
package/src/components/axis.ts
CHANGED
|
@@ -94,7 +94,7 @@ export class Axis {
|
|
|
94
94
|
|
|
95
95
|
private renderGy(): Selection<SVGGElement, unknown, null, undefined> {
|
|
96
96
|
const { _scaleX, _scaleY } = this;
|
|
97
|
-
const yAxis = axisRight(_scaleY) as (selection: Selection<SVGGElement, unknown, null, undefined>, ...args:
|
|
97
|
+
const yAxis = axisRight(_scaleY) as (selection: Selection<SVGGElement, unknown, null, undefined>, ...args: unknown[]) => void;
|
|
98
98
|
const [, width] = _scaleX.range();
|
|
99
99
|
const gy = this.createOrGet('y-axis');
|
|
100
100
|
gy.call(yAxis);
|
|
@@ -105,7 +105,7 @@ export class Axis {
|
|
|
105
105
|
|
|
106
106
|
private renderGx(): Selection<SVGGElement, unknown, null, undefined> {
|
|
107
107
|
const { _scaleX, _scaleY } = this;
|
|
108
|
-
const xAxis = axisBottom(_scaleX) as (selection: Selection<SVGGElement, unknown, null, undefined>, ...args:
|
|
108
|
+
const xAxis = axisBottom(_scaleX) as (selection: Selection<SVGGElement, unknown, null, undefined>, ...args: unknown[]) => void;
|
|
109
109
|
const [, height] = _scaleY.range();
|
|
110
110
|
|
|
111
111
|
const gx = this.createOrGet('x-axis');
|
package/src/control/overlay.ts
CHANGED
|
@@ -26,14 +26,15 @@ export class Overlay<T> {
|
|
|
26
26
|
const target = this.elements[key] ?? undefined;
|
|
27
27
|
const ops = this.listeners[key];
|
|
28
28
|
if (ops && ops.onResize) {
|
|
29
|
-
requestAnimationFrame(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
requestAnimationFrame(
|
|
30
|
+
() =>
|
|
31
|
+
ops.onResize?.({
|
|
32
|
+
target,
|
|
33
|
+
source: this.source,
|
|
34
|
+
caller,
|
|
35
|
+
width,
|
|
36
|
+
height,
|
|
37
|
+
}),
|
|
37
38
|
);
|
|
38
39
|
}
|
|
39
40
|
});
|
|
@@ -50,14 +51,15 @@ export class Overlay<T> {
|
|
|
50
51
|
const ops = this.listeners[key];
|
|
51
52
|
|
|
52
53
|
if (ops && ops.onMouseMove) {
|
|
53
|
-
requestAnimationFrame(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
requestAnimationFrame(
|
|
55
|
+
() =>
|
|
56
|
+
ops.onMouseMove?.({
|
|
57
|
+
x: mx,
|
|
58
|
+
y: my,
|
|
59
|
+
target,
|
|
60
|
+
source: this.source,
|
|
61
|
+
caller,
|
|
62
|
+
}),
|
|
61
63
|
);
|
|
62
64
|
}
|
|
63
65
|
});
|
|
@@ -71,12 +73,13 @@ export class Overlay<T> {
|
|
|
71
73
|
const target = this.elements[key] || undefined;
|
|
72
74
|
const ops = this.listeners[key];
|
|
73
75
|
if (ops && ops.onMouseExit) {
|
|
74
|
-
requestAnimationFrame(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
requestAnimationFrame(
|
|
77
|
+
() =>
|
|
78
|
+
ops.onMouseExit?.({
|
|
79
|
+
target,
|
|
80
|
+
source: this.source,
|
|
81
|
+
caller,
|
|
82
|
+
}),
|
|
80
83
|
);
|
|
81
84
|
}
|
|
82
85
|
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ScaleLinear } from 'd3-scale';
|
|
2
|
-
import { OnResizeEvent, OnRescaleEvent } from '../interfaces';
|
|
3
|
-
export type Options = {
|
|
4
|
-
offsetX: number;
|
|
5
|
-
offsetY: number;
|
|
6
|
-
visible: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare class Axis {
|
|
9
|
-
private mainGroup;
|
|
10
|
-
private _scaleX;
|
|
11
|
-
private _scaleY;
|
|
12
|
-
private _showLabels;
|
|
13
|
-
private _labelXDesc;
|
|
14
|
-
private _labelYDesc;
|
|
15
|
-
private _unitOfMeasure;
|
|
16
|
-
private _offsetX;
|
|
17
|
-
private _offsetY;
|
|
18
|
-
private _flipX;
|
|
19
|
-
private _flipY;
|
|
20
|
-
private visible;
|
|
21
|
-
constructor(mainGroup: Axis['mainGroup'], showLabels: boolean | undefined, labelXDesc: string, labelYDesc: string, unitOfMeasure: string, options?: Options);
|
|
22
|
-
private renderLabelx;
|
|
23
|
-
private renderLabely;
|
|
24
|
-
private renderGy;
|
|
25
|
-
private renderGx;
|
|
26
|
-
private createOrGet;
|
|
27
|
-
render(): void;
|
|
28
|
-
onResize(event: OnResizeEvent): void;
|
|
29
|
-
onRescale(event: OnRescaleEvent): void;
|
|
30
|
-
show(): Axis;
|
|
31
|
-
hide(): Axis;
|
|
32
|
-
flipX(flipX: boolean): Axis;
|
|
33
|
-
flipY(flipY: boolean): Axis;
|
|
34
|
-
showLabels(): Axis;
|
|
35
|
-
hideLabels(): Axis;
|
|
36
|
-
setLabelX(label: string): Axis;
|
|
37
|
-
setLabelY(label: string): Axis;
|
|
38
|
-
setUnitOfMeasure(uom: string): Axis;
|
|
39
|
-
setLabels(labelX: string, labelY: string, unitOfMeasure: string): Axis;
|
|
40
|
-
get offsetX(): number;
|
|
41
|
-
set offsetX(offset: number);
|
|
42
|
-
get offsetY(): number;
|
|
43
|
-
set offsetY(offset: number);
|
|
44
|
-
get scaleX(): ScaleLinear<number, number>;
|
|
45
|
-
get scaleY(): ScaleLinear<number, number>;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=axis.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"axis.d.ts","sourceRoot":"","sources":["../../../src/components/axis.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAe,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,qBAAa,IAAI;IACf,OAAO,CAAC,SAAS,CAAqD;IACtE,OAAO,CAAC,OAAO,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AEpB;IAED,IAAI,OAAO,CAAC,MAAM,EAAE,MAAM,EAEzB;IAED,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,OAAO,CAAC,MAAM,EAAE,MAAM,EAEzB;IAED,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAExC;IAED,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAExC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
package/dist/constants.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_LAYER_WIDTH = 200;
|
|
2
|
-
export declare const DEFAULT_LAYER_HEIGHT = 300;
|
|
3
|
-
export declare const HORIZONTAL_AXIS_MARGIN = 40;
|
|
4
|
-
export declare const VERTICAL_AXIS_MARGIN = 30;
|
|
5
|
-
export declare const EXAGGERATED_DIAMETER = 100;
|
|
6
|
-
export declare const HOLE_OUTLINE = 0.6;
|
|
7
|
-
export declare const SCREEN_OUTLINE = 0.3;
|
|
8
|
-
export declare const SHOE_WIDTH = 8;
|
|
9
|
-
export declare const SHOE_LENGTH = 16;
|
|
10
|
-
export declare const DEFAULT_TEXTURE_SIZE = 64;
|
|
11
|
-
export declare const SURFACE_LINE_WIDTH = 1;
|
|
12
|
-
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAExC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,eAAO,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C,IAAI,SAAI,EAAE,EAAE,SAAI,GAAG,MAAM;IAQtC;;;;OAIG;IACH,iBAAiB,CAAC,IAAI,SAAI,EAAE,EAAE,SAAI,GAAG,MAAM;IAyB3C;;;OAGG;IACH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAKnH,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;CAIvC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { CurveInterpolator } from 'curve-interpolator';
|
|
2
|
-
import { Interpolators, Trajectory, MDPoint } from '../interfaces';
|
|
3
|
-
import { ExtendedCurveInterpolator } from './ExtendedCurveInterpolator';
|
|
4
|
-
export interface ReferenceSystemOptions {
|
|
5
|
-
normalizedLength?: number;
|
|
6
|
-
arcDivisions?: number;
|
|
7
|
-
tension?: number;
|
|
8
|
-
trajectoryAngle?: number;
|
|
9
|
-
calculateDisplacementFromBottom?: boolean;
|
|
10
|
-
curveInterpolator?: ExtendedCurveInterpolator;
|
|
11
|
-
trajectoryInterpolator?: ExtendedCurveInterpolator;
|
|
12
|
-
curtainInterpolator?: ExtendedCurveInterpolator;
|
|
13
|
-
approxT?: boolean;
|
|
14
|
-
quickT?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class IntersectionReferenceSystem {
|
|
17
|
-
options: ReferenceSystemOptions;
|
|
18
|
-
path: number[][];
|
|
19
|
-
projectedPath: number[][];
|
|
20
|
-
private _offset;
|
|
21
|
-
displacement: number;
|
|
22
|
-
interpolators: Interpolators;
|
|
23
|
-
startVector: number[];
|
|
24
|
-
endVector: number[];
|
|
25
|
-
_curtainPathCache: MDPoint[] | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Creates a common reference system that layers and other components can use
|
|
28
|
-
* @param path (required) array of 3d coordinates: [x, y, z]
|
|
29
|
-
* @param options (optional)
|
|
30
|
-
* @param options.trajectoryAngle (optional) - trajectory angle in degrees, overrides the calculated value
|
|
31
|
-
* @param options.calculateDisplacementFromBottom - (optional) specify if the path is passed from bottom up
|
|
32
|
-
*/
|
|
33
|
-
constructor(path: number[][], options?: ReferenceSystemOptions);
|
|
34
|
-
private setPath;
|
|
35
|
-
/**
|
|
36
|
-
* Map a length along the curve to intersection coordinates
|
|
37
|
-
* @param length length along the curve
|
|
38
|
-
*/
|
|
39
|
-
project(length: number): number[];
|
|
40
|
-
curtainTangent(length: number): number[];
|
|
41
|
-
/**
|
|
42
|
-
* Returns as resampled version of the projected path between start and end
|
|
43
|
-
* Samples are picked from the beginning of the path at every CURTAIN_SAMPLING_INTERVAL meters
|
|
44
|
-
* If the angle between two consecutive segments is close to 180 degrees depending on CURTAIN_SAMPLING_ANGLE_THRESHOLD,
|
|
45
|
-
* a sample in between is discarded.
|
|
46
|
-
*
|
|
47
|
-
* The start and the end are not guaranteed to be part of the returned set of points
|
|
48
|
-
* @param startMd in MD
|
|
49
|
-
* @param endMd in MD
|
|
50
|
-
* @param includeStartEnd guarantee to include the starting and end points
|
|
51
|
-
*/
|
|
52
|
-
getCurtainPath(startMd: number, endMd: number, includeStartEnd?: boolean): MDPoint[];
|
|
53
|
-
/**
|
|
54
|
-
* Map a displacement back to length along the curve
|
|
55
|
-
*/
|
|
56
|
-
unproject(displacement: number): number | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Get the normalized displacement [0 - 1] of a specific length along the curve
|
|
59
|
-
*/
|
|
60
|
-
getProjectedLength(length: number): number;
|
|
61
|
-
/**
|
|
62
|
-
* Get the trajectory position at a length along the curve
|
|
63
|
-
*/
|
|
64
|
-
getPosition(length: number): number[];
|
|
65
|
-
/**
|
|
66
|
-
* Generate a set of coordinates along the trajectory of the curve
|
|
67
|
-
*/
|
|
68
|
-
getTrajectory(steps: number, from?: number, to?: number): Trajectory;
|
|
69
|
-
/**
|
|
70
|
-
* Generate a set of coordinates along the trajectory of the curve
|
|
71
|
-
*/
|
|
72
|
-
getExtendedTrajectory(numPoints: number, startExtensionLength?: number, endExtensionLength?: number): Trajectory;
|
|
73
|
-
getTrajectoryVector(): number[];
|
|
74
|
-
/**
|
|
75
|
-
* Perform a curtain projection on a set of points in 3D
|
|
76
|
-
* @param points
|
|
77
|
-
* @param origin
|
|
78
|
-
* @param offset
|
|
79
|
-
* @returns {array}
|
|
80
|
-
*/
|
|
81
|
-
static toDisplacement(points: number[][], offset?: number): number[][];
|
|
82
|
-
/**
|
|
83
|
-
* returns a normalized vector
|
|
84
|
-
* @param interpolator interpolated curve
|
|
85
|
-
* @param from number between 0 and 1
|
|
86
|
-
* @param to number between 0 and 1
|
|
87
|
-
*/
|
|
88
|
-
static getDirectionVector(interpolator: CurveInterpolator, from: number, to: number): number[];
|
|
89
|
-
get length(): number;
|
|
90
|
-
get offset(): number;
|
|
91
|
-
set offset(offset: number);
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=IntersectionReferenceSystem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntersectionReferenceSystem.d.ts","sourceRoot":"","sources":["../../../src/control/IntersectionReferenceSystem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAa,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAmBxE,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,iBAAiB,CAAC,EAAE,yBAAyB,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AE,MAAM,EACjB,oBAAoB,SAA8B,EAClD,kBAAkB,SAA4B,GAC7C,UAAU;IA0Cb,mBAAmB,IAAI,MAAM,EAAE;IAgB/B;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,SAAI,GAAG,MAAM,EAAE,EAAE;IAajE;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE;IAO9F,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAGxB;CACF"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ZoomPanHandler } from './ZoomPanHandler';
|
|
2
|
-
import { Layer, LayerOptions } from '../layers';
|
|
3
|
-
import { ScaleOptions } from '../interfaces';
|
|
4
|
-
import { Axis } from '../components';
|
|
5
|
-
import { IntersectionReferenceSystem } from './IntersectionReferenceSystem';
|
|
6
|
-
import { AxisOptions } from './interfaces';
|
|
7
|
-
export declare class LayerManager {
|
|
8
|
-
private container;
|
|
9
|
-
private layerContainer;
|
|
10
|
-
private _zoomPanHandler;
|
|
11
|
-
private layers;
|
|
12
|
-
private _axis;
|
|
13
|
-
private _svgContainer;
|
|
14
|
-
/**
|
|
15
|
-
* Handles layers and axis also holds a zoom and pan handler object
|
|
16
|
-
* @param container root container
|
|
17
|
-
* @param scaleOptions
|
|
18
|
-
* @param axisOptions
|
|
19
|
-
*/
|
|
20
|
-
constructor(container: HTMLElement, scaleOptions?: ScaleOptions, axisOptions?: AxisOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Adds and mounts an array of layers
|
|
23
|
-
* @param layers array of layers
|
|
24
|
-
*/
|
|
25
|
-
addLayers(layers: Layer<unknown>[]): LayerManager;
|
|
26
|
-
/**
|
|
27
|
-
* Gets all layers currently mounted
|
|
28
|
-
*/
|
|
29
|
-
getLayers(): Layer<unknown>[];
|
|
30
|
-
/**
|
|
31
|
-
* Clears data from all mounted layers
|
|
32
|
-
* @param includeReferenceSystem - (optional) if true also removes reference system, default is true
|
|
33
|
-
*/
|
|
34
|
-
clearAllData(includeReferenceSystem?: boolean): LayerManager;
|
|
35
|
-
/**
|
|
36
|
-
* Adds the layer to the manager, and mounts it
|
|
37
|
-
* @param layer Layer
|
|
38
|
-
* @param params extra params to pass to the onUpdate method
|
|
39
|
-
*/
|
|
40
|
-
addLayer(layer: Layer<unknown>, params?: LayerOptions<unknown>): LayerManager;
|
|
41
|
-
/**
|
|
42
|
-
* Remove and unmount layer from manager
|
|
43
|
-
* @param layerId name of layer
|
|
44
|
-
*/
|
|
45
|
-
removeLayer(layerId: string): LayerManager;
|
|
46
|
-
/**
|
|
47
|
-
* Remove and unmount all layers from manager
|
|
48
|
-
*/
|
|
49
|
-
removeAllLayers(): LayerManager;
|
|
50
|
-
getLayer(layerId: string): Layer<unknown> | undefined;
|
|
51
|
-
initLayer(layer: Layer<unknown>, params?: LayerOptions<unknown>): LayerManager;
|
|
52
|
-
showLayer(layerId: string): LayerManager;
|
|
53
|
-
hideLayer(layerId: string): LayerManager;
|
|
54
|
-
/**
|
|
55
|
-
* Adjust layers, axis, and zoom according to inputted dimensions
|
|
56
|
-
* @param width (required)
|
|
57
|
-
* @param height (required)
|
|
58
|
-
*/
|
|
59
|
-
adjustToSize(width: number, height: number): void;
|
|
60
|
-
setReferenceSystem(irs: IntersectionReferenceSystem): void;
|
|
61
|
-
showAxis(): LayerManager;
|
|
62
|
-
hideAxis(): LayerManager;
|
|
63
|
-
showAxisLabels(): LayerManager;
|
|
64
|
-
hideAxisLabels(): LayerManager;
|
|
65
|
-
setAxisOffset(x: number, y: number): LayerManager;
|
|
66
|
-
setXAxisOffset(x: number): LayerManager;
|
|
67
|
-
setYAxisOffset(y: number): LayerManager;
|
|
68
|
-
setZoomLevelBoundary(zoomlevels: [number, number]): LayerManager;
|
|
69
|
-
setMaxZoomLevel(zoomlevel: number): LayerManager;
|
|
70
|
-
setMinZoomLevel(zoomlevel: number): LayerManager;
|
|
71
|
-
destroy(): LayerManager;
|
|
72
|
-
get zoomPanHandler(): ZoomPanHandler;
|
|
73
|
-
get axis(): Axis | undefined;
|
|
74
|
-
private rescale;
|
|
75
|
-
private createAxis;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=LayerManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayerManager.d.ts","sourceRoot":"","sources":["../../../src/control/LayerManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAa,YAAY,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAgC,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAAc;IAE/B,OAAO,CAAC,cAAc,CAAc;IAEpC,OAAO,CAAC,eAAe,CAAiB;IAExC,OAAO,CAAC,MAAM,CAAwB;IAEtC,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,aAAa,CAAkE;IAEvF;;;;;OAKG;gBACS,SAAS,EAAE,WAAW,EAAE,YAAY,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,WAAW;IA0B1F;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,YAAY;IAKjD;;OAEG;IACH,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;IAI7B;;;OAGG;IACH,YAAY,CAAC,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IAAI,GAAG,SAAS,CAE3B;IAED,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,UAAU,CAgBhB;CACH"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { IntersectionReferenceSystem } from './IntersectionReferenceSystem';
|
|
2
|
-
import { Layer } from '../layers';
|
|
3
|
-
import { ControllerOptions } from './interfaces';
|
|
4
|
-
import { ZoomPanHandler } from './ZoomPanHandler';
|
|
5
|
-
import { LayerOptions, OnRescaleEvent, ReferenceSystemOptions } from '..';
|
|
6
|
-
import { Axis } from '../components';
|
|
7
|
-
import { Overlay } from './overlay';
|
|
8
|
-
/**
|
|
9
|
-
* API for controlling data and layers
|
|
10
|
-
*/
|
|
11
|
-
export declare class Controller {
|
|
12
|
-
private _referenceSystem;
|
|
13
|
-
private layerManager;
|
|
14
|
-
private _overlay;
|
|
15
|
-
/**
|
|
16
|
-
* Interface to control layers, reference system, axis and overlay. overlay is created on instantiation, does not currently support opt-out.
|
|
17
|
-
* @param options
|
|
18
|
-
* @param options.container (required) Currently only supports HTMLElement
|
|
19
|
-
* @param options.scaleOptions (optional) currently supports formats listed in examples below
|
|
20
|
-
* @example scaleOptions = { xMin: 0, xMax: 100, yMin: 0, yMax: 100 }
|
|
21
|
-
* @example scaleOptions = { xBounds: [0 , 100], yBounds: [0, 100] }
|
|
22
|
-
* @param options.axisOptions (optional) creates axis with supplied labels, currently only supports creating axis on instantiation
|
|
23
|
-
* @param options.layers (optional) list of layers
|
|
24
|
-
* @param options.path (optional) creates a reference system based on an array of 3d coordinates
|
|
25
|
-
* @param options.referenceSystem (optional) sets reference system, takes priority over path if both are supplied
|
|
26
|
-
*/
|
|
27
|
-
constructor(options: ControllerOptions);
|
|
28
|
-
/**
|
|
29
|
-
* Sets reference system, overrides any existing reference systems in place
|
|
30
|
-
* @param referenceSystem IntersectionReferenceSystem
|
|
31
|
-
*/
|
|
32
|
-
setReferenceSystem(referenceSystem: IntersectionReferenceSystem): Controller;
|
|
33
|
-
/**
|
|
34
|
-
* Creates new reference system based on path, overrides any existing reference systems in place
|
|
35
|
-
* @param path array of coords
|
|
36
|
-
* @param options optional
|
|
37
|
-
* @param options.trajectoryAngle (optional) angle in degrees
|
|
38
|
-
*/
|
|
39
|
-
updatePath(path: number[][], options?: ReferenceSystemOptions): Controller;
|
|
40
|
-
/**
|
|
41
|
-
* Clears data from all mounted layers
|
|
42
|
-
* @param includeReferenceSystem - (optional) if true also removes reference system, default is true
|
|
43
|
-
*/
|
|
44
|
-
clearAllData(includeReferenceSystem?: boolean): Controller;
|
|
45
|
-
/**
|
|
46
|
-
* Adds layer to list, and initializes it
|
|
47
|
-
* @param layer layer object
|
|
48
|
-
* @param params (optional) adds additional parameters to the onUpdateEvent
|
|
49
|
-
*/
|
|
50
|
-
addLayer(layer: Layer<unknown>, params?: LayerOptions<unknown>): Controller;
|
|
51
|
-
/**
|
|
52
|
-
* Remove and unmount layer from list
|
|
53
|
-
* @param layerId string id
|
|
54
|
-
*/
|
|
55
|
-
removeLayer(layerId: string): Controller;
|
|
56
|
-
/**
|
|
57
|
-
* Remove and unmount all layers from list
|
|
58
|
-
*/
|
|
59
|
-
removeAllLayers(): Controller;
|
|
60
|
-
/**
|
|
61
|
-
* Find first layer with given id, returns undefined if none are found
|
|
62
|
-
* @param layerId string id
|
|
63
|
-
*/
|
|
64
|
-
getLayer(layerId: string): Layer<unknown> | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Sets visibility to true and rescales the layer
|
|
67
|
-
* @param layerId string id
|
|
68
|
-
*/
|
|
69
|
-
showLayer(layerId: string): Controller;
|
|
70
|
-
/**
|
|
71
|
-
* Sets visibility to false
|
|
72
|
-
* @param layerId string id
|
|
73
|
-
*/
|
|
74
|
-
hideLayer(layerId: string): Controller;
|
|
75
|
-
/**
|
|
76
|
-
* Adjust layers, axis, overlay, and zoom according to inputted dimensions
|
|
77
|
-
* @param width (required)
|
|
78
|
-
* @param height (required)
|
|
79
|
-
*/
|
|
80
|
-
adjustToSize(width: number, height: number): Controller;
|
|
81
|
-
/**
|
|
82
|
-
* Set new viewport
|
|
83
|
-
* @param cx - center X pos
|
|
84
|
-
* @param cy - center Y pos
|
|
85
|
-
* @param displ - displacement
|
|
86
|
-
* @param duration - duration of transition
|
|
87
|
-
*/
|
|
88
|
-
setViewport(cx?: number, cy?: number, displacement?: number, duration?: number): Controller;
|
|
89
|
-
/**
|
|
90
|
-
* Sets bounds for zoom and pan handler
|
|
91
|
-
* @param xBounds - domain in x-direction
|
|
92
|
-
* @param yBounds - domain in y-direction
|
|
93
|
-
*/
|
|
94
|
-
setBounds(xBounds: [number, number], yBounds: [number, number]): Controller;
|
|
95
|
-
/**
|
|
96
|
-
* Display both axes
|
|
97
|
-
*/
|
|
98
|
-
showAxis(): Controller;
|
|
99
|
-
/**
|
|
100
|
-
* Hide both axes
|
|
101
|
-
*/
|
|
102
|
-
hideAxis(): Controller;
|
|
103
|
-
/**
|
|
104
|
-
* Shows labels in x and y
|
|
105
|
-
*/
|
|
106
|
-
showAxisLabels(): Controller;
|
|
107
|
-
/**
|
|
108
|
-
* Hide labels in x and y
|
|
109
|
-
*/
|
|
110
|
-
hideAxisLabels(): Controller;
|
|
111
|
-
/**
|
|
112
|
-
* Sets domain offset, offset is subtracted from domain
|
|
113
|
-
* @param x
|
|
114
|
-
* @param y
|
|
115
|
-
*/
|
|
116
|
-
setAxisOffset(x: number, y: number): Controller;
|
|
117
|
-
/**
|
|
118
|
-
* Sets domain offset in x-direction, offset is subtracted from domain
|
|
119
|
-
* @param x
|
|
120
|
-
*/
|
|
121
|
-
setXAxisOffset(x: number): Controller;
|
|
122
|
-
/**
|
|
123
|
-
* Sets domain offset in y-direction, offset is subtracted from domain
|
|
124
|
-
* @param y
|
|
125
|
-
*/
|
|
126
|
-
setYAxisOffset(y: number): Controller;
|
|
127
|
-
/**
|
|
128
|
-
* Defines min and max of how much one can zoom
|
|
129
|
-
* @param zoomlevels
|
|
130
|
-
*/
|
|
131
|
-
setZoomLevelBoundary(zoomlevels: [number, number]): Controller;
|
|
132
|
-
/**
|
|
133
|
-
* Defines how far in one can zoom
|
|
134
|
-
* @param zoomlevel
|
|
135
|
-
*/
|
|
136
|
-
setMaxZoomLevel(zoomlevel: number): Controller;
|
|
137
|
-
/**
|
|
138
|
-
* Defines how far out one can zoom
|
|
139
|
-
* @param zoomlevel
|
|
140
|
-
*/
|
|
141
|
-
setMinZoomLevel(zoomlevel: number): Controller;
|
|
142
|
-
/**
|
|
143
|
-
* Destroy Controller
|
|
144
|
-
* Convenience method for removing from DOM and clearing references
|
|
145
|
-
*/
|
|
146
|
-
destroy(): Controller;
|
|
147
|
-
private getHighestZIndex;
|
|
148
|
-
private setOverlayZIndex;
|
|
149
|
-
get overlay(): Overlay<Controller>;
|
|
150
|
-
get referenceSystem(): IntersectionReferenceSystem | undefined;
|
|
151
|
-
get zoomPanHandler(): ZoomPanHandler;
|
|
152
|
-
get axis(): Axis | undefined;
|
|
153
|
-
get currentStateAsEvent(): OnRescaleEvent;
|
|
154
|
-
}
|
|
155
|
-
//# sourceMappingURL=MainController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MainController.d.ts","sourceRoot":"","sources":["../../../src/control/MainController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,IAAI,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAW,OAAO,EAAE,MAAM,WAAW,CAAC;AAG7C;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,gBAAgB,CAA0C;IAElE,OAAO,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