How to Add and Use New JSDoc Tag Using Plugin?
FabricJS Image.applyFilters trims image
Issue When you apply filters to an image, it trims on the right or bottom part. Cause Internally by default image is painted over a tile of 2048×2048. If the height or width of the image is greater than 2048, remaining part of the image will be trimmed. Fix Increase textureSize to 4096 at the […]
Get font character bounding box using opentype.js
If you would like to get the bounding box details of any font character using opentype.js, here is a working example. Dependency: JQuery Opentype.js FORTE.ttf font (or you can use any font) Make sure you make appropriate change to Url to load above mentioned resources from the following example.
How to pass string constants in UglifyJS as define argument
If you need to pass the constant number or boolean values in UglifyJS –define option, it is very easy. The tricky part is passing the string constant. Here is a quick code snippet to show how to pass string constant. The correct sequence is single quote + double quote + your string + double quote […]
How To Use UglifyJS Conditional Compilation With reduce_vars
UglifyJS supports conditional compilation using the “–define” argument. Even though this option is good enough, it “looks” messy. The command prompt argument becomes too long and making an addition to the constant feels dreaded. Here is a quick way to use separate js file to define all your constants and use it in subsequent files. […]
Randomize Variable Names Each Time UglifyJS Runs
How to Use JSDoc @event Tag Correctly?
JSDoc Tokenizer Plugin to Replace the Token With Values From Config
JSDoc – Customize Output Documentation Files