更改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';
|
||||
|
@@ -1,11 +1,6 @@
|
||||
import { ColorExpand, ColorShifting, SchemeSetting, WACGSetting } from 'color-module';
|
||||
import { every, isEmpty, isNil } from 'lodash-es';
|
||||
import { useActionState, useMemo } from 'react';
|
||||
import {
|
||||
ColorExpand,
|
||||
ColorShifting,
|
||||
SchemeSetting,
|
||||
WACGSetting,
|
||||
} from '../../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../../ColorFunctionContext';
|
||||
import { FloatColorPicker } from '../../../components/FloatColorPicker';
|
||||
import { ScrollArea } from '../../../components/ScrollArea';
|
||||
|
@@ -1,10 +1,6 @@
|
||||
import { ColorShifting, SwatchEntry, SwatchSchemeSetting } from 'color-module';
|
||||
import { includes, isEmpty, isEqual, isNaN } from 'lodash-es';
|
||||
import { useActionState, useCallback, useMemo, useState } from 'react';
|
||||
import {
|
||||
ColorShifting,
|
||||
SwatchEntry,
|
||||
SwatchSchemeSetting,
|
||||
} from '../../../color_functions/color_module';
|
||||
import { useColorFunction } from '../../../ColorFunctionContext';
|
||||
import { ScrollArea } from '../../../components/ScrollArea';
|
||||
import { Switch } from '../../../components/Switch';
|
||||
|
Reference in New Issue
Block a user