javascript - Changing Clickable Area of an Image without Resizing Image -
i working on php/javascript project action occurs when image clicked. image small, expand clickable area further around image without enlarging image itself. possible? below general idea of structure of i'm working on.
<g id="pictures"> <image id="marker_image" cx="145" cy="460" r="1" preserveaspectratio="none" x="136" y="451" width="18" height="18" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="//link.thislink.com/image_assets/markers/pool.png" style="opacity: 1" fill="#000000" fill-opacity="1" stroke="#000000" stroke-opacity="1" stroke-width="2" stroke-linecap="round" stroke- linejoin="round"></image> </g>
i'm new working svgs, i've read, think can use <g>
add padding?
wrap image in div
, make div big want using padding, , bind action on div instead of img
Comments
Post a Comment