[need help] how to let backgroundImage autofit container ? #10230
Unanswered
vaynevayne
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Fabric exposes 2 utilities, findScaleToFit and findScaleToCover.
check the file 'findScaleTo.ts' in current master |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want the picture to be scaled and displayed in full. What scale should I set?
https://stackblitz.com/edit/vitejs-vite-eyhjps?file=src%2FReactFabric%2Fcomponents%2FBackgroundImage%2Findex.tsx
The following my code is a bit of a problem
Beta Was this translation helpful? Give feedback.
All reactions