Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
bre01 committed Dec 29, 2023
1 parent 17137bb commit 285ed60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
</div>


<script src="/node_modules/tiff.js/tiff.min.js" ></script>
<script src="/src/ndwi.ts" type="module"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions src/ndwi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//import {fileToCanvas} from "./FileToCanvas.ts";
import histogram from "../utils/histogram.ts";
import cloneCanvas from "../utils/cloneCanvas.ts";
import "tiff.js";

const filesDiv: HTMLDivElement = document.getElementById('files') as HTMLDivElement;
const b3Input = document.querySelector('#b3') as HTMLInputElement;
Expand Down Expand Up @@ -114,6 +115,10 @@ const fileToCanvas = (file: File): Promise<HTMLCanvasElement> => {
resolve(canvas);
}
reader.readAsArrayBuffer(file);
}, (error) => {
reject(error);
alert("change other data");

})
}

Expand Down

0 comments on commit 285ed60

Please sign in to comment.