made a nicer screenshot
This commit is contained in:
parent
c9021ce1b1
commit
971d3b8db8
3 changed files with 2 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
* and a repl: Read–Eval–Print Loop, where Print is doing operations on vectors and matrices in a graphic environment
|
||||
* written in vanilla javascript (ES6)
|
||||
|
||||
<img src="screenshot-0.png" with="250"></img>
|
||||
<img src="screenshot.png" with="250"></img>
|
||||
|
||||
The repl has the following syntax (It's work in progress, new capabilities will be added)
|
||||
* arithmetic expressions:
|
||||
|
|
|
|||
BIN
screenshot-0.png
BIN
screenshot-0.png
Binary file not shown.
|
Before Width: | Height: | Size: 153 KiB |
|
|
@ -5,7 +5,6 @@
|
|||
const state = {};
|
||||
const command_input_element = document.getElementById('command_input');
|
||||
const command_history_element = document.getElementById('command_history');
|
||||
const bottom = document.getElementById('bottom');
|
||||
command_input_element.value = '';
|
||||
let command_history = [];
|
||||
let command_history_index = 0;
|
||||
|
|
@ -150,7 +149,7 @@
|
|||
vector: (args) => add_vector({x0: args[0], y0: args[1], x: args[2], y: args[3]}),
|
||||
remove: (args) => {
|
||||
if (args[0].hasOwnProperty('binding')) {
|
||||
delete this.state[args[0].binding];
|
||||
delete state[args[0].binding];
|
||||
return remove_vector(args[0].object); // by binding value
|
||||
} else {
|
||||
return remove_vector(args[0]); // by index (@...)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue