Skip to content
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

Where to get CoreUtils, LoadersVolume, HelpersStack, HelpersLut, CamerasOrthographic, ControlsOrthographic file for ami Medical Image Viewer #383

Open
amir201808 opened this issue May 16, 2019 · 3 comments

Comments

@amir201808
Copy link

amir201808 commented May 16, 2019

Hello Developers/Friends,

I am unable to get the CoreUtils, LoadersVolume, HelpersStack, HelpersLut, CamerasOrthographic, ControlsOrthographic library file for ami Medical Image Viewer files.

This file is used in ami\examples\viewers_upload\viewers_upload.js

LINES in CODE:

import CoreUtils from 'base/core/core.utils';
import LoadersVolume from 'base/loaders/loaders.volume';
import HelpersStack from 'base/helpers/helpers.stack';
import HelpersLut from 'base/helpers/helpers.lut';
import CamerasOrthographic from 'base/cameras/cameras.orthographic';
import ControlsOrthographic from 'base/controls/controls.trackballortho';

Unable to get these modules due to which my image uploader is not working. Please guide me how to get these modules.

Screenshot_9

Screenshot_8

@zerbinidamata
Copy link

You can do like this:

import CoreUtils from 'ami.js/src/core/core.utils';
import LoadersVolume from 'ami.js/src/loaders/loaders.volume';
import HelpersStack from 'ami.js/src/helpers/helpers.stack';
import HelpersLut from 'ami.js/src/helpers/helpers.lut';
import CamerasOrthographic from 'ami.js/src/cameras/cameras.orthographic';
import ControlsOrthographic from 'ami.js/src/controls/controls.trackballortho';

@yifax
Copy link

yifax commented Mar 5, 2020

You can do like this:

import CoreUtils from 'ami.js/src/core/core.utils';
import LoadersVolume from 'ami.js/src/loaders/loaders.volume';
import HelpersStack from 'ami.js/src/helpers/helpers.stack';
import HelpersLut from 'ami.js/src/helpers/helpers.lut';
import CamerasOrthographic from 'ami.js/src/cameras/cameras.orthographic';
import ControlsOrthographic from 'ami.js/src/controls/controls.trackballortho';

Hi there,
What's the difference between using "import CoreUtils from 'ami.js/src/core/core.utils'" and "import {CoreUtils} from 'ami.js'"?
Thank you!

@yifax
Copy link

yifax commented Mar 20, 2020

You can do like this:

import CoreUtils from 'ami.js/src/core/core.utils';
import LoadersVolume from 'ami.js/src/loaders/loaders.volume';
import HelpersStack from 'ami.js/src/helpers/helpers.stack';
import HelpersLut from 'ami.js/src/helpers/helpers.lut';
import CamerasOrthographic from 'ami.js/src/cameras/cameras.orthographic';
import ControlsOrthographic from 'ami.js/src/controls/controls.trackballortho';

Hi there,
What's the difference between using "import CoreUtils from 'ami.js/src/core/core.utils'" and "import {CoreUtils} from 'ami.js'"?
Thank you!

I figured it out. It seems that the only way to use ami.js is to add it as package by npm. Will offline js file works too in a specific way? I really want to build a medical image displayed offline. Any suggestion is welcomed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants