@logic-pad/core 0.15.2 → 0.15.3
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.
|
@@ -197,12 +197,20 @@ class DirectionLinkerSymbol extends Symbol {
|
|
|
197
197
|
makeTurtle({ x: x - 0.5, y: y + 0.5 }, { x: x + 0.5, y: y + 0.5 }, grid),
|
|
198
198
|
];
|
|
199
199
|
}
|
|
200
|
-
else if (
|
|
201
|
-
this.linkedDirections[Direction.Left] === Direction.Up)
|
|
202
|
-
(this.linkedDirections[Direction.Up] === Direction.Right &&
|
|
203
|
-
this.linkedDirections[Direction.Right] === Direction.Up)) {
|
|
200
|
+
else if (this.linkedDirections[Direction.Up] === Direction.Left &&
|
|
201
|
+
this.linkedDirections[Direction.Left] === Direction.Up) {
|
|
204
202
|
return [
|
|
205
203
|
makeTurtle({ x: x - 0.5, y: y - 0.5 }, { x: x - 0.5, y: y - 0.5 }, grid),
|
|
204
|
+
makeTurtle({ x: x - 0.5, y: y + 0.5 }, { x: x + 0.5, y: y - 0.5 }, grid),
|
|
205
|
+
makeTurtle({ x: x + 0.5, y: y + 0.5 }, { x: x + 0.5, y: y + 0.5 }, grid),
|
|
206
|
+
];
|
|
207
|
+
}
|
|
208
|
+
else if (this.linkedDirections[Direction.Up] === Direction.Right &&
|
|
209
|
+
this.linkedDirections[Direction.Right] === Direction.Up) {
|
|
210
|
+
return [
|
|
211
|
+
makeTurtle({ x: x + 0.5, y: y - 0.5 }, { x: x + 0.5, y: y - 0.5 }, grid),
|
|
212
|
+
makeTurtle({ x: x - 0.5, y: y - 0.5 }, { x: x + 0.5, y: y + 0.5 }, grid),
|
|
213
|
+
makeTurtle({ x: x - 0.5, y: y + 0.5 }, { x: x - 0.5, y: y + 0.5 }, grid),
|
|
206
214
|
];
|
|
207
215
|
}
|
|
208
216
|
return [
|