-
Notifications
You must be signed in to change notification settings - Fork 294
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
[Feature Request] Include imports in the "Final Code" section in the tutorials #1417
Comments
The "final code" blocks on the doc are supposed to be copy pasted in to the As a side note, while I understand the why the tutorial section is written the way it is, it makes it really hard to understand what is actually needed as a minimal setup for cornerstone to display an image because the boilerplate file import so many things that are never explained. The only way to know if something is actually needed for a given use case is to remove it and try to run the code. |
But this information is only on the general overview page. A person arriving at one of the tutorial pages via Google is lost. In my experience tutorials are not read from front to back, but people pick what they need.
Fully agree. Having a minimal example would also be helpful as a template in bug reports. Ideally, the tutorials run in the setup of the user not in a predefined environment. That means for example that there shouldn't be relative imports like this and it should work with the most common build tools (vite, webpack, ...), but that is a more complicated task. |
I also need guidance, and I want to use it in nuxt, but there are a lot of examples I can't find |
The relevant documentation can be recommended |
Sure i will add it |
What feature or change would you like to see made?
When looking at the tutorials here, I am missing the imports in the "Final code" section. It is not clear to me where the functions
createImageIdsAndCacheMetaData
,RenderingEngine
,ViewportType
and similar are coming from.Why should we prioritize this feature?
Complete docs are always a good idea.
The text was updated successfully, but these errors were encountered: