Commit c24f8465 authored by timel's avatar timel

fix: small

parent 561dae77
...@@ -23,8 +23,8 @@ export const moveToHand: MoveFunc = async (props) => { ...@@ -23,8 +23,8 @@ export const moveToHand: MoveFunc = async (props) => {
// 手卡会有很复杂的计算... // 手卡会有很复杂的计算...
const hand_circle_center_x = 0; const hand_circle_center_x = 0;
const hand_circle_center_y = const hand_circle_center_y =
1 * BLOCK_HEIGHT_M + BLOCK_HEIGHT_M +
1 * BLOCK_HEIGHT_S + BLOCK_HEIGHT_S +
2 * ROW_GAP + 2 * ROW_GAP +
(HAND_MARGIN_TOP + HAND_CARD_HEIGHT + HAND_CIRCLE_CENTER_OFFSET_Y); (HAND_MARGIN_TOP + HAND_CARD_HEIGHT + HAND_CIRCLE_CENTER_OFFSET_Y);
const hand_card_width = CARD_RATIO * HAND_CARD_HEIGHT; const hand_card_width = CARD_RATIO * HAND_CARD_HEIGHT;
......
...@@ -48,8 +48,8 @@ export const matConfig = Object.keys(matConfigWithUnit).reduce( ...@@ -48,8 +48,8 @@ export const matConfig = Object.keys(matConfigWithUnit).reduce(
// @ts-ignore // @ts-ignore
[key]: matConfigWithUnit[key][0], [key]: matConfigWithUnit[key][0],
}), }),
{} as Record<string, number> {} as Record<keyof typeof matConfigWithUnit, number>
) as Record<keyof typeof matConfigWithUnit, number>; );
toCssProperties(matConfigWithUnit).forEach(([k, v]) => { toCssProperties(matConfigWithUnit).forEach(([k, v]) => {
document.body.style.setProperty(k, v); document.body.style.setProperty(k, v);
......
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