@niivue/niivue 0.23.0 → 0.24.1

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/README.md CHANGED
@@ -8,6 +8,14 @@ The NiiVue package is intented to be used by individuals developing interactive
8
8
 
9
9
  [click here to go to the docs web page](https://niivue.github.io/niivue/devdocs/)
10
10
 
11
+ ### Install NiiVue using npm
12
+
13
+ Installs without the bloat of the development dependencies or testing frameworks
14
+
15
+ ```
16
+ npm install --only=prod @niivue/niivue
17
+ ```
18
+
11
19
  # Active Projects
12
20
 
13
21
  [See our active projects here](https://github.com/orgs/niivue/projects)
@@ -38,7 +46,7 @@ We host many NiiVue examples via github pages. These are updated and deployed au
38
46
 
39
47
  ## existing html page
40
48
  ```html
41
- <script src="https://unpkg.com/@niivue/niivue@0.23.0/dist/niivue.umd.js"></script>
49
+ <script src="https://unpkg.com/@niivue/niivue@0.24.0/dist/niivue.umd.js"></script>
42
50
 
43
51
  <canvas id="gl" height=480 width=640></canvas>
44
52
 
@@ -47,11 +55,6 @@ We host many NiiVue examples via github pages. These are updated and deployed au
47
55
  // first object in array is background image
48
56
  {
49
57
  url: "./some_image.nii.gz",
50
- volume: {hdr: null, img: null},
51
- name: "some_image",
52
- colorMap: "gray",
53
- opacity: 1,
54
- visible: true,
55
58
  }
56
59
  ]
57
60
 
@@ -84,10 +87,6 @@ export default {
84
87
  volumeList: [
85
88
  {
86
89
  url: "./mni152.nii.gz",
87
- volume: {hdr: null, img: null},
88
- colorMap: "gray",
89
- opacity: 1,
90
- visible: true,
91
90
  }
92
91
  ]
93
92
 
@@ -125,10 +124,6 @@ const NiiVue = ({ imageUrl }) => {
125
124
  const volumeList = [
126
125
  {
127
126
  url: imageUrl,
128
- volume: { hdr: null, img: null },
129
- colorMap: 'gray',
130
- opacity: 1,
131
- visible: true,
132
127
  },
133
128
  ]
134
129
  const nv = new Niivue()
@@ -168,10 +163,6 @@ export class NiivueViewComponent implements OnInit {
168
163
  const volumeList = [
169
164
  {
170
165
  url,
171
- volume: { hdr: null, img: null },
172
- colorMap: 'gray',
173
- opacity: 1,
174
- visible: true,
175
166
  },
176
167
  ]
177
168
  const niivue = new Niivue();
@@ -185,7 +176,7 @@ export class NiivueViewComponent implements OnInit {
185
176
  # Core Libraries
186
177
 
187
178
  - [shader.js source](https://github.com/Twinklebear/webgl-util)
188
- - [GIFTI-Reader-JS source](https://github.com/rii-mango/GIFTI-Reader-JS)
179
+ - [Daikon](https://github.com/rii-mango/Daikon)
189
180
  - [NIFTI-Reader-JS source](https://github.com/rii-mango/NIFTI-Reader-JS)
190
181
  - [glMatrix](https://glmatrix.net/)
191
182
 
@@ -199,9 +190,9 @@ export class NiivueViewComponent implements OnInit {
199
190
  NiiVue can open several formats popular with brain imaging:
200
191
 
201
192
  - Voxel-based formats: [NIfTI](https://brainder.org/2012/09/23/the-nifti-file-format/), [NRRD](http://teem.sourceforge.net/nrrd/format.html), [MRtrix MIF](https://mrtrix.readthedocs.io/en/latest/getting_started/image_data.html#mrtrix-image-formats), [AFNI HEAD/BRIK](https://afni.nimh.nih.gov/pub/dist/doc/program_help/README.attributes.html), [MGH/MGZ](https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat), [ITK MHD](https://itk.org/Wiki/ITK/MetaIO/Documentation#Reading_a_Brick-of-Bytes_.28an_N-Dimensional_volume_in_a_single_file.29), [ECAT7](https://github.com/openneuropet/PET2BIDS/tree/28aae3fab22309047d36d867c624cd629c921ca6/ecat_validation/ecat_info).
202
- - Mesh-based formats: [GIfTI](https://www.nitrc.org/projects/gifti/), [BrainSuite DFS](http://brainsuite.org/formats/dfs/), [BrainVoyager SRF](https://support.brainvoyager.com/brainvoyager/automation-development/84-file-formats/344-users-guide-2-3-the-format-of-srf-files), [FreeSurfer](http://www.grahamwideman.com/gw/brain/fs/surfacefileformats.htm), [MZ3](https://github.com/neurolabusc/surf-ice/tree/master/mz3), [OFF](https://en.wikipedia.org/wiki/OFF_(file_format)), [Wavefront OBJ](https://brainder.org/tag/obj/), [STL](https://medium.com/3d-printing-stories/why-stl-format-is-bad-fea9ecf5e45), [Legacy VTK](https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf).
203
- - Mesh overlay formats: GIfTI, MZ3, STC, FreeSurfer (CURV/ANNOT)
204
- - Tractography formats: [TCK](https://mrtrix.readthedocs.io/en/latest/getting_started/image_data.html#tracks-file-format-tck), [TRK](http://trackvis.org/docs/?subsect=fileformat), [TRX](https://github.com/frheault/tractography_file_format), VTK
193
+ - Mesh-based formats: [GIfTI](https://www.nitrc.org/projects/gifti/), [ASC](http://www.grahamwideman.com/gw/brain/fs/surfacefileformats.htm), [BrainSuite DFS](http://brainsuite.org/formats/dfs/), [PLY](https://en.wikipedia.org/wiki/PLY_(file_format)), [BrainNet NV](https://www.nitrc.org/projects/bnv/), [BrainVoyager SRF](https://support.brainvoyager.com/brainvoyager/automation-development/84-file-formats/344-users-guide-2-3-the-format-of-srf-files), [FreeSurfer](http://www.grahamwideman.com/gw/brain/fs/surfacefileformats.htm), [MZ3](https://github.com/neurolabusc/surf-ice/tree/master/mz3), [OFF](https://en.wikipedia.org/wiki/OFF_(file_format)), [Wavefront OBJ](https://brainder.org/tag/obj/), [STL](https://medium.com/3d-printing-stories/why-stl-format-is-bad-fea9ecf5e45), [Legacy VTK](https://vtk.org/wp-content/uploads/2015/04/file-formats.pdf), [X3D](https://3dprint.nih.gov/).
194
+ - Mesh overlay formats: [GIfTI](https://www.nitrc.org/projects/gifti/), [CIfTI-2](https://balsa.wustl.edu/about/fileTypes), [MZ3](https://github.com/neurolabusc/surf-ice/tree/master/mz3), [SMP](https://support.brainvoyager.com/brainvoyager/automation-development/84-file-formats/40-the-format-of-smp-files), STC, FreeSurfer (CURV/ANNOT)
195
+ - Tractography formats: [TCK](https://mrtrix.readthedocs.io/en/latest/getting_started/image_data.html#tracks-file-format-tck), [TRK](http://trackvis.org/docs/?subsect=fileformat), [TRX](https://github.com/frheault/tractography_file_format), VTK, AFNI .niml.tract
205
196
 
206
197
  # Alternatives
207
198