Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
c24f8465
Commit
c24f8465
authored
Jul 14, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: small
parent
561dae77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
+2
-2
src/ui/Shared/css.ts
src/ui/Shared/css.ts
+2
-2
No files found.
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
View file @
c24f8465
...
@@ -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
;
...
...
src/ui/Shared/css.ts
View file @
c24f8465
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment