@niivue/niivue 0.20.0 → 0.22.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 +5 -17
- package/dist/niivue.es.js +1087 -594
- package/dist/niivue.umd.js +193 -169
- package/package.json +2 -2
- package/src/index.html +8 -4
- package/src/niivue-object3D.js +153 -0
- package/src/niivue.js +517 -199
- package/src/nvimage.js +291 -178
- package/src/shader-srcs.js +178 -148
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ We host many NiiVue examples via github pages. These are updated and deployed au
|
|
|
38
38
|
|
|
39
39
|
## existing html page
|
|
40
40
|
```html
|
|
41
|
-
<script src="https://unpkg.com/@niivue/niivue@0.
|
|
41
|
+
<script src="https://unpkg.com/@niivue/niivue@0.22.1/dist/niivue.umd.js"></script>
|
|
42
42
|
|
|
43
43
|
<canvas id="gl" height=480 width=640></canvas>
|
|
44
44
|
|
|
@@ -109,11 +109,6 @@ export default {
|
|
|
109
109
|
|
|
110
110
|
</canvas>
|
|
111
111
|
</template>
|
|
112
|
-
|
|
113
|
-
<style>
|
|
114
|
-
#app {
|
|
115
|
-
}
|
|
116
|
-
</style>
|
|
117
112
|
```
|
|
118
113
|
|
|
119
114
|
## React example
|
|
@@ -121,7 +116,7 @@ export default {
|
|
|
121
116
|
install: `npm i @niivue/niivue`
|
|
122
117
|
|
|
123
118
|
```js
|
|
124
|
-
import { useRef,
|
|
119
|
+
import { useRef, useEffect } from 'react'
|
|
125
120
|
import { Niivue } from '@niivue/niivue'
|
|
126
121
|
|
|
127
122
|
const NiiVue = ({ imageUrl }) => {
|
|
@@ -149,18 +144,11 @@ const NiiVue = ({ imageUrl }) => {
|
|
|
149
144
|
// use as: <NiiVue imageUrl={someUrl}> </NiiVue>
|
|
150
145
|
```
|
|
151
146
|
|
|
152
|
-
#
|
|
153
|
-
|
|
154
|
-
- [Taylor Hanayik](https://github.com/hanayik)
|
|
155
|
-
- [Chris Rorden](https://github.com/neurolabusc)
|
|
156
|
-
- [Christopher Drake](https://github.com/cdrake)
|
|
157
|
-
- [Nell Hardcastle](https://github.com/nellh)
|
|
158
|
-
|
|
159
|
-
*To add yourself please create a PR
|
|
160
|
-
|
|
161
|
-
# Acknowledgements
|
|
147
|
+
# Core Libraries
|
|
162
148
|
|
|
163
149
|
- [shader.js source](https://github.com/Twinklebear/webgl-util)
|
|
150
|
+
- [NIFTI-Reader-JS source](https://github.com/rii-mango/NIFTI-Reader-JS)
|
|
151
|
+
- [glMatrix](https://glmatrix.net/)
|
|
164
152
|
|
|
165
153
|
# Funding
|
|
166
154
|
|