diff options
| author | Marak <[email protected]> | 2017-02-11 18:07:23 -0500 |
|---|---|---|
| committer | Marak <[email protected]> | 2017-02-11 18:07:23 -0500 |
| commit | e2305d76d7c69134ab773127a4e6e4e82fab23f3 (patch) | |
| tree | 3ee13f4b6b8e00e61526cd88a173e4e93abf2284 /lib | |
| parent | 2b0d1152b603764004fd1f0e2fbed2f30f7b7c28 (diff) | |
| download | faker-e2305d76d7c69134ab773127a4e6e4e82fab23f3.tar.xz faker-e2305d76d7c69134ab773127a4e6e4e82fab23f3.zip | |
[api] [minor] Rename `dataurl` to `dataUri`
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/image.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/image.js b/lib/image.js index 5293ba33..dc512a68 100644 --- a/lib/image.js +++ b/lib/image.js @@ -197,13 +197,13 @@ var Image = function (faker) { return faker.image.imageUrl(width, height, 'transport', randomize); }; /** - * dataurl + * dataUri * * @param {number} width * @param {number} height * @method faker.image.dataurl */ - self.dataurl = function (width, height) { + self.dataUri = function (width, height) { var rawPrefix = 'data:image/svg+xml;charset=UTF-8,'; var svgString = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="' + width + '" height="' + height + '"> <rect width="100%" height="100%" fill="grey"/> <text x="0" y="20" font-size="20" text-anchor="start" fill="white">' + width + 'x' + height + '</text> </svg>'; return rawPrefix + encodeURIComponent(svgString); |
