Skip to content

Commit

Permalink
Add doc for deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Nov 14, 2024
1 parent c5f2c1e commit 38abbb0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
23 changes: 15 additions & 8 deletions src/app/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ export class App {
* Can the data (of the active view of the active layer) be scrolled?
*
* @returns {boolean} True if the data has a third dimension greater than one.
* @deprecated Please use the ViewController equivalent directly instead.
* @deprecated Since v0.33, please use the ViewController
* equivalent directly instead.
*/
canScroll() {
const viewLayer = this.#stage.getActiveLayerGroup().getActiveViewLayer();
Expand All @@ -373,7 +374,8 @@ export class App {
* (of the active view of the active layer)?
*
* @returns {boolean} True if the data is monochrome.
* @deprecated Please use the ViewController equivalent directly instead.
* @deprecated Since v0.33, please use the ViewController
* equivalent directly instead.
*/
canWindowLevel() {
const viewLayer = this.#stage.getActiveLayerGroup().getActiveViewLayer();
Expand Down Expand Up @@ -886,7 +888,8 @@ export class App {
* Init the Window/Level display
* (of the active layer of the active layer group).
*
* @deprecated Please set the opacity of the desired view layer directly.
* @deprecated Since v0.33, please set the opacity
* of the desired view layer directly.
*/
initWLDisplay() {
const viewLayer = this.#stage.getActiveLayerGroup().getActiveViewLayer();
Expand Down Expand Up @@ -1249,7 +1252,8 @@ export class App {
* Set the active view layer (of the active layer group) opacity.
*
* @param {number} alpha The opacity ([0:1] range).
* @deprecated Please set the opacity of the desired view layer directly.
* @deprecated Since v0.33, pplease set the opacity
* of the desired view layer directly.
*/
setOpacity(alpha) {
const viewLayer = this.#stage.getActiveLayerGroup().getActiveViewLayer();
Expand All @@ -1260,7 +1264,7 @@ export class App {
/**
* Set the drawings of the active layer group.
*
* @deprecated Please switch to DICOM SR annotations.
* @deprecated Since v0.34, please switch to DICOM SR annotations.
* @param {Array} drawings An array of drawings.
* @param {Array} drawingsDetails An array of drawings details.
* @param {string} dataId The converted data id.
Expand Down Expand Up @@ -1289,7 +1293,8 @@ export class App {
/**
* Apply a JSON state to this app.
*
* @deprecated
* @deprecated Since v0.34, please switch to DICOM SR
* for annotations.
* @param {string} jsonState The state of the app as a JSON string.
* @param {string} dataId The state data id.
*/
Expand Down Expand Up @@ -1404,7 +1409,8 @@ export class App {
* Set the colour map of the active view of the active layer group.
*
* @param {string} name The colour map name.
* @deprecated Please use the ViewController equivalent directly instead.
* @deprecated Since v0.33, please use the ViewController
* equivalent directly instead.
*/
setColourMap(name) {
const viewController =
Expand All @@ -1417,7 +1423,8 @@ export class App {
* Set the window/level preset of the active view of the active layer group.
*
* @param {string} preset The window/level preset.
* @deprecated Please use the ViewController equivalent directly instead.
* @deprecated Since v0.33, please use the ViewController
* equivalent directly instead.
*/
setWindowLevelPreset(preset) {
const viewController =
Expand Down
2 changes: 1 addition & 1 deletion src/app/viewController.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export class ViewController {
* Can window and level be applied to the data?
*
* @returns {boolean} True if possible.
* @deprecated Please use isMonochrome instead.
* @deprecated Since v0.33, please use isMonochrome instead.
*/
canWindowLevel() {
return this.isMonochrome();
Expand Down
4 changes: 2 additions & 2 deletions src/gui/drawLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ export class DrawLayer {
/**
* Delete a Draw from the stage.
*
* @deprecated
* @deprecated Since v0.34, please switch to `annotationGroup.remove`.
* @param {string} _id The id of the group to delete.
* @param {Function} _exeCallback The callback to call once the
* DeleteCommand has been executed.
Expand All @@ -992,7 +992,7 @@ export class DrawLayer {
/**
* Delete all Draws from the stage.
*
* @deprecated
* @deprecated Since v0.34, please switch to `annotationGroup.remove`.
* @param {Function} _exeCallback The callback to call once the
* DeleteCommand has been executed.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export class Image {
* Can window and level be applied to the data?
*
* @returns {boolean} True if the data is monochrome.
* @deprecated Please use isMonochrome instead.
* @deprecated Since v0.33, please use isMonochrome instead.
*/
canWindowLevel() {
return this.isMonochrome();
Expand Down

0 comments on commit 38abbb0

Please sign in to comment.