We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 969293d commit 46ab47aCopy full SHA for 46ab47a
1 file changed
src/Document/ContentStream/PositionedText/TransformationMatrix.php
@@ -14,6 +14,16 @@ public function __construct(
14
15
/** Please note that a concatenated transformation matrix of A B !== B A */
16
public function multiplyWith(self $other): self {
17
+ if ($other->scaleX === 1.0
18
+ && $other->scaleY === 1.0
19
+ && $other->shearX === 0.0
20
+ && $other->shearY === 0.0
21
+ && $other->offsetX === 0.0
22
+ && $other->offsetY === 0.0
23
+ ) {
24
+ return $this; // When multiplying with the identity matrix, the current matrix is unchanged
25
+ }
26
+
27
return new self(
28
$this->scaleX * $other->scaleX + $this->shearX * $other->shearY,
29
$this->scaleX * $other->shearX + $this->shearX * $other->scaleY,
0 commit comments