d3.js zoom & minimap | sungryeol park(max) | Observable
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
Comments (1)
Images。
Mar 11, 2021
In onBrush, the third line from the bottom should be: d3.zoomIdentity.translate(scaleX(-brushX), scaleY(-brushY)).scale(zoomScale) Otherwise the brush and svg viewbox will shift after draging brush then zooming.
Reply
Add comment
Subscribe to notifications
Observable
Sign in
sungryeol park(max)
18
Reply
Add comment
Subscribe to notifications
37
d3.js zoom & minimap | sungryeol park(max) | Observable