dwv 0.34.0-beta.14 → 0.34.0-beta.15
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/dwv.d.ts +76 -23
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +1 -1
package/dist/dwv.d.ts
CHANGED
|
@@ -67,17 +67,23 @@ export declare class Annotation {
|
|
|
67
67
|
*/
|
|
68
68
|
labelPosition: Point2D | undefined;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* The plane origin, the 3D position of index [0, 0, k].
|
|
71
71
|
*
|
|
72
|
-
* @
|
|
72
|
+
* @type {Point3D|undefined}
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
planeOrigin: Point3D | undefined;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* A couple of points that help define the annotation plane.
|
|
77
77
|
*
|
|
78
|
-
* @
|
|
78
|
+
* @type {Point3D[]|undefined}
|
|
79
|
+
*/
|
|
80
|
+
planePoints: Point3D[] | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Set the associated view controller.
|
|
83
|
+
*
|
|
84
|
+
* @param {ViewController} viewController The associated view controller.
|
|
79
85
|
*/
|
|
80
|
-
|
|
86
|
+
setViewController(viewController: ViewController): void;
|
|
81
87
|
/**
|
|
82
88
|
* Set the annotation text expression.
|
|
83
89
|
*
|
|
@@ -1565,6 +1571,12 @@ export declare class DrawLayer {
|
|
|
1565
1571
|
* @returns {string} The id.
|
|
1566
1572
|
*/
|
|
1567
1573
|
getDataId(): string;
|
|
1574
|
+
/**
|
|
1575
|
+
* Get the reference data id.
|
|
1576
|
+
*
|
|
1577
|
+
* @returns {string} The id.
|
|
1578
|
+
*/
|
|
1579
|
+
getReferenceLayerId(): string;
|
|
1568
1580
|
/**
|
|
1569
1581
|
* Get the Konva stage.
|
|
1570
1582
|
*
|
|
@@ -1688,8 +1700,9 @@ export declare class DrawLayer {
|
|
|
1688
1700
|
*
|
|
1689
1701
|
* @param {Scalar2D} size The image size as {x,y}.
|
|
1690
1702
|
* @param {Scalar2D} spacing The image spacing as {x,y}.
|
|
1703
|
+
* @param {string} refLayerId The reference image dataId.
|
|
1691
1704
|
*/
|
|
1692
|
-
initialise(size: Scalar2D, spacing: Scalar2D): void;
|
|
1705
|
+
initialise(size: Scalar2D, spacing: Scalar2D, refLayerId: string): void;
|
|
1693
1706
|
/**
|
|
1694
1707
|
* Set the annotation group.
|
|
1695
1708
|
*
|
|
@@ -1778,17 +1791,10 @@ export declare class DrawLayer {
|
|
|
1778
1791
|
* Set the current position.
|
|
1779
1792
|
*
|
|
1780
1793
|
* @param {Point} position The new position.
|
|
1781
|
-
* @param {Index}
|
|
1794
|
+
* @param {Index} index The new index.
|
|
1782
1795
|
* @returns {boolean} True if the position was updated.
|
|
1783
1796
|
*/
|
|
1784
|
-
setCurrentPosition(position: Point,
|
|
1785
|
-
/**
|
|
1786
|
-
* Activate the current draw layer.
|
|
1787
|
-
*
|
|
1788
|
-
* @param {Point} position The current position.
|
|
1789
|
-
* @param {number} scrollIndex The scroll index.
|
|
1790
|
-
*/
|
|
1791
|
-
activateDrawLayer(position: Point, scrollIndex: number): void;
|
|
1797
|
+
setCurrentPosition(position: Point, index: Index): boolean;
|
|
1792
1798
|
/**
|
|
1793
1799
|
* Get the current position group.
|
|
1794
1800
|
*
|
|
@@ -2128,7 +2134,7 @@ export declare function getEllipseIndices(center: Index, radius: number[], dir:
|
|
|
2128
2134
|
* @param {object} event The event to get the layer div id from. Expecting
|
|
2129
2135
|
* an event origininating from a canvas inside a layer HTML div
|
|
2130
2136
|
* with the 'layer' class and id generated with `getLayerDivId`.
|
|
2131
|
-
* @returns {object} The layer details as {groupDivId, layerId}.
|
|
2137
|
+
* @returns {object} The layer details as {groupDivId, layerIndex, layerId}.
|
|
2132
2138
|
*/
|
|
2133
2139
|
export declare function getLayerDetailsFromEvent(event: object): object;
|
|
2134
2140
|
|
|
@@ -2888,9 +2894,10 @@ export declare class LayerGroup {
|
|
|
2888
2894
|
/**
|
|
2889
2895
|
* Set the active draw layer.
|
|
2890
2896
|
*
|
|
2891
|
-
* @param {number} index The index of the layer to set as active
|
|
2897
|
+
* @param {number|undefined} index The index of the layer to set as active
|
|
2898
|
+
* or undefined to not set any.
|
|
2892
2899
|
*/
|
|
2893
|
-
setActiveDrawLayer(index: number): void;
|
|
2900
|
+
setActiveDrawLayer(index: number | undefined): void;
|
|
2894
2901
|
/**
|
|
2895
2902
|
* Set the active draw layer with a data id.
|
|
2896
2903
|
*
|
|
@@ -3501,11 +3508,10 @@ export declare class OverlayData {
|
|
|
3501
3508
|
*/
|
|
3502
3509
|
export declare class PlaneHelper {
|
|
3503
3510
|
/**
|
|
3504
|
-
* @param {
|
|
3505
|
-
* @param {Matrix33} imageOrientation The image oientation.
|
|
3511
|
+
* @param {Geometry} imageGeometry The image geometry.
|
|
3506
3512
|
* @param {Matrix33} viewOrientation The view orientation.
|
|
3507
3513
|
*/
|
|
3508
|
-
constructor(
|
|
3514
|
+
constructor(imageGeometry: Geometry, viewOrientation: Matrix33);
|
|
3509
3515
|
/**
|
|
3510
3516
|
* Get a 3D offset from a plane one.
|
|
3511
3517
|
*
|
|
@@ -3569,6 +3575,34 @@ export declare class PlaneHelper {
|
|
|
3569
3575
|
* @returns {Point3D} The de-orienteded point.
|
|
3570
3576
|
*/
|
|
3571
3577
|
getImageDeOrientedPoint3D(point: Point3D): Point3D;
|
|
3578
|
+
/**
|
|
3579
|
+
* Get a world position from a 2D plane position.
|
|
3580
|
+
*
|
|
3581
|
+
* @param {Point2D} point2D The input point.
|
|
3582
|
+
* @param {number} k The slice index.
|
|
3583
|
+
* @returns {Point3D} The associated position.
|
|
3584
|
+
*/
|
|
3585
|
+
getPositionFromPlanePoint(point2D: Point2D, k: number): Point3D;
|
|
3586
|
+
/**
|
|
3587
|
+
* Get a list of points that define the plane at position k.
|
|
3588
|
+
*
|
|
3589
|
+
* @param {number} k The slice index value.
|
|
3590
|
+
* @returns {Point3D[]} A couple of 3D points.
|
|
3591
|
+
*/
|
|
3592
|
+
getPlanePoints(k: number): Point3D[];
|
|
3593
|
+
/**
|
|
3594
|
+
* Image world to index.
|
|
3595
|
+
*
|
|
3596
|
+
* @param {Point} point The input point.
|
|
3597
|
+
* @returns {Index} The corresponding index.
|
|
3598
|
+
*/
|
|
3599
|
+
worldToIndex(point: Point): Index;
|
|
3600
|
+
/**
|
|
3601
|
+
* Is this view in the same orientation as the image aquisition.
|
|
3602
|
+
*
|
|
3603
|
+
* @returns {boolean} True if in aquisition plane.
|
|
3604
|
+
*/
|
|
3605
|
+
isAquisitionOrientation(): boolean;
|
|
3572
3606
|
/**
|
|
3573
3607
|
* Reorder values to follow target orientation.
|
|
3574
3608
|
*
|
|
@@ -4648,6 +4682,12 @@ export declare class View {
|
|
|
4648
4682
|
* @returns {number} The index.
|
|
4649
4683
|
*/
|
|
4650
4684
|
getScrollIndex(): number;
|
|
4685
|
+
/**
|
|
4686
|
+
* Is this view in the same orientation as the image aquisition.
|
|
4687
|
+
*
|
|
4688
|
+
* @returns {boolean} True if in aquisition plane.
|
|
4689
|
+
*/
|
|
4690
|
+
isAquisitionOrientation(): boolean;
|
|
4651
4691
|
#private;
|
|
4652
4692
|
}
|
|
4653
4693
|
|
|
@@ -4814,10 +4854,23 @@ export declare class ViewController {
|
|
|
4814
4854
|
/**
|
|
4815
4855
|
* Get the first origin or at a given position.
|
|
4816
4856
|
*
|
|
4817
|
-
* @param {Point} [position]
|
|
4857
|
+
* @param {Point} [position] Optional position.
|
|
4818
4858
|
* @returns {Point3D} The origin.
|
|
4819
4859
|
*/
|
|
4820
4860
|
getOrigin(position?: Point): Point3D;
|
|
4861
|
+
/**
|
|
4862
|
+
* Is this view in the same orientation as the image aquisition.
|
|
4863
|
+
*
|
|
4864
|
+
* @returns {boolean} True if in aquisition plane.
|
|
4865
|
+
*/
|
|
4866
|
+
isAquisitionOrientation(): boolean;
|
|
4867
|
+
/**
|
|
4868
|
+
* Get a list of points that define the plane at position k.
|
|
4869
|
+
*
|
|
4870
|
+
* @param {number} k The slice index value.
|
|
4871
|
+
* @returns {Point3D[]} A couple of 3D points.
|
|
4872
|
+
*/
|
|
4873
|
+
getPlanePoints(k: number): Point3D[];
|
|
4821
4874
|
/**
|
|
4822
4875
|
* Get the current scroll position value.
|
|
4823
4876
|
*
|