Commit 803df485 authored by Chunchi Che's avatar Chunchi Che

format

parent c65739fa
import { easings } from "@react-spring/web";
import { ygopro } from "@/api"; import { ygopro } from "@/api";
import { isMe } from "@/stores"; import { isMe } from "@/stores";
import { matConfig } from "@/ui/Shared"; import { matConfig } from "@/ui/Shared";
......
...@@ -35,7 +35,7 @@ export const moveToOutside: MoveFunc = async (props) => { ...@@ -35,7 +35,7 @@ export const moveToOutside: MoveFunc = async (props) => {
api.set({ api.set({
z: 0, z: 0,
subZ: 100, subZ: 100,
}) });
await asyncStart(api)({ await asyncStart(api)({
x, x,
y, y,
......
...@@ -22,11 +22,11 @@ export interface SpringApiProps { ...@@ -22,11 +22,11 @@ export interface SpringApiProps {
subZ: number; // 0 -> 100,这是为了让卡片移动过程中,稍微上浮一些,避免一些奇怪的遮挡问题 subZ: number; // 0 -> 100,这是为了让卡片移动过程中,稍微上浮一些,避免一些奇怪的遮挡问题
config?: Partial<{ config?: Partial<{
mass: number, mass: number;
tension: number, tension: number;
friction: number, friction: number;
clamp: boolean clamp: boolean;
}> }>;
} }
export type SpringApi = SpringRef<SpringApiProps>; export type SpringApi = SpringRef<SpringApiProps>;
......
import classNames from "classnames"; import classNames from "classnames";
import { CSSProperties, useMemo, useEffect, useState } from "react"; import { CSSProperties, useEffect, useState } from "react";
import { useConfig } from "@/config"; import { useConfig } from "@/config";
import { isSuperReleaseCard } from "@/superPreRelease"; import { isSuperReleaseCard } from "@/superPreRelease";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment