Fabric.js Viewport Transformation Matrix Explained
Fabric.js provides viewport manipulation capabilities through the viewportTransform property, allowing developers to control how the entire canvas appears to users.
The viewportTransform property leverages native canvas transformation functionality, essentially wrapping the canvas 2D API's transform() method. According to the official documenta ...
Posted on Fri, 17 Jul 2026 16:15:50 +0000 by Magicman0022
L-Shaped String Transformation
Given a string s and a number of rows numRows, arrange the string in an L-shaped pattern from top to bottom, left to right. Then, read the characters row by row from left to right to produce a new string. Implement this transformation with the function signature:
transform(s: string, numRows: number) => string
For example, with input string ...
Posted on Thu, 14 May 2026 21:23:58 +0000 by LDusan