Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
71da77c
jest tests
dannyrb Mar 19, 2021
736570c
starting to commit @dannyrb's changes
swederik Aug 4, 2021
0c56f3c
add example data
swederik Aug 4, 2021
4adae46
wip
swederik Aug 4, 2021
80f47a9
wip
swederik Aug 4, 2021
0fe79c8
chore: minor cleanup for Promises
swederik Aug 5, 2021
7b3da8d
get tests working (except one jpegbaseline test)
swederik Aug 5, 2021
1e5ddaf
chore: Remove usePDFJS option. Start migrating to Webpack 5
swederik Aug 5, 2021
265976f
almost working
swederik Aug 10, 2021
75c8d6c
tests work, example works for everything except libjpeg-turbo
swederik Aug 10, 2021
12b4527
cleanup old uses of regeneratorRuntime
swederik Aug 10, 2021
a357978
wip
swederik Aug 11, 2021
fed44ff
fixes after rebase
swederik Aug 11, 2021
5638c25
commented out wip attempting to build an ESM version. Giving up for now
swederik Aug 11, 2021
f70429c
wip trying to get it working in OHIF
swederik Aug 12, 2021
5ef3ae3
fix wrong import in libjpeg-turbo
swederik Aug 12, 2021
817e296
wasm working in OHIF hooray
swederik Aug 12, 2021
97bf2d2
Make a separate entrypoint for useWebWorkers: false and remove it fro…
swederik Aug 12, 2021
ae32172
fix: deflate support via pako, eslint fixes
swederik Aug 16, 2021
caddf03
fix: Upgrade to dicom-parser 1.8.8 to fix deflate usage
swederik Aug 16, 2021
eba6389
fix tests, not sure why deleting charls instance breaks them...
swederik Aug 16, 2021
c3dda39
fix: Clean up WASM Memory usage. Update to decode-only versions of co…
swederik Aug 25, 2021
804b845
tests: switch to ChromeHeadless
swederik Aug 26, 2021
6765805
tests: re-include deflate test
swederik Aug 27, 2021
3f53cb1
chore: fix renamed tests to revert jest changes
swederik Aug 30, 2021
348cd83
chore: cleanup unused code, rename function in decodeImageFrame
swederik Aug 30, 2021
3aae863
chore: fix initializeCodecsOnStartup
swederik Aug 30, 2021
8944533
chore: cleanup unnecessary changes
swederik Aug 30, 2021
928c25b
fix package-lock
swederik Aug 30, 2021
3cb9b57
fix circle builds
swederik Aug 30, 2021
816dfe2
ci: add netlify.toml
swederik Aug 30, 2021
bf18380
fix cp command
swederik Aug 30, 2021
074bb89
fix urls in examples
swederik Aug 30, 2021
74af631
fix: beforeSend headers merge with default headers
sedghi Aug 31, 2021
a1448e0
fix: Switch back to jpeg.js for 12 bit jpeg baseline images for now, …
swederik Sep 3, 2021
b5ddf0f
upgrade package dependencies, add bundle version for package distribu…
swederik Sep 3, 2021
7bf6ecd
eslint in tests
swederik Sep 6, 2021
3665aa0
fixes for bundle and dynamic import builds, everything seems to be wo…
swederik Sep 6, 2021
e1d3ae0
mark as v4.0.0-rc1
swederik Sep 6, 2021
f296a9c
fix prepublish
swederik Sep 6, 2021
10019ab
fix: add empty publicPath string to prevent test failures in downstre…
swederik Sep 6, 2021
29c5e64
bump to v4.0.0-rc2
swederik Sep 6, 2021
ff15f07
fix examples and dev server usage
swederik Sep 6, 2021
3e3a51c
try to fix script tag usage
swederik Sep 6, 2021
31a1cab
fix: correct path in dicomfile example
swederik Sep 6, 2021
28de287
move some codecs to dynamic imports
swederik Sep 7, 2021
15d268c
bump to v4.0.0-rc3
swederik Sep 7, 2021
aec8960
wip on splitting loading into two queues
swederik Sep 6, 2021
015d2b2
fix splitting
swederik Sep 7, 2021
ab744d7
chore: use IMAGE_LOAD_PROGRESS event, remove warning
swederik Sep 10, 2021
86a1a59
perf(loadimage): use imageRetrievalPool from cornerstone-core when re…
swederik Sep 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Browsers that we support

> 1%
IE 11
not dead
not op_mini all
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
steps:
- attach_workspace:
at: ~/repo
- run: npm run build && npm run test
- run: npm run build && npm run test:ci
# https://circleci.com/docs/2.0/collect-test-data/#karma
# - store_test_results:
# path: reports/junit
Expand Down
33 changes: 16 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ module.exports = {
globals: {
jpeg: true,
JpegImage: true,
JpxImage: true,
CharLS: true,
OpenJPEG: true,
SharedArrayBuffer: true,
},
rules: {
'no-debugger': 'off',
'accessor-pairs': 'warn',
'array-bracket-spacing': 'warn',
'array-callback-return': 'warn',
Expand Down Expand Up @@ -86,6 +84,7 @@ module.exports = {
'no-catch-shadow': 'warn',
'no-confusing-arrow': 'warn',
'no-console': 'off',
'no-debugger': 'off',
'no-div-regex': 'warn',
'no-duplicate-imports': 'warn',
'no-else-return': 'warn',
Expand Down Expand Up @@ -116,19 +115,19 @@ module.exports = {
'no-negated-condition': 'warn',
'no-negated-in-lhs': 'warn',
'no-nested-ternary': 'warn',
//'no-new': 'warn',
// 'no-new': 'warn',
'no-new-func': 'warn',
'no-new-object': 'warn',
'no-new-require': 'warn',
'no-new-wrappers': 'warn',
'no-octal-escape': 'warn',
//'no-param-reassign': 'warn',
// 'no-param-reassign': 'warn',
'no-path-concat': 'warn',
//'no-plusplus': 'warn',
// 'no-plusplus': 'warn',
'no-process-env': 'warn',
'no-process-exit': 'warn',
'no-proto': 'warn',
//'no-prototype-builtins': 'warn',
// 'no-prototype-builtins': 'warn',
'no-restricted-globals': 'warn',
'no-restricted-imports': 'warn',
'no-restricted-modules': 'warn',
Expand All @@ -139,7 +138,7 @@ module.exports = {
'no-script-url': 'warn',
'no-self-compare': 'warn',
'no-sequences': 'warn',
//'no-shadow': 'warn',
// 'no-shadow': 'warn',
'no-shadow-restricted-names': 'warn',
'no-spaced-func': 'warn',
'no-sync': 'warn',
Expand All @@ -152,11 +151,11 @@ module.exports = {
'no-undef-init': 'warn',
'no-undefined': 'off',
'no-unused-vars': 'warn',
//'no-underscore-dangle': 'warn',
// 'no-underscore-dangle': 'warn',
'no-unmodified-loop-condition': 'warn',
'no-unneeded-ternary': 'warn',
'no-unused-expressions': 'warn',
//'no-use-before-define': 'warn',
// 'no-use-before-define': 'warn',
'no-useless-call': 'warn',
'no-useless-computed-key': 'warn',
'no-useless-concat': 'warn',
Expand All @@ -166,7 +165,7 @@ module.exports = {
'no-useless-return': 'off',
'no-var': 'warn',
'no-void': 'warn',
//'no-warning-comments': 'warn',
// 'no-warning-comments': 'warn',
'no-whitespace-before-property': 'warn',
'no-with': 'warn',
'object-curly-spacing': ['warn', 'always'],
Expand All @@ -180,15 +179,15 @@ module.exports = {
'prefer-arrow-callback': 'off',
'prefer-const': 'warn',
'prefer-numeric-literals': 'warn',
//'prefer-reflect': 'warn',
//'prefer-rest-params': 'warn',
// 'prefer-reflect': 'warn',
// 'prefer-rest-params': 'warn',
'prefer-spread': 'warn',
'prefer-template': 'warn',
'quote-props': ['warn', 'as-needed'],
quotes: ['warn', 'single'],
radix: 'warn',
'require-await': 'warn',
//'require-jsdoc': 'warn',
'require-await': 'off',
// 'require-jsdoc': 'warn',
'rest-spread-spacing': 'warn',
semi: 'warn',
'semi-spacing': 'warn',
Expand All @@ -199,12 +198,12 @@ module.exports = {
'space-in-parens': ['warn', 'never'],
'space-infix-ops': 'warn',
'space-unary-ops': 'warn',
'spaced-comment': 'warn',
'spaced-comment': 'off',
strict: 'warn',
'symbol-description': 'warn',
'template-curly-spacing': 'warn',
'unicode-bom': ['warn', 'never'],
//'valid-jsdoc': 'warn',
// 'valid-jsdoc': 'warn',
'vars-on-top': 'warn',
'wrap-iife': ['warn', 'inside'],
'wrap-regex': 'warn',
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Directorties
## Directories
node_modules/
coverage/
documentation/
Expand All @@ -8,4 +8,4 @@ dist/
npm-debug.log
.idea
.DS_Store
yarn.lock
yarn.lock
11 changes: 9 additions & 2 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"presets": [["@babel/preset-env"]],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
"presets": ["@babel/preset-env"],
"plugins": [
["@babel/plugin-proposal-object-rest-spread"],
["@babel/plugin-transform-runtime",
{
"regenerator": true,
"corejs": 3
}]
]
}
32 changes: 0 additions & 32 deletions codecs/charLS-FixedMemory-browser.js

This file was deleted.

Loading