|
@@ -375,6 +375,13 @@ CertainTrustHTI.prototype._onClick = function(e, clkcanvas) {
|
|
|
var cy = ctBounding.top;
|
|
|
var newT = Math.max(0, Math.min(1, (x - cx) / clkcanvas.width));
|
|
|
var newC = Math.max(0, Math.min(1, 1 - ((y - cy) / clkcanvas.height)));
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(newC == 1){
|
|
|
+ newC = 0.999;
|
|
|
+ }
|
|
|
+
|
|
|
cte.certainTrust.setTC(newT, newC);
|
|
|
};
|
|
|
|
|
@@ -405,6 +412,15 @@ CertainTrustHTI.prototype._updateInput = function(id) {
|
|
|
} else {
|
|
|
var newT = this._normalizeInput(document.getElementById(cid + '-t').value);
|
|
|
var newC = this._normalizeInput(document.getElementById(cid + '-c').value);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(newC == 1){
|
|
|
+ newC = 0.999;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
this.certainTrust.setTC(
|
|
|
(isNaN(newT)) ? this.certainTrust.getT() : newT,
|
|
|
(isNaN(newC)) ? this.certainTrust.getC() : newC
|