mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 10:46:06 +10:00
Add initial Pico-8 cartridges for testing
- Created test_cart.p8 with basic drawing functionality and a print statement. - Created test_unix.p8 with a simple initialization function.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { BlueprintNode } from "./BlueprintNode.js";
|
||||
import { Connection } from "./Connection.js";
|
||||
import { areTypesCompatible } from "../types/TypeRegistry.js";
|
||||
|
||||
/** @typedef {import('./BlueprintNode.js').BlueprintNodeInit} BlueprintNodeInit */
|
||||
/** @typedef {import('./BlueprintNode.js').PinDescriptor} PinDescriptor */
|
||||
@@ -321,11 +322,7 @@ export class NodeGraph extends EventTarget {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
toPin.kind !== "any" &&
|
||||
fromPin.kind !== "any" &&
|
||||
fromPin.kind !== toPin.kind
|
||||
) {
|
||||
if (!areTypesCompatible(fromPin.kind, toPin.kind)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user