fix: map ink transparency to SVG opacity
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user