Comments (2)
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?
from ruler.
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} />
from ruler.
Related Issues (20)
- Percent Support HOT 1
- Rulers are not displaying text HOT 1
- When I use cm as units. It creates long numbers with decimals. HOT 1
- Numbers in more detail HOT 4
- Vertical ruler from bottom to up HOT 2
- Zooming HOT 1
- zoom HOT 1
- Can I change the width of the actual ruler line? HOT 2
- ngx-ruler type issues HOT 2
- How to scale a Ruler component centered on the mouse pointer position HOT 1
- Highlight selected elements or canvas dimmensions HOT 6
- Feature: Canvas scale option HOT 2
- Custom styling of a ruler HOT 1
- Option to render selectedRange values HOT 2
- the height of the component is abnormal in the grid layout HOT 1
- Support pnpm HOT 4
- How to solve the overlapping text when the low zoom ratio HOT 1
- React Ruler transparent background not working HOT 2
- why is the line of the ruler not displayed when the height of canvas is more than 16350px
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruler.