tentone 5 years ago
parent
commit
c79a940fe8
3 changed files with 31 additions and 32 deletions
  1. 31 0
      source/objects/node/NodeHook.js
  2. 0 16
      source/objects/node/NodeInput.js
  3. 0 16
      source/objects/node/NodeOutput.js

+ 31 - 0
source/objects/node/NodeHook.js

@@ -0,0 +1,31 @@
+import {Circle} from "../Circle";
+import {Node} from "./Node";
+
+/**
+ * Represents a node input point. Is attached to the node element and represented visually.
+ *
+ * @class NodeInput
+ */
+function NodeInput(node)
+{
+	Circle.call(this);
+
+	/**
+	 * Direction of the node hook.
+	 */
+	this.direction = NodeInput.INPUT;
+	
+	/**
+	 * Node where this input element in attached.
+	 *
+	 * @type {Node}
+	 */
+	this.node = null;
+}
+
+NodeInput.INPUT = 1;
+NodeInput.OUTPUT = 2;
+
+NodeInput.prototype = Object.create(Circle.prototype);
+
+export {NodeInput};

+ 0 - 16
source/objects/node/NodeInput.js

@@ -1,16 +0,0 @@
-import {Circle} from "../Circle";
-
-/**
- * TODO
- *
- * @class NodeInput
- */
-function NodeInput()
-{
-	Circle.call(this);
-
-}
-
-NodeInput.prototype = Object.create(Circle.prototype);
-
-export {NodeInput};

+ 0 - 16
source/objects/node/NodeOutput.js

@@ -1,16 +0,0 @@
-import {Circle} from "../Circle";
-
-/**
- * TODO
- *
- * @class NodeInput
- */
-function NodeOutput()
-{
-	Circle.call(this);
-
-}
-
-NodeOutput.prototype = Object.create(Circle.prototype);
-
-export {NodeOutput};