aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/animation/Runner.js2
-rw-r--r--src/animation/Timeline.js4
-rw-r--r--src/elements/Dom.js2
-rw-r--r--src/elements/Pattern.js2
-rw-r--r--src/modules/optional/arrange.js2
-rw-r--r--src/types/Box.js4
-rw-r--r--src/types/SVGNumber.js2
-rw-r--r--src/utils/utils.js2
8 files changed, 10 insertions, 10 deletions
diff --git a/src/animation/Runner.js b/src/animation/Runner.js
index bd60915..faeeed6 100644
--- a/src/animation/Runner.js
+++ b/src/animation/Runner.js
@@ -422,7 +422,7 @@ export default class Runner extends EventTarget {
}
// We have to resume the timeline in case a controller
- // is already done without beeing ever run
+ // is already done without being ever run
// This can happen when e.g. this is done:
// anim = el.animate(new SVG.Spring)
// and later
diff --git a/src/animation/Timeline.js b/src/animation/Timeline.js
index a29d683..25e6554 100644
--- a/src/animation/Timeline.js
+++ b/src/animation/Timeline.js
@@ -108,7 +108,7 @@ export default class Timeline extends EventTarget {
// The start time for the next animation can either be given explicitly,
// derived from the current timeline time or it can be relative to the
- // last start time to chain animations direclty
+ // last start time to chain animations directly
var absoluteStartTime = 0
var endTime = this.getEndTime()
@@ -244,7 +244,7 @@ export default class Timeline extends EventTarget {
// FIXME:
// However, reseting in insertion order leads to bugs. Considering the case,
- // where 2 runners change the same attriute but in different times,
+ // where 2 runners change the same attribute but in different times,
// reseting both of them will lead to the case where the later defined
// runner always wins the reset even if the other runner started earlier
// and therefore should win the attribute battle
diff --git a/src/elements/Dom.js b/src/elements/Dom.js
index 7c36078..c874353 100644
--- a/src/elements/Dom.js
+++ b/src/elements/Dom.js
@@ -129,7 +129,7 @@ export default class Dom extends EventTarget {
this.node.id = eid(this.type)
}
- // dont't set directly with this.node.id to make `null` work correctly
+ // don't set directly with this.node.id to make `null` work correctly
return this.attr('id', id)
}
diff --git a/src/elements/Pattern.js b/src/elements/Pattern.js
index be03423..61adace 100644
--- a/src/elements/Pattern.js
+++ b/src/elements/Pattern.js
@@ -24,7 +24,7 @@ export default class Pattern extends Container {
return baseFind('svg [fill*="' + this.id() + '"]')
}
- // Alias string convertion to fill
+ // Alias string conversion to fill
toString () {
return this.url()
}
diff --git a/src/modules/optional/arrange.js b/src/modules/optional/arrange.js
index b6c03e0..30151c1 100644
--- a/src/modules/optional/arrange.js
+++ b/src/modules/optional/arrange.js
@@ -6,7 +6,7 @@ export function siblings () {
return this.parent().children()
}
-// Get the curent position siblings
+// Get the current position siblings
export function position () {
return this.parent().index(this)
}
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) {
diff --git a/src/utils/utils.js b/src/utils/utils.js
index ee47079..927f044 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -43,7 +43,7 @@ export function camelCase (s) {
})
}
-// Convert camel cased string to dash seperated
+// Convert camel cased string to dash separated
export function unCamelCase (s) {
return s.replace(/([A-Z])/g, function (m, g) {
return '-' + g.toLowerCase()