diff --git a/lib/check-connector-accessible-orientation.ts b/lib/check-connector-accessible-orientation.ts index 0bbcb18..0637a7e 100644 --- a/lib/check-connector-accessible-orientation.ts +++ b/lib/check-connector-accessible-orientation.ts @@ -17,11 +17,12 @@ function getFacingDirectionFromInsertionDirection( return "x-" case "from_right": return "x+" - case "from_front": + case "from_top": return "y+" - case "from_back": + case "from_bottom": return "y-" case "from_above": + case "from_below": return null default: return null diff --git a/package.json b/package.json index a022eb1..d826ff8 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@types/bun": "^1.2.8", "@types/debug": "^4.1.12", "bun-match-svg": "^0.0.11", - "circuit-json": "^0.0.457", + "circuit-json": "^0.0.461", "circuit-json-to-connectivity-map": "^0.0.27", "circuit-to-svg": "^0.0.388", "debug": "^4.3.5", diff --git a/tests/lib/check-connector-accessible-orientation.test.tsx b/tests/lib/check-connector-accessible-orientation.test.tsx index f688acc..1584225 100644 --- a/tests/lib/check-connector-accessible-orientation.test.tsx +++ b/tests/lib/check-connector-accessible-orientation.test.tsx @@ -194,7 +194,7 @@ test("connector orientation check uses insertion_direction when present", () => height: 4, layer: "top", rotation: 0, - insertion_direction: "from_back", + insertion_direction: "from_bottom", obstructs_within_bounds: true, }, ]