Do you mean "how to get the position of a block by javascript"? In this case you can use the function
findBlock("your block id") to get the Block object associated with the block, then, use "top()" and "left()" functions to get Y and X coordinates. You can also get the block's dimensions using "width()" and "height()" functions.
Thanks for sharing the project
Do you mean "how to get the position of a block by javascript"? In this case you can use the function
findBlock("your block id") to get the Block object associated with the block, then, use "top()" and "left()" functions to get Y and X coordinates. You can also get the block's dimensions using "width()" and "height()" functions.
RipenApps is a well-known mobile app development company in UK. They specialize in developing custom mobile applications for various platforms, including iOS, Android, and cross-platform solutions. RipenApps has earned a reputation for delivering high-quality mobile app solutions to businesses and organizations across different industries.
Last edit: manishjohns 2023-09-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The mathematical operation X divided by Y, represented as X / Y, results in the quotient, commonly known as the division of X by Y. The term "DIV" is often used in computer programming to represent integer division, where only the whole number part of the division is considered, discarding any remainder.
If you have any more questions or need further clarification about mathematical operations, feel free to ask, and I'll be happy to assist you.
Regards: 16 hours from now
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Congratulations for you projects, this is great!
How I make to catch the position (x and Y) of the Div?
I´m a brazilian guy, sorry for my english.
Hi, thanks a lot!
Do you mean "how to get the position of a block by javascript"? In this case you can use the function
findBlock("your block id") to get the Block object associated with the block, then, use "top()" and "left()" functions to get Y and X coordinates. You can also get the block's dimensions using "width()" and "height()" functions.
Summarizing:
findBlock("your block id").left() = X
findBlock("your block id").top() = Y
findBlock("your block id").width() = width
findBlock("your block id").height() = height
Remember that these coordinates are relative to the canvas' upper left corner.
Regards.
P.S.: don't worry, your English is not worse than mine...
Hi Regards!!
Thanks for your reply!
I decided my problem...
But, i have another problem ;) or doubt.
I found this framework, http://www.openjacob.org/draw2d.html.
This use a Z-CONNECTOR and a DIRECT-CONNECTOR
You use a Z-CONNECTOR.
Has as to create the DIRECT-CONNECTOR in your framework?
I need Z-CONNECTOR and a DIRECT-CONNECTOR for my web project.
Do you use MSN MESSENGER or ORKUT or GTALK??
My emails: gabrielmanzano@gmail.com
Thanks a lot!
Manzano
Thanks for sharing the project
Do you mean "how to get the position of a block by javascript"? In this case you can use the function
findBlock("your block id") to get the Block object associated with the block, then, use "top()" and "left()" functions to get Y and X coordinates. You can also get the block's dimensions using "width()" and "height()" functions.
RipenApps is a well-known mobile app development company in UK. They specialize in developing custom mobile applications for various platforms, including iOS, Android, and cross-platform solutions. RipenApps has earned a reputation for delivering high-quality mobile app solutions to businesses and organizations across different industries.
Last edit: manishjohns 2023-09-08
The mathematical operation X divided by Y, represented as X / Y, results in the quotient, commonly known as the division of X by Y. The term "DIV" is often used in computer programming to represent integer division, where only the whole number part of the division is considered, discarding any remainder.
If you have any more questions or need further clarification about mathematical operations, feel free to ask, and I'll be happy to assist you.
Regards: 16 hours from now