textures icon indicating copy to clipboard operation
textures copied to clipboard

d3 zoom

Open sofer-eg opened this issue 9 years ago • 4 comments

Is there any solution for change stroke-width and size using d3 zoom scale?

sofer-eg avatar Mar 19 '15 12:03 sofer-eg

Really good point. Once I start work on this issue I let you know.

riccardoscalco avatar Mar 23 '15 17:03 riccardoscalco

Thanks! I try this code in zoom handler. It works, but looks like scaling not proportional.

d3.select('#' + texture.id())
    .attr('patternTransform', 'scale(' + 1 / d3.event.scale  + ')');

sofer-eg avatar Mar 24 '15 10:03 sofer-eg

I'm trying to figure this one out as well.

lboecker avatar Mar 24 '15 16:03 lboecker

+1 this would be extremely useful

jacobpierce avatar Sep 04 '15 13:09 jacobpierce