Open xiaopujun opened 1 year ago
The second image is scaled to 200% and the relative position of the elements to the scale is always the same. Is this effect Ruler component achievable?
@xiaopujun
ruler has zoom
prop (default 1)
Try using the zoom property. (https://github.com/daybrush/ruler#ruler-units)
const [zoom, setZoom] = useState(1);
<Ruler zoom={zoom} />
Environments
Description