Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
New logo! | Small select color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pierosavi committed Mar 19, 2019
1 parent 887566b commit 858c591
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 17 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Allows a user to superimpose measurement displays ontop of picture.

![PictureIt](https://raw.githubusercontent.com/pierosavi/grafana-pictureit/master/src/img/pictureit_example.png?raw=true)

### PictureIt

1. Enter a URL for your background image.
Expand Down
2 changes: 2 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Allows a user to superimpose measurement displays ontop of picture.

![PictureIt](https://raw.githubusercontent.com/pierosavi/grafana-pictureit/master/src/img/pictureit_example.png?raw=true)

### PictureIt

1. Enter a URL for your background image.
Expand Down
Binary file removed dist/img/bridge_strains.png
Binary file not shown.
Binary file added dist/img/pictureit_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dist/img/pictureit_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dist/img/settings.png
Binary file not shown.
7 changes: 1 addition & 6 deletions dist/pictureit_ctrl.js

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

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

Large diffs are not rendered by default.

Binary file removed src/img/bridge_strains.png
Binary file not shown.
Binary file added src/img/pictureit_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/pictureit_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/img/settings.png
Binary file not shown.
13 changes: 3 additions & 10 deletions src/pictureit_ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,9 @@ export class PictureItCtrl extends MetricsPanelCtrl {
}

addSensor() {
if (this.panel.sensors.length === 0) {
this.panel.sensors.push(
new Sensor('A', 50, 25, '%.2f', 'rgba(64,64,64,1.000)', 'rgba(255,255,255,1.000)', 14, true)
);
} else {
var lastSensor = this.panel.sensors[this.panel.sensors.length - 1];
this.panel.sensors.push(
new Sensor(lastSensor.metric, 50, 25, lastSensor.format, lastSensor.bgColor, lastSensor.color, lastSensor.size, true)
);
}
this.panel.sensors.push(
new Sensor('A', 50, 25, '%.2f', 'rgba(64,64,64,1.000)', 'rgba(255,255,255,1.000)', 14, true)
);
}

moveSensorUp(index) {
Expand Down

0 comments on commit 858c591

Please sign in to comment.