@logic-pad/core 0.11.3 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,6 +126,14 @@ class DirectionLinkerSymbol extends Symbol {
126
126
  color1: baseColor1,
127
127
  color2: baseColor2,
128
128
  };
129
+ const newColor1 = getColor(newArrTurtle.pos1, grid);
130
+ const newColor2 = getColor(newArrTurtle.pos2, grid);
131
+ if (newColor1 !== baseColor1 &&
132
+ newColor2 !== baseColor2 &&
133
+ newColor1 !== Color.Gray &&
134
+ newColor2 !== Color.Gray) {
135
+ continue;
136
+ }
129
137
  if (checkedCouples.some(({ pos1, pos2 }) => pos1.x === newArrTurtle.pos1.x &&
130
138
  pos1.y === newArrTurtle.pos1.y &&
131
139
  pos2.x === newArrTurtle.pos2.x &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logic-pad/core",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",