From 91ecd973ce0564ff2079cbe331c7001c86418617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Fri, 27 Dec 2024 06:48:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8DWASM=E6=89=80?= =?UTF-8?q?=E5=9C=A8=E7=9A=84=E7=9B=AE=E5=BD=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ColorFunctionContext.tsx | 2 +- src/{pkg => color_functions}/color_module.d.ts | 0 src/{pkg => color_functions}/color_module.js | 0 src/{pkg => color_functions}/color_module_bg.wasm | Bin .../color_module_bg.wasm.d.ts | 0 src/{pkg => color_functions}/package.json | 0 6 files changed, 1 insertion(+), 1 deletion(-) rename src/{pkg => color_functions}/color_module.d.ts (100%) rename src/{pkg => color_functions}/color_module.js (100%) rename src/{pkg => color_functions}/color_module_bg.wasm (100%) rename src/{pkg => color_functions}/color_module_bg.wasm.d.ts (100%) rename src/{pkg => color_functions}/package.json (100%) diff --git a/src/ColorFunctionContext.tsx b/src/ColorFunctionContext.tsx index d15367d..108baa3 100644 --- a/src/ColorFunctionContext.tsx +++ b/src/ColorFunctionContext.tsx @@ -1,6 +1,6 @@ import { createContext, ReactNode, use, useEffect, useMemo, useState, useTransition } from 'react'; import { ColorFunctionContext } from './ColorFunctionContext'; -import init, * as funcs from './pkg/color_module'; +import init, * as funcs from './color_functions/color_module'; export type ColorFunctionContextType = { colorFn: typeof funcs | null; diff --git a/src/pkg/color_module.d.ts b/src/color_functions/color_module.d.ts similarity index 100% rename from src/pkg/color_module.d.ts rename to src/color_functions/color_module.d.ts diff --git a/src/pkg/color_module.js b/src/color_functions/color_module.js similarity index 100% rename from src/pkg/color_module.js rename to src/color_functions/color_module.js diff --git a/src/pkg/color_module_bg.wasm b/src/color_functions/color_module_bg.wasm similarity index 100% rename from src/pkg/color_module_bg.wasm rename to src/color_functions/color_module_bg.wasm diff --git a/src/pkg/color_module_bg.wasm.d.ts b/src/color_functions/color_module_bg.wasm.d.ts similarity index 100% rename from src/pkg/color_module_bg.wasm.d.ts rename to src/color_functions/color_module_bg.wasm.d.ts diff --git a/src/pkg/package.json b/src/color_functions/package.json similarity index 100% rename from src/pkg/package.json rename to src/color_functions/package.json