Skip to content

Commit

Permalink
More doc types
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Aug 23, 2023
1 parent eae25e7 commit 9b72102
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 11 deletions.
44 changes: 35 additions & 9 deletions src/app/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import {binderList} from '../gui/stage';
// doc imports
/* eslint-disable no-unused-vars */
import {LayerGroup} from '../gui/layerGroup';
import {ViewLayer} from '../gui/viewLayer';
import {DrawLayer} from '../gui/drawLayer';
import {Image} from '../image/image';
import {ColourMap} from '../image/luts';
/* eslint-enable no-unused-vars */
Expand Down Expand Up @@ -163,22 +165,46 @@ export class App {
*/
#options = null;

// data controller
/**
* Data controller.
*
* @type {DataController}
*/
#dataController = null;

// toolbox controller
/**
* Toolbox controller.
*
* @type {ToolboxController}
*/
#toolboxController = null;

// load controller
/**
* Load controller.
*
* @type {LoadController}
*/
#loadController = null;

// stage
/**
* Stage.
*
* @type {Stage}
*/
#stage = null;

// UndoStack
/**
* Undo stack.
*
* @type {UndoStack}
*/
#undoStack = null;

// Generic style
/**
* Style.
*
* @type {Style}
*/
#style = new Style();

/**
Expand Down Expand Up @@ -350,7 +376,7 @@ export class App {
/**
* Get the toolbox controller.
*
* @returns {object} The controller.
* @returns {ToolboxController} The controller.
*/
getToolboxController() {
return this.#toolboxController;
Expand All @@ -371,7 +397,7 @@ export class App {
* The layer are available after the first loaded item.
*
* @param {number} index The data index.
* @returns {Array} The layers.
* @returns {ViewLayer[]} The layers.
*/
getViewLayersByDataIndex(index) {
return this.#stage.getViewLayersByDataIndex(index);
Expand All @@ -382,7 +408,7 @@ export class App {
* The layer are available after the first loaded item.
*
* @param {number} index The data index.
* @returns {Array} The layers.
* @returns {DrawLayer[]} The layers.
*/
getDrawLayersByDataIndex(index) {
return this.#stage.getDrawLayersByDataIndex(index);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/drawLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class DrawLayer {
* Set the layer scale.
*
* @param {object} newScale The scale as {x,y}.
* @param {Point3D} center The scale center.
* @param {Point3D} [center] The scale center.
*/
setScale(newScale, center) {
const orientedNewScale =
Expand Down
2 changes: 1 addition & 1 deletion src/gui/viewLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class ViewLayer {
* Set the layer scale.
*
* @param {object} newScale The scale as {x,y}.
* @param {Point3D} center The scale center.
* @param {Point3D} [center] The scale center.
*/
setScale(newScale, center) {
const helper = this.#viewController.getPlaneHelper();
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
ToolConfig
} from './app/application';
import {ViewController} from './app/viewController';
import {ToolboxController} from './app/toolboxController';
// dicom
import {
getDwvVersion,
Expand Down Expand Up @@ -76,6 +77,7 @@ export {
ViewConfig,
ToolConfig,
ViewController,
ToolboxController,
DataElement,
DicomParser,
DicomWriter,
Expand Down

0 comments on commit 9b72102

Please sign in to comment.