0.4.4: Fixed selection bug and linking bug
This commit is contained in:
parent
bb91f85cef
commit
a1e9d1200c
@ -12,6 +12,11 @@ To be decided, but at this moment this code is open source and free to use for n
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 0.4.4
|
||||||
|
|
||||||
|
* Fixed a delinking bug
|
||||||
|
* Fixed a bug where selection only worked in certain directions
|
||||||
|
|
||||||
### 0.4.3
|
### 0.4.3
|
||||||
|
|
||||||
* There is now multi-selection, including movement, deleting, disconnecting, etc.
|
* There is now multi-selection, including movement, deleting, disconnecting, etc.
|
||||||
|
|||||||
@ -302,8 +302,8 @@ class Element extends CanvasTools {
|
|||||||
if (this.OutputConnections[a].Element == element && this.OutputConnections[a].Input == input) {
|
if (this.OutputConnections[a].Element == element && this.OutputConnections[a].Input == input) {
|
||||||
// Already existing link, we will remove it instead
|
// Already existing link, we will remove it instead
|
||||||
this.LogicEngine.RecursionCount = 0;
|
this.LogicEngine.RecursionCount = 0;
|
||||||
element.setInput(input,false);
|
|
||||||
this.OutputConnections.splice(a,1);
|
this.OutputConnections.splice(a,1);
|
||||||
|
element.setInput(input,false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -148,7 +148,10 @@ class LogicEngine {
|
|||||||
this.MultiSelectStart.InProgress = false;
|
this.MultiSelectStart.InProgress = false;
|
||||||
let cmStartPos = {x: this.MultiSelectStart.x, y: this.MultiSelectStart.y};
|
let cmStartPos = {x: this.MultiSelectStart.x, y: this.MultiSelectStart.y};
|
||||||
let cmEndPos = this.getCanvasMousePos(mousePos);
|
let cmEndPos = this.getCanvasMousePos(mousePos);
|
||||||
this.ActiveContainer.SelectWithin(cmStartPos.x,cmStartPos.y,cmEndPos.x,cmEndPos.y);
|
this.ActiveContainer.SelectWithin((cmStartPos.x>cmEndPos.x) ? cmEndPos.x : cmStartPos.x,
|
||||||
|
(cmStartPos.y>cmEndPos.y) ? cmEndPos.y : cmStartPos.y,
|
||||||
|
(cmStartPos.x>cmEndPos.x) ? cmStartPos.x : cmEndPos.x,
|
||||||
|
(cmStartPos.y>cmEndPos.y) ? cmStartPos.y : cmEndPos.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.ActiveContainer.Selected?.length > 0) {
|
if (this.ActiveContainer.Selected?.length > 0) {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
MatCat BrowserLogic Simulator
|
MatCat BrowserLogic Simulator
|
||||||
*/
|
*/
|
||||||
|
|
||||||
let Version = "0.4.3";
|
let Version = "0.4.4";
|
||||||
let spanVersion = document.getElementById("version");
|
let spanVersion = document.getElementById("version");
|
||||||
spanVersion.innerText = Version;
|
spanVersion.innerText = Version;
|
||||||
// get the canvas and get the engine object going
|
// get the canvas and get the engine object going
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user