vue-annotator icon indicating copy to clipboard operation
vue-annotator copied to clipboard

Add option to set width and height fill window automatically

Open DrSensor opened this issue 7 years ago • 0 comments

Add autofit props to make the canvas fill width and height.

Usage

<annotator autofit>
   <img src="big_image.png" />
</annotator>

Clue

Set width and height of $refs.bg equal to scroll{Width/Height} of $refs.svg.parentNode

DrSensor avatar Jan 02 '18 10:01 DrSensor