dwv 0.34.0-beta.12 → 0.34.0-beta.14
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 +25 -24
- 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
|
@@ -75,9 +75,9 @@ export declare class Annotation {
|
|
|
75
75
|
/**
|
|
76
76
|
* Get the image origin for a image UID.
|
|
77
77
|
*
|
|
78
|
-
* @returns {
|
|
78
|
+
* @returns {Point3D|undefined} The origin.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
getOrigin(): Point3D | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* Set the annotation text expression.
|
|
83
83
|
*
|
|
@@ -1644,6 +1644,14 @@ export declare class DrawLayer {
|
|
|
1644
1644
|
* @param {Point3D} [center] The scale center.
|
|
1645
1645
|
*/
|
|
1646
1646
|
setScale(newScale: Scalar3D, center?: Point3D): void;
|
|
1647
|
+
/**
|
|
1648
|
+
* Initialise the layer scale.
|
|
1649
|
+
*
|
|
1650
|
+
* @param {Scalar3D} newScale The scale as {x,y,z}.
|
|
1651
|
+
* @param {Scalar2D} absoluteZoomOffset The zoom offset as {x,y}
|
|
1652
|
+
* without the fit scale (as provided by getAbsoluteZoomOffset).
|
|
1653
|
+
*/
|
|
1654
|
+
initScale(newScale: Scalar3D, absoluteZoomOffset: Scalar2D): void;
|
|
1647
1655
|
/**
|
|
1648
1656
|
* Set the layer offset.
|
|
1649
1657
|
*
|
|
@@ -1690,6 +1698,12 @@ export declare class DrawLayer {
|
|
|
1690
1698
|
* @param {object} exeCallback The undo stack callback.
|
|
1691
1699
|
*/
|
|
1692
1700
|
setAnnotationGroup(annotationGroup: AnnotationGroup, dataId: string, exeCallback: object): void;
|
|
1701
|
+
/**
|
|
1702
|
+
* Activate shapes at current position.
|
|
1703
|
+
*
|
|
1704
|
+
* @param {boolean} flag The flag to activate or not.
|
|
1705
|
+
*/
|
|
1706
|
+
activateCurrentPositionShapes(flag: boolean): void;
|
|
1693
1707
|
/**
|
|
1694
1708
|
* Fit the layer to its parent container.
|
|
1695
1709
|
*
|
|
@@ -1764,29 +1778,23 @@ export declare class DrawLayer {
|
|
|
1764
1778
|
* Set the current position.
|
|
1765
1779
|
*
|
|
1766
1780
|
* @param {Point} position The new position.
|
|
1767
|
-
* @param {Index}
|
|
1781
|
+
* @param {Index} _index The new index.
|
|
1768
1782
|
* @returns {boolean} True if the position was updated.
|
|
1769
1783
|
*/
|
|
1770
|
-
setCurrentPosition(position: Point,
|
|
1784
|
+
setCurrentPosition(position: Point, _index: Index): boolean;
|
|
1771
1785
|
/**
|
|
1772
1786
|
* Activate the current draw layer.
|
|
1773
1787
|
*
|
|
1774
|
-
* @param {
|
|
1788
|
+
* @param {Point} position The current position.
|
|
1775
1789
|
* @param {number} scrollIndex The scroll index.
|
|
1776
1790
|
*/
|
|
1777
|
-
activateDrawLayer(
|
|
1791
|
+
activateDrawLayer(position: Point, scrollIndex: number): void;
|
|
1778
1792
|
/**
|
|
1779
1793
|
* Get the current position group.
|
|
1780
1794
|
*
|
|
1781
1795
|
* @returns {Konva.Group|undefined} The Konva.Group.
|
|
1782
1796
|
*/
|
|
1783
1797
|
getCurrentPosGroup(): Konva.Group | undefined;
|
|
1784
|
-
/**
|
|
1785
|
-
* Get the non current position groups. Used to stop listeners.
|
|
1786
|
-
*
|
|
1787
|
-
* @returns {object[]} The groups that do not have the current position id.
|
|
1788
|
-
*/
|
|
1789
|
-
getNonCurrentPosGroup(): object[];
|
|
1790
1798
|
/**
|
|
1791
1799
|
* Get a Konva group using its id.
|
|
1792
1800
|
*
|
|
@@ -2710,13 +2718,6 @@ export declare class Index {
|
|
|
2710
2718
|
* @returns {Index} The new index.
|
|
2711
2719
|
*/
|
|
2712
2720
|
getWithNew2D(i: number, j: number): Index;
|
|
2713
|
-
/**
|
|
2714
|
-
* Get a string id from the index values in the form of: '#0-1_#1-2'.
|
|
2715
|
-
*
|
|
2716
|
-
* @param {number[]} [dims] Optional list of dimensions to use.
|
|
2717
|
-
* @returns {string} The string id.
|
|
2718
|
-
*/
|
|
2719
|
-
toStringId(dims?: number[]): string;
|
|
2720
2721
|
#private;
|
|
2721
2722
|
}
|
|
2722
2723
|
|
|
@@ -4539,9 +4540,9 @@ export declare class View {
|
|
|
4539
4540
|
* Get the image origin for a image UID.
|
|
4540
4541
|
*
|
|
4541
4542
|
* @param {string} uid The UID.
|
|
4542
|
-
* @returns {
|
|
4543
|
+
* @returns {Point3D|undefined} The origin.
|
|
4543
4544
|
*/
|
|
4544
|
-
|
|
4545
|
+
getOriginForImageUid(uid: string): Point3D | undefined;
|
|
4545
4546
|
/**
|
|
4546
4547
|
* Check if the current position (default) or
|
|
4547
4548
|
* the provided position is in bounds.
|
|
@@ -4786,12 +4787,12 @@ export declare class ViewController {
|
|
|
4786
4787
|
*/
|
|
4787
4788
|
getCurrentImageUid(): string;
|
|
4788
4789
|
/**
|
|
4789
|
-
* Get the image origin
|
|
4790
|
+
* Get the image origin for a image UID.
|
|
4790
4791
|
*
|
|
4791
4792
|
* @param {string} uid The UID.
|
|
4792
|
-
* @returns {
|
|
4793
|
+
* @returns {Point3D|undefined} The origin.
|
|
4793
4794
|
*/
|
|
4794
|
-
|
|
4795
|
+
getOriginForImageUid(uid: string): Point3D | undefined;
|
|
4795
4796
|
/**
|
|
4796
4797
|
* Get the current oriented index.
|
|
4797
4798
|
*
|