Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:33:34+00:00 2026-06-10T22:33:34+00:00

Consider a path (which is a line) drawn out with Raphael with a mouseover

  • 0

Consider a path (which is a line) drawn out with Raphael with a mouseover event that sets the cursor to hover. For a thin path/line it is difficult to hover the mouse over that path.

Is there a way to add an invisible border/padding/boundary to the path so that it is easier to hover over the path?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:33:36+00:00Added an answer on June 10, 2026 at 10:33 pm

    A really simple way to accomplish that would be as follows:

    1. Duplicate the path you’re using as a hover trigger with element.clone
    2. Move the clone in front of the current path with element.insertAfter
    3. Use element.attr to set the clone’s opacity to just above 0, so that it is effectively invisible but still receives click events, and to have a stroke-width property equal to the original path’s stroke-width + your desired margin;
    4. Add your hover events to the cloned element.

    This will give you a invisible path much thicker than the original that is capable of receiving mouse events in place of the original, thinner path.

    I’ve mocked this up here, with a cursor property set so you’ll see crosshairs when the mouse is over the surrogate path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following: with open(path, mode) as f: return [line for line in f
Consider the following piece of code: As you can see we are on line
Consider this... I am writing a class named Cache which will accept either a
Consider the following VBScript which, when run, lists all the files in the current
Consider the path ./images/1.png Here ./ means current directory.. ie. single dot in path
I'm trying to decide which path to take for developing my Snow Leopard app.
Consider the following security problem: I have a static base path ( /home/username/ )
Consider a configuration class which needs to parse a different config file for each
Consider this scenario in which an executable A.bin uses libY.so and libZ.so. A.c, Y.c
Consider a ViewModel and a View that uses it, where the DataContext is set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.