Skip to content

Commit

Permalink
Release 1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Jan 15, 2020
1 parent 2b34083 commit 70df415
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 20 deletions.
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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.3.5](https://github.com/toorshia/justgage/compare/v1.3.4...v1.3.5)

> 15 January 2020
- from isHexNumber to isHexColor [`#343`](https://github.com/toorshia/justgage/pull/343)
- from isHexNumber to isHexColor [`#1`](https://github.com/toorshia/justgage/pull/1)
- from ixHexNumber to isHexColor [`105504c`](https://github.com/toorshia/justgage/commit/105504cf5be6e0456ccccd5d92eca0eab23d144f)

#### [v1.3.4](https://github.com/toorshia/justgage/compare/v1.3.3...v1.3.4)

> 14 January 2020
Expand All @@ -12,17 +20,18 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Release 1.3.4 [`2d1ddf9`](https://github.com/toorshia/justgage/commit/2d1ddf937de46a04e6d264202ea089caf568f86c)
- feat: Issue 241 - added update method to support updating valueFontColor hex value dynamically [`3e0841b`](https://github.com/toorshia/justgage/commit/3e0841b1950a2b83ffe3a8fac4947b7ddb71b65e)
- feat: Issue 241 - added support for options as array in update() [`4245021`](https://github.com/toorshia/justgage/commit/42450211c37d7635aefac41ada0dbfcf1ee71f5a)
- docs: Issue-241 - update README to include .update() functionality [`a7cdb9f`](https://github.com/toorshia/justgage/commit/a7cdb9fc03148ca0fdf5c52b4d228dccd4ee3cd5)
- feat: Issue 241 - add support for labelFontColor as update() parameter [`11a6455`](https://github.com/toorshia/justgage/commit/11a64556aaa630224a58d883206d79fac1fbd9b7)
- docs: Issue-241 - update README to include .update() functionality [`a7cdb9f`](https://github.com/toorshia/justgage/commit/a7cdb9fc03148ca0fdf5c52b4d228dccd4ee3cd5)
- Update index.html [`5fce6bc`](https://github.com/toorshia/justgage/commit/5fce6bcd16b3e1e6e325808ed8251d3f0bc1887e)
- docs: Updated Readme with breaking changes [`76043c1`](https://github.com/toorshia/justgage/commit/76043c10338c881e2d471e47a12e9f4dddb596b8)
- Release 1.3.4 [`8e22994`](https://github.com/toorshia/justgage/commit/8e229944180500b6246210dc621fe4ddac9a4357)
- Update index.html [`ce6e872`](https://github.com/toorshia/justgage/commit/ce6e872ddeba9a49996c88a80b6c08661e1dd9ec)
- fix: Removed const and backtick for browser compatibility [`491a010`](https://github.com/toorshia/justgage/commit/491a010f564b514a8ea77b136f51410cf56c919b)
- fix: Animation time human numbers example [`ac84e89`](https://github.com/toorshia/justgage/commit/ac84e89729c79a0e89f1517ed52325b2f201450b)
- fix: Human numbers example range [`59c0945`](https://github.com/toorshia/justgage/commit/59c09457729b30336ebe2f7d1c1c00178f5488b8)
- Update index.html [`c090293`](https://github.com/toorshia/justgage/commit/c0902934c3d887a49235729987d5a19360ee83fa)
- chore: Revert after failed release [`3ac9d41`](https://github.com/toorshia/justgage/commit/3ac9d4138784fec23403317ad0fcf78121bb507b)
- Update index.html [`251b7c4`](https://github.com/toorshia/justgage/commit/251b7c483e1e63d14d6e084660fa0dae067cc20a)
- fix: Human numbers example range [`59c0945`](https://github.com/toorshia/justgage/commit/59c09457729b30336ebe2f7d1c1c00178f5488b8)

#### [v1.3.3](https://github.com/toorshia/justgage/compare/v1.3.2...v1.3.3)

Expand Down
14 changes: 7 additions & 7 deletions dist/justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1031,8 +1031,8 @@
function updateProp(obj, option, val) {
switch (option) {
case 'valueFontColor':
if (!isHexNumber(val)) {
console.log('* justgage: the updated valueFontColor value is not a valid hex value');
if (!isHexColor(val)) {
console.log('* justgage: the updated valueFontColor value is not a valid hex color');
break;
}

Expand All @@ -1042,8 +1042,8 @@
break;

case 'labelFontColor':
if (!isHexNumber(val)) {
console.log('* justgage: the updated labelFontColor value is not a valid hex value');
if (!isHexColor(val)) {
console.log('* justgage: the updated labelFontColor value is not a valid hex color');
break;
}

Expand Down Expand Up @@ -1268,13 +1268,13 @@
}

/**
* Validate if hex value
* Validate if html hex color presentation
*
* @param val
* @returns {*|boolean}
*/
function isHexNumber(val) {
var regExp = /^[-+]?[0-9A-Fa-f]+\.?[0-9A-Fa-f]*?$/;
function isHexColor(val) {
var regExp = /^#([0-9A-Fa-f]{3}){1,2}$/;
return (typeof val === 'string' && regExp.test(val));
}

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.

14 changes: 7 additions & 7 deletions docs/justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -1031,8 +1031,8 @@
function updateProp(obj, option, val) {
switch (option) {
case 'valueFontColor':
if (!isHexNumber(val)) {
console.log('* justgage: the updated valueFontColor value is not a valid hex value');
if (!isHexColor(val)) {
console.log('* justgage: the updated valueFontColor value is not a valid hex color');
break;
}

Expand All @@ -1042,8 +1042,8 @@
break;

case 'labelFontColor':
if (!isHexNumber(val)) {
console.log('* justgage: the updated labelFontColor value is not a valid hex value');
if (!isHexColor(val)) {
console.log('* justgage: the updated labelFontColor value is not a valid hex color');
break;
}

Expand Down Expand Up @@ -1268,13 +1268,13 @@
}

/**
* Validate if hex value
* Validate if html hex color presentation
*
* @param val
* @returns {*|boolean}
*/
function isHexNumber(val) {
var regExp = /^[-+]?[0-9A-Fa-f]+\.?[0-9A-Fa-f]*?$/;
function isHexColor(val) {
var regExp = /^#([0-9A-Fa-f]{3}){1,2}$/;
return (typeof val === 'string' && regExp.test(val));
}

Expand Down
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.3.4",
"version": "1.3.5",
"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 70df415

Please sign in to comment.