Đang Thực Hiện

Javascript function - math - geometry

I have a software in javascript, which draws boxes and line connections between the boxes.

Each box is defined by top-left corner coordinates and witdh and height.

Each connection is a path defined by start coordinates and end coordinates.

I want to connect the boxes by path which seems like if it was going from the center of one box to the center of the other box, however I want the path to begin and end at the appropriate box borders (plus some spacing).

You can see example here:

[url removed, login to view]

The function arrow_path() works only if the boxes are squares, as you can see the black boxes and connections. As soon as a box is rectangle, it doesn't work well, as you can see in red color.

I wish you to rewrite the arrow_path function so it works even with rectangles.

After you finish the function, it will be tested in the same example, and must connect the red boxes from the example by a nice connection line. Furthermore if the position of rectangles is different and width/height is different, your function must always return correct path coordinates for proper connection line.

You may rewrite the function entirely, or you may just fix my function there.

Kỹ năng: Javascript, Toán học

Xem thêm: javascript math function, math javascript function, top mathematics, rectangle line, line rectangle, jsfiddle net, geometry line, line geometry, geometry, javascript connection, rewrite javascript, math finish, must math, javascript connect boxes, finish javascript, javascript squares, javascript wish, red squares, finish math, javascript top box, javascript width height, fix javascript function, line spacing net, mathematics works, line spacing function

Về Bên Thuê:
( 66 nhận xét ) Sumperk, Czech Republic

Mã Dự Án: #4555061

Đã trao cho:

jasqwerty

Should be a straightforward change, a few changes, one of which is determining which angle check is occurring.

$49 USD trong 0 ngày
(8 Đánh Giá)
3.9

13 freelancer đang chào giá trung bình $124 cho công việc này

maysam

Quality work

$277 USD trong 3 ngày
(18 Đánh Giá)
5.1
phpthebest

I have fixed , check PM.

$84 USD trong 0 ngày
(25 Đánh Giá)
4.8
hnhuang

I can help you with it. Please check your PMB.

$210 USD trong 3 ngày
(2 Đánh Giá)
4.7
Svetoslav92

Hi.Please check my PM. Thanks

$150 USD trong 2 ngày
(19 Đánh Giá)
4.4
prominentsoft

The software may use Canvas. I can get it done.

$206 USD trong 7 ngày
(1 Đánh Giá)
3.4
phpraza

Hello, javascript /jquery expert with 1year of experience in scripting. I have seen the example at jsfiddle and I am sure how to resolve this issuse. please contact me if interested thanks

$100 USD trong 1 ngày
(10 Đánh Giá)
3.3
mondersky

your satisfaction is my first objective. trust me.

$35 USD trong 5 ngày
(5 Đánh Giá)
3.1
ouyongbin

This project is easy for me.

$50 USD trong 3 ngày
(1 Đánh Giá)
2.9
RITESHBATHWAL

Yes I can correct this function to work as per your need. I have checked the code and have to just do the tests to make it work Thanks

$77 USD trong 2 ngày
(5 Đánh Giá)
2.4
alexyanin

I'd like to do your task

$150 USD trong 3 ngày
(1 Đánh Giá)
2.4
ayandasguptalx

Can easily do this change in javascript to fix this issue.Javascript expert with more than 5 years of experience.

$188 USD trong 1 ngày
(3 Đánh Giá)
2.2
SoopDesign

Hi, C++. PHP, Java expert here ready to take over this project... Lets start working on it... Thanks

$144 USD trong 3 ngày
(0 Đánh Giá)
0.0
testotorko

Hi, Our team can do all these thing for you. If you wanna work with us, we are ready

$30 USD trong 2 ngày
(0 Đánh Giá)
0.0
BenAppoko

Hello, I have written exactly this function once before for some flowcharting software. I can definitely complete this is just 1 day for you.

$103 USD trong 1 ngày
(0 Đánh Giá)
0.0