dwv 0.33.0-beta.4 → 0.33.0-beta.6
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 +18 -21
- package/dist/dwv.min.js +1 -1
- package/dist/dwv.min.js.map +1 -1
- package/package.json +2 -2
package/dist/dwv.d.ts
CHANGED
|
@@ -323,6 +323,7 @@ export declare class App {
|
|
|
323
323
|
removeDataViewConfig(dataId: string, config: object): void;
|
|
324
324
|
/**
|
|
325
325
|
* Update a data view config.
|
|
326
|
+
* Removes and re-creates the layer if found.
|
|
326
327
|
*
|
|
327
328
|
* @param {string} dataId The data id.
|
|
328
329
|
* @param {string} divId The div id.
|
|
@@ -553,7 +554,7 @@ export declare const defaultPresets: {
|
|
|
553
554
|
};
|
|
554
555
|
|
|
555
556
|
export declare namespace defaults {
|
|
556
|
-
|
|
557
|
+
const labelText: {
|
|
557
558
|
[x: string]: {
|
|
558
559
|
[x: string]: string;
|
|
559
560
|
};
|
|
@@ -737,6 +738,10 @@ export declare class DrawLayer {
|
|
|
737
738
|
* Add a flip offset along the layer Y axis.
|
|
738
739
|
*/
|
|
739
740
|
addFlipOffsetY(): void;
|
|
741
|
+
/**
|
|
742
|
+
* Flip the scale along the layer Z axis.
|
|
743
|
+
*/
|
|
744
|
+
flipScaleZ(): void;
|
|
740
745
|
/**
|
|
741
746
|
* Set the layer scale.
|
|
742
747
|
*
|
|
@@ -1603,18 +1608,6 @@ export declare class LayerGroup {
|
|
|
1603
1608
|
* @param {HTMLElement} containerDiv The associated HTML div.
|
|
1604
1609
|
*/
|
|
1605
1610
|
constructor(containerDiv: HTMLElement);
|
|
1606
|
-
/**
|
|
1607
|
-
* Get the target orientation.
|
|
1608
|
-
*
|
|
1609
|
-
* @returns {Matrix33} The orientation matrix.
|
|
1610
|
-
*/
|
|
1611
|
-
getTargetOrientation(): Matrix33;
|
|
1612
|
-
/**
|
|
1613
|
-
* Set the target orientation.
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Matrix33} orientation The orientation matrix.
|
|
1616
|
-
*/
|
|
1617
|
-
setTargetOrientation(orientation: Matrix33): void;
|
|
1618
1611
|
/**
|
|
1619
1612
|
* Get the showCrosshair flag.
|
|
1620
1613
|
*
|
|
@@ -1848,13 +1841,13 @@ export declare class LayerGroup {
|
|
|
1848
1841
|
|
|
1849
1842
|
export declare namespace logger {
|
|
1850
1843
|
export namespace levels {
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1844
|
+
const TRACE: number;
|
|
1845
|
+
const DEBUG: number;
|
|
1846
|
+
const INFO: number;
|
|
1847
|
+
const WARN: number;
|
|
1848
|
+
const ERROR: number;
|
|
1856
1849
|
}
|
|
1857
|
-
|
|
1850
|
+
const level: number;
|
|
1858
1851
|
export function trace(msg: string): void;
|
|
1859
1852
|
export function debug(msg: string): void;
|
|
1860
1853
|
export function info(msg: string): void;
|
|
@@ -3090,9 +3083,9 @@ export declare class ViewController {
|
|
|
3090
3083
|
*/
|
|
3091
3084
|
setImage(img: Image_2, dataId: string): void;
|
|
3092
3085
|
/**
|
|
3093
|
-
* Get the current spacing.
|
|
3086
|
+
* Get the current view (2D) spacing.
|
|
3094
3087
|
*
|
|
3095
|
-
* @returns {Array} The 2D
|
|
3088
|
+
* @returns {Array} The spacing as a 2D array.
|
|
3096
3089
|
*/
|
|
3097
3090
|
get2DSpacing(): any[];
|
|
3098
3091
|
/**
|
|
@@ -3418,6 +3411,10 @@ export declare class ViewLayer {
|
|
|
3418
3411
|
* Add a flip offset along the layer Y axis.
|
|
3419
3412
|
*/
|
|
3420
3413
|
addFlipOffsetY(): void;
|
|
3414
|
+
/**
|
|
3415
|
+
* Flip the scale along the layer Z axis.
|
|
3416
|
+
*/
|
|
3417
|
+
flipScaleZ(): void;
|
|
3421
3418
|
/**
|
|
3422
3419
|
* Set the layer scale.
|
|
3423
3420
|
*
|