[DOC] Typos in Using Transformations documentation
mpaarating opened this issue · 1 comments
The Using Transformations page has 7 typos on it listed below:
(Typos in bold)
Moving from one space to another Using fabricJS you often have to interact with coordinates and position, but understaing where those coordinates are, can be troublesome if you do not have the right background.
I'm going to list the transfomation and their use and then i ll try to make 2 examples to clarify better what happen, and how to do it.
A point that is at position P when the canvas is not zoomed and not panned, after applying a zoom and pan represented from the viewportTransfrom M, can be found at cooridantes: newP = fabric.util.transformPoint(P, canvas.viewportTransform); Object.calcTransformMatrix, returm the matrix that represent the generic object transform of that particular moment ( influenced by top,left,scale and many other properties ), and moves points from object space to canvas space, not zoomed.
The function gives back one of the possible solution for this matrix, putting as constrain a skewY to 0. A real use case One developer wants to group objects togheter, but keep them free at the same time.
At some point we want to lock theyr relative position and scale togheter and move one. When we setup the position we want, the BOSS position is described by a MATRIX, as we learned till now, and each minion too. I m sure it exist a matrix that defines the necessary transformation to move from the boss to the minion, and i have to find it.
I'll submit a fix shortly.