浏览代码

Adjust metrics

Set score margins to 0.
master
TheoryOfNekomata 7 个月前
父节点
当前提交
bdd46e9160
共有 2 个文件被更改,包括 14 次插入4 次删除
  1. +0
    -4
      src/layouts/Default.astro
  2. +14
    -0
      src/pages/scores/[asset].svg.ts

+ 0
- 4
src/layouts/Default.astro 查看文件

@@ -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 查看文件

@@ -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;


正在加载...
取消
保存