aboutsummaryrefslogtreecommitdiffstats
path: root/src/types/Matrix.js
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2023-04-15 11:45:54 +0200
committeralbert-github <albert.tests@gmail.com>2023-04-15 11:45:54 +0200
commita5268a8aab187a4d98190833923f0a80610007f8 (patch)
tree2ea83d5d5bed92ae90b518f1ca539a9f9e049716 /src/types/Matrix.js
parent770ca58d58bcb48a52367e9a340ab06c0053f1d5 (diff)
downloadsvg.js-a5268a8aab187a4d98190833923f0a80610007f8.tar.gz
svg.js-a5268a8aab187a4d98190833923f0a80610007f8.zip
Spelling corrections
Diffstat (limited to 'src/types/Matrix.js')
-rw-r--r--src/types/Matrix.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types/Matrix.js b/src/types/Matrix.js
index 406cb84..c329df4 100644
--- a/src/types/Matrix.js
+++ b/src/types/Matrix.js
@@ -51,7 +51,7 @@ export default class Matrix {
const origin = new Point(o.origin || o.around || o.ox || o.originX, o.oy || o.originY)
const ox = origin.x
const oy = origin.y
- // We need Point to be invalid if nothing was passed because we cannot default to 0 here. Thats why NaN
+ // We need Point to be invalid if nothing was passed because we cannot default to 0 here. That is why NaN
const position = new Point(o.position || o.px || o.positionX || NaN, o.py || o.positionY || NaN)
const px = position.x
const py = position.y
@@ -435,7 +435,7 @@ export default class Matrix {
if (isFinite(t.px) || isFinite(t.py)) {
const origin = new Point(ox, oy).transform(transformer)
// TODO: Replace t.px with isFinite(t.px)
- // Doesnt work because t.px is also 0 if it wasnt passed
+ // Doesn't work because t.px is also 0 if it wasn't passed
const dx = isFinite(t.px) ? t.px - origin.x : 0
const dy = isFinite(t.py) ? t.py - origin.y : 0
transformer.translateO(dx, dy)