Open DrSensor opened 6 years ago
Add autofit props to make the canvas fill width and height.
autofit
<annotator autofit> <img src="big_image.png" /> </annotator>
Set width and height of $refs.bg equal to scroll{Width/Height} of $refs.svg.parentNode
$refs.bg
scroll{Width/Height}
$refs.svg.parentNode
Add
autofit
props to make the canvas fill width and height.Usage
Clue
Set width and height of
$refs.bg
equal toscroll{Width/Height}
of$refs.svg.parentNode