-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: concept docs #25
Conversation
ebbf7e6
to
5a6c929
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some comments, will try to fix the critical ones myself before merging it
@@ -81,6 +81,9 @@ export default async function createImageIdsAndCacheMetaData({ | |||
instanceMetaData | |||
) | |||
} | |||
|
|||
console.debug(instanceMetaData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
@@ -17,36 +17,32 @@ The cache has two main components: a volatile portion for images and a non-volat | |||
- When you allocate volumes, these are non-volatile and reserve a block of memory from the cache. Volumes must be released manually. | |||
|
|||
|
|||
## Decaching |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cache.md filename is wrong
```js | ||
PublicViewportInput = { | ||
/** HTML element in the DOM */ | ||
element: HTMLElement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we require a div?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes swith to HTMLDivElement
jobs. They are separated and executed asynchronously from one another, allowing | ||
each retrieval request to be initiated instantly upon the availability of a request firing slot. | ||
|
||
Splitting the image retrieval request and decoding is enabled by default in `Cornerstone` when using the `Cornerstone-wado-image-loader` version `v4.0.0-rc` or above. | ||
Splitting the image retrieval request and decoding is enabled by default `Cornerstone-wado-image-loader` version `v4.0.0-rc` or above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should remove the -rc
which leverages `cornerstone`'s existing plumbing to integrate with image loaders and metadata providers. The `demo` package in this repository contains a simple "metadata provider", named "WADORSHeaderProvider", that allows for querying metadata by instance and | ||
imageId. | ||
|
||
This repository's `@ohif/cornerstone-tools` is a "tools" library that, once initialized, will listen for custom events emitted by `@ohif/cornerstone-render`. Please note, the event naming and handling overlaps the events and event handling in the `cornerstone-tools` library. If you attempt to use `cornerstone-tools` in tandem, you will likely encounter issues. As this is a possible use case, please don't hesitate to report any issues and propose potential solutions. | ||
This repository's `@cornerstone/tools` is a "tools" library that, once initialized, will listen for custom events emitted by `@cornerstone/core`. Please note, the event naming and handling overlaps the events and event handling in the `cornerstone-tools` library. If you attempt to use `cornerstone-tools` in tandem, you will likely encounter issues. As this is a possible use case, please don't hesitate to report any issues and propose potential solutions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe specify in the "legacy" cornerstone-tools library
@@ -1,4 +1,5 @@ | |||
/* stylelint-disable docusaurus/copyright-header */ | |||
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are we using Open Sans? I thought we used Inter?
const path = require('path') | ||
const CopyPlugin = require('copy-webpack-plugin') | ||
|
||
// If we want to embed examples in the docusaurus we need the following |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you comment this out? The examples will not work with this commented out.
You need to have:
devServer: {
// historyApiFallback: true,
// headers: {
// 'Cross-Origin-Embedder-Policy': 'require-corp',
// 'Cross-Origin-Opener-Policy': 'same-origin',
// },
// },
Otherwise we cannot use docusaurus dev server to look at examples.
The rest of it is only necessary for the in-docs example though, so you can comment that out.
@@ -5707,15 +5707,15 @@ chardet@^0.7.0: | |||
integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== | |||
|
|||
cheerio-select@^1.5.0: | |||
version "1.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there yarn.lock changes on this PR? There doesn't seem to be any package.json changes.
@@ -37,7 +37,20 @@ | |||
"prism-react-renderer": "^1.2.1", | |||
"react": "^17.0.2", | |||
"react-dom": "^17.0.2", | |||
"url-loader": "^4.1.1" | |||
"url-loader": "^4.1.1", | |||
"@cornerstonejs/core": "^0.2.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you removed the example from the homepage you can remove this stuff too
@@ -34,8 +34,8 @@ viewportPane.appendChild(canvas) | |||
The following code-block explains how to add annotation tools to a canvas. | |||
|
|||
```js | |||
import { ToolGroupManager, ToolBindings } from '@ohif/cornerstone-tools' | |||
import * as csTools3D from '@ohif/cornerstone-tools' | |||
import { ToolGroupManager, ToolBindings } from '@cornerstone/tools' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cornerstonejs
No description provided.