From abf60045c085a46fe80ba074cfd0670ac67a7677 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Thu, 30 Mar 2017 00:54:00 -0600 Subject: Remove unnecessary log --- js/lib/heart_renderer.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/lib/heart_renderer.js b/js/lib/heart_renderer.js index 19ff137..356ed72 100644 --- a/js/lib/heart_renderer.js +++ b/js/lib/heart_renderer.js @@ -247,8 +247,6 @@ const green = this._updateColorComponent('green', delta); const blue = this._updateColorComponent('blue', delta); - console.log(red, green, blue); - this._currentColor.red = red; this._currentColor.green = green; this._currentColor.blue = blue; -- cgit From 3cd9faee13538f298d5a80232efa7ae08ae73390 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Thu, 30 Mar 2017 00:54:44 -0600 Subject: Update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d7598..ccf7533 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.2] - 2017-02-19 +### Changed +- Remove unnecessary console log + ## [1.1.1] - 2017-02-19 ### Changed - Set encoding and description on index @@ -33,3 +37,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/). [1.0.1]: https://github.com/rbdr/heart/compare/1.0.0...1.0.1 [1.1.0]: https://github.com/rbdr/heart/compare/1.0.1...1.1.0 [1.1.1]: https://github.com/rbdr/heart/compare/1.1.0...1.1.1 +[1.1.2]: https://github.com/rbdr/heart/compare/1.1.1...1.1.2 -- cgit From fe45267ff960de60ec8a057ab67195fcc7b895ab Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Thu, 30 Mar 2017 00:54:55 -0600 Subject: Update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4056686..a924888 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "heart", - "version": "1.1.1", + "version": "1.1.2", "description": "The heart", "main": "index.js", "scripts": { -- cgit From 31d618746e16df973fc6f752b1a92707bd617f84 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Thu, 30 Mar 2017 00:57:34 -0600 Subject: Fix linter warnings --- js/lib/heart_renderer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/lib/heart_renderer.js b/js/lib/heart_renderer.js index 356ed72..4680fb9 100644 --- a/js/lib/heart_renderer.js +++ b/js/lib/heart_renderer.js @@ -77,7 +77,6 @@ this._following = null; // The status of mouse follow. this._center = null; // The actual center this._targetHeartSize = this.heartSize; - this._ this._targetCenter = { x: 0, y: 0 @@ -254,6 +253,7 @@ // Updates a single color component. _updateColorComponent(component, delta) { + let color = Math.round(this._currentColor[component] + (delta * this._colorSpeed[component] * this._colorDirection[component])); if (color >= kColorIteratorLimit) { this._colorDirection[component] = -1; @@ -367,11 +367,13 @@ // Apply a class to show the cursor. _showCursor() { + this.canvas.classList.add('mouse-moving'); } // Remove class to hide the cursor. _hideCursor() { + this.canvas.classList.remove('mouse-moving'); } }; -- cgit