Open SarahMohamedLotfy opened 4 years ago
Hello, unfortunatly I am not familiar with angular - I have no clue what assets are and so on, in the angular context.
It sounds like the error is related to angular not finding AMI.
threejs
app work in your setup?import * as THREE from 'three';
import * as AMI from 'ami.js';
Good luck,
I solved the error thanks a lot. But there is an error occurred while using viewers_update.js
Here is the error: "do not know how to order the frames..." Can you help me
@SarahMohamedLotfy please can you tell us how you solved the previously mentioned error. Thanks Best regards
I am making a project which is a website that used as a Dicom viewer. I used the AMI library with an Angular 8 project.
I tried viewers_upload example but this error occurred when I used viewers_upload.js. the error is "AMI.CamerasOrthographic is not a constructor"
I will tell you what I did 1- I made a new Angular 8 project. 2- I run yarn add ami.js 3- Put viewers_upload.html in app.component.html 4- Put viewers_upload.js code inside a function and put it in the assets folder and I added
"scripts": [ "src/assets/js/viewers_upload.js" ] in the angular.json file.
5- I called the function that contains viewers_upload.js code inside app.component.ts.
Please can you help me because I was trying in this error for 3 days? Thanks a lot
Browsers Affected
Versions
Code of viewers_update.js