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
baichixing
Neos
Commits
4459490c
Commit
4459490c
authored
Jul 12, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fmt
parent
37b4ea7f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
12 deletions
+6
-12
src/ui/Duel/PlayMat/Card/springs/attack.ts
src/ui/Duel/PlayMat/Card/springs/attack.ts
+1
-1
src/ui/Duel/PlayMat/Card/springs/moveToDeck.ts
src/ui/Duel/PlayMat/Card/springs/moveToDeck.ts
+1
-2
src/ui/Duel/PlayMat/Card/springs/moveToGround.ts
src/ui/Duel/PlayMat/Card/springs/moveToGround.ts
+1
-5
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
+1
-1
src/ui/Duel/PlayMat/Card/springs/moveToOutside.ts
src/ui/Duel/PlayMat/Card/springs/moveToOutside.ts
+1
-2
src/ui/Shared/index.ts
src/ui/Shared/index.ts
+1
-1
No files found.
src/ui/Duel/PlayMat/Card/springs/attack.ts
View file @
4459490c
...
...
@@ -3,8 +3,8 @@ import { easings } from "@react-spring/web";
import
{
ygopro
}
from
"
@/api
"
;
import
{
CardType
,
isMe
}
from
"
@/stores
"
;
import
{
matConfig
}
from
"
@/ui/Shared
"
;
import
type
{
SpringApi
}
from
"
./types
"
;
import
{
asyncStart
}
from
"
./utils
"
;
...
...
src/ui/Duel/PlayMat/Card/springs/moveToDeck.ts
View file @
4459490c
import
{
ygopro
}
from
"
@/api
"
;
import
{
isMe
}
from
"
@/stores
"
;
import
{
matConfig
}
from
"
@/ui/Shared
"
;
import
{
asyncStart
,
type
MoveFunc
}
from
"
./utils
"
;
const
{
BLOCK_WIDTH
,
BLOCK_HEIGHT_M
,
BLOCK_HEIGHT_S
,
COL_GAP
,
ROW_GAP
,
DECK_OFFSET_X
,
...
...
src/ui/Duel/PlayMat/Card/springs/moveToGround.ts
View file @
4459490c
...
...
@@ -2,8 +2,8 @@ import { easings } from "@react-spring/web";
import
{
ygopro
}
from
"
@/api
"
;
import
{
isMe
}
from
"
@/stores
"
;
import
{
matConfig
}
from
"
@/ui/Shared
"
;
import
{
asyncStart
,
type
MoveFunc
}
from
"
./utils
"
;
const
{
...
...
@@ -26,10 +26,6 @@ export const moveToGround: MoveFunc = async (props) => {
const
{
controller
,
zone
,
sequence
,
position
,
is_overlay
}
=
location
;
// 根据zone计算卡片的宽度
const
cardWidth
=
zone
===
SZONE
?
BLOCK_HEIGHT_S
*
CARD_RATIO
:
BLOCK_HEIGHT_M
*
CARD_RATIO
;
let
height
=
zone
===
SZONE
?
BLOCK_HEIGHT_S
:
BLOCK_HEIGHT_M
;
// 首先计算 x 和 y
...
...
src/ui/Duel/PlayMat/Card/springs/moveToHand.ts
View file @
4459490c
import
{
ygopro
}
from
"
@/api
"
;
import
{
cardStore
,
isMe
}
from
"
@/stores
"
;
import
{
matConfig
}
from
"
@/ui/Shared
"
;
import
{
asyncStart
,
type
MoveFunc
}
from
"
./utils
"
;
const
{
...
...
src/ui/Duel/PlayMat/Card/springs/moveToOutside.ts
View file @
4459490c
import
{
ygopro
}
from
"
@/api
"
;
import
{
isMe
}
from
"
@/stores
"
;
import
{
matConfig
}
from
"
@/ui/Shared
"
;
import
{
asyncStart
,
type
MoveFunc
}
from
"
./utils
"
;
const
{
BLOCK_WIDTH
,
BLOCK_HEIGHT_M
,
BLOCK_HEIGHT_S
,
COL_GAP
,
ROW_GAP
,
CARD_HEIGHT_O
,
...
...
src/ui/Shared/index.ts
View file @
4459490c
export
*
from
"
./YgoCard
"
;
export
*
from
"
./css
"
;
export
*
from
"
./YgoCard
"
;
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