Skip to content

Commit

Permalink
Beta v0.35.0-beta.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jan 27, 2025
1 parent 8ddff4c commit b03a09a
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 28 deletions.
43 changes: 25 additions & 18 deletions dist/dwv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ export declare class DrawLayer {
*/
getDataId(): string;
/**
* Get the reference data id.
* Get the reference layer id.
*
* @returns {string} The id.
*/
Expand Down Expand Up @@ -3122,6 +3122,12 @@ export declare class LayerGroup {
* @returns {number} The number of layers.
*/
getNumberOfViewLayers(): number;
/**
* Get the active image layer.
*
* @returns {ViewLayer|DrawLayer|undefined} The layer.
*/
getActiveLayer(): ViewLayer | DrawLayer | undefined;
/**
* Get the active image layer.
*
Expand All @@ -3134,6 +3140,13 @@ export declare class LayerGroup {
* @returns {ViewLayer|undefined} The layer.
*/
getBaseViewLayer(): ViewLayer | undefined;
/**
* Get a view layer associated to a data id.
*
* @param {string} id The layer id.
* @returns {ViewLayer|undefined} The layer.
*/
getViewLayerById(id: string): ViewLayer | undefined;
/**
* Get the view layers associated to a data id.
*
Expand All @@ -3160,6 +3173,13 @@ export declare class LayerGroup {
* @returns {DrawLayer|undefined} The layer.
*/
getActiveDrawLayer(): DrawLayer | undefined;
/**
* Get a draw layer associated to a data id.
*
* @param {string} id The layer id.
* @returns {DrawLayer|undefined} The layer.
*/
getDrawLayerById(id: string): DrawLayer | undefined;
/**
* Get the draw layers associated to a data id.
*
Expand All @@ -3168,30 +3188,17 @@ export declare class LayerGroup {
*/
getDrawLayersByDataId(dataId: string): DrawLayer[];
/**
* Set the active view layer.
* Set the active layer.
*
* @param {number} index The index of the layer to set as active.
*/
setActiveViewLayer(index: number): void;
/**
* Set the active view layer with a data id.
*
* @param {string} dataId The data id.
*/
setActiveViewLayerByDataId(dataId: string): void;
/**
* Set the active draw layer.
*
* @param {number|undefined} index The index of the layer to set as active
* or undefined to not set any.
*/
setActiveDrawLayer(index: number | undefined): void;
setActiveLayer(index: number): void;
/**
* Set the active draw layer with a data id.
* Set the active layer with a data id.
*
* @param {string} dataId The data id.
*/
setActiveDrawLayerByDataId(dataId: string): void;
setActiveLayerByDataId(dataId: string): void;
/**
* Add a view layer.
*
Expand Down
2 changes: 1 addition & 1 deletion dist/dwv.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/dwv.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dwv",
"version": "0.35.0-beta.11",
"version": "0.35.0-beta.12",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
Expand Down
9 changes: 5 additions & 4 deletions resources/api/dwv.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,12 +626,14 @@ export class LayerGroup {
fitToContainer(divToWorldSizeRatio: number): void;
flipScaleZ(): void;
getActiveDrawLayer(): DrawLayer | undefined;
getActiveLayer(): ViewLayer | DrawLayer | undefined;
getActiveViewLayer(): ViewLayer | undefined;
getAddedScale(): Scalar3D;
getBaseScale(): Scalar3D;
getBaseViewLayer(): ViewLayer | undefined;
getDivId(): string | undefined;
getDivToWorldSizeRatio(): number | undefined;
getDrawLayerById(id: string): DrawLayer | undefined;
getDrawLayers(callbackFn?: Function): DrawLayer[];
getDrawLayersByDataId(dataId: string): DrawLayer[];
getMaxWorldSize(): Scalar2D | undefined;
Expand All @@ -642,6 +644,7 @@ export class LayerGroup {
getScale(): Scalar3D;
getShowCrosshair(): boolean;
getViewDataIndices(): string[];
getViewLayerById(id: string): ViewLayer | undefined;
getViewLayers(callbackFn?: Function): ViewLayer[];
getViewLayersByDataId(dataId: string): ViewLayer[];
includes(id: string): boolean;
Expand All @@ -653,10 +656,8 @@ export class LayerGroup {
removeTooltipDiv(): void;
reset(): void;
searchViewLayers(meta: object): ViewLayer[];
setActiveDrawLayer(index: number | undefined): void;
setActiveDrawLayerByDataId(dataId: string): void;
setActiveViewLayer(index: number): void;
setActiveViewLayerByDataId(dataId: string): void;
setActiveLayer(index: number): void;
setActiveLayerByDataId(dataId: string): void;
setImageSmoothing(flag: boolean): void;
setOffset(newOffset: Scalar3D): void;
setScale(newScale: Scalar3D, center?: Point3D): void;
Expand Down
4 changes: 2 additions & 2 deletions resources/doc/jsdoc.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"package": "package.json",
"theme_opts": {
"title": "DWV",
"footer": "<i>Documentation generated for dwv v0.35.0-beta.11.</i>",
"footer": "<i>Documentation generated for dwv v0.35.0-beta.12.</i>",
"sections": [
"Tutorials",
"Namespaces",
Expand All @@ -50,7 +50,7 @@
"codepen": {
"enable_for": ["examples"],
"options": {
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.35.0-beta.11/dwv-0.35.0-beta.11.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.35.0-beta.12/dwv-0.35.0-beta.12.min.js",
"html": "<div id='dwv'><div id='layerGroup0'></div></div>"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/dicom/dicomParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {logger} from '../utils/logger';
* @returns {string} The version of the library.
*/
export function getDwvVersion() {
return '0.35.0-beta.11';
return '0.35.0-beta.12';
}

/**
Expand Down

0 comments on commit b03a09a

Please sign in to comment.