diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..cf44e14 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +**/*.js \ No newline at end of file diff --git a/example/page/DownloadComponent.tsx b/example/page/DownloadComponent.tsx index 499a60a..0ba96d3 100644 --- a/example/page/DownloadComponent.tsx +++ b/example/page/DownloadComponent.tsx @@ -5,7 +5,7 @@ import jszip from "jszip"; import { PreEncodeFile } from "./type"; import { useState } from "react"; import { downloadBlob } from "./utils"; -import { encodeToKTX2 } from "../../src"; +import { encodeToKTX2 } from "../../src/web"; export const DownloadComponent: React.FC<{ list: PreEncodeFile[] }> = ({ list }) => { const [isLoading, setIsLoading] = useState(false); @@ -19,7 +19,7 @@ export const DownloadComponent: React.FC<{ list: PreEncodeFile[] }> = ({ list }) const promises = list.map((item) => { return item.file.arrayBuffer().then(async (buffer) => { return encodeToKTX2(new Uint8Array(buffer), { - isUASTC: false, + isUASTC: true, enableDebug: false, qualityLevel: 230, generateMipmap: true diff --git a/index.html b/index.html index 09270b0..db06be2 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,14 @@ +
+ + + +