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:** * **Notable Fixes:**
* fixed a costume fitting issue, thanks, Joan! * 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 ### 2020-11-15
* new dev version * new dev version
* objects: fixed costume fitting, thanks, Joan! * objects: fixed costume fitting, thanks, Joan!
* objects: fixed keyboard formula input for "power of" * objects: fixed keyboard formula input for "power of"
* objects: fixed keyboard formula input for "neg"
## 6.3.2 ## 6.3.2
* **Notable Changes:** * **Notable Changes:**

Wyświetl plik

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