Jump to content
Search Community

ppdemo

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by ppdemo

  1. how to get the exact position (x,y) of Red and Blue box corner. So I can find the point hit between two points.

    I tried getBoundingClientRect(). not working because of angle . can you please tell how to get the position (x,y) for each corners.

  2. Hi everyone!

    Sorry, if the answer is already there, but I couldn't find it.

     

    In the codepen example. I have two rectangle box.
    Red color box have angle 45deg  and draggable with bounds. Blue color box has 0 deg.

    if i tried to drag the Red box i.e, Blue box corner "a" hit in between Red box "e" & "h" corner points. it's want to act as boundary. same for other corners.

     

    can you please help me to solve this...

     

    Thank you! 

    See the Pen qBJjypj by demo-ppad (@demo-ppad) on CodePen

×
×
  • Create New...