aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'src/types')
-rw-r--r--src/types/Box.js2
-rw-r--r--src/types/Matrix.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/types/Box.js b/src/types/Box.js
index f8976d4..ab19732 100644
--- a/src/types/Box.js
+++ b/src/types/Box.js
@@ -209,7 +209,7 @@ registerMethods({
// that means, their clientRect is always as big as the content.
// Furthermore this size is incorrect if the element is further transformed by its parents
// computedStyle: Only returns meaningful values if css was used with px. We dont go this route here!
- // getBBox: returns the bounding box of its content - that doesnt help!
+ // getBBox: returns the bounding box of its content - that doesn't help!
let { width, height } = this.attr([ 'width', 'height' ])
// Width and height is a string when a number with a unit is present which we can't use
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)