@fishawack/lab-d3
Advanced tools
Comparing version 2.6.3 to 2.6.4
{ | ||
"name": "@fishawack/lab-d3", | ||
"version": "2.6.3", | ||
"version": "2.6.4", | ||
"description": "Abstract layer built on top of d3", | ||
@@ -5,0 +5,0 @@ "vars": { |
@@ -233,2 +233,5 @@ ## Background | ||
### 2.6.4 | ||
* Can pass function into structure calls | ||
### 2.6.3 | ||
@@ -235,0 +238,0 @@ * format and formatKeys no longer inserts the missing matched property into the strings if they aren't found |
@@ -93,3 +93,9 @@ "use strict"; | ||
return Shared.formatKeys(d && d.structure || att[type].structure, textObject); | ||
var structure = d && d.structure || att[type].structure; | ||
if (typeof structure === "function") { | ||
structure = structure(value, d, att); | ||
} | ||
return Shared.formatKeys(structure, textObject); | ||
}, | ||
@@ -96,0 +102,0 @@ formatKeys: function formatKeys(format) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
563999
5479
568