@fishawack/lab-d3
Advanced tools
Comparing version 2.8.0 to 2.8.1
## Changelog | ||
### 2.8.1 (2021-10-08) | ||
* [Feature] Format can now be a function | ||
### 2.8.0 (2021-03-09) | ||
@@ -4,0 +7,0 @@ * [Feature] Can now have line breaks in text by adding <br> tags |
{ | ||
"name": "@fishawack/lab-d3", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "Abstract layer built on top of d3", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -88,3 +88,3 @@ "use strict"; | ||
if (format) { | ||
textObject[key] = d3.format(format)(textObject[key]); | ||
textObject[key] = (typeof format === "function" ? format(d, key, textObject) : d3.format(format))(textObject[key]); | ||
} | ||
@@ -91,0 +91,0 @@ } |
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
568333