Skip to content

Commit

Permalink
Release 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jun 11, 2021
1 parent 199c9f7 commit 7ab8342
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v1.4.3](https://github.com/toorshia/justgage/compare/v1.4.2...v1.4.3)

> 11 June 2021
- feat: use custom formats when `textRenderer` returns `false` [`#363`](https://github.com/toorshia/justgage/pull/363)
- chore: bump lodash from 4.17.19 to 4.17.21 [`#361`](https://github.com/toorshia/justgage/pull/361)

#### [v1.4.2](https://github.com/toorshia/justgage/compare/v1.4.1...v1.4.2)

> 15 February 2021
- fix: refresh with min/max 0 [`#360`](https://github.com/toorshia/justgage/pull/360)
- fix: refresh with min/max 0 (#360) [`#359`](https://github.com/toorshia/justgage/issues/359)
- Release 1.4.2 [`57b1ad4`](https://github.com/toorshia/justgage/commit/57b1ad4e142a6d1775051f512d48df9f34aac857)

#### [v1.4.1](https://github.com/toorshia/justgage/compare/v1.4.0...v1.4.1)

Expand Down
6 changes: 3 additions & 3 deletions dist/justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
defs, svg = null;

// set value to display
if (obj.config.textRenderer) {
if (obj.config.textRenderer && obj.config.textRenderer(obj.originalValue) !== false) {
obj.originalValue = obj.config.textRenderer(obj.originalValue);
} else if (obj.config.humanFriendly) {
obj.originalValue = humanFriendlyNumber(obj.originalValue, obj.config.humanFriendlyDecimal) + obj.config.symbol;
Expand All @@ -742,7 +742,7 @@
if (obj.config.reverse) {
currentValue = (obj.config.max * 1) + (obj.config.min * 1) - (obj.level.attr("pki")[0] * 1);
}
if (obj.config.textRenderer) {
if (obj.config.textRenderer && obj.config.textRenderer(Math.floor(currentValue)) !== false) {
obj.txtValue.attr("text", obj.config.textRenderer(Math.floor(currentValue)));
} else if (obj.config.humanFriendly) {
obj.txtValue.attr("text", humanFriendlyNumber(Math.floor(currentValue), obj.config.humanFriendlyDecimal) + obj.config.symbol);
Expand Down Expand Up @@ -914,7 +914,7 @@

color = getColor(val, (val - obj.config.min) / (obj.config.max - obj.config.min), obj.config.levelColors, obj.config.noGradient, obj.config.customSectors);

if (obj.config.textRenderer) {
if (obj.config.textRenderer && obj.config.textRenderer(displayVal) !== false) {
displayVal = obj.config.textRenderer(displayVal);
} else if (obj.config.humanFriendly) {
displayVal = humanFriendlyNumber(displayVal, obj.config.humanFriendlyDecimal) + obj.config.symbol;
Expand Down
2 changes: 1 addition & 1 deletion dist/justgage.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/justgage.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "justgage",
"version": "1.4.2",
"version": "1.4.3",
"description": "JustGage is a handy JavaScript plugin for generating and animating nice & clean gauges. It is based on Raphaël library for vector drawing, so it’s completely resolution independent and self-adjusting.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7ab8342

Please sign in to comment.