Skip to content

Commit

Permalink
Release 0.32.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Sep 22, 2023
1 parent 51e4326 commit c4b4f6a
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 21 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [v0.32.3](https://github.com/ivmartel/dwv/releases/tag/v0.32.3) - 22/09/2023

### Added

- Add support for writing DICOM with unknown VR [#1507](https://github.com/ivmartel/dwv/issues/1481)

## [v0.32.2](https://github.com/ivmartel/dwv/releases/tag/v0.32.2) - 04/09/2023

### Added
Expand Down
36 changes: 21 additions & 15 deletions dist/dwv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export declare function addTagsToDictionary(group: string, tags: object): void;
* // create the dwv app
* const app = new dwv.App();
* // initialise
* const viewConfig0 = new ViewConfig('layerGroup0');
* const viewConfig0 = new dwv.ViewConfig('layerGroup0');
* const viewConfigs = {'*': [viewConfig0]};
* const options = new AppOptions(viewConfigs);
* const options = new dwv.AppOptions(viewConfigs);
* app.init(options);
* // load dicom data
* app.loadURLs([
Expand Down Expand Up @@ -170,9 +170,9 @@ export declare class App {
* // create the dwv app
* const app = new dwv.App();
* // initialise
* const viewConfig0 = new ViewConfig('layerGroup0');
* const viewConfig0 = new dwv.ViewConfig('layerGroup0');
* const viewConfigs = {'*': [viewConfig0]};
* const options = new AppOptions(viewConfigs);
* const options = new dwv.AppOptions(viewConfigs);
* options.viewOnFirstLoadItem = false;
* app.init(options);
* // render button
Expand Down Expand Up @@ -721,18 +721,24 @@ export declare class DicomParser {
* DICOM writer.
*
* @example
* // add link to html
* const link = document.createElement("a");
* link.appendChild(document.createTextNode("download"));
* const div = document.getElementById("dwv");
* div.appendChild(link);
* // XMLHttpRequest onload callback
* const onload = function (event) {
* const parser = new DicomParser();
* const parser = new dwv.DicomParser();
* parser.parse(event.target.response);
* // create writer with parser data elements
* const writer = new DicomWriter(parser.getDicomElements());
* // create modified buffer and put it in a Blol
* const blob = new Blob([writer.getBuffer()], {type: 'application/dicom'});
* // example download link
* const element = document.getElementById("download");
* element.href = URL.createObjectURL(blob);
* element.download = "anonym.dcm";
* // create writer
* const writer = new dwv.DicomWriter();
* // get buffer using default rules
* const dicomBuffer = writer.getBuffer(parser.getDicomElements());
* // create blob
* const blob = new Blob([dicomBuffer], {type: 'application/dicom'});
* // add blob to download link
* link.href = URL.createObjectURL(blob);
* link.download = "anonym.dcm";
* };
* // DICOM file request
* const request = new XMLHttpRequest();
Expand Down Expand Up @@ -2832,9 +2838,9 @@ export declare class Vector3D {
* const dicomParser = new dwv.DicomParser();
* dicomParser.parse(event.target.response);
* // create the image object
* const image = createImage(dicomParser.getDicomElements());
* const image = dwv.createImage(dicomParser.getDicomElements());
* // create the view
* const view = createView(dicomParser.getDicomElements(), image);
* const view = dwv.createView(dicomParser.getDicomElements(), image);
* // setup canvas
* const canvas = document.createElement('canvas');
* canvas.width = 256;
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.32.2",
"version": "0.32.3",
"description": "DICOM Web Viewer.",
"keywords": [
"DICOM",
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.32.2.</i>",
"footer": "<i>Documentation generated for dwv v0.32.3.</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.32.2/dwv-0.32.2.min.js",
"js_external": "https://github.com/ivmartel/dwv/releases/download/v0.32.3/dwv-0.32.3.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 @@ -31,7 +31,7 @@ import {DataElement} from '../dicom/dataElement';
* @returns {string} The version of the library.
*/
export function getDwvVersion() {
return '0.32.2';
return '0.32.3';
}

/**
Expand Down

0 comments on commit c4b4f6a

Please sign in to comment.