Skip to content
Browse files

EnterSelection, finish out Selection, tweak some wording

  • Loading branch information...
1 parent ba7bbc6 commit 369bbe6011a07d7a72476a6ddf43b2def5b22e13 @Phrogz committed Mar 18, 2012
View
13 methods/d3-EnterSelection-append.yaml
@@ -0,0 +1,13 @@
+---
+- method: d3/EnterSelection/append
+ scope:
+ returns: d3/Selection
+ summary: Create and append new elements for all the placeholder entries, returning a new selection of the created elements.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-append
+ seealso:
+ - d3/Selection/html§value
+ - d3/Selection/insert
+ params:
+ - name: tagName
+ kind: js/String
+ summary: May have a namespace prefix, such as `svg:text` to create a `<text>` element in the SVG namespace. By default, D3 supports svg, xhtml, xlink, xml and xmlns namespaces. Additional namespaces can be registered by adding to [`d3.ns.prefix`](https://github.com/mbostock/d3/wiki/Namespaces#wiki-prefix).
View
5 methods/d3-EnterSelection-empty.yaml
@@ -0,0 +1,5 @@
+---
+- method: d3/EnterSelection/empty
+ returns: js/Boolean
+ summary: Test if there are any DOM elements in the selection.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-empty
View
16 methods/d3-EnterSelection-insert.yaml
@@ -0,0 +1,16 @@
+---
+- method: d3/EnterSelection/insert
+ scope:
+ returns: js/String
+ summary: Create and insert new elements before existing ones, returning a selection of the new elements.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-insert
+ seealso:
+ - d3/Selection/append
+ - d3/Selection/html§value
+ params:
+ - name: tagName
+ kind: js/String
+ summary: May have a namespace prefix, such as `svg:text` to create a `<text>` element in the SVG namespace. By default, D3 supports svg, xhtml, xlink, xml and xmlns namespaces. Additional namespaces can be registered by adding to [`d3.ns.prefix`](https://github.com/mbostock/d3/wiki/Namespaces#wiki-prefix).
+ - name: beforeSelector
+ kind: js/String
+ summary: A selector to find the element to insert the new element before.
View
5 methods/d3-EnterSelection-node.yaml
@@ -0,0 +1,5 @@
+---
+- method: d3/EnterSelection/node
+ returns: dom/Element
+ summary: Find the first DOM element in the selection.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-node
View
2 methods/d3-Selection-attr.yaml
@@ -13,7 +13,7 @@
- method: d3/Selection/attr§value
scope:
returns: d3/Selection
- summary: Set attribute value.
+ summary: Set attribute to a value.
url: https://github.com/mbostock/d3/wiki/Selections#wiki-attr
seealso:
- d3/Selection/attr§get
View
20 methods/d3-Selection-call.yaml
@@ -0,0 +1,20 @@
+---
+- method: d3/Selection/call
+ returns: d3/Selection
+ summary: Invoke a function, passing the selection and returning it.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-call
+ seealso:
+ - d3/Selection/each
+ params:
+ - name: func
+ kind: js/Function
+ summary: Invoked and passed the selection (and any additional arguments); the `this` is also set to the selection.
+ - name: funcArg1
+ kind: js/Object
+ optional: true
+ - name: funcArg2
+ kind: js/Object
+ optional: true
+ - name:
+ kind: js/Object
+ optional: true
View
4 methods/d3-Selection-classed.yaml
@@ -21,9 +21,9 @@
params:
- name: name
kind: js/String
- - name: addClass
+ - name: setFlag
kind: js/Boolean
- summary: If this parameter is not a boolean it is forced to one.
+ summary: Whether to add or remove the class name. If this parameter is not a boolean it is forced to one.
- method: d3/Selection/classed§func
scope:
returns: d3/Selection
View
11 methods/d3-Selection-each.yaml
@@ -0,0 +1,11 @@
+---
+- method: d3/Selection/each
+ returns: d3/Selection
+ summary: Call a function for each element in the selection.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-each
+ seealso:
+ - d3/Selection/call
+ params:
+ - name: func
+ kind: js/Function
+ summary: Invoked for each element in the selection, passed the datum and index, with the `this` context set to the DOM element.
View
5 methods/d3-Selection-empty.yaml
@@ -0,0 +1,5 @@
+---
+- method: d3/Selection/empty
+ returns: js/Boolean
+ summary: Test if there are any DOM elements in the selection.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-empty
View
5 methods/d3-Selection-node.yaml
@@ -0,0 +1,5 @@
+---
+- method: d3/Selection/node
+ returns: dom/Element
+ summary: Find the first DOM element in the selection.
+ url: https://github.com/mbostock/d3/wiki/Selections#wiki-node
View
2 objects/d3-d3.yaml
@@ -1,5 +1,5 @@
---
- object: d3/d3
from: js/Object
- summary: D3.js namespace object
+ summary: D3.js namespace object, providing bootstrapping and common methods.
url: https://github.com/mbostock/d3/wiki/API-Reference

0 comments on commit 369bbe6

Please sign in to comment.
Something went wrong with that request. Please try again.