更改WASM的引入方式。
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Differ, HctDiffference } from 'color-module';
|
||||
import { useMemo } from 'react';
|
||||
import { Differ, HctDiffference } from '../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../ColorFunctionContext';
|
||||
import styles from './CompareLayout.module.css';
|
||||
import { CompareMethodProps } from './share-props';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Differ, HSLDifference } from 'color-module';
|
||||
import { useMemo } from 'react';
|
||||
import { Differ, HSLDifference } from '../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../ColorFunctionContext';
|
||||
import styles from './CompareLayout.module.css';
|
||||
import { CompareMethodProps } from './share-props';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Differ, OklchDifference } from 'color-module';
|
||||
import { useMemo } from 'react';
|
||||
import { Differ, OklchDifference } from '../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../ColorFunctionContext';
|
||||
import styles from './CompareLayout.module.css';
|
||||
import { CompareMethodProps } from './share-props';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Differ, RGBDifference } from 'color-module';
|
||||
import { useMemo } from 'react';
|
||||
import { Differ, RGBDifference } from '../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../ColorFunctionContext';
|
||||
import styles from './CompareLayout.module.css';
|
||||
import { CompareMethodProps } from './share-props';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import cx from 'clsx';
|
||||
import { MixReversing } from 'color-module';
|
||||
import { useMemo } from 'react';
|
||||
import { MixReversing } from '../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../ColorFunctionContext';
|
||||
import styles from './CompareLayout.module.css';
|
||||
import { CompareMethodProps } from './share-props';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import cx from 'clsx';
|
||||
import { MixReversing } from 'color-module';
|
||||
import { useMemo } from 'react';
|
||||
import { MixReversing } from '../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../ColorFunctionContext';
|
||||
import styles from './CompareLayout.module.css';
|
||||
import { CompareMethodProps } from './share-props';
|
||||
|
||||
Reference in New Issue
Block a user