Permalink
Browse files

Fixed spelling from instanciate(d) to instantiate(d).

  • Loading branch information...
1 parent 52ad823 commit b3a0143acd436800616016a170ef4d19e312b3b7 unknown committed Jul 29, 2014
@@ -101,7 +101,7 @@
target: 'n' + (Math.random() * N | 0)
});
-// Instanciate sigma:
+// Instantiate sigma:
s = new sigma({
graph: g,
container: 'graph-container',
@@ -90,7 +90,7 @@
* their camera. Also, a ForceAtlas2 runs on the graph.
*
* It is basically a mashup between some other examples, to show how
- * sigma behaves when instanciated in a weird and heavy configuration.
+ * sigma behaves when instantiated in a weird and heavy configuration.
*/
var i,
View
@@ -46,9 +46,9 @@
</div>
<script>
/**
- * This is a basic example on how to instanciate sigma. A random graph is
+ * This is a basic example on how to instantiate sigma. A random graph is
* generated and stored in the "graph" variable, and then sigma is
- * instanciated directly with the graph.
+ * instantiated directly with the graph.
*
* The simple instanciation of sigma is enough to make it render the graph
* on the screen, since the graph is given directly to the constructor.
@@ -82,7 +82,7 @@
color: '#ccc'
});
-// Instanciate sigma:
+// Instantiate sigma:
s = new sigma({
graph: g,
container: 'graph-container'
@@ -133,7 +133,7 @@
type: 't'
});
-// Instanciate sigma:
+// Instantiate sigma:
s = new sigma({
graph: g,
renderer: {
@@ -204,7 +204,7 @@
url,
function() {
if (++loaded === urls.length)
- // Instanciate sigma:
+ // Instantiate sigma:
s = new sigma({
graph: g,
renderer: {
@@ -78,7 +78,7 @@
color: '#ccc'
});
sigma.renderers.def = sigma.renderers.canvas
-// Instanciate sigma:
+// Instantiate sigma:
s = new sigma({
graph: g,
container: 'graph-container'
@@ -79,7 +79,7 @@
type: ['curve', 'arrow', 'curvedArrow'][Math.random() * 3 | 0]
});
-// Instanciate sigma:
+// Instantiate sigma:
s = new sigma({
graph: g,
renderer: {
@@ -52,7 +52,7 @@
* exported from Gephi in the GEXF format.
*
* The plugin sigma.parsers.gexf can load and parse the GEXF graph file,
- * and instanciate sigma when the graph is received.
+ * and instantiate sigma when the graph is received.
*
* The object given as the second parameter is the base of the instance
* configuration object. The plugin will just add the "graph" key to it
@@ -54,7 +54,7 @@
* > https://marketplace.gephi.org/plugin/json-exporter/
*
* The plugin sigma.parsers.json can load and parse the JSON graph file,
- * and instanciate sigma when the graph is received.
+ * and instantiate sigma when the graph is received.
*
* The object given as the second parameter is the base of the instance
* configuration object. The plugin will just add the "graph" key to it
@@ -81,7 +81,7 @@
for (i = 0, l = arr.length; i < l; i++)
sig.graph.addEdge(arr[i]);
- // ...or instanciate sigma if needed:
+ // ...or instantiate sigma if needed:
} else if (typeof sig === 'object') {
sig.graph = graph;
sig = new sigma(sig);
@@ -67,7 +67,7 @@
sig.graph.clear();
sig.graph.read(graph);
- // ...or instanciate sigma if needed:
+ // ...or instantiate sigma if needed:
} else if (typeof sig === 'object') {
sig.graph = graph;
sig = new sigma(sig);
View
@@ -893,7 +893,7 @@
/**
* This function simply clones an object. This object must contain only
* objects, arrays and immutable values. Since it is not public, it does not
- * deal with cyclic references, DOM elements and instanciated objects - so
+ * deal with cyclic references, DOM elements and instantiated objects - so
* use it carefully.
*
* @param {Object} The object to clone.
View
@@ -11,16 +11,16 @@
* in the configuration.
*
* @param {?*} conf The configuration of the instance. There are a lot of
- * different recognized forms to instanciate sigma, check
+ * different recognized forms to instantiate sigma, check
* example files, documentation in this file and unit
* tests to know more.
* @return {sigma} The fresh new sigma instance.
*
* Instanciating sigma:
* ********************
* If no parameter is given to the constructor, the instance will be created
- * without any renderer or camera. It will just instanciate the graph, and
- * other modules will have to be instanciated through the public methods,
+ * without any renderer or camera. It will just instantiate the graph, and
+ * other modules will have to be instantiated through the public methods,
* like "addRenderer" etc:
*
* > s0 = new sigma();
@@ -210,7 +210,7 @@
/**
- * This methods will instanciate and reference a new camera. If no id is
+ * This methods will instantiate and reference a new camera. If no id is
* specified, then an automatic id will be generated.
*
* @param {?string} id Eventually the camera id.
@@ -275,7 +275,7 @@
};
/**
- * This methods will instanciate and reference a new renderer. The "type"
+ * This methods will instantiate and reference a new renderer. The "type"
* argument can be the constructor or its name in the "sigma.renderers"
* package. If no type is specified, then "sigma.renderers.def" will be used.
* If no id is specified, then an automatic id will be generated.
@@ -340,7 +340,7 @@
if (this.cameras[camera.id] !== camera)
throw 'sigma.addRenderer: The camera is not properly referenced.';
- // Instanciate:
+ // Instantiate:
renderer = new fn(this.graph, camera, this.settings, o);
this.renderers[id] = renderer;
Object.defineProperty(renderer, 'id', {
View
@@ -15,36 +15,36 @@ test('Constructor polymorphism', function() {
};
s = new sigma();
- equal(Object.keys(s.renderers).length, 0, '"new sigma()" instanciate sigma without any renderer.');
+ equal(Object.keys(s.renderers).length, 0, '"new sigma()" instantiate sigma without any renderer.');
s = new sigma('abc');
deepEqual(s.renderers[0].options, {
container: dom
- }, '"new sigma("abc")" instanciate the default renderer in the div #abc.');
+ }, '"new sigma("abc")" instantiate the default renderer in the div #abc.');
s = new sigma(['abc']);
deepEqual(s.renderers[0].options, {
container: dom
- }, '"new sigma(["abc"])" instanciate the default renderer in the div #abc.');
+ }, '"new sigma(["abc"])" instantiate the default renderer in the div #abc.');
s = new sigma(document.getElementById('abc'));
deepEqual(s.renderers[0].options, {
container: dom
- }, '"new sigma(document.getElementById("abc"))" instanciate the default renderer in the div #abc.');
+ }, '"new sigma(document.getElementById("abc"))" instantiate the default renderer in the div #abc.');
s = new sigma({
container: 'abc'
});
deepEqual(s.renderers[0].options, {
container: dom
- }, '"new sigma({ container: "abc" })" instanciate the default renderer in the div #abc.');
+ }, '"new sigma({ container: "abc" })" instantiate the default renderer in the div #abc.');
s = new sigma({
container: document.getElementById('abc')
});
deepEqual(s.renderers[0].options, {
container: dom
- }, '"new sigma({ container: document.getElementById("abc") })" instanciate the default renderer in the div #abc.');
+ }, '"new sigma({ container: document.getElementById("abc") })" instantiate the default renderer in the div #abc.');
s = new sigma(['abc', 'abc']);
deepEqual([
@@ -53,7 +53,7 @@ test('Constructor polymorphism', function() {
], [
{ container: dom },
{ container: dom }
- ], '"new sigma(["abc", "abc"])" instanciate the default renderer in the div #abc twice.');
+ ], '"new sigma(["abc", "abc"])" instantiate the default renderer in the div #abc twice.');
s = new sigma({
renderers: [{
@@ -62,15 +62,15 @@ test('Constructor polymorphism', function() {
});
deepEqual(s.renderers[0].options, {
container: dom
- }, '"new sigma({ renderers: [{ container: document.getElementById("abc") }] })" instanciate the default renderer in the div #abc.');
+ }, '"new sigma({ renderers: [{ container: document.getElementById("abc") }] })" instantiate the default renderer in the div #abc.');
// Restore previous state:
sigma.renderers.def = tmp
document.body.removeChild(dom);
throws(function() {
s = new sigma('abcd');
- }, /Container not found./, 'Trying to instanciate sigma with a string that is not the ID of an HTMLElement will throw an error.');
+ }, /Container not found./, 'Trying to instantiate sigma with a string that is not the ID of an HTMLElement will throw an error.');
});
test('Public methods', function() {

0 comments on commit b3a0143

Please sign in to comment.