fixed keyboard formula input for "neg"

pull/95/head
jmoenig 2020-11-15 19:25:46 +01:00
rodzic 9f208d0e51
commit a7d6bd8ef3
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -4,12 +4,13 @@
* **Notable Fixes:**
* fixed a costume fitting issue, thanks, Joan!
* fixed keyboard formula input for "power of"
* fixed keyboard formula input for "power of" and "neg"
### 2020-11-15
* new dev version
* objects: fixed costume fitting, thanks, Joan!
* objects: fixed keyboard formula input for "power of"
* objects: fixed keyboard formula input for "neg"
## 6.3.2
* **Notable Changes:**

Wyświetl plik

@ -3398,11 +3398,12 @@ SpriteMorph.prototype.reporterize = function (expressionString) {
round: 'reportRound',
not: 'reportNot'
};
monads = ['abs', 'ceiling', 'floor', 'sqrt', 'sin', 'cos', 'tan',
'asin', 'acos', 'atan', 'ln', 'log', 'round', 'not'];
monads = ['abs', 'neg', 'ceiling', 'floor', 'sqrt', 'sin', 'cos',
'tan', 'asin', 'acos', 'atan', 'ln', 'log', 'round', 'not'];
alias = {
ceil: 'ceiling',
'!' : 'not'
'!' : 'not',
'-' : 'neg'
};
monads.concat(['true', 'false']).forEach(word =>
reverseDict[localize(word).toLowerCase()] = word