dwv 0.34.0-beta.12 → 0.34.0-beta.13
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 +17 -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
|
*
|
|
@@ -1690,6 +1690,12 @@ export declare class DrawLayer {
|
|
|
1690
1690
|
* @param {object} exeCallback The undo stack callback.
|
|
1691
1691
|
*/
|
|
1692
1692
|
setAnnotationGroup(annotationGroup: AnnotationGroup, dataId: string, exeCallback: object): void;
|
|
1693
|
+
/**
|
|
1694
|
+
* Activate shapes at current position.
|
|
1695
|
+
*
|
|
1696
|
+
* @param {boolean} flag The flag to activate or not.
|
|
1697
|
+
*/
|
|
1698
|
+
activateCurrentPositionShapes(flag: boolean): void;
|
|
1693
1699
|
/**
|
|
1694
1700
|
* Fit the layer to its parent container.
|
|
1695
1701
|
*
|
|
@@ -1764,29 +1770,23 @@ export declare class DrawLayer {
|
|
|
1764
1770
|
* Set the current position.
|
|
1765
1771
|
*
|
|
1766
1772
|
* @param {Point} position The new position.
|
|
1767
|
-
* @param {Index}
|
|
1773
|
+
* @param {Index} _index The new index.
|
|
1768
1774
|
* @returns {boolean} True if the position was updated.
|
|
1769
1775
|
*/
|
|
1770
|
-
setCurrentPosition(position: Point,
|
|
1776
|
+
setCurrentPosition(position: Point, _index: Index): boolean;
|
|
1771
1777
|
/**
|
|
1772
1778
|
* Activate the current draw layer.
|
|
1773
1779
|
*
|
|
1774
|
-
* @param {
|
|
1780
|
+
* @param {Point} position The current position.
|
|
1775
1781
|
* @param {number} scrollIndex The scroll index.
|
|
1776
1782
|
*/
|
|
1777
|
-
activateDrawLayer(
|
|
1783
|
+
activateDrawLayer(position: Point, scrollIndex: number): void;
|
|
1778
1784
|
/**
|
|
1779
1785
|
* Get the current position group.
|
|
1780
1786
|
*
|
|
1781
1787
|
* @returns {Konva.Group|undefined} The Konva.Group.
|
|
1782
1788
|
*/
|
|
1783
1789
|
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
1790
|
/**
|
|
1791
1791
|
* Get a Konva group using its id.
|
|
1792
1792
|
*
|
|
@@ -2710,13 +2710,6 @@ export declare class Index {
|
|
|
2710
2710
|
* @returns {Index} The new index.
|
|
2711
2711
|
*/
|
|
2712
2712
|
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
2713
|
#private;
|
|
2721
2714
|
}
|
|
2722
2715
|
|
|
@@ -4539,9 +4532,9 @@ export declare class View {
|
|
|
4539
4532
|
* Get the image origin for a image UID.
|
|
4540
4533
|
*
|
|
4541
4534
|
* @param {string} uid The UID.
|
|
4542
|
-
* @returns {
|
|
4535
|
+
* @returns {Point3D|undefined} The origin.
|
|
4543
4536
|
*/
|
|
4544
|
-
|
|
4537
|
+
getOriginForImageUid(uid: string): Point3D | undefined;
|
|
4545
4538
|
/**
|
|
4546
4539
|
* Check if the current position (default) or
|
|
4547
4540
|
* the provided position is in bounds.
|
|
@@ -4786,12 +4779,12 @@ export declare class ViewController {
|
|
|
4786
4779
|
*/
|
|
4787
4780
|
getCurrentImageUid(): string;
|
|
4788
4781
|
/**
|
|
4789
|
-
* Get the image origin
|
|
4782
|
+
* Get the image origin for a image UID.
|
|
4790
4783
|
*
|
|
4791
4784
|
* @param {string} uid The UID.
|
|
4792
|
-
* @returns {
|
|
4785
|
+
* @returns {Point3D|undefined} The origin.
|
|
4793
4786
|
*/
|
|
4794
|
-
|
|
4787
|
+
getOriginForImageUid(uid: string): Point3D | undefined;
|
|
4795
4788
|
/**
|
|
4796
4789
|
* Get the current oriented index.
|
|
4797
4790
|
*
|