MCPcopy Create free account
hub / github.com/LibPDF-js/core / concatMatrix

Method concatMatrix

src/text/text-state.ts:234–237  ·  view source on GitHub ↗

* Modify current transformation matrix (cm operator). * Prepends the given matrix to the CTM.

(a: number, b: number, c: number, d: number, e: number, f: number)

Source from the content-addressed store, hash-verified

232 * Prepends the given matrix to the CTM.
233 */
234 concatMatrix(a: number, b: number, c: number, d: number, e: number, f: number): void {
235 const newMatrix = new Matrix(a, b, c, d, e, f);
236 this.ctm = newMatrix.multiply(this.ctm);
237 }
238
239 /**
240 * Calculate the bounding box for a character at the current position.

Callers 6

drawNewBadgeFunction · 0.80
operators.test.tsFile · 0.80
handleCmMethod · 0.80

Calls 1

multiplyMethod · 0.95

Tested by 1

drawNewBadgeFunction · 0.64