Pattern Language UI Prototype | M. Todd Cooke | Observable
ojs
ojs
ojs
ojs
Author
M. Todd Cooke
@mttcooke
Comments (1)
Zach Pino
Nov 10, 2020
function zoomed() { mapGroup .selectAll('path') // To prevent stroke width from scaling .attr('transform', d3.event.transform); } const zoom = d3.zoom() .scaleExtent([1, 8]) .on('zoom', zoomed); mapGroup.call(zoom);
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
1
Follow
Follow
Pattern Language UI Prototype | M. Todd Cooke | Observable