Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #106 from gmfc/canvas-fix
Browse files Browse the repository at this point in the history
canvas fix
  • Loading branch information
gmfc committed Nov 3, 2016
2 parents d10579d + 3fdc8d9 commit d550b7f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pfnwj5",
"version": "0.4.0",
"version": "0.4.1",
"description": "plataforma de força.",
"main": "./ui/index.html",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/DebugController.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function coleta(dados) {
var linhas = acc.split('#');
acc = linhas.pop();
linhas.forEach(function(part) {
$('#raw').text(part);
var result = calc.RTCOP(part);
btConnected(Math.floor(1 / (result.t / 1000)) + ' Hz');
update(result.x, result.y, part);
Expand Down
1 change: 1 addition & 0 deletions src/RealTimeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function btERR(err) {
*/
function update(tgx, tgy) {
// fade effect
tgy *= -1;
ctx.globalAlpha = 0.02;
ctx.fillStyle = '#f4f4f4';
ctx.fillRect(0, 0, 738, 668);
Expand Down
1 change: 1 addition & 0 deletions src/ReportController.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ function btERR(err) {
* @returns {null}
*/
function addPoint(tgx, tgy) {
tgy *= -1;
ctx.globalAlpha = 1;
ctx.fillStyle = '#000000';
ctx.beginPath();
Expand Down
1 change: 1 addition & 0 deletions ui/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
</tr>
</tbody>
</table>
<h4 id="raw"></h4>
<div id="ports">
</div>
</div>
Expand Down

0 comments on commit d550b7f

Please sign in to comment.