fix: map ink transparency to SVG opacity

This commit is contained in:
2026-07-22 19:46:40 +02:00
parent 3b1777a5b3
commit 239bb3c465
4 changed files with 32 additions and 3 deletions

View File

@@ -82,6 +82,7 @@ const page: OneNotePageDto = {
],
width: 2,
color: 0xff0000,
transparency: 255,
},
],
children: [],
@@ -127,6 +128,10 @@ describe('PageReader structured content', () => {
'd',
'M 10 20 L 15 25 30 40'
);
expect(document.querySelector('.onenote-ink path')).toHaveAttribute(
'stroke-opacity',
'0'
);
await waitFor(() =>
expect(
screen.getByRole('img', { name: 'Embedded diagram' })