更改WASM的引入方式。

This commit is contained in:
徐涛
2025-02-10 16:17:59 +08:00
parent 12e76b658e
commit 3eae8116e7
19 changed files with 13 additions and 2992 deletions

View File

@@ -1,5 +1,5 @@
import init, * as funcs from 'color-module';
import { createContext, ReactNode, use, useEffect, useMemo, useState, useTransition } from 'react';
import init, * as funcs from './color_functions/color_module';
export type ColorFunctionContextType = {
colorFn: typeof funcs | null;