Support render canvas #1014
Unanswered
phucph1998
asked this question in
Q&A
Replies: 1 comment
-
I think here issue is the absolute positioning |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
<Canvas
style={{
height: '100%',
width: '100%',
position: 'absolute',
}}>
{completedPaths?.map((path, index) => (
<Path
key={path.path.toSVGString()}
path={path.path}
//@ts-ignore
paint={{ current: path.paint }}
/>
))}
I use skia to draw the svg's saved into a completedPaths array and use canvas to render them. when I remove each item in the array until it's empty, there's still one on the screen even though the array is empty. when i set a new stroke it disappears.
Beta Was this translation helpful? Give feedback.
All reactions