Browse Source

Adjust metrics

Set score margins to 0.
master
TheoryOfNekomata 2 weeks ago
parent
commit
bdd46e9160
2 changed files with 14 additions and 4 deletions
  1. +0
    -4
      src/layouts/Default.astro
  2. +14
    -0
      src/pages/scores/[asset].svg.ts

+ 0
- 4
src/layouts/Default.astro View File

@@ -49,10 +49,6 @@ const { title } = Astro.props.frontmatter || Astro.props;
@apply text-purple-600;
}

img.score {
@apply -my-8;
}

div.score-wrapper {
@apply mt-8;
@apply mb-16;


+ 14
- 0
src/pages/scores/[asset].svg.ts View File

@@ -86,6 +86,20 @@ export const GET: APIRoute = async ({ params }) => {
verovioToolkit.setOptions({
breaks: 'none',
font: 'Bravura',
bottomMarginHeader: 0,
bottomMarginArtic: 0,
bottomMarginHarm: 0,
topMarginHarm: 0,
topMarginArtic: 0,
topMarginPgFooter: 0,
pageMarginTop: 0,
pageMarginBottom: 0,
pageMarginRight: 0,
pageMarginLeft: 0,
defaultBottomMargin: 0,
defaultTopMargin: 0,
defaultLeftMargin: 0,
defaultRightMargin: 0,
});

let data: string;


Loading…
Cancel
Save