summaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
authorordago <ordago@users.noreply.github.com>2020-12-17 05:43:50 +0000
committerGitHub <noreply@github.com>2020-12-17 15:43:50 +1000
commit4f4dc2afa62cb899a5cae72c359150f8adf27edb (patch)
tree617ed30d3c2aff6182216f24054a7b0d3c229ede /src/types
parentc01bead5556cedea7dff8d4965bd70070b018c6f (diff)
downloadsvg.js-4f4dc2afa62cb899a5cae72c359150f8adf27edb.tar.gz
svg.js-4f4dc2afa62cb899a5cae72c359150f8adf27edb.zip
typos (#1179)
* typos in 1000-accesses.js * typos in transforms.js * typos in Controller.js * typos in Runner.js * typos in Timeline.js * typos in Dom.js * typos in Marker.js * typos in Mask.js * typos in Tspan.js * typos in containerGeometry.js * typos in event.js * typos in css.js * typos in data.js * typos in sugar.js * typos in EventTarget.js * typos in List.js * typos in Matrix.js * typos in SVGArray.js * typos in utils.js * typos in RAFPlugin.js * typos in Runner.js * typos in Timeline.js * typos in Dom.js * typos in Pattern.js * typos in arrange.js * typos in Box.js * typos in SVGNumber.js * typos in utils.js * typos in CONTRIBUTING.md
Diffstat (limited to 'src/types')
-rw-r--r--src/types/Box.js4
-rw-r--r--src/types/SVGNumber.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/types/Box.js b/src/types/Box.js
index 9707b7f..71d1e2a 100644
--- a/src/types/Box.js
+++ b/src/types/Box.js
@@ -159,7 +159,7 @@ export function bbox () {
export function rbox (el) {
const getRBox = (node) => node.getBoundingClientRect()
const retry = (el) => {
- // There is no point in trying tricks here because if we insert the element into the dom ourselfes
+ // There is no point in trying tricks here because if we insert the element into the dom ourselves
// it obviously will be at the wrong position
throw new Error(`Getting rbox of element "${el.node.nodeName}" is not possible`)
}
@@ -200,7 +200,7 @@ registerMethods({
zoom (level, point) {
// Its best to rely on the attributes here and here is why:
// clientXYZ: Doesn't work on non-root svgs because they dont have a CSSBox (silly!)
- // getBoundingClinetRect: Doesn't work because Chrome just ignores width and height of nested svgs completely
+ // getBoundingClientRect: Doesn't work because Chrome just ignores width and height of nested svgs completely
// 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!
diff --git a/src/types/SVGNumber.js b/src/types/SVGNumber.js
index 914919e..f9bee28 100644
--- a/src/types/SVGNumber.js
+++ b/src/types/SVGNumber.js
@@ -1,6 +1,6 @@
import { numberAndUnit } from '../modules/core/regex.js'
-// Module for unit convertions
+// Module for unit conversions
export default class SVGNumber {
// Initialize
constructor (...args) {