dwv 0.33.0-beta.40 → 0.33.0-beta.41
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 +16 -6
- 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
|
@@ -1972,6 +1972,7 @@ declare class Image_2 {
|
|
|
1972
1972
|
* Append a slice to the image.
|
|
1973
1973
|
*
|
|
1974
1974
|
* @param {Image} rhs The slice to append.
|
|
1975
|
+
* @fires Image#imagegeometrychange
|
|
1975
1976
|
*/
|
|
1976
1977
|
appendSlice(rhs: Image_2): void;
|
|
1977
1978
|
/**
|
|
@@ -2027,7 +2028,7 @@ declare class Image_2 {
|
|
|
2027
2028
|
*
|
|
2028
2029
|
* @param {number[]} offsets List of offsets where to set the data.
|
|
2029
2030
|
* @param {number|RGB} value The value to set at the given offsets.
|
|
2030
|
-
* @fires Image#
|
|
2031
|
+
* @fires Image#imagecontentchange
|
|
2031
2032
|
*/
|
|
2032
2033
|
setAtOffsets(offsets: number[], value: number | RGB): void;
|
|
2033
2034
|
/**
|
|
@@ -2038,7 +2039,7 @@ declare class Image_2 {
|
|
|
2038
2039
|
* @param {RGB} value The value to set at the given offsets.
|
|
2039
2040
|
* @returns {Array} A list of objects representing the original values before
|
|
2040
2041
|
* replacing them.
|
|
2041
|
-
* @fires Image#
|
|
2042
|
+
* @fires Image#imagecontentchange
|
|
2042
2043
|
*/
|
|
2043
2044
|
setAtOffsetsAndGetOriginals(offsetsLists: number[][], value: RGB): any[];
|
|
2044
2045
|
/**
|
|
@@ -2047,7 +2048,7 @@ declare class Image_2 {
|
|
|
2047
2048
|
* @param {number[][]} offsetsLists List of offset lists
|
|
2048
2049
|
* where to set the data.
|
|
2049
2050
|
* @param {RGB|Array} value The value to set at the given offsets.
|
|
2050
|
-
* @fires Image#
|
|
2051
|
+
* @fires Image#imagecontentchange
|
|
2051
2052
|
*/
|
|
2052
2053
|
setAtOffsetsWithIterator(offsetsLists: number[][], value: RGB | any[]): void;
|
|
2053
2054
|
/**
|
|
@@ -4333,7 +4334,7 @@ export declare class ViewController {
|
|
|
4333
4334
|
*/
|
|
4334
4335
|
canScroll(): boolean;
|
|
4335
4336
|
/**
|
|
4336
|
-
* Get the image size.
|
|
4337
|
+
* Get the oriented image size.
|
|
4337
4338
|
*
|
|
4338
4339
|
* @returns {Size} The size.
|
|
4339
4340
|
*/
|
|
@@ -4603,13 +4604,20 @@ export declare class ViewLayer {
|
|
|
4603
4604
|
* @function
|
|
4604
4605
|
*/
|
|
4605
4606
|
onimageset: (event: object) => void;
|
|
4607
|
+
/**
|
|
4608
|
+
* Handle an image content change event.
|
|
4609
|
+
*
|
|
4610
|
+
* @param {object} event The event.
|
|
4611
|
+
* @function
|
|
4612
|
+
*/
|
|
4613
|
+
onimagecontentchange: (event: object) => void;
|
|
4606
4614
|
/**
|
|
4607
4615
|
* Handle an image change event.
|
|
4608
4616
|
*
|
|
4609
4617
|
* @param {object} event The event.
|
|
4610
4618
|
* @function
|
|
4611
4619
|
*/
|
|
4612
|
-
|
|
4620
|
+
onimagegeometrychange: (event: object) => void;
|
|
4613
4621
|
/**
|
|
4614
4622
|
* Get the id of the layer.
|
|
4615
4623
|
*
|
|
@@ -4680,9 +4688,11 @@ export declare class ViewLayer {
|
|
|
4680
4688
|
*
|
|
4681
4689
|
* @param {Vector3D} scrollOffset The scroll offset vector.
|
|
4682
4690
|
* @param {Vector3D} planeOffset The plane offset vector.
|
|
4691
|
+
* @param {Point3D} [layerGroupOrigin] The layer group origin.
|
|
4692
|
+
* @param {Point3D} [layerGroupOrigin0] The layer group first origin.
|
|
4683
4693
|
* @returns {boolean} True if the offset was updated.
|
|
4684
4694
|
*/
|
|
4685
|
-
setBaseOffset(scrollOffset: Vector3D, planeOffset: Vector3D): boolean;
|
|
4695
|
+
setBaseOffset(scrollOffset: Vector3D, planeOffset: Vector3D, layerGroupOrigin?: Point3D, layerGroupOrigin0?: Point3D): boolean;
|
|
4686
4696
|
/**
|
|
4687
4697
|
* Set the layer offset.
|
|
4688
4698
|
*
|