Memeit.lol TextWrapping Problem Fixed

in #utopian-io6 years ago (edited)

Description

This is in response to the task request of memeit.lol owner. I have contacted the project owner and He said that the water mark size has been solved already and the only problem need to solve now is the Text Wrapping Problem.

Task

Add Text Wrapping to Fabric.JS + Watermark edit

Proof of Work

Problem

Need to add textwrapping to the fabrijs Text and align center the text.

It is only a one line code modification to solve the problem but since its a task request I did it.

Details
  1. I have Use Textboxt fabricjs object instead of the Text object . Using Textbox will enable users to edit their text within the canvas.
  2. I also added breakword:true to wrap text to break words if the user types so many words.
  3. Also added textAlign:'center' to make the text center whenever they type text on the textbox object.

var text = new fabric.Textbox('CLICK ON ME', {width: 200,breakWords: true, textAlign:'center',left: 0, top: 0, fontFamily: 'Impact', fontSize: 40, stroke: '#000000', strokeWidth: 3, fill: "#ffffff" });



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hi @kizzbonez, unfortunately your contribution cannot be approved as it's too little work to be accepted in the development category. The fact the task request was approved in the first place was my fault, as I overestimated the amount of work it would take to implement. I apologise for the situation this has caused, but I hope you understand. We really do appreciate every single useful contribution, so I have upvoted you myself and have urged others to do the same.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

This should be the way to appreciate every single contribution, that has value yet was rejected due good reason.

Hi @kizzbonez, thank you for your contribution. The meme generator works even better than before and your solution, while simple, was exactly what we needed. We've gone ahead and added what we can to your post to show our thanks :)

Keep up the good work @kizzbonez you are helping a lot of opensource project infact even one of the admin/owner was commented on this contribution :D

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.028
BTC 59452.12
ETH 2603.11
USDT 1.00
SBD 2.39