Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v0.9.1

  * Fixed minor drawing error of pointer type 4
  * Added pointer type14
  * Optimised conicalGradient to calculate a step size relevant to gauge size
  * Code size reduction exercise continues
  • Loading branch information...
commit 926dfcfd85c4d1b4c3d0c74a5f1e636bba0e7155 1 parent 611e988
Mark Crossley mcrossley authored
13 ChangeLog.txt
View
@@ -1,5 +1,12 @@
Main Changes
+v0.9.1
+> General Changes
+ * Fixed minor drawing error of pointer type 4
+ * Added pointer type14
+ * Optimised conicalGradient to calculate a step size relevant to gauge size
+ * Code size reduction exercise continues
+
v0.9.0
> General Changes
* Added section handling to DisplaySingle
@@ -10,6 +17,8 @@ v0.8.9
* Added TrafficLight component and LightBulb component to the lib.
* Also added two html demo pages for the two new components to the repo
+
+-------------------------
v0.8.8
> General Changes
* Added tickLabelOrientation to Radial and RadialBargraph initialisation parameters. Accepts
@@ -64,10 +73,10 @@ v0.8.3
> LinearBargraph
* Added section parameter handling, any defined sections will colour the bargraph
* setSection() method now functional
-
+
> General Changes
* Added some value checking to the commonly called setValue() type methods to avoid
- unecessary component redraws
+ unnecessary component redraws
-------------------------
v0.8.2
24 demoExtras.html
View
@@ -70,6 +70,7 @@
<option value="TYPE11">Type11</option>
<option value="TYPE12">Type12</option>
<option value="TYPE13">Type13</option>
+ <option value="TYPE14">Type14</option>
</select>
<select id="comboLcdColor" onchange="setLcdColor(this)">
<option selected="selected" value="">LCD color</option>
@@ -104,7 +105,7 @@
<option value="ORANGE_LED">Orange</option>
<option value="YELLOW_LED">Yellow</option>
<option value="CYAN_LED">Cyan</option>
- <option value="MAGENTA_LED">Magenta</option>
+ <option value="MAGENTA_LED">Magenta</option>
</select>
<select id="comboForeground" onchange="setForegroundType(this)">
<option selected="selected" value="">Foreground</option>
@@ -178,7 +179,7 @@
</tbody></table>
-<script type="text/javascript">
+<script>
var scroll = false;
var radial1;
var radial2;
@@ -191,7 +192,7 @@
var clock1;
var battery1;
var altimete1;
-
+
function init() {
// Initialzing gauge
radial1 = new steelseries.Compass('canvasRadial1', {
@@ -676,6 +677,10 @@
radial1.setPointerType(steelseries.PointerType.TYPE13);
radial2.setPointerType(steelseries.PointerType.TYPE13);
break;
+ case "TYPE14":
+ radial1.setPointerType(steelseries.PointerType.TYPE14);
+ radial2.setPointerType(steelseries.PointerType.TYPE14);
+ break;
}
}
@@ -821,7 +826,7 @@
multi1.setLcdColor(steelseries.LcdColor.BLACKRED);
altimeter1.setLcdColor(steelseries.LcdColor.BLACKRED);
break;
- case "DARKGREEN":
+ case "DARKGREEN":
radial2.setLcdColor(steelseries.LcdColor.DARKGREEN);
single1.setLcdColor(steelseries.LcdColor.DARKGREEN);
single2.setLcdColor(steelseries.LcdColor.DARKGREEN);
@@ -863,7 +868,7 @@
break;
}
}
-
+
function setPointerAvg(sel) {
switch(sel.options[sel.selectedIndex].value) {
case "TYPE1":
@@ -905,9 +910,12 @@
case "TYPE13":
radial2.setPointerTypeAverage(steelseries.PointerType.TYPE13);
break;
+ case "TYPE14":
+ radial2.setPointerTypeAverage(steelseries.PointerType.TYPE14);
+ break;
}
}
-
+
function setPointerColorAvg(sel) {
switch(sel.options[sel.selectedIndex].value) {
case "RED":
@@ -953,6 +961,6 @@
}
</script>
-<script type="text/javascript" src="tween-min.js"></script>
-<script type="text/javascript" src="steelseries-min.js"></script>
+<script src="tween-min.js"></script>
+<script src="steelseries-min.js"></script>
</body></html>
6 demoLcdSections.html
View
@@ -43,7 +43,7 @@
</tbody></table>
-<script type="text/javascript">
+<script>
var scroll = false;
var single1;
@@ -140,6 +140,6 @@
}
</script>
-<script type="text/javascript" src="tween-min.js"></script>
-<script type="text/javascript" src="steelseries.js"></script>
+<script src="tween-min.js"></script>
+<script src="steelseries-min.js"></script>
</body></html>
6 demoLightBulb.html
View
@@ -3,10 +3,10 @@
<head>
<meta charset='utf-8' />
<title>LightBulb</title>
- <script type='text/javascript' src='steelseries.js'></script>
- <script type='text/javascript' src='tween.js'></script>
+ <script src='steelseries.js'></script>
+ <script src='tween.js'></script>
- <script type='application/javascript'>
+ <script>
var lightBulb;
function init()
6 demoLinear.html
View
@@ -125,7 +125,7 @@
</tbody></table>
-<script type="text/javascript">
+<script>
var linear1;
var linear2;
var linear3;
@@ -769,6 +769,6 @@
}
}
</script>
-<script type="text/javascript" src="tween-min.js"></script>
-<script type="text/javascript" src="steelseries-min.js"></script>
+<script src="tween-min.js"></script>
+<script src="steelseries-min.js"></script>
</body></html>
19 demoRadial.html
View
@@ -70,6 +70,7 @@
<option value="TYPE11">Type11</option>
<option value="TYPE12">Type12</option>
<option value="TYPE13">Type13</option>
+ <option value="TYPE14">Type14</option>
</select>
<select id="comboLcdColor" onchange="setLcdColor(this)">
<option selected="selected" value="">LCD color</option>
@@ -103,7 +104,7 @@
<option value="ORANGE_LED">Orange</option>
<option value="YELLOW_LED">Yellow</option>
<option value="CYAN_LED">Cyan</option>
- <option value="MAGENTA_LED">Magenta</option>
+ <option value="MAGENTA_LED">Magenta</option>
</select>
<select id="comboForeground" onchange="setForegroundType(this)">
<option selected="selected" value="">Foreground</option>
@@ -140,7 +141,7 @@
</tbody></table>
-<script type="text/javascript">
+<script>
var radial1;
var radial2;
var radial3;
@@ -936,6 +937,14 @@
vertical1.setPointerType(steelseries.PointerType.TYPE13);
vertical2.setPointerType(steelseries.PointerType.TYPE13);
break;
+ case "TYPE14":
+ radial1.setPointerType(steelseries.PointerType.TYPE14);
+ radial2.setPointerType(steelseries.PointerType.TYPE14);
+ radial3.setPointerType(steelseries.PointerType.TYPE14);
+ radial4.setPointerType(steelseries.PointerType.TYPE14);
+ vertical1.setPointerType(steelseries.PointerType.TYPE14);
+ vertical2.setPointerType(steelseries.PointerType.TYPE14);
+ break;
}
}
@@ -1141,7 +1150,7 @@
radial7.setLcdColor(steelseries.LcdColor.BLACKRED);
radial8.setLcdColor(steelseries.LcdColor.BLACKRED);
break;
- case "DARKGREEN":
+ case "DARKGREEN":
radial1.setLcdColor(steelseries.LcdColor.DARKGREEN);
radial2.setLcdColor(steelseries.LcdColor.DARKGREEN);
radial3.setLcdColor(steelseries.LcdColor.DARKGREEN);
@@ -1243,6 +1252,6 @@
}
}
</script>
-<script type="text/javascript" src="tween-min.js"></script>
-<script type="text/javascript" src="steelseries-min.js"></script>
+<script src="tween-min.js"></script>
+<script src="steelseries-min.js"></script>
</body></html>
6 demoStopWatch.html
View
@@ -77,7 +77,7 @@
</tbody></table>
-<script type="text/javascript">
+<script>
var radial1;
@@ -238,6 +238,6 @@
}
</script>
-<script type="text/javascript" src="tween-min.js"></script>
-<script type="text/javascript" src="steelseries-min.js"></script>
+<script src="tween-min.js"></script>
+<script src="steelseries-min.js"></script>
</body></html>
5 demoTrafficLight.html
View
@@ -3,10 +3,9 @@
<head>
<meta charset='utf-8' />
<title>TrafficLight</title>
- <script type='text/javascript' src='steelseries.js'></script>
- <script type='text/javascript' src='tween.js'></script>
+ <script src='steelseries-min.js'></script>
- <script type='application/javascript'>
+ <script>
var trafficLight;
function init()
4 steelseries-min.js
View
2 additions, 2 deletions not shown
2,430 steelseries.js
View
1,229 additions, 1,201 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.