Skip to content

Commit

Permalink
1.0.0-beta.19
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Jul 2, 2015
1 parent 73c0633 commit 189af95
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### v1.0.0-beta.19

- FIX issue where `nf-area` having null data would throw an unhandled error.

### v1.0.0-beta.18

- FIX axes components will once again use the passed templates for pre-Glimmer Ember.
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/components.nf-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ <h3 class="name"><code>areaFn</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/app_components_nf-area.js.html#l108"><code>app&#x2F;components&#x2F;nf-area.js:108</code></a>
<a href="../files/app_components_nf-area.js.html#l112"><code>app&#x2F;components&#x2F;nf-area.js:112</code></a>
</p>


Expand All @@ -931,7 +931,7 @@ <h3 class="name"><code>d</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/app_components_nf-area.js.html#l121"><code>app&#x2F;components&#x2F;nf-area.js:121</code></a>
<a href="../files/app_components_nf-area.js.html#l125"><code>app&#x2F;components&#x2F;nf-area.js:125</code></a>
</p>


Expand Down
4 changes: 2 additions & 2 deletions docs/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2577,7 +2577,7 @@
},
{
"file": "app/components/nf-area.js",
"line": 108,
"line": 112,
"description": "Gets the area function to use to create the area SVG path data",
"itemtype": "property",
"name": "areaFn",
Expand All @@ -2589,7 +2589,7 @@
},
{
"file": "app/components/nf-area.js",
"line": 121,
"line": 125,
"description": "The SVG path data for the area",
"itemtype": "property",
"name": "d",
Expand Down
16 changes: 10 additions & 6 deletions docs/files/app_components_nf-area.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,16 @@ <h1 class="file-heading">File: app/components/nf-area.js</h1>
mappedData: Ember.computed(&#x27;data.[]&#x27;, &#x27;xPropFn&#x27;, &#x27;yPropFn&#x27;, &#x27;nextYData.@each&#x27;, &#x27;stack.aggregate&#x27;, function() {
var { data, xPropFn, yPropFn, nextYData } = this.getProperties(&#x27;data&#x27;, &#x27;xPropFn&#x27;, &#x27;yPropFn&#x27;, &#x27;nextYData&#x27;);
var aggregate = this.get(&#x27;stack.aggregate&#x27;);
return data.map((d, i) =&gt; {
var x = xPropFn(d);
var y = yPropFn(d);
var result = aggregate ? [x, y + nextYData[i], nextYData[i]] : [x, y, nextYData[i]];
return result;
});
if(Array.isArray(data)) {
return data.map((d, i) =&gt; {
var x = xPropFn(d);
var y = yPropFn(d);
var result = aggregate ? [x, y + nextYData[i], nextYData[i]] : [x, y, nextYData[i]];
return result;
});
} else {
return [];
}
}),


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-nf-graph",
"version": "1.0.0-beta.18",
"version": "1.0.0-beta.19",
"description": "A graphing/charting DSL for Ember.js",
"files": [
"addon/",
Expand Down

0 comments on commit 189af95

Please sign in to comment.