Fabric js text alignment fix needed

ปิด โพสต์แล้ว 3 สัปดาห์ที่ผ่านมา ชำระเงินเมื่อจัดส่ง
ปิด ชำระเงินเมื่อจัดส่ง

I'm in need of a [login to view URL] expert who can fix issues relating to text alignment on my canvas.

What I need -

1. The text should be always in the center position within the wrapper.

2. There will be a variable that has 3 options: a) automatic b) shorten c) line break.

if the variable value is "automatic"

- Then the text should be in one line whatever the text length it is. That means you need to decrease the font size accordingly.

if the variable value is "shorten"

- Then the text should be in one line too but if there is no space at the end it will cut the text.

if the variable value is "line break"

- Then the text should go to the next line if there is no space at the end.

**** I have uploaded a zip file. Here all the code is done but based on [login to view URL] file in this folder, somehow the center is not working. so, I am uploading 2 .json files. Check 1 by 1 to see the real issues.

BTW, after running it, go to http://localhost/generateimage to see the result in the browser.

Show me the output, I will award you instantly.

I'd appreciate a freelancer who is well-versed in [login to view URL] and can efficiently resolve these alignment issues.

Thanks.

JavaScript Javascript ES6 ES8 Javascript

หมายเลขโปรเจค: #38056946

เกี่ยวกับโปรเจกต์

9 ข้อเสนอ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

freelancer 9 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $22

Praveenkmr583

Hi, I have done many times of these types of tasks so I can do them quickly. Because I have 8+ years of experience as a web developer, I will be delivered on time. So don't hesitate to get in touch with me. เพิ่มเติม

$27 USD ใน 7 วัน
(21 รีวิว)
4.1
ankeshvaishnav

Hi, I will do it immediately. ==============================================================================================================================================

$30 USD ใน 1 วัน
(5 รีวิว)
3.6