Skip to content

Commit 6e5fe05

Browse files
committed
Start adding VTK to project
1 parent 98f7265 commit 6e5fe05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+24065
-58
lines changed

.babelrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"ie": "11"
6+
}
7+
}],
8+
"@babel/preset-react"
9+
],
10+
"plugins": [
11+
"@babel/plugin-proposal-class-properties",
12+
"@babel/plugin-transform-runtime"
13+
]
14+
}

.gitignore

+17-57
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,21 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
1+
# dependencies
2+
node_modules
313

32-
# Compiled binary addons (https://nodejs.org/api/addons.html)
33-
build/Release
4+
# builds
5+
build
6+
dist
7+
.rpt2_cache
348

35-
# Dependency directories
36-
node_modules/
37-
jspm_packages/
38-
39-
# TypeScript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
9+
# misc
10+
.DS_Store
5811
.env
12+
.env.local
13+
.env.development.local
14+
.env.test.local
15+
.env.production.local
5916

60-
# next.js build output
61-
.next
17+
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*
20+
.idea
21+
>>>>>>> 3f743f2... First commit

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Erik Ziegler
3+
Copyright (c) 2019 Open Health Imaging Foundation
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# react-cornerstone-viewport
2+
3+
> Cornerstone medical image viewport component for React
4+
5+
[![NPM](https://img.shields.io/npm/v/react-cornerstone-viewport.svg)](https://www.npmjs.com/package/react-cornerstone-viewport)
6+
7+
## Install
8+
9+
```bash
10+
npm install --save react-cornerstone-viewport
11+
```
12+
13+
## Usage
14+
15+
```jsx
16+
import React, { Component } from 'react'
17+
18+
import CornerstoneViewport from 'react-cornerstone-viewport'
19+
20+
class Example extends Component {
21+
render () {
22+
return (
23+
<CornerstoneViewport />
24+
)
25+
}
26+
}
27+
```
28+
29+
## License
30+
31+
MIT © [OHIF](https://github.com/OHIF)

example/.babelrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"ie": "11"
6+
}
7+
}],
8+
"@babel/preset-react"
9+
],
10+
"plugins": [
11+
"@babel/plugin-proposal-class-properties",
12+
"@babel/plugin-transform-runtime"
13+
]
14+
}

example/.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
src/sha.js
2+
src/version.js
3+
public/cornerstoneWADOImageLoader.min.js
4+
public/cornerstoneWADOImageLoader.min.js.map
5+
public/cornerstoneWADOImageLoaderCodecs.min.js
6+
public/cornerstoneWADOImageLoaderWebWorker.min.js
7+
public/cornerstoneWADOImageLoaderWebWorker.min.js.map

0 commit comments

Comments
 (0)