Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-deckform-filler
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
MyCard
ygopro-deckform-filler
Commits
696ceae9
Commit
696ceae9
authored
Oct 24, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
parent
653f0e85
Pipeline
#41249
passed with stages
in 1 minute and 50 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
src/app.service.ts
src/app.service.ts
+4
-22
No files found.
src/app.service.ts
View file @
696ceae9
...
...
@@ -133,20 +133,6 @@ export class AppService extends ConsoleLogger {
pageCount
=
pc
;
};
let
needExtraPage
=
false
;
if
(
[
1
,
2
,
4
].
some
((
type
)
=>
{
const
filtered
=
filterType
(
type
);
const
grouped
=
Object
.
values
(
_
.
groupBy
(
filtered
,
(
id
)
=>
id
));
return
grouped
.
length
>
20
;
})
)
{
this
.
log
(
`Added extra page to PDF for deck export due to card type overflow.`
,
);
needExtraPage
=
true
;
}
const
drawCards
=
async
(
cards
:
number
[],
cord
:
{
...
...
@@ -194,15 +180,11 @@ export class AppService extends ConsoleLogger {
pageIndex
,
);
};
if
(
needExtraPage
)
{
const
usePages
=
_
.
chunk
(
groupedCards
,
spaces
);
await
ensurePages
(
usePages
.
length
-
1
);
for
(
let
i
=
0
;
i
<
usePages
.
length
;
++
i
)
{
await
drawCardsOnPage
(
usePages
[
i
],
i
);
}
}
else
{
await
drawCardsOnPage
(
groupedCards
,
0
);
}
};
await
drawCards
(
filterType
(
1
),
Coordinates
.
main
.
monsters
);
this
.
log
(
`Filled monster cards.`
);
...
...
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