From 6538ed94c38cd6a7e3c8b835cde486b28c08ee09 Mon Sep 17 00:00:00 2001 From: newcat Date: Mon, 22 Jul 2019 01:02:27 +0200 Subject: [PATCH] Documentation update --- .travis.yml | 1 + docs/api/core.json | 18909 ++++++++++------ docs/apiPlugin.js | 2 +- docs/contributing.md | 33 + docs/custom-nodes.md | 4 +- docs/styling.md | 2 +- package.json | 1 + packages/baklavajs-core/package.json | 3 +- packages/baklavajs-plugin-engine/package.json | 3 +- .../package.json | 3 +- yarn.lock | 125 +- 11 files changed, 12432 insertions(+), 6654 deletions(-) create mode 100644 docs/contributing.md diff --git a/.travis.yml b/.travis.yml index 7b636706..43b5cd29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,7 @@ jobs: if: branch = master AND commit_message =~ /Publish/ script: - lerna run build + - lerna run docs before_deploy: - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null deploy: diff --git a/docs/api/core.json b/docs/api/core.json index 69190d84..2e405943 100644 --- a/docs/api/core.json +++ b/docs/api/core.json @@ -1,4133 +1,4687 @@ { "id": 0, - "name": "Reference - BaklavaJS", + "name": "@baklavajs/core", "kind": 0, "flags": {}, "children": [ { - "id": 209, - "name": "TemporaryConnectionState", - "kind": 4, - "kindString": "Enumeration", + "id": 524, + "name": "\"src/connection\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/connection.ts", "children": [ { - "id": 211, - "name": "ALLOWED", - "kind": 16, - "kindString": "Enumeration member", + "id": 525, + "name": "Connection", + "kind": 128, + "kindString": "Class", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "connection.ts", - "line": 7, - "character": 11 - } - ] - }, - { - "id": 212, - "name": "FORBIDDEN", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "id": 533, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 534, + "name": "new Connection", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 535, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + }, + { + "id": 536, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + } + ], + "type": { + "type": "reference", + "name": "Connection", + "id": 525 + } + } + ], + "sources": [ + { + "fileName": "src/connection.ts", + "line": 16, + "character": 6 + } + ] + }, { - "fileName": "connection.ts", - "line": 8, - "character": 13 - } - ] - }, - { - "id": 210, - "name": "NONE", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "id": 530, + "name": "destructed", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/connection.ts", + "line": 12, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false", + "implementationOf": { + "type": "reference", + "name": "ITransferConnection.destructed", + "id": 255 + } + }, { - "fileName": "connection.ts", - "line": 6, - "character": 8 - } - ] - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 211, - 212, - 210 - ] - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 5, - "character": 36 - } - ] - }, - { - "id": 1, - "name": "BaklavaEvent", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Main event class for Baklava" - }, - "typeParameter": [ - { - "id": 2, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "children": [ - { - "id": 3, - "name": "listeners", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true - }, - "sources": [ + "id": 527, + "name": "from", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/connection.ts", + "line": 9, + "character": 15 + } + ], + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + }, + "implementationOf": { + "type": "reference", + "name": "ITransferConnection.from", + "id": 257 + } + }, { - "fileName": "events/eventEmitter.ts", - "line": 8, - "character": 23 - } - ], - "type": { - "type": "reference", - "name": "Map", - "typeArguments": [ - { + "id": 526, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/connection.ts", + "line": 8, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "implementationOf": { "type": "reference", - "name": "TokenType", - "id": 55 + "name": "ITransferConnection.id", + "id": 256 + } + }, + { + "id": 529, + "name": "isInDanger", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true }, - { + "sources": [ + { + "fileName": "src/connection.ts", + "line": 11, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false", + "implementationOf": { "type": "reference", - "name": "Listener", - "id": 56, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] + "name": "ITransferConnection.isInDanger", + "id": 254 } - ] - }, - "defaultValue": " new Map()" - }, - { - "id": 4, - "name": "addListener", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 5, - "name": "addListener", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribe to the event" + "id": 528, + "name": "to", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "sources": [ { - "id": 6, - "name": "token", - "kind": 32768, - "kindString": "Parameter", + "fileName": "src/connection.ts", + "line": 10, + "character": 13 + } + ], + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + }, + "implementationOf": { + "type": "reference", + "name": "ITransferConnection.to", + "id": 258 + } + }, + { + "id": 537, + "name": "destruct", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 538, + "name": "destruct", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "text": "A token that can be used to unsubscribe from the event later on" - }, "type": { - "type": "reference", - "name": "TokenType", - "id": 55 + "type": "intrinsic", + "name": "void" } - }, + } + ], + "sources": [ { - "id": 7, - "name": "listener", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A callback that will be invoked when the event occurs\n" + "fileName": "src/connection.ts", + "line": 33, + "character": 19 + } + ] + }, + { + "id": 531, + "name": "events", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isPublic": true, + "isExported": true + }, + "children": [ + { + "id": 532, + "name": "destruct", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true }, + "sources": [ + { + "fileName": "src/connection.ts", + "line": 15, + "character": 16 + } + ], "type": { "type": "reference", - "name": "Listener", - "id": 56, + "name": "BaklavaEvent", + "id": 261, "typeArguments": [ { - "type": "typeParameter", - "name": "T" + "type": "intrinsic", + "name": "void" } ] - } + }, + "defaultValue": " new BaklavaEvent()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 532 + ] + } + ], + "sources": [ + { + "fileName": "src/connection.ts", + "line": 14, + "character": 17 } ], "type": { "type": "intrinsic", - "name": "void" + "name": "object" } } ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 533 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 530, + 527, + 526, + 529, + 528 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 537 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 531 + ] + } + ], "sources": [ { - "fileName": "events/eventEmitter.ts", - "line": 15, - "character": 22 + "fileName": "src/connection.ts", + "line": 6, + "character": 23 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "ITransferConnection", + "id": 253 } ] }, { - "id": 11, - "name": "emit", - "kind": 2048, - "kindString": "Method", + "id": 539, + "name": "DummyConnection", + "kind": 128, + "kindString": "Class", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "comment": { + "shortText": "This class is used for calculation purposes only.\nIt won't alter any state of the connected nodes" + }, + "children": [ { - "id": 12, - "name": "emit", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Invoke all listeners" + "id": 543, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 13, - "name": "data", - "kind": 32768, - "kindString": "Parameter", + "id": 544, + "name": "new DummyConnection", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, - "comment": { - "text": "The data to invoke the listeners with.\n" - }, - "type": { - "type": "typeParameter", - "name": "T" + "parameters": [ + { + "id": 545, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + }, + { + "id": 546, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + } + ], + "type": { + "type": "reference", + "name": "DummyConnection", + "id": 539 } } ], + "sources": [ + { + "fileName": "src/connection.ts", + "line": 50, + "character": 29 + } + ] + }, + { + "id": 541, + "name": "from", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/connection.ts", + "line": 49, + "character": 15 + } + ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "NodeInterface", + "id": 493 + }, + "implementationOf": { + "type": "reference", + "name": "IConnection.from", + "id": 251 } - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 34, - "character": 8 - } - ] - }, - { - "id": 8, - "name": "removeListener", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 9, - "name": "removeListener", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Remove a listener" + "id": 540, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "sources": [ { - "id": 10, - "name": "token", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The token that was specified when subscribing to the listener.\nAn invalid token does not result in an error.\n" - }, - "type": { - "type": "reference", - "name": "TokenType", - "id": 55 - } + "fileName": "src/connection.ts", + "line": 48, + "character": 13 } ], "type": { "type": "intrinsic", - "name": "void" + "name": "string" + }, + "implementationOf": { + "type": "reference", + "name": "IConnection.id", + "id": 250 + } + }, + { + "id": 542, + "name": "to", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/connection.ts", + "line": 50, + "character": 13 + } + ], + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + }, + "implementationOf": { + "type": "reference", + "name": "IConnection.to", + "id": 252 } } ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 543 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 541, + 540, + 542 + ] + } + ], "sources": [ { - "fileName": "events/eventEmitter.ts", - "line": 24, - "character": 25 + "fileName": "src/connection.ts", + "line": 46, + "character": 28 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 } ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, - "children": [ - 3 - ] - }, - { - "title": "Methods", - "kind": 2048, + "title": "Classes", + "kind": 128, "children": [ - 4, - 11, - 8 + 525, + 539 ] } ], "sources": [ { - "fileName": "events/eventEmitter.ts", - "line": 6, - "character": 25 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14 + "fileName": "src/connection.ts", + "line": 1, + "character": 0 } ] }, { - "id": 223, - "name": "Connection", - "kind": 128, - "kindString": "Class", + "id": 329, + "name": "\"src/editor\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/editor.ts", "children": [ { - "id": 231, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 330, + "name": "Editor", + "kind": 128, + "kindString": "Class", "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "comment": { + "shortText": "The main model class for BaklavaJS" + }, + "children": [ { - "id": 232, - "name": "new Connection", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 233, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, + "id": 333, + "name": "_connections", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ { - "id": 234, - "name": "to", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } + "fileName": "src/editor.ts", + "line": 13, + "character": 24 } ], "type": { - "type": "reference", - "name": "Connection", - "id": 223 - } - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 35, - "character": 6 - } - ] - }, - { - "id": 228, - "name": "destructed", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 31, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false" - }, - { - "id": 225, - "name": "from", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 28, - "character": 15 - } - ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, - { - "id": 224, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 27, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 227, - "name": "isInDanger", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 30, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false" - }, - { - "id": 226, - "name": "to", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 29, - "character": 13 - } - ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, - { - "id": 235, - "name": "destruct", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 236, - "name": "destruct", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 52, - "character": 19 - } - ] - }, - { - "id": 229, - "name": "events", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "children": [ + "type": "array", + "elementType": { + "type": "reference", + "name": "Connection", + "id": 525 + } + }, + "defaultValue": " []" + }, { - "id": 230, - "name": "destruct", - "kind": 32, - "kindString": "Variable", + "id": 335, + "name": "_nodeCategories", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isPrivate": true, + "isExported": true }, "sources": [ { - "fileName": "connection.ts", - "line": 34, - "character": 16 + "fileName": "src/editor.ts", + "line": 15, + "character": 27 } ], "type": { "type": "reference", - "name": "BaklavaEvent", - "id": 1, + "name": "Map", "typeArguments": [ { "type": "intrinsic", - "name": "void" + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } } ] }, - "defaultValue": " new BaklavaEvent()" - } - ], - "groups": [ + "defaultValue": " new Map([[\"default\", []]])" + }, { - "title": "Variables", - "kind": 32, - "children": [ - 230 - ] - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 33, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 231 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 228, - 225, - 224, - 227, - 226 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 235 - ] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [ - 229 - ] - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 25, - "character": 23 - } - ] - }, - { - "id": 237, - "name": "DummyConnection", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "This class is used for calculation purposes only.\nIt won't alter any state of the connected nodes" - }, - "children": [ - { - "id": 241, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 242, - "name": "new DummyConnection", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 243, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, + "id": 334, + "name": "_nodeTypes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ { - "id": 244, - "name": "to", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } + "fileName": "src/editor.ts", + "line": 14, + "character": 22 } ], "type": { "type": "reference", - "name": "DummyConnection", - "id": 237 - } - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 69, - "character": 29 - } - ] - }, - { - "id": 239, - "name": "from", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 68, - "character": 15 - } - ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - }, - "implementationOf": { - "type": "reference", - "name": "IConnection.from", - "id": 221 - } - }, - { - "id": 238, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 67, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "implementationOf": { - "type": "reference", - "name": "IConnection.id", - "id": 220 - } - }, - { - "id": 240, - "name": "to", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 69, - "character": 13 - } - ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - }, - "implementationOf": { - "type": "reference", - "name": "IConnection.to", - "id": 222 - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 241 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 239, - 238, - 240 - ] - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 65, - "character": 28 - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "IConnection", - "id": 219 - } - ] - }, - { - "id": 250, - "name": "Editor", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "The main model class for BaklavaJS" - }, - "children": [ - { - "id": 270, - "name": "connections", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "List of all connections" - }, - "getSignature": [ - { - "id": 271, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "List of all connections" - }, - "type": { - "type": "reference", - "name": "ReadonlyArray", - "typeArguments": [ - { - "type": "reference", - "name": "Connection", - "id": 223 - } - ] - } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 46, - "character": 26 - } - ] - }, - { - "id": 275, - "name": "nodeCategories", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Mapping of nodes to node categories" - }, - "getSignature": [ - { - "id": 276, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "Mapping of nodes to node categories" - }, - "type": { - "type": "reference", - "name": "ReadonlyMap", + "name": "Map", "typeArguments": [ { "type": "intrinsic", "name": "string" }, { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } + "type": "reference", + "name": "NodeConstructor", + "id": 139 } ] - } - } - ], - "sources": [ + }, + "defaultValue": " new Map()" + }, { - "fileName": "editor.ts", - "line": 56, - "character": 29 - } - ] - }, - { - "id": 272, - "name": "nodeTypes", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "List of all registered node types" - }, - "getSignature": [ + "id": 332, + "name": "_nodes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 12, + "character": 18 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Node", + "id": 419 + } + }, + "defaultValue": " []" + }, { - "id": 273, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "List of all registered node types" + "id": 331, + "name": "_plugins", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 11, + "character": 20 + } + ], "type": { "type": "reference", - "name": "ReadonlyMap", + "name": "Set", "typeArguments": [ { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reflection", - "declaration": { - "id": 274, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } + "type": "reference", + "name": "IPlugin", + "id": 78 } ] - } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 51, - "character": 24 - } - ] - }, - { - "id": 268, - "name": "nodes", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "List of all nodes" - }, - "getSignature": [ + }, + "defaultValue": " new Set()" + }, { - "id": 269, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, + "id": 355, + "name": "connections", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, "comment": { - "shortText": "List of all nodes" + "shortText": "List of all connections" }, - "type": { - "type": "reference", - "name": "ReadonlyArray", - "typeArguments": [ - { + "getSignature": [ + { + "id": 356, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "List of all connections" + }, + "type": { "type": "reference", - "name": "Node", - "id": 142 + "name": "ReadonlyArray", + "typeArguments": [ + { + "type": "reference", + "name": "Connection", + "id": 525 + } + ] } - ] - } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 41, - "character": 20 - } - ] - }, - { - "id": 277, - "name": "plugins", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "List of all plugins in this editor" - }, - "getSignature": [ - { - "id": 278, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "List of all plugins in this editor" - }, - "type": { + } + ], + "sources": [ + { + "fileName": "src/editor.ts", + "line": 44, + "character": 26 + } + ], + "implementationOf": { "type": "reference", - "name": "ReadonlySet", - "typeArguments": [ - { - "type": "reference", - "name": "IPlugin", - "id": 245 - } - ] + "name": "IEditor.connections", + "id": 105 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 61, - "character": 22 - } - ] - }, - { - "id": 290, - "name": "addConnection", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 291, - "name": "addConnection", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 360, + "name": "nodeCategories", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, "comment": { - "shortText": "Add a connection to the list of connections.", - "returns": "The created connection. If no connection could be created, returns `undefined`.\n" + "shortText": "Mapping of nodes to node categories" }, - "parameters": [ + "getSignature": [ { - "id": 292, - "name": "from", - "kind": 32768, - "kindString": "Parameter", + "id": 361, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, "comment": { - "text": "Start interface for the connection" + "shortText": "Mapping of nodes to node categories" }, "type": { "type": "reference", - "name": "NodeInterface", - "id": 90 + "name": "ReadonlyMap", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] } - }, + } + ], + "sources": [ { - "id": 293, - "name": "to", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Target interface for the connection" - }, - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } + "fileName": "src/editor.ts", + "line": 54, + "character": 29 } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Connection", - "id": 223 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "implementationOf": { + "type": "reference", + "name": "IEditor.nodeCategories", + "id": 107 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 116, - "character": 24 - } - ] - }, - { - "id": 284, - "name": "addNode", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 285, - "name": "addNode", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 357, + "name": "nodeTypes", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, "comment": { - "shortText": "Add a node to the list of nodes.", - "returns": "Instance of the node or undefined if the node was not added\n" + "shortText": "List of all registered node types" }, - "parameters": [ + "getSignature": [ { - "id": 286, - "name": "node", - "kind": 32768, - "kindString": "Parameter", + "id": 358, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, "comment": { - "text": "Instance of a node" + "shortText": "List of all registered node types" }, "type": { "type": "reference", - "name": "Node", - "id": 142 + "name": "ReadonlyMap", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 359, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + ] } } ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Node", - "id": 142 - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] + "sources": [ + { + "fileName": "src/editor.ts", + "line": 49, + "character": 24 + } + ], + "implementationOf": { + "type": "reference", + "name": "IEditor.nodeTypes", + "id": 106 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 86, - "character": 18 - } - ] - }, - { - "id": 297, - "name": "checkConnection", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 298, - "name": "checkConnection", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 353, + "name": "nodes", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, "comment": { - "shortText": "Checks, whether a connection between two node interfaces would be valid.", - "returns": "Whether the connection is allowed or not.\n" + "shortText": "List of all nodes" }, - "parameters": [ + "getSignature": [ { - "id": 299, - "name": "from", - "kind": 32768, - "kindString": "Parameter", + "id": 354, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, "comment": { - "text": "The starting node interface (must be an output interface)" + "shortText": "List of all nodes" }, "type": { "type": "reference", - "name": "NodeInterface", - "id": 90 + "name": "ReadonlyArray", + "typeArguments": [ + { + "type": "reference", + "name": "Node", + "id": 419 + } + ] } - }, + } + ], + "sources": [ { - "id": 300, - "name": "to", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The target node interface (must be an input interface)" - }, - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } + "fileName": "src/editor.ts", + "line": 39, + "character": 20 } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "reference", - "name": "DummyConnection", - "id": 237 - } - ] + "implementationOf": { + "type": "reference", + "name": "IEditor.nodes", + "id": 104 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 159, - "character": 26 - } - ] - }, - { - "id": 301, - "name": "load", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 302, - "name": "load", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 362, + "name": "plugins", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, "comment": { - "shortText": "Load a state" + "shortText": "List of all plugins in this editor" }, - "parameters": [ + "getSignature": [ { - "id": 303, - "name": "state", - "kind": 32768, - "kindString": "Parameter", + "id": 363, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, "comment": { - "text": "State to load\n" + "shortText": "List of all plugins in this editor" }, "type": { "type": "reference", - "name": "IState", - "id": 69 + "name": "ReadonlySet", + "typeArguments": [ + { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + ] } } ], - "type": { - "type": "intrinsic", - "name": "void" + "sources": [ + { + "fileName": "src/editor.ts", + "line": 59, + "character": 22 + } + ], + "implementationOf": { + "type": "reference", + "name": "IEditor.plugins", + "id": 108 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 190, - "character": 15 - } - ] - }, - { - "id": 279, - "name": "registerNodeType", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 280, - "name": "registerNodeType", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Register a new node type" + "id": 375, + "name": "addConnection", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 281, - "name": "typeName", - "kind": 32768, - "kindString": "Parameter", + "id": 376, + "name": "addConnection", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "text": "Name of the node (must be equal to the node's `type` field)" + "shortText": "Add a connection to the list of connections.", + "returns": "The created connection. If no connection could be created, returns `undefined`.\n" }, + "parameters": [ + { + "id": 377, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Start interface for the connection" + }, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + }, + { + "id": 378, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Target interface for the connection" + }, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "union", + "types": [ + { + "type": "reference", + "name": "Connection", + "id": 525 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] } - }, + } + ], + "sources": [ { - "id": 282, - "name": "type", - "kind": 32768, - "kindString": "Parameter", + "fileName": "src/editor.ts", + "line": 114, + "character": 24 + } + ], + "implementationOf": { + "type": "reference", + "name": "IEditor.addConnection", + "id": 120 + } + }, + { + "id": 369, + "name": "addNode", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 370, + "name": "addNode", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "text": "Actual type / constructor of the node" + "shortText": "Add a node to the list of nodes.", + "returns": "Instance of the node or undefined if the node was not added\n" }, + "parameters": [ + { + "id": 371, + "name": "node", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Instance of a node" + }, + "type": { + "type": "reference", + "name": "Node", + "id": 419 + } + } + ], "type": { - "type": "reference", - "name": "NodeConstructor", - "id": 309 + "type": "union", + "types": [ + { + "type": "reference", + "name": "Node", + "id": 419 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] } - }, + } + ], + "sources": [ { - "id": 283, - "name": "category", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Category of the node. Will be used in the view's context menu for adding nodes\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"default\"" + "fileName": "src/editor.ts", + "line": 84, + "character": 18 } ], - "type": { - "type": "intrinsic", - "name": "void" + "implementationOf": { + "type": "reference", + "name": "IEditor.addNode", + "id": 114 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 71, - "character": 27 - } - ] - }, - { - "id": 294, - "name": "removeConnection", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 295, - "name": "removeConnection", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Remove a connection from the list of connections." + "id": 382, + "name": "checkConnection", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 296, - "name": "connection", - "kind": 32768, - "kindString": "Parameter", + "id": 383, + "name": "checkConnection", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "text": "Connection instance that should be removed.\n" + "shortText": "Checks, whether a connection between two node interfaces would be valid.", + "returns": "Whether the connection is allowed or not.\n" }, + "parameters": [ + { + "id": 384, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The starting node interface (must be an output interface)" + }, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + }, + { + "id": 385, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The target node interface (must be an input interface)" + }, + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + } + ], "type": { - "type": "reference", - "name": "Connection", - "id": 223 + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "reference", + "name": "DummyConnection", + "id": 539 + } + ] } } ], - "type": { - "type": "intrinsic", - "name": "void" + "sources": [ + { + "fileName": "src/editor.ts", + "line": 157, + "character": 26 + } + ], + "implementationOf": { + "type": "reference", + "name": "IEditor.checkConnection", + "id": 127 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 144, - "character": 27 - } - ] - }, - { - "id": 287, - "name": "removeNode", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 288, - "name": "removeNode", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Removes a node from the list.\nWill also remove all connections from and to the node." + "id": 394, + "name": "findNodeInterface", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 289, - "name": "node", - "kind": 32768, - "kindString": "Parameter", + "id": 395, + "name": "findNodeInterface", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "text": "Reference to a node in the list.\n" - }, + "parameters": [ + { + "id": 396, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { - "type": "reference", - "name": "Node", - "id": 142 + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + ] } } ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 99, - "character": 21 - } - ] - }, - { - "id": 304, - "name": "save", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 305, - "name": "save", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Save a state", - "returns": "Current state\n" - }, - "type": { - "type": "reference", - "name": "IState", - "id": 69 - } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 241, - "character": 15 - } - ] - }, - { - "id": 306, - "name": "use", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + "sources": [ + { + "fileName": "src/editor.ts", + "line": 264, + "character": 29 + } + ] + }, { - "id": 307, - "name": "use", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Register a plugin", - "returns": "Whether the plugin was successfully registered\n" + "id": 386, + "name": "load", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 308, - "name": "plugin", - "kind": 32768, - "kindString": "Parameter", + "id": 387, + "name": "load", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "text": "Plugin to register" + "shortText": "Load a state" }, + "parameters": [ + { + "id": 388, + "name": "state", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "State to load\n" + }, + "type": { + "type": "reference", + "name": "IState", + "id": 6 + } + } + ], "type": { + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { "type": "reference", - "name": "IPlugin", - "id": 245 + "name": "IEditor.load", + "id": 132 } } ], - "type": { - "type": "intrinsic", - "name": "boolean" + "sources": [ + { + "fileName": "src/editor.ts", + "line": 188, + "character": 15 + } + ], + "implementationOf": { + "type": "reference", + "name": "IEditor.load", + "id": 131 } - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 258, - "character": 14 - } - ] - }, - { - "id": 251, - "name": "events", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 259, - "name": "addConnection", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "editor.ts", - "line": 27, - "character": 21 - } - ], - "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "IConnection", - "id": 219 - } - ] - }, - "defaultValue": " new BaklavaEvent()" }, { - "id": 255, - "name": "addNode", - "kind": 32, - "kindString": "Variable", + "id": 364, + "name": "registerNodeType", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "editor.ts", - "line": 23, - "character": 15 + "id": 365, + "name": "registerNodeType", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Register a new node type" + }, + "parameters": [ + { + "id": 366, + "name": "typeName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the node (must be equal to the node's `type` field)" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 367, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Actual type / constructor of the node" + }, + "type": { + "type": "reference", + "name": "NodeConstructor", + "id": 139 + } + }, + { + "id": 368, + "name": "category", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Category of the node. Will be used in the view's context menu for adding nodes\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"default\"" + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } ], - "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "Node", - "id": 142 - } - ] - }, - "defaultValue": " new BaklavaEvent()" - }, - { - "id": 258, - "name": "beforeAddConnection", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "editor.ts", - "line": 26, + "fileName": "src/editor.ts", + "line": 69, "character": 27 } ], - "type": { + "implementationOf": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "IAddConnectionEventData", - "id": 311 - } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" + "name": "IEditor.registerNodeType", + "id": 109 + } }, { - "id": 254, - "name": "beforeAddNode", - "kind": 32, - "kindString": "Variable", + "id": 379, + "name": "removeConnection", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "editor.ts", - "line": 22, - "character": 21 + "id": 380, + "name": "removeConnection", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Remove a connection from the list of connections." + }, + "parameters": [ + { + "id": 381, + "name": "connection", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Connection instance that should be removed.\n" + }, + "type": { + "type": "reference", + "name": "Connection", + "id": 525 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } ], - "type": { - "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "Node", - "id": 142 - } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" - }, - { - "id": 252, - "name": "beforeRegisterNodeType", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "editor.ts", - "line": 20, - "character": 30 + "fileName": "src/editor.ts", + "line": 142, + "character": 27 } ], - "type": { + "implementationOf": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "IAddNodeTypeEventData", - "id": 314 - } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" + "name": "IEditor.removeConnection", + "id": 124 + } }, { - "id": 261, - "name": "beforeRemoveConnection", - "kind": 32, - "kindString": "Variable", + "id": 372, + "name": "removeNode", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "editor.ts", - "line": 29, - "character": 30 + "id": 373, + "name": "removeNode", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Removes a node from the list.\nWill also remove all connections from and to the node." + }, + "parameters": [ + { + "id": 374, + "name": "node", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Reference to a node in the list.\n" + }, + "type": { + "type": "reference", + "name": "Node", + "id": 419 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } ], - "type": { - "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "IConnection", - "id": 219 - } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" - }, - { - "id": 256, - "name": "beforeRemoveNode", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "editor.ts", - "line": 24, - "character": 24 + "fileName": "src/editor.ts", + "line": 97, + "character": 21 } ], - "type": { + "implementationOf": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "Node", - "id": 142 - } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" + "name": "IEditor.removeNode", + "id": 117 + } }, { - "id": 263, - "name": "beforeUsePlugin", - "kind": 32, - "kindString": "Variable", + "id": 389, + "name": "save", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "editor.ts", - "line": 31, - "character": 23 - } - ], - "type": { - "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { + "id": 390, + "name": "save", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Save a state", + "returns": "Current state\n" + }, + "type": { "type": "reference", - "name": "IPlugin", - "id": 245 + "name": "IState", + "id": 6 + }, + "implementationOf": { + "type": "reference", + "name": "IEditor.save", + "id": 135 } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" - }, - { - "id": 260, - "name": "checkConnection", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, + } + ], "sources": [ { - "fileName": "editor.ts", - "line": 28, - "character": 23 + "fileName": "src/editor.ts", + "line": 239, + "character": 15 } ], - "type": { + "implementationOf": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "IAddConnectionEventData", - "id": 311 - } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" + "name": "IEditor.save", + "id": 134 + } }, { - "id": 253, - "name": "registerNodeType", - "kind": 32, - "kindString": "Variable", + "id": 391, + "name": "use", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "editor.ts", - "line": 21, - "character": 24 - } - ], - "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { + "id": 392, + "name": "use", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Register a plugin", + "returns": "Whether the plugin was successfully registered\n" + }, + "parameters": [ + { + "id": 393, + "name": "plugin", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Plugin to register" + }, + "type": { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "implementationOf": { "type": "reference", - "name": "IAddNodeTypeEventData", - "id": 314 + "name": "IEditor.use", + "id": 137 } - ] - }, - "defaultValue": " new BaklavaEvent()" - }, - { - "id": 262, - "name": "removeConnection", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, + } + ], "sources": [ { - "fileName": "editor.ts", - "line": 30, - "character": 24 + "fileName": "src/editor.ts", + "line": 256, + "character": 14 } ], - "type": { + "implementationOf": { "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "IConnection", - "id": 219 - } - ] - }, - "defaultValue": " new BaklavaEvent()" + "name": "IEditor.use", + "id": 136 + } }, { - "id": 257, - "name": "removeNode", - "kind": 32, - "kindString": "Variable", + "id": 336, + "name": "events", + "kind": 2097152, + "kindString": "Object literal", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "editor.ts", - "line": 25, - "character": 18 + "id": 344, + "name": "addConnection", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 25, + "character": 21 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 340, + "name": "addNode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 21, + "character": 15 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 343, + "name": "beforeAddConnection", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 24, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "IAddConnectionEventData", + "id": 151 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 339, + "name": "beforeAddNode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 20, + "character": 21 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 337, + "name": "beforeRegisterNodeType", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 18, + "character": 30 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "IAddNodeTypeEventData", + "id": 154 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 346, + "name": "beforeRemoveConnection", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 27, + "character": 30 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 341, + "name": "beforeRemoveNode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 22, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 348, + "name": "beforeUsePlugin", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 29, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 345, + "name": "checkConnection", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 26, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "IAddConnectionEventData", + "id": 151 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 338, + "name": "registerNodeType", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 19, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "IAddNodeTypeEventData", + "id": 154 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 347, + "name": "removeConnection", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 28, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 342, + "name": "removeNode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 23, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 349, + "name": "usePlugin", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 30, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 344, + 340, + 343, + 339, + 337, + 346, + 341, + 348, + 345, + 338, + 347, + 342, + 349 + ] + } + ], + "sources": [ + { + "fileName": "src/editor.ts", + "line": 17, + "character": 17 } ], "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "Node", - "id": 142 - } - ] + "type": "intrinsic", + "name": "object" }, - "defaultValue": " new BaklavaEvent()" + "implementationOf": { + "type": "reference", + "name": "IEditor.events", + "id": 85 + } }, { - "id": 264, - "name": "usePlugin", - "kind": 32, - "kindString": "Variable", + "id": 350, + "name": "hooks", + "kind": 2097152, + "kindString": "Object literal", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, + "children": [ + { + "id": 352, + "name": "load", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 35, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SequentialHook", + "id": 302, + "typeArguments": [ + { + "type": "reference", + "name": "IState", + "id": 6 + } + ] + }, + "defaultValue": " new SequentialHook()" + }, + { + "id": 351, + "name": "save", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/editor.ts", + "line": 34, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SequentialHook", + "id": 302, + "typeArguments": [ + { + "type": "reference", + "name": "IState", + "id": 6 + } + ] + }, + "defaultValue": " new SequentialHook()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 352, + 351 + ] + } + ], "sources": [ { - "fileName": "editor.ts", - "line": 32, - "character": 17 + "fileName": "src/editor.ts", + "line": 33, + "character": 16 } ], "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "IPlugin", - "id": 245 - } - ] + "type": "intrinsic", + "name": "object" }, - "defaultValue": " new BaklavaEvent()" + "implementationOf": { + "type": "reference", + "name": "IEditor.hooks", + "id": 100 + } } ], "groups": [ { - "title": "Variables", - "kind": 32, + "title": "Properties", + "kind": 1024, "children": [ - 259, - 255, - 258, - 254, - 252, - 261, - 256, - 263, - 260, - 253, - 262, - 257, - 264 + 333, + 335, + 334, + 332, + 331 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 355, + 360, + 357, + 353, + 362 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 375, + 369, + 382, + 394, + 386, + 364, + 379, + 372, + 389, + 391 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 336, + 350 ] } ], "sources": [ { - "fileName": "editor.ts", - "line": 19, - "character": 17 + "fileName": "src/editor.ts", + "line": 9, + "character": 19 } ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 265, - "name": "hooks", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "children": [ + "implementedTypes": [ { - "id": 267, - "name": "load", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "editor.ts", - "line": 37, - "character": 12 - } - ], - "type": { - "type": "reference", - "name": "SequentialHook", - "id": 41, - "typeArguments": [ - { - "type": "reference", - "name": "IState", - "id": 69 - } - ] - }, - "defaultValue": " new SequentialHook()" - }, - { - "id": 266, - "name": "save", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "editor.ts", - "line": 36, - "character": 12 - } - ], - "type": { - "type": "reference", - "name": "SequentialHook", - "id": 41, - "typeArguments": [ - { - "type": "reference", - "name": "IState", - "id": 69 - } - ] - }, - "defaultValue": " new SequentialHook()" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 267, - 266 - ] - } - ], - "sources": [ - { - "fileName": "editor.ts", - "line": 35, - "character": 16 + "type": "reference", + "name": "IEditor", + "id": 84 } - ], - "type": { - "type": "intrinsic", - "name": "object" - } + ] } ], "groups": [ { - "title": "Accessors", - "kind": 262144, - "children": [ - 270, - 275, - 272, - 268, - 277 - ] - }, - { - "title": "Methods", - "kind": 2048, + "title": "Classes", + "kind": 128, "children": [ - 290, - 284, - 297, - 301, - 279, - 294, - 287, - 304, - 306 - ] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [ - 251, - 265 + 330 ] } ], "sources": [ { - "fileName": "editor.ts", - "line": 11, - "character": 19 + "fileName": "src/editor.ts", + "line": 1, + "character": 0 } ] }, { - "id": 27, - "name": "Hook", - "kind": 128, - "kindString": "Class", + "id": 260, + "name": "\"src/events/eventEmitter\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true, - "isAbstract": true + "isExported": true }, - "comment": { - "shortText": "Base class for hooks in Baklava" - }, - "typeParameter": [ - { - "id": 28, - "name": "I", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - }, - { - "id": 29, - "name": "O", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/events/eventEmitter.ts", "children": [ { - "id": 30, - "name": "taps", - "kind": 1024, - "kindString": "Property", + "id": 261, + "name": "BaklavaEvent", + "kind": 128, + "kindString": "Class", "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "comment": { + "shortText": "Main event class for Baklava" + }, + "typeParameter": [ { - "fileName": "events/eventEmitter.ts", - "line": 65, - "character": 18 + "id": 262, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} } ], - "type": { - "type": "reference", - "name": "Array", - "typeArguments": [ - { + "children": [ + { + "id": 263, + "name": "listeners", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 10, + "character": 23 + } + ], + "type": { "type": "reference", - "name": "HookTap", - "id": 61, + "name": "Map", "typeArguments": [ { - "type": "typeParameter", - "name": "I" + "type": "reference", + "name": "TokenType", + "id": 316 }, { - "type": "typeParameter", - "name": "O" + "type": "reference", + "name": "Listener", + "id": 317, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } ] - } - ] - }, - "defaultValue": " []" - }, - { - "id": 38, - "name": "execute", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true, - "isAbstract": true - }, - "signatures": [ + }, + "defaultValue": " new Map()" + }, { - "id": 39, - "name": "execute", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 264, + "name": "addListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ { - "id": 40, - "name": "data", - "kind": 32768, - "kindString": "Parameter", + "id": 265, + "name": "addListener", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Subscribe to the event" + }, + "parameters": [ + { + "id": 266, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "A token that can be used to unsubscribe from the event later on" + }, + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 + } + }, + { + "id": 267, + "name": "listener", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "A callback that will be invoked when the event occurs\n" + }, + "type": { + "type": "reference", + "name": "Listener", + "id": 317, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ], "type": { - "type": "typeParameter", - "name": "I" + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.addListener", + "id": 31 } } ], - "type": { - "type": "typeParameter", - "name": "O" + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 17, + "character": 22 + } + ], + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.addListener", + "id": 30 } - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 84, - "character": 27 - } - ] - }, - { - "id": 31, - "name": "tap", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 32, - "name": "tap", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 271, + "name": "emit", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 33, - "name": "token", - "kind": 32768, - "kindString": "Parameter", + "id": 272, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "comment": { + "shortText": "Invoke all listeners" + }, + "parameters": [ + { + "id": 273, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The data to invoke the listeners with.\n" + }, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], "type": { + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { "type": "reference", - "name": "TokenType", - "id": 55 + "name": "IBaklavaEvent.emit", + "id": 38 } - }, + } + ], + "sources": [ { - "id": 34, - "name": "tapFn", - "kind": 32768, - "kindString": "Parameter", + "fileName": "src/events/eventEmitter.ts", + "line": 36, + "character": 8 + } + ], + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.emit", + "id": 37 + } + }, + { + "id": 268, + "name": "removeListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 269, + "name": "removeListener", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "type": { - "type": "reference", - "name": "HookTap", - "id": 61, - "typeArguments": [ - { - "type": "typeParameter", - "name": "I" + "comment": { + "shortText": "Remove a listener" + }, + "parameters": [ + { + "id": 270, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The token that was specified when subscribing to the listener.\nAn invalid token does not result in an error.\n" }, - { - "type": "typeParameter", - "name": "O" + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 } - ] + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.removeListener", + "id": 35 } } ], - "type": { - "type": "intrinsic", - "name": "void" + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 26, + "character": 25 + } + ], + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.removeListener", + "id": 34 } } ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 263 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 264, + 271, + 268 + ] + } + ], "sources": [ { - "fileName": "events/eventEmitter.ts", - "line": 67, - "character": 14 + "fileName": "src/events/eventEmitter.ts", + "line": 8, + "character": 25 + } + ], + "extendedBy": [ + { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } ] }, { - "id": 35, - "name": "untap", - "kind": 2048, - "kindString": "Method", + "id": 287, + "name": "Hook", + "kind": 128, + "kindString": "Class", "flags": { - "isPublic": true, "isExported": true, - "isExternal": true + "isAbstract": true }, - "signatures": [ + "comment": { + "shortText": "Base class for hooks in Baklava" + }, + "typeParameter": [ { - "id": 36, - "name": "untap", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 288, + "name": "I", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 289, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 290, + "name": "tapMap", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ { - "id": 37, - "name": "token", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { + "fileName": "src/events/eventEmitter.ts", + "line": 66, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "Map", + "typeArguments": [ + { "type": "reference", "name": "TokenType", - "id": 55 + "id": 316 + }, + { + "type": "reference", + "name": "HookTap", + "id": 322, + "typeArguments": [ + { + "type": "typeParameter", + "name": "I" + }, + { + "type": "typeParameter", + "name": "O" + } + ] } + ] + }, + "defaultValue": " new Map()" + }, + { + "id": 291, + "name": "taps", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 67, + "character": 18 } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "Array", + "typeArguments": [ + { + "type": "reference", + "name": "HookTap", + "id": 322, + "typeArguments": [ + { + "type": "typeParameter", + "name": "I" + }, + { + "type": "typeParameter", + "name": "O" + } + ] + } + ] + }, + "defaultValue": " []" + }, + { + "id": 299, + "name": "execute", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true, + "isAbstract": true + }, + "signatures": [ + { + "id": 300, + "name": "execute", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 301, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "I" + } + } + ], + "type": { + "type": "typeParameter", + "name": "O" + }, + "implementationOf": { + "type": "reference", + "name": "IHook.execute", + "id": 63 + } + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 86, + "character": 27 + } + ], + "implementationOf": { + "type": "reference", + "name": "IHook.execute", + "id": 62 + } + }, + { + "id": 292, + "name": "tap", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 293, + "name": "tap", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 294, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 + } + }, + { + "id": 295, + "name": "tapFn", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "HookTap", + "id": 322, + "typeArguments": [ + { + "type": "typeParameter", + "name": "I" + }, + { + "type": "typeParameter", + "name": "O" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "IHook.tap", + "id": 56 + } + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 69, + "character": 14 + } + ], + "implementationOf": { + "type": "reference", + "name": "IHook.tap", + "id": 55 + } + }, + { + "id": 296, + "name": "untap", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 297, + "name": "untap", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 298, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "IHook.untap", + "id": 60 + } + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 77, + "character": 16 + } + ], + "implementationOf": { + "type": "reference", + "name": "IHook.untap", + "id": 59 } } ], - "sources": [ + "groups": [ { - "fileName": "events/eventEmitter.ts", - "line": 75, - "character": 16 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 30 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 38, - 31, - 35 - ] - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 62, - "character": 26 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "SequentialHook", - "id": 41 - } - ] - }, - { - "id": 142, - "name": "Node", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isExternal": true, - "isAbstract": true - }, - "comment": { - "shortText": "Abstract base class for every node" - }, - "children": [ - { - "id": 145, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Unique identifier of the node" - }, - "sources": [ + "title": "Properties", + "kind": 1024, + "children": [ + 290, + 291 + ] + }, { - "fileName": "node.ts", - "line": 25, - "character": 13 + "title": "Methods", + "kind": 2048, + "children": [ + 299, + 292, + 296 + ] } ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": " \"node_\" + generateId()" - }, - { - "id": 146, - "name": "interfaces", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "A map of all interfaces of the node.\n| Key = Name of the interface\n| Value = [[NodeInterface]] instance" - }, "sources": [ { - "fileName": "node.ts", - "line": 30, - "character": 21 + "fileName": "src/events/eventEmitter.ts", + "line": 64, + "character": 26 } ], - "type": { - "type": "reference", - "name": "Map", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - ] - }, - "defaultValue": " new Map()" - }, - { - "id": 144, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true, - "isAbstract": true - }, - "comment": { - "shortText": "Name of the node. Should be set equal to [[type]] by default" - }, - "sources": [ + "extendedBy": [ { - "fileName": "node.ts", - "line": 23, - "character": 24 + "type": "reference", + "name": "SequentialHook", + "id": 302 } ], - "type": { - "type": "intrinsic", - "name": "string" - } + "implementedTypes": [ + { + "type": "reference", + "name": "IHook", + "id": 52, + "typeArguments": [ + { + "type": "typeParameter", + "name": "I" + }, + { + "type": "typeParameter", + "name": "O" + } + ] + } + ] }, { - "id": 147, - "name": "options", - "kind": 1024, - "kindString": "Property", + "id": 274, + "name": "PreventableBaklavaEvent", + "kind": 128, + "kindString": "Class", "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true + "isExported": true }, "comment": { - "shortText": "A map of all options of the node.\n| Key = Name of the option\n| Value = [[NodeOption]] instance" + "shortText": "Extension for the [[BaklavaEvent]] class. A listener can return `false` to prevent\nthis event from happening." }, - "sources": [ + "typeParameter": [ { - "fileName": "node.ts", - "line": 35, - "character": 18 + "id": 275, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} } ], - "type": { - "type": "reference", - "name": "Map", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" + "children": [ + { + "id": 279, + "name": "listeners", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true }, - { + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 10, + "character": 23 + } + ], + "type": { "type": "reference", - "name": "NodeOption", - "id": 123 - } - ] - }, - "defaultValue": " new Map()" - }, - { - "id": 148, - "name": "state", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Use this property to save additional state of the node" - }, - "sources": [ - { - "fileName": "node.ts", - "line": 38, - "character": 16 - } - ], - "type": { - "type": "reference", - "name": "Record", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ] - } - }, - { - "id": 143, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true, - "isAbstract": true - }, - "comment": { - "shortText": "Type of the node" - }, - "sources": [ - { - "fileName": "node.ts", - "line": 21, - "character": 24 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 162, - "name": "inputInterfaces", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "All input interfaces of the node" - }, - "getSignature": [ - { - "id": 163, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "All input interfaces of the node" - }, - "type": { - "type": "reference", - "name": "Record", + "name": "Map", "typeArguments": [ { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "TokenType", + "id": 316 }, { "type": "reference", - "name": "NodeInterface", - "id": 90 + "name": "Listener", + "id": 317, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } ] + }, + "defaultValue": " new Map()", + "inheritedFrom": { + "type": "reference", + "name": "BaklavaEvent.listeners", + "id": 263 } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 60, - "character": 30 - } - ] - }, - { - "id": 164, - "name": "outputInterfaces", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "All output interfaces of the node" - }, - "getSignature": [ + }, { - "id": 165, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "comment": { - "shortText": "All output interfaces of the node" + "id": 280, + "name": "addListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "type": { - "type": "reference", - "name": "Record", - "typeArguments": [ - { + "signatures": [ + { + "id": 281, + "name": "addListener", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Subscribe to the event" + }, + "parameters": [ + { + "id": 282, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "A token that can be used to unsubscribe from the event later on" + }, + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 + } + }, + { + "id": 283, + "name": "listener", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "A callback that will be invoked when the event occurs\n" + }, + "type": { + "type": "reference", + "name": "Listener", + "id": 317, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ], + "type": { "type": "intrinsic", - "name": "string" + "name": "void" }, - { + "inheritedFrom": { "type": "reference", - "name": "NodeInterface", - "id": 90 + "name": "BaklavaEvent.addListener", + "id": 264 + }, + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.addListener", + "id": 31 } - ] + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 17, + "character": 22 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "BaklavaEvent.addListener", + "id": 264 + }, + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.addListener", + "id": 30 } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 69, - "character": 31 - } - ] - }, - { - "id": 173, - "name": "addInputInterface", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 174, - "name": "addInputInterface", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Add an input interface to the node", - "returns": "The created interface or undefined, if the interface was not created\n" + "id": 276, + "name": "emit", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 175, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 277, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "text": "Name of the interface" + "shortText": "Invoke all listeners.", + "returns": "`true` when one of the listeners requested to prevent the event, otherwise `false`\n" }, + "parameters": [ + { + "id": 278, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The data to invoke all listeners with" + }, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], "type": { "type": "intrinsic", - "name": "string" - } - }, - { - "id": 176, - "name": "option", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true + "name": "boolean" }, - "comment": { - "text": "Optional name of a NodeOption which is displayed when the interface is not connected" + "overwrites": { + "type": "reference", + "name": "BaklavaEvent.emit", + "id": 271 }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.emit", + "id": 38 } - }, + } + ], + "sources": [ { - "id": 177, - "name": "defaultValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "fileName": "src/events/eventEmitter.ts", + "line": 52, + "character": 8 + } + ], + "overwrites": { + "type": "reference", + "name": "BaklavaEvent.emit", + "id": 271 + }, + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.emit", + "id": 37 + } + }, + { + "id": 284, + "name": "removeListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 285, + "name": "removeListener", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "text": "Optional default value for the interface/option" + "shortText": "Remove a listener" }, + "parameters": [ + { + "id": 286, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "The token that was specified when subscribing to the listener.\nAn invalid token does not result in an error.\n" + }, + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 + } + } + ], "type": { "type": "intrinsic", - "name": "any" - } - }, - { - "id": 178, - "name": "additionalProperties", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true + "name": "void" }, - "comment": { - "text": "Additional properties of the interface that can be used by plugins" + "inheritedFrom": { + "type": "reference", + "name": "BaklavaEvent.removeListener", + "id": 268 }, - "type": { + "implementationOf": { "type": "reference", - "name": "Record", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ] + "name": "IBaklavaEvent.removeListener", + "id": 35 } } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - ] + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 26, + "character": 25 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "BaklavaEvent.removeListener", + "id": 268 + }, + "implementationOf": { + "type": "reference", + "name": "IBaklavaEvent.removeListener", + "id": 34 } } ], - "sources": [ + "groups": [ { - "fileName": "node.ts", - "line": 123, - "character": 31 + "title": "Properties", + "kind": 1024, + "children": [ + 279 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 280, + 276, + 284 + ] + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 45, + "character": 36 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + }, + { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] } ] }, { - "id": 186, - "name": "addOption", - "kind": 2048, - "kindString": "Method", + "id": 302, + "name": "SequentialHook", + "kind": 128, + "kindString": "Class", "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "comment": { + "shortText": "This class will run the taps one after each other and pass the data from every tap to another." + }, + "typeParameter": [ { - "id": 187, - "name": "addOption", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Add a node option to the node", - "returns": "The created option or undefined, if the option was not created\n" + "id": 303, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 307, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 308, + "name": "taps", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true }, - "parameters": [ + "sources": [ { - "id": 188, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Name of the option" - }, - "type": { - "type": "intrinsic", - "name": "string" + "fileName": "src/events/eventEmitter.ts", + "line": 67, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "Array", + "typeArguments": [ + { + "type": "reference", + "name": "HookTap", + "id": 322, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "O" + } + ] } - }, + ] + }, + "defaultValue": " []", + "inheritedFrom": { + "type": "reference", + "name": "Hook.taps", + "id": 291 + } + }, + { + "id": 304, + "name": "execute", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ { - "id": 189, - "name": "component", - "kind": 32768, - "kindString": "Parameter", + "id": 305, + "name": "execute", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "text": "Name of the option component" - }, + "parameters": [ + { + "id": 306, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], "type": { - "type": "intrinsic", - "name": "string" + "type": "typeParameter", + "name": "T" + }, + "overwrites": { + "type": "reference", + "name": "Hook.execute", + "id": 299 + }, + "implementationOf": { + "type": "reference", + "name": "IHook.execute", + "id": 63 } - }, + } + ], + "sources": [ { - "id": 190, - "name": "defaultValue", - "kind": 32768, - "kindString": "Parameter", + "fileName": "src/events/eventEmitter.ts", + "line": 93, + "character": 18 + } + ], + "overwrites": { + "type": "reference", + "name": "Hook.execute", + "id": 299 + }, + "implementationOf": { + "type": "reference", + "name": "IHook.execute", + "id": 62 + } + }, + { + "id": 309, + "name": "tap", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 310, + "name": "tap", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "text": "Default value for the option" - }, + "parameters": [ + { + "id": 311, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 + } + }, + { + "id": 312, + "name": "tapFn", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "HookTap", + "id": 322, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "O" + } + ] + } + } + ], "type": { "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null" - }, - { - "id": 191, - "name": "sidebarComponent", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "Optional name of the component to display in the sidebar" - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 192, - "name": "additionalProperties", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true + "name": "void" }, - "comment": { - "text": "Additional properties of the option that can be used by plugins" + "inheritedFrom": { + "type": "reference", + "name": "Hook.tap", + "id": 292 }, - "type": { + "implementationOf": { "type": "reference", - "name": "Record", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ] + "name": "IHook.tap", + "id": 56 } } ], - "type": { - "type": "union", - "types": [ - { + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 69, + "character": 14 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Hook.tap", + "id": 292 + }, + "implementationOf": { + "type": "reference", + "name": "IHook.tap", + "id": 55 + } + }, + { + "id": 313, + "name": "untap", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 314, + "name": "untap", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 315, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 316 + } + } + ], + "type": { "type": "intrinsic", - "name": "undefined" + "name": "void" }, - { + "inheritedFrom": { "type": "reference", - "name": "NodeOption", - "id": 123 + "name": "Hook.untap", + "id": 296 + }, + "implementationOf": { + "type": "reference", + "name": "IHook.untap", + "id": 60 } - ] + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 77, + "character": 16 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "Hook.untap", + "id": 296 + }, + "implementationOf": { + "type": "reference", + "name": "IHook.untap", + "id": 59 } } ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 308 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 304, + 309, + 313 + ] + } + ], "sources": [ { - "fileName": "node.ts", - "line": 187, - "character": 23 + "fileName": "src/events/eventEmitter.ts", + "line": 91, + "character": 27 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "Hook", + "id": 287, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "IHook", + "id": 52, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + }, + { + "type": "typeParameter", + "name": "O" + } + ] } ] }, { - "id": 179, - "name": "addOutputInterface", - "kind": 2048, - "kindString": "Method", + "id": 322, + "name": "HookTap", + "kind": 4194304, + "kindString": "Type alias", "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "typeParameter": [ { - "id": 180, - "name": "addOutputInterface", - "kind": 4096, - "kindString": "Call signature", + "id": 323, + "name": "I", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 324, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 5, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 325, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "comment": { - "shortText": "Add an output interface to the node", - "returns": "The created interface or undefined, if the interface was not created\n" - }, - "parameters": [ + "signatures": [ { - "id": 181, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 326, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "text": "Name of the interface" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 182, - "name": "additionalProperties", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "Additional properties of the interface that can be used by plugins" - }, - "type": { - "type": "reference", - "name": "Record", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" + "parameters": [ + { + "id": 327, + "name": "i", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "I" } - ] + } + ], + "type": { + "type": "typeParameter", + "name": "O" } } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - ] - } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 139, - "character": 32 + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 5, + "character": 27 + } + ] } - ] + } }, { - "id": 171, - "name": "calculate", - "kind": 2048, - "kindString": "Method", + "id": 317, + "name": "Listener", + "kind": 4194304, + "kindString": "Type alias", "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "typeParameter": [ { - "id": 172, - "name": "calculate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "The default implementation does nothing.\nOverwrite this method to do calculation.", - "returns": "This method can return a promise.\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } + "id": 318, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} } ], "sources": [ { - "fileName": "node.ts", - "line": 111, + "fileName": "src/events/eventEmitter.ts", + "line": 4, "character": 20 } - ] - }, - { - "id": 196, - "name": "getInterface", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 197, - "name": "getInterface", - "kind": 4096, - "kindString": "Call signature", + ], + "type": { + "type": "reflection", + "declaration": { + "id": 319, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "comment": { - "shortText": "Get an interface by its name. If the node does not have an interface with\n`name`, this method will throw an error." - }, - "parameters": [ + "signatures": [ { - "id": 198, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 320, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "text": "Name of the requested interface\n" - }, + "parameters": [ + { + "id": 321, + "name": "ev", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], "type": { "type": "intrinsic", - "name": "string" + "name": "any" } } ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 216, - "character": 23 + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 4, + "character": 25 + } + ] } - ] + } }, { - "id": 199, - "name": "getOptionValue", - "kind": 2048, - "kindString": "Method", + "id": 316, + "name": "TokenType", + "kind": 4194304, + "kindString": "Type alias", "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "sources": [ { - "id": 200, - "name": "getOptionValue", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Get the value of option `name`" + "fileName": "src/events/eventEmitter.ts", + "line": 3, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "object" }, - "parameters": [ - { - "id": 201, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Name of the option\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { + { "type": "intrinsic", - "name": "any" + "name": "symbol" } - } - ], + ] + } + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 261, + 287, + 274, + 302 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 322, + 317, + 316 + ] + } + ], + "sources": [ + { + "fileName": "src/events/eventEmitter.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 328, + "name": "\"src/events/index\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/events/index.ts", + "sources": [ + { + "fileName": "src/events/index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"src/idGenerator\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/idGenerator.ts", + "children": [ + { + "id": 2, + "name": "counter", + "kind": 32, + "kindString": "Variable", + "flags": { + "isLet": true + }, "sources": [ { - "fileName": "node.ts", - "line": 227, - "character": 25 + "fileName": "src/idGenerator.ts", + "line": 1, + "character": 11 } - ] + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" }, { - "id": 166, - "name": "load", - "kind": 2048, - "kindString": "Method", + "id": 3, + "name": "generateId", + "kind": 64, + "kindString": "Function", "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true + "isExported": true }, "signatures": [ { - "id": 167, - "name": "load", + "id": 4, + "name": "generateId", "kind": 4096, "kindString": "Call signature", "flags": {}, - "parameters": [ - { - "id": 168, - "name": "state", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "INodeState", - "id": 73 - } - } - ], "type": { "type": "intrinsic", - "name": "void" + "name": "string" } } ], "sources": [ { - "fileName": "node.ts", - "line": 77, - "character": 15 + "fileName": "src/idGenerator.ts", + "line": 3, + "character": 34 } ] + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 2 + ] }, { - "id": 206, - "name": "registerEditor", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 207, - "name": "registerEditor", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "This function will automatically be called as soon as the node is added to an editor." - }, - "parameters": [ - { - "id": 208, - "name": "editor", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Editor instance\n" - }, - "type": { - "type": "reference", - "name": "Editor", - "id": 250 - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 250, - "character": 25 - } + "title": "Functions", + "kind": 64, + "children": [ + 3 ] - }, + } + ], + "sources": [ { - "id": 183, - "name": "removeInterface", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 184, - "name": "removeInterface", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Remove an existing interface" - }, - "parameters": [ - { - "id": 185, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Name of the interface.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 151, - "character": 29 - } - ] - }, + "fileName": "src/idGenerator.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 613, + "name": "\"src/index\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/index.ts", + "sources": [ + { + "fileName": "src/index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 414, + "name": "\"src/node\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/node.ts", + "children": [ { - "id": 193, - "name": "removeOption", - "kind": 2048, - "kindString": "Method", + "id": 419, + "name": "Node", + "kind": 128, + "kindString": "Class", "flags": { - "isProtected": true, "isExported": true, - "isExternal": true + "isAbstract": true }, - "signatures": [ + "comment": { + "shortText": "Abstract base class for every node" + }, + "children": [ { - "id": 194, - "name": "removeOption", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Remove an existing option" + "id": 439, + "name": "editorInstance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true, + "isOptional": true }, - "parameters": [ + "sources": [ { - "id": 195, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Name of the option\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } + "fileName": "src/node.ts", + "line": 57, + "character": 26 } ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 202, - "character": 26 - } - ] - }, - { - "id": 169, - "name": "save", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 170, - "name": "save", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, "type": { "type": "reference", - "name": "INodeState", - "id": 73 + "name": "Editor", + "id": 330 } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 94, - "character": 15 - } - ] - }, - { - "id": 202, - "name": "setOptionValue", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 203, - "name": "setOptionValue", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, + "id": 422, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, "comment": { - "shortText": "Set the value of option `name`" + "shortText": "Unique identifier of the node" }, - "parameters": [ - { - "id": 204, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Name of the option" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, + "sources": [ { - "id": 205, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "New value\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } + "fileName": "src/node.ts", + "line": 25, + "character": 13 } ], "type": { "type": "intrinsic", - "name": "void" + "name": "string" + }, + "defaultValue": " \"node_\" + generateId()", + "implementationOf": { + "type": "reference", + "name": "INode.id", + "id": 179 } - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 239, - "character": 25 - } - ] - }, - { - "id": 149, - "name": "events", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "children": [ + }, { - "id": 151, - "name": "addInterface", - "kind": 32, - "kindString": "Variable", + "id": 423, + "name": "interfaces", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "A map of all interfaces of the node.\n| Key = Name of the interface\n| Value = [[NodeInterface]] instance" }, "sources": [ { - "fileName": "node.ts", - "line": 42, - "character": 20 + "fileName": "src/node.ts", + "line": 30, + "character": 21 } ], "type": { "type": "reference", - "name": "BaklavaEvent", - "id": 1, + "name": "Map", "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, { "type": "reference", "name": "NodeInterface", - "id": 90 + "id": 493 } ] }, - "defaultValue": " new BaklavaEvent()" + "defaultValue": " new Map()", + "implementationOf": { + "type": "reference", + "name": "INode.interfaces", + "id": 180 + } }, { - "id": 155, - "name": "addOption", - "kind": 32, - "kindString": "Variable", + "id": 421, + "name": "name", + "kind": 1024, + "kindString": "Property", "flags": { + "isPublic": true, "isExported": true, - "isExternal": true + "isAbstract": true + }, + "comment": { + "shortText": "Customizable display name of the node." }, "sources": [ { - "fileName": "node.ts", - "line": 46, - "character": 17 + "fileName": "src/node.ts", + "line": 23, + "character": 24 } ], "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "IOptionEventData", - "id": 328 - } - ] + "type": "intrinsic", + "name": "string" }, - "defaultValue": " new BaklavaEvent()" + "implementationOf": { + "type": "reference", + "name": "INode.name", + "id": 178 + } }, { - "id": 150, - "name": "beforeAddInterface", - "kind": 32, - "kindString": "Variable", + "id": 424, + "name": "options", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "A map of all options of the node.\n| Key = Name of the option\n| Value = [[NodeOption]] instance" }, "sources": [ { - "fileName": "node.ts", - "line": 41, - "character": 26 + "fileName": "src/node.ts", + "line": 35, + "character": 18 } ], "type": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, + "name": "Map", "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, { "type": "reference", - "name": "IAddInterfaceEventData", - "id": 318 + "name": "NodeOption", + "id": 398 } ] }, - "defaultValue": " new PreventableBaklavaEvent()" + "defaultValue": " new Map()", + "implementationOf": { + "type": "reference", + "name": "INode.options", + "id": 181 + } }, { - "id": 154, - "name": "beforeAddOption", - "kind": 32, - "kindString": "Variable", + "id": 425, + "name": "state", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Use this property to save additional state of the node" }, "sources": [ { - "fileName": "node.ts", - "line": 45, - "character": 23 + "fileName": "src/node.ts", + "line": 38, + "character": 16 } ], "type": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, + "name": "Record", "typeArguments": [ { - "type": "reference", - "name": "IAddOptionEventData", - "id": 323 + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" } ] }, - "defaultValue": " new PreventableBaklavaEvent()" - }, + "implementationOf": { + "type": "reference", + "name": "INode.state", + "id": 182 + } + }, { - "id": 152, - "name": "beforeRemoveInterface", - "kind": 32, - "kindString": "Variable", + "id": 420, + "name": "type", + "kind": 1024, + "kindString": "Property", "flags": { + "isPublic": true, "isExported": true, - "isExternal": true + "isAbstract": true + }, + "comment": { + "shortText": "Type of the node" }, "sources": [ { - "fileName": "node.ts", - "line": 43, - "character": 29 + "fileName": "src/node.ts", + "line": 21, + "character": 24 } ], "type": { - "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - ] + "type": "intrinsic", + "name": "string" }, - "defaultValue": " new PreventableBaklavaEvent()" + "implementationOf": { + "type": "reference", + "name": "INode.type", + "id": 177 + } }, { - "id": 156, - "name": "beforeRemoveOption", - "kind": 32, - "kindString": "Variable", + "id": 440, + "name": "inputInterfaces", + "kind": 262144, + "kindString": "Accessor", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "All input interfaces of the node" }, + "getSignature": [ + { + "id": 441, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "All input interfaces of the node" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + ] + } + } + ], "sources": [ { - "fileName": "node.ts", - "line": 47, - "character": 26 + "fileName": "src/node.ts", + "line": 60, + "character": 30 } ], - "type": { + "implementationOf": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "reference", - "name": "IOptionEventData", - "id": 328 - } - ] - }, - "defaultValue": " new PreventableBaklavaEvent()" + "name": "INode.inputInterfaces", + "id": 198 + } }, { - "id": 153, - "name": "removeInterface", - "kind": 32, - "kindString": "Variable", + "id": 442, + "name": "outputInterfaces", + "kind": 262144, + "kindString": "Accessor", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "All output interfaces of the node" }, + "getSignature": [ + { + "id": 443, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "comment": { + "shortText": "All output interfaces of the node" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + ] + } + } + ], "sources": [ { - "fileName": "node.ts", - "line": 44, - "character": 23 + "fileName": "src/node.ts", + "line": 69, + "character": 31 } ], - "type": { + "implementationOf": { "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - ] - }, - "defaultValue": " new BaklavaEvent()" + "name": "INode.outputInterfaces", + "id": 199 + } }, { - "id": 157, - "name": "removeOption", - "kind": 32, - "kindString": "Variable", + "id": 451, + "name": "addInputInterface", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isProtected": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "node.ts", - "line": 48, - "character": 20 + "id": 452, + "name": "addInputInterface", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Add an input interface to the node", + "returns": "The created interface or undefined, if the interface was not created\n" + }, + "parameters": [ + { + "id": 453, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the interface" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 454, + "name": "option", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Optional name of a NodeOption which is displayed when the interface is not connected" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 455, + "name": "defaultValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Optional default value for the interface/option" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 456, + "name": "additionalProperties", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Additional properties of the interface that can be used by plugins" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + ] + } } ], - "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "reference", - "name": "IOptionEventData", - "id": 328 - } - ] - }, - "defaultValue": " new BaklavaEvent()" + "sources": [ + { + "fileName": "src/node.ts", + "line": 123, + "character": 31 + } + ] }, { - "id": 158, - "name": "update", - "kind": 32, - "kindString": "Variable", + "id": 487, + "name": "addInterface", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPrivate": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "node.ts", - "line": 49, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { + "id": 488, + "name": "addInterface", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 489, + "name": "isInput", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 490, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 491, + "name": "option", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { "type": "reference", - "name": "INodeUpdateEventData", - "id": 331 + "name": "NodeInterface", + "id": 493 } - ] - }, - "defaultValue": " new BaklavaEvent()" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 151, - 155, - 150, - 154, - 152, - 156, - 153, - 157, - 158 + } + ], + "sources": [ + { + "fileName": "src/node.ts", + "line": 254, + "character": 24 + } ] - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 40, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 159, - "name": "hooks", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "children": [ + }, { - "id": 160, - "name": "load", - "kind": 32, - "kindString": "Variable", + "id": 464, + "name": "addOption", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isProtected": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "node.ts", - "line": 53, - "character": 12 + "id": 465, + "name": "addOption", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Add a node option to the node", + "returns": "The created option or undefined, if the option was not created\n" + }, + "parameters": [ + { + "id": 466, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the option" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 467, + "name": "component", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the option component" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 468, + "name": "defaultValue", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Default value for the option" + }, + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null" + }, + { + "id": 469, + "name": "sidebarComponent", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Optional name of the component to display in the sidebar" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 470, + "name": "additionalProperties", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Additional properties of the option that can be used by plugins" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "name": "NodeOption", + "id": 398 + } + ] + } } ], - "type": { - "type": "reference", - "name": "SequentialHook", - "id": 41, - "typeArguments": [ - { - "type": "reference", - "name": "INodeState", - "id": 73 - } - ] - }, - "defaultValue": " new SequentialHook()" + "sources": [ + { + "fileName": "src/node.ts", + "line": 187, + "character": 23 + } + ] }, { - "id": 161, - "name": "save", - "kind": 32, - "kindString": "Variable", + "id": 457, + "name": "addOutputInterface", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isProtected": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "node.ts", - "line": 54, - "character": 12 - } - ], - "type": { - "type": "reference", - "name": "SequentialHook", - "id": 41, - "typeArguments": [ - { - "type": "reference", - "name": "INodeState", - "id": 73 - } - ] - }, - "defaultValue": " new SequentialHook()" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 160, - 161 - ] - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 52, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 145, - 146, - 144, - 147, - 148, - 143 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 162, - 164 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 173, - 186, - 179, - 171, - 196, - 199, - 166, - 206, - 183, - 193, - 169, - 202 - ] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [ - 149, - 159 - ] - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 18, - "character": 26 - } - ] - }, - { - "id": 335, - "name": "NodeBuilder", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Utility class for creating custom nodes" - }, - "children": [ - { - "id": 336, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 337, - "name": "new NodeBuilder", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 338, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "NodeBuilder", - "id": 335 - } - } - ], - "sources": [ - { - "fileName": "nodeBuilder.ts", - "line": 59, - "character": 47 - } - ] - }, - { - "id": 341, - "name": "addInputInterface", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 342, - "name": "addInputInterface", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Add an input interface to the node", - "returns": "Current node builder instance for chaining\n" - }, - "parameters": [ - { - "id": 343, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 458, + "name": "addOutputInterface", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "text": "Name of the interface" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 344, - "name": "option", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "A node option component to be displayed when the interface is not connected" + "shortText": "Add an output interface to the node", + "returns": "The created interface or undefined, if the interface was not created\n" }, + "parameters": [ + { + "id": 459, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the interface" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 460, + "name": "additionalProperties", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Additional properties of the interface that can be used by plugins" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], "type": { "type": "union", "types": [ @@ -4136,3991 +4690,9058 @@ "name": "undefined" }, { - "type": "intrinsic", - "name": "string" + "type": "reference", + "name": "NodeInterface", + "id": 493 } ] } - }, + } + ], + "sources": [ { - "id": 345, - "name": "defaultValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "fileName": "src/node.ts", + "line": 139, + "character": 32 + } + ] + }, + { + "id": 449, + "name": "calculate", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 450, + "name": "calculate", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "text": "\nDefault value for the interface.\nIf the default value is a primitive (e. g. string, number) then the value can be passed directly.\nFor objects provide a function that returns the default value." + "shortText": "The default implementation does nothing.\nOverwrite this method to do calculation.", + "returns": "This method can return a promise.\n" }, "type": { "type": "intrinsic", "name": "any" + }, + "implementationOf": { + "type": "reference", + "name": "INode.calculate", + "id": 206 } - }, + } + ], + "sources": [ { - "id": 346, - "name": "additionalProperties", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "fileName": "src/node.ts", + "line": 111, + "character": 20 + } + ], + "implementationOf": { + "type": "reference", + "name": "INode.calculate", + "id": 205 + } + }, + { + "id": 474, + "name": "getInterface", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 475, + "name": "getInterface", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "text": "Additional properties of the interface that can be used by plugins" + "shortText": "Get an interface by its name. If the node does not have an interface with\n`name`, this method will throw an error." }, - "type": { - "type": "reference", - "name": "Record", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" + "parameters": [ + { + "id": 476, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the requested interface\n" }, - { + "type": { "type": "intrinsic", - "name": "any" + "name": "string" } - ] + } + ], + "type": { + "type": "reference", + "name": "NodeInterface", + "id": 493 + }, + "implementationOf": { + "type": "reference", + "name": "INode.getInterface", + "id": 208 } } ], - "type": { + "sources": [ + { + "fileName": "src/node.ts", + "line": 216, + "character": 23 + } + ], + "implementationOf": { "type": "reference", - "name": "NodeBuilder", - "id": 335 + "name": "INode.getInterface", + "id": 207 } - } - ], - "sources": [ - { - "fileName": "nodeBuilder.ts", - "line": 86, - "character": 28 - } - ] - }, - { - "id": 351, - "name": "addOption", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 352, - "name": "addOption", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Add a node option to the node", - "returns": "Current node builder instance for chaining\n" + "id": 477, + "name": "getOptionValue", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "signatures": [ { - "id": 353, - "name": "name", - "kind": 32768, - "kindString": "Parameter", + "id": 478, + "name": "getOptionValue", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "text": "Name of the option" + "shortText": "Get the value of option `name`" }, + "parameters": [ + { + "id": 479, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the option\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { "type": "intrinsic", - "name": "string" + "name": "any" + }, + "implementationOf": { + "type": "reference", + "name": "INode.getOptionValue", + "id": 211 } - }, + } + ], + "sources": [ { - "id": 354, - "name": "optionComponent", - "kind": 32768, - "kindString": "Parameter", + "fileName": "src/node.ts", + "line": 227, + "character": 25 + } + ], + "implementationOf": { + "type": "reference", + "name": "INode.getOptionValue", + "id": 210 + } + }, + { + "id": 444, + "name": "load", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 445, + "name": "load", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 446, + "name": "state", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INodeState", + "id": 10 + } + } + ], "type": { "type": "intrinsic", - "name": "string" + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "INode.load", + "id": 201 } - }, + } + ], + "sources": [ { - "id": 355, - "name": "defaultValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "fileName": "src/node.ts", + "line": 77, + "character": 15 + } + ], + "implementationOf": { + "type": "reference", + "name": "INode.load", + "id": 200 + } + }, + { + "id": 484, + "name": "registerEditor", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 485, + "name": "registerEditor", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "text": "\nDefault value for the option.\nIf the default value is a primitive (e. g. string, number) then the value can be passed directly.\nFor objects provide a function that returns the default value." + "shortText": "This function will automatically be called as soon as the node is added to an editor." }, + "parameters": [ + { + "id": 486, + "name": "editor", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Editor instance\n" + }, + "type": { + "type": "reference", + "name": "Editor", + "id": 330 + } + } + ], "type": { "type": "intrinsic", - "name": "any" + "name": "void" } - }, + } + ], + "sources": [ { - "id": 356, - "name": "sidebarComponent", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "fileName": "src/node.ts", + "line": 250, + "character": 25 + } + ], + "implementationOf": { + "type": "reference", + "name": "INode.registerEditor", + "id": 217 + } + }, + { + "id": 461, + "name": "removeInterface", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 462, + "name": "removeInterface", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "text": "Optional component to display in the sidebar" + "shortText": "Remove an existing interface" }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "parameters": [ + { + "id": 463, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the interface.\n" }, - { + "type": { "type": "intrinsic", "name": "string" } - ] + } + ], + "type": { + "type": "intrinsic", + "name": "void" } - }, + } + ], + "sources": [ { - "id": 357, - "name": "additionalProperties", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "fileName": "src/node.ts", + "line": 151, + "character": 29 + } + ] + }, + { + "id": 471, + "name": "removeOption", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 472, + "name": "removeOption", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "comment": { - "text": "Additional properties of the option that can be used by plugins" + "shortText": "Remove an existing option" }, + "parameters": [ + { + "id": 473, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the option\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/node.ts", + "line": 202, + "character": 26 + } + ] + }, + { + "id": 447, + "name": "save", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 448, + "name": "save", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, "type": { "type": "reference", - "name": "Record", - "typeArguments": [ - { + "name": "INodeState", + "id": 10 + }, + "implementationOf": { + "type": "reference", + "name": "INode.save", + "id": 204 + } + } + ], + "sources": [ + { + "fileName": "src/node.ts", + "line": 94, + "character": 15 + } + ], + "implementationOf": { + "type": "reference", + "name": "INode.save", + "id": 203 + } + }, + { + "id": 480, + "name": "setOptionValue", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 481, + "name": "setOptionValue", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Set the value of option `name`" + }, + "parameters": [ + { + "id": 482, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the option" + }, + "type": { "type": "intrinsic", "name": "string" + } + }, + { + "id": 483, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "New value\n" }, - { + "type": { "type": "intrinsic", "name": "any" } - ] + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "INode.setOptionValue", + "id": 214 } } ], - "type": { + "sources": [ + { + "fileName": "src/node.ts", + "line": 239, + "character": 25 + } + ], + "implementationOf": { "type": "reference", - "name": "NodeBuilder", - "id": 335 + "name": "INode.setOptionValue", + "id": 213 } - } - ], - "sources": [ - { - "fileName": "nodeBuilder.ts", - "line": 115, - "character": 20 - } - ] - }, - { - "id": 347, - "name": "addOutputInterface", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 348, - "name": "addOutputInterface", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Add an output interface to the node", - "returns": "Current node builder instance for chaining\n" + "id": 426, + "name": "events", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isPublic": true, + "isExported": true }, - "parameters": [ + "children": [ { - "id": 349, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Name of the interface" + "id": 428, + "name": "addInterface", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 42, + "character": 20 + } + ], "type": { - "type": "intrinsic", - "name": "string" - } + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + ] + }, + "defaultValue": " new BaklavaEvent()" }, { - "id": 350, - "name": "additionalProperties", - "kind": 32768, - "kindString": "Parameter", + "id": 432, + "name": "addOption", + "kind": 32, + "kindString": "Variable", "flags": { - "isOptional": true - }, - "comment": { - "text": "Additional properties of the interface that can be used by plugins" + "isExported": true }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 46, + "character": 17 + } + ], "type": { "type": "reference", - "name": "Record", + "name": "BaklavaEvent", + "id": 261, "typeArguments": [ { - "type": "intrinsic", - "name": "string" - }, + "type": "reference", + "name": "IOptionEventData", + "id": 168 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 427, + "name": "beforeAddInterface", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 41, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ { - "type": "intrinsic", - "name": "any" + "type": "reference", + "name": "IAddInterfaceEventData", + "id": 158 } ] - } - } - ], - "type": { - "type": "reference", - "name": "NodeBuilder", - "id": 335 - } - } - ], - "sources": [ - { - "fileName": "nodeBuilder.ts", - "line": 98, - "character": 29 - } - ] - }, - { - "id": 339, - "name": "build", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 340, - "name": "build", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Build the node class.\nThis must be called as the last operation when building a node.", - "returns": "The generated node class\n" - }, - "type": { - "type": "reference", - "name": "NodeConstructor", - "id": 309 - } - } - ], - "sources": [ - { - "fileName": "nodeBuilder.ts", - "line": 70, - "character": 16 - } - ] - }, - { - "id": 358, - "name": "onCalculate", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 359, - "name": "onCalculate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Register a callback for the calculation function.\nThe callback will receive the node instance as first parameter.\n(If you do not use ES6 arrow functions, the node instance\nwill also be bound to `this`)", - "returns": "Current node builder instance for chaining\n" - }, - "parameters": [ + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, { - "id": 360, - "name": "cb", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Callback to be executed when `calculate()` is called on the node" + "id": 431, + "name": "beforeAddOption", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 45, + "character": 23 + } + ], "type": { "type": "reference", - "name": "CalculationFunction" - } + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "IAddOptionEventData", + "id": 163 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 429, + "name": "beforeRemoveInterface", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 43, + "character": 29 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 433, + "name": "beforeRemoveOption", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 47, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "reference", + "name": "IOptionEventData", + "id": 168 + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 430, + "name": "removeInterface", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 44, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "NodeInterface", + "id": 493 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 434, + "name": "removeOption", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 48, + "character": 20 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "IOptionEventData", + "id": 168 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 435, + "name": "update", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 49, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "reference", + "name": "INodeUpdateEventData", + "id": 171 + } + ] + }, + "defaultValue": " new BaklavaEvent()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 428, + 432, + 427, + 431, + 429, + 433, + 430, + 434, + 435 + ] + } + ], + "sources": [ + { + "fileName": "src/node.ts", + "line": 40, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + }, + "implementationOf": { + "type": "reference", + "name": "INode.events", + "id": 183 + } + }, + { + "id": 436, + "name": "hooks", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isPublic": true, + "isExported": true + }, + "children": [ + { + "id": 437, + "name": "load", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 53, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SequentialHook", + "id": 302, + "typeArguments": [ + { + "type": "reference", + "name": "INodeState", + "id": 10 + } + ] + }, + "defaultValue": " new SequentialHook()" + }, + { + "id": 438, + "name": "save", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 54, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SequentialHook", + "id": 302, + "typeArguments": [ + { + "type": "reference", + "name": "INodeState", + "id": 10 + } + ] + }, + "defaultValue": " new SequentialHook()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 437, + 438 + ] + } + ], + "sources": [ + { + "fileName": "src/node.ts", + "line": 52, + "character": 16 } ], "type": { + "type": "intrinsic", + "name": "object" + }, + "implementationOf": { "type": "reference", - "name": "NodeBuilder", - "id": 335 + "name": "INode.hooks", + "id": 194 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 439, + 422, + 423, + 421, + 424, + 425, + 420 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 440, + 442 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 451, + 487, + 464, + 457, + 449, + 474, + 477, + 444, + 484, + 461, + 471, + 447, + 480 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 426, + 436 + ] + } + ], + "sources": [ + { + "fileName": "src/node.ts", + "line": 18, + "character": 26 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + }, + { + "id": 415, + "name": "IInterfaceCreateOptions", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 417, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 11, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 418, + "name": "optionName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 12, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 416, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/node.ts", + "line": 10, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } } ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 417, + 418, + 416 + ] + } + ], "sources": [ { - "fileName": "nodeBuilder.ts", - "line": 134, - "character": 22 + "fileName": "src/node.ts", + "line": 9, + "character": 40 } ] } ], "groups": [ { - "title": "Constructors", - "kind": 512, + "title": "Classes", + "kind": 128, "children": [ - 336 + 419 ] }, { - "title": "Methods", - "kind": 2048, + "title": "Interfaces", + "kind": 256, "children": [ - 341, - 351, - 347, - 339, - 358 + 415 ] } ], "sources": [ { - "fileName": "nodeBuilder.ts", - "line": 54, - "character": 24 + "fileName": "src/node.ts", + "line": 1, + "character": 0 } ] }, { - "id": 90, - "name": "NodeInterface", - "kind": 128, - "kindString": "Class", + "id": 547, + "name": "\"src/nodeBuilder\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/nodeBuilder.ts", "children": [ { - "id": 110, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 559, + "name": "NodeBuilder", + "kind": 128, + "kindString": "Class", "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "comment": { + "shortText": "Utility class for creating custom nodes" + }, + "children": [ { - "id": 111, - "name": "new NodeInterface", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ + "id": 565, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ { - "id": 112, - "name": "parent", - "kind": 32768, - "kindString": "Parameter", + "id": 566, + "name": "new NodeBuilder", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 567, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], "type": { "type": "reference", - "name": "Node", - "id": 142 - } - }, - { - "id": 113, - "name": "isInput", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "boolean" + "name": "NodeBuilder", + "id": 559 } } ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - } - ], - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 41, - "character": 5 - } - ] - }, - { - "id": 91, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 8, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 92, - "name": "isInput", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 9, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 94, - "name": "option", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 11, - "character": 17 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 93, - "name": "parent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 10, - "character": 17 - } - ], - "type": { - "type": "reference", - "name": "Node", - "id": 142 - } - }, - { - "id": 102, - "name": "connectionCount", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "getSignature": [ - { - "id": 105, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "setSignature": [ - { - "id": 103, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", - "flags": {}, - "parameters": [ + "sources": [ { - "id": 104, - "name": "v", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } + "fileName": "src/nodeBuilder.ts", + "line": 69, + "character": 47 } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 25, - "character": 30 + ] }, { - "fileName": "nodeInterface.ts", - "line": 29, - "character": 30 - } - ] - }, - { - "id": 106, - "name": "value", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "getSignature": [ - { - "id": 109, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "setSignature": [ - { - "id": 107, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", - "flags": {}, - "parameters": [ + "id": 564, + "name": "calcFunction", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true, + "isOptional": true + }, + "sources": [ { - "id": 108, - "name": "v", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } + "fileName": "src/nodeBuilder.ts", + "line": 69, + "character": 24 } ], "type": { - "type": "intrinsic", - "name": "void" + "type": "reference", + "name": "CalculationFunction", + "id": 596 } - } - ], - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 34, - "character": 20 }, { - "fileName": "nodeInterface.ts", - "line": 39, - "character": 20 - } - ] - }, - { - "id": 114, - "name": "load", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 115, - "name": "load", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 562, + "name": "intfs", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ { - "id": 116, - "name": "state", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "IInterfaceState", - "id": 81 - } + "fileName": "src/nodeBuilder.ts", + "line": 67, + "character": 17 } ], "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 49, - "character": 15 - } - ] - }, - { - "id": 117, - "name": "save", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 118, - "name": "save", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "IInterfaceState", - "id": 81 - } - } - ], - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 55, - "character": 15 - } - ] - }, - { - "id": 95, - "name": "events", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "children": [ + "type": "array", + "elementType": { + "type": "reference", + "name": "IInterfaceOptions", + "id": 548 + } + }, + "defaultValue": " []" + }, { - "id": 97, - "name": "beforeSetValue", - "kind": 32, - "kindString": "Variable", + "id": 561, + "name": "name", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isPrivate": true, + "isExported": true }, "sources": [ { - "fileName": "nodeInterface.ts", - "line": 15, - "character": 22 + "fileName": "src/nodeBuilder.ts", + "line": 66, + "character": 16 } ], "type": { - "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] + "type": "intrinsic", + "name": "string" }, - "defaultValue": " new PreventableBaklavaEvent()" + "defaultValue": "\"\"" }, { - "id": 96, - "name": "setConnectionCount", - "kind": 32, - "kindString": "Variable", + "id": 563, + "name": "options", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isPrivate": true, + "isExported": true }, "sources": [ { - "fileName": "nodeInterface.ts", - "line": 14, - "character": 26 + "fileName": "src/nodeBuilder.ts", + "line": 68, + "character": 19 } ], "type": { "type": "reference", - "name": "BaklavaEvent", - "id": 1, + "name": "Map", "typeArguments": [ { "type": "intrinsic", - "name": "number" + "name": "string" + }, + { + "type": "reference", + "name": "INodeOptionParameters", + "id": 554 } ] }, - "defaultValue": " new BaklavaEvent()" + "defaultValue": " new Map()" }, { - "id": 98, - "name": "setValue", - "kind": 32, - "kindString": "Variable", + "id": 560, + "name": "type", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isPrivate": true, + "isExported": true }, "sources": [ { - "fileName": "nodeInterface.ts", - "line": 16, + "fileName": "src/nodeBuilder.ts", + "line": 65, "character": 16 } ], "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] + "type": "intrinsic", + "name": "string" }, - "defaultValue": " new BaklavaEvent()" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 97, - 96, - 98 - ] - } - ], - "sources": [ + "defaultValue": "\"\"" + }, { - "fileName": "nodeInterface.ts", - "line": 13, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 99, - "name": "hooks", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 100, - "name": "load", - "kind": 32, - "kindString": "Variable", + "id": 573, + "name": "addInputInterface", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, - "sources": [ + "signatures": [ { - "fileName": "nodeInterface.ts", - "line": 20, - "character": 12 + "id": 574, + "name": "addInputInterface", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Add an input interface to the node", + "returns": "Current node builder instance for chaining\n" + }, + "parameters": [ + { + "id": 575, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the interface" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 576, + "name": "option", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "A node option component to be displayed when the interface is not connected" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 577, + "name": "defaultValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "\nDefault value for the interface.\nIf the default value is a primitive (e. g. string, number) then the value can be passed directly.\nFor objects provide a function that returns the default value." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 578, + "name": "additionalProperties", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Additional properties of the interface that can be used by plugins" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "NodeBuilder", + "id": 559 + } } ], - "type": { - "type": "reference", - "name": "SequentialHook", - "id": 41, - "typeArguments": [ - { + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 107, + "character": 28 + } + ] + }, + { + "id": 583, + "name": "addOption", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 584, + "name": "addOption", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Add a node option to the node", + "returns": "Current node builder instance for chaining\n" + }, + "parameters": [ + { + "id": 585, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the option" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 586, + "name": "optionComponent", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 587, + "name": "defaultValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "\nDefault value for the option.\nIf the default value is a primitive (e. g. string, number) then the value can be passed directly.\nFor objects provide a function that returns the default value." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 588, + "name": "sidebarComponent", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Optional component to display in the sidebar" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 589, + "name": "additionalProperties", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Additional properties of the option that can be used by plugins" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "type": { "type": "reference", - "name": "IInterfaceState", - "id": 81 + "name": "NodeBuilder", + "id": 559 } - ] + } + ], + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 136, + "character": 20 + } + ] + }, + { + "id": 579, + "name": "addOutputInterface", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "defaultValue": " new SequentialHook()" + "signatures": [ + { + "id": 580, + "name": "addOutputInterface", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Add an output interface to the node", + "returns": "Current node builder instance for chaining\n" + }, + "parameters": [ + { + "id": 581, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Name of the interface" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 582, + "name": "additionalProperties", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "comment": { + "text": "Additional properties of the interface that can be used by plugins" + }, + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "type": { + "type": "reference", + "name": "NodeBuilder", + "id": 559 + } + } + ], + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 119, + "character": 29 + } + ] }, { - "id": 101, - "name": "save", - "kind": 32, - "kindString": "Variable", + "id": 568, + "name": "build", + "kind": 2048, + "kindString": "Method", "flags": { - "isExported": true, - "isExternal": true + "isPublic": true, + "isExported": true }, + "signatures": [ + { + "id": 569, + "name": "build", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Build the node class.\nThis must be called as the last operation when building a node.", + "returns": "The generated node class\n" + }, + "type": { + "type": "reference", + "name": "NodeConstructorImpl", + "id": 601 + } + } + ], "sources": [ { - "fileName": "nodeInterface.ts", - "line": 21, - "character": 12 + "fileName": "src/nodeBuilder.ts", + "line": 81, + "character": 16 + } + ] + }, + { + "id": 593, + "name": "checkDefaultValue", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 594, + "name": "checkDefaultValue", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 595, + "name": "v", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } } ], - "type": { - "type": "reference", - "name": "SequentialHook", - "id": 41, - "typeArguments": [ - { + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 161, + "character": 29 + } + ] + }, + { + "id": 590, + "name": "onCalculate", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 591, + "name": "onCalculate", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Register a callback for the calculation function.\nThe callback will receive the node instance as first parameter.\n(If you do not use ES6 arrow functions, the node instance\nwill also be bound to `this`)", + "returns": "Current node builder instance for chaining\n" + }, + "parameters": [ + { + "id": 592, + "name": "cb", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Callback to be executed when `calculate()` is called on the node" + }, + "type": { + "type": "reference", + "name": "CalculationFunction", + "id": 596 + } + } + ], + "type": { "type": "reference", - "name": "IInterfaceState", - "id": 81 + "name": "NodeBuilder", + "id": 559 } - ] + } + ], + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 156, + "character": 22 + } + ] + }, + { + "id": 570, + "name": "setName", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "defaultValue": " new SequentialHook()" + "signatures": [ + { + "id": 571, + "name": "setName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Set a display name for the node.", + "returns": "Current node builder instance for chaining\n" + }, + "parameters": [ + { + "id": 572, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "New name of the node" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "NodeBuilder", + "id": 559 + } + } + ], + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 90, + "character": 18 + } + ] } ], "groups": [ { - "title": "Variables", - "kind": 32, + "title": "Constructors", + "kind": 512, "children": [ - 100, - 101 + 565 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 564, + 562, + 561, + 563, + 560 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 573, + 583, + 579, + 568, + 593, + 590, + 570 ] } ], "sources": [ { - "fileName": "nodeInterface.ts", - "line": 19, - "character": 16 + "fileName": "src/nodeBuilder.ts", + "line": 63, + "character": 24 } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 110 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 91, - 92, - 94, - 93 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 102, - 106 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 114, - 117 ] }, { - "title": "Object literals", - "kind": 2097152, + "id": 548, + "name": "IInterfaceOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, "children": [ - 95, - 99 - ] - } - ], - "sources": [ - { - "fileName": "nodeInterface.ts", - "line": 6, - "character": 26 - } - ] - }, - { - "id": 123, - "name": "NodeOption", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 129, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ { - "id": 130, - "name": "new NodeOption", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 131, - "name": "optionComponent", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, + "id": 553, + "name": "additionalProperties", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ { - "id": 132, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { + "fileName": "src/nodeBuilder.ts", + "line": 9, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { "type": "intrinsic", - "name": "any" - } - }, - { - "id": 133, - "name": "sidebarComponent", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true + "name": "string" }, - "type": { + { "type": "intrinsic", "name": "any" } - } - ], - "type": { - "type": "reference", - "name": "NodeOption", - "id": 123 + ] } - } - ], - "sources": [ - { - "fileName": "nodeOption.ts", - "line": 21, - "character": 24 - } - ] - }, - { - "id": 124, - "name": "optionComponent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Name of the component that should be displayed for the option" - }, - "sources": [ - { - "fileName": "nodeOption.ts", - "line": 12, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "implementationOf": { - "type": "reference", - "name": "IOption.optionComponent", - "id": 120 - } - }, - { - "id": 125, - "name": "sidebarComponent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Name of the component that should be displayed in the sidebar" - }, - "sources": [ + }, { - "fileName": "nodeOption.ts", - "line": 14, - "character": 27 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 552, + "name": "defaultValue", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true }, - { + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 8, + "character": 16 + } + ], + "type": { "type": "intrinsic", - "name": "string" + "name": "any" } - ] - }, - "implementationOf": { - "type": "reference", - "name": "IOption.sidebarComponent", - "id": 122 - } - }, - { - "id": 134, - "name": "value", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "getSignature": [ + }, { - "id": 135, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", + "id": 549, + "name": "isInput", + "kind": 1024, + "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 5, + "character": 11 + } + ], "type": { "type": "intrinsic", - "name": "any" + "name": "boolean" } - } - ], - "setSignature": [ + }, { - "id": 136, - "name": "__set", - "kind": 1048576, - "kindString": "Set signature", + "id": 550, + "name": "name", + "kind": 1024, + "kindString": "Property", "flags": {}, - "parameters": [ + "sources": [ { - "id": 137, - "name": "v", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } + "fileName": "src/nodeBuilder.ts", + "line": 6, + "character": 8 } ], "type": { "type": "intrinsic", - "name": "void" + "name": "string" + } + }, + { + "id": 551, + "name": "option", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 7, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] } } ], - "sources": [ - { - "fileName": "nodeOption.ts", - "line": 29, - "character": 20 - }, + "groups": [ { - "fileName": "nodeOption.ts", - "line": 33, - "character": 20 + "title": "Properties", + "kind": 1024, + "children": [ + 553, + 552, + 549, + 550, + 551 + ] } ], - "implementationOf": { - "type": "reference", - "name": "IOption.value", - "id": 121 - } + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 4, + "character": 27 + } + ] }, { - "id": 126, - "name": "events", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, + "id": 554, + "name": "INodeOptionParameters", + "kind": 256, + "kindString": "Interface", + "flags": {}, "children": [ { - "id": 127, - "name": "beforeSetValue", - "kind": 32, - "kindString": "Variable", + "id": 558, + "name": "additionalProperties", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isOptional": true }, "sources": [ { - "fileName": "nodeOption.ts", - "line": 17, - "character": 22 + "fileName": "src/nodeBuilder.ts", + "line": 16, + "character": 24 } ], "type": { "type": "reference", - "name": "PreventableBaklavaEvent", - "id": 14, + "name": "Record", "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, { "type": "intrinsic", "name": "any" } ] - }, - "defaultValue": " new PreventableBaklavaEvent()" + } + }, + { + "id": 556, + "name": "optionComponent", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 14, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } }, { - "id": 128, - "name": "setValue", - "kind": 32, - "kindString": "Variable", + "id": 557, + "name": "sidebarComponent", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true, - "isExternal": true + "isOptional": true }, "sources": [ { - "fileName": "nodeOption.ts", - "line": 18, - "character": 16 + "fileName": "src/nodeBuilder.ts", + "line": 15, + "character": 20 } ], "type": { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ + "type": "union", + "types": [ { "type": "intrinsic", - "name": "any" + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" } ] - }, - "defaultValue": " new BaklavaEvent()" + } + }, + { + "id": 555, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 13, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } ], "groups": [ { - "title": "Variables", - "kind": 32, + "title": "Properties", + "kind": 1024, "children": [ - 127, - 128 + 558, + 556, + 557, + 555 ] } ], "sources": [ { - "fileName": "nodeOption.ts", - "line": 16, - "character": 17 + "fileName": "src/nodeBuilder.ts", + "line": 12, + "character": 31 } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 129 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 124, - 125 - ] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [ - 134 ] }, { - "title": "Object literals", - "kind": 2097152, - "children": [ - 126 - ] - } - ], - "sources": [ - { - "fileName": "nodeOption.ts", - "line": 9, - "character": 23 - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "IOption", - "id": 119 - } - ] - }, - { - "id": 14, - "name": "PreventableBaklavaEvent", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isExternal": true - }, - "comment": { - "shortText": "Extension for the [[BaklavaEvent]] class. A listener can return `false` to prevent\nthis event from happening." - }, - "typeParameter": [ - { - "id": 15, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "children": [ - { - "id": 19, - "name": "listeners", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true - }, + "id": 596, + "name": "CalculationFunction", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, "sources": [ { - "fileName": "events/eventEmitter.ts", - "line": 8, - "character": 23 + "fileName": "src/nodeBuilder.ts", + "line": 19, + "character": 24 } ], "type": { - "type": "reference", - "name": "Map", - "typeArguments": [ - { - "type": "reference", - "name": "TokenType", - "id": 55 - }, - { - "type": "reference", - "name": "Listener", - "id": 56, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" + "type": "reflection", + "declaration": { + "id": 597, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 598, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 599, + "name": "this", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Node", + "id": 419 + } + }, + { + "id": 600, + "name": "n", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Node", + "id": 419 + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" } - ] - } - ] - }, - "defaultValue": " new Map()", - "inheritedFrom": { - "type": "reference", - "name": "BaklavaEvent.listeners", - "id": 3 + } + ], + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 19, + "character": 26 + } + ] + } } }, { - "id": 20, - "name": "addListener", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, + "id": 601, + "name": "NodeConstructorImpl", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 20, + "character": 24 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 602, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "src/nodeBuilder.ts", + "line": 20, + "character": 26 + } + ] + } + } + }, + { + "id": 606, + "name": "generateNode", + "kind": 64, + "kindString": "Function", + "flags": {}, "signatures": [ { - "id": 21, - "name": "addListener", + "id": 607, + "name": "generateNode", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Subscribe to the event" - }, "parameters": [ { - "id": 22, - "name": "token", + "id": 608, + "name": "type", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "A token that can be used to unsubscribe from the event later on" - }, "type": { - "type": "reference", - "name": "TokenType", - "id": 55 + "type": "intrinsic", + "name": "string" } }, { - "id": 23, - "name": "listener", + "id": 609, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 610, + "name": "intfs", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "IInterfaceOptions", + "id": 548 + } + } + }, + { + "id": 611, + "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "A callback that will be invoked when the event occurs\n" - }, "type": { "type": "reference", - "name": "Listener", - "id": 56, + "name": "Map", "typeArguments": [ { - "type": "typeParameter", - "name": "T" + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "INodeOptionParameters", + "id": 554 } ] } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "BaklavaEvent.addListener", - "id": 4 - } - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 15, - "character": 22 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "BaklavaEvent.addListener", - "id": 4 - } - }, - { - "id": 16, - "name": "emit", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true, - "isExternal": true - }, - "signatures": [ - { - "id": 17, - "name": "emit", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Invoke all listeners.", - "returns": "`true` when one of the listeners requested to prevent the event, otherwise `false`\n" - }, - "parameters": [ + }, { - "id": 18, - "name": "data", + "id": 612, + "name": "calcFunction", "kind": 32768, "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The data to invoke all listeners with" + "flags": { + "isOptional": true }, "type": { - "type": "typeParameter", - "name": "T" + "type": "reference", + "name": "CalculationFunction", + "id": 596 } } ], "type": { - "type": "intrinsic", - "name": "boolean" - }, - "overwrites": { "type": "reference", - "name": "BaklavaEvent.emit", - "id": 11 + "name": "(Anonymous class)" } } ], "sources": [ { - "fileName": "events/eventEmitter.ts", - "line": 50, - "character": 8 + "fileName": "src/nodeBuilder.ts", + "line": 30, + "character": 21 } - ], - "overwrites": { - "type": "reference", - "name": "BaklavaEvent.emit", - "id": 11 - } + ] }, { - "id": 24, - "name": "removeListener", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, + "id": 603, + "name": "getDefaultValue", + "kind": 64, + "kindString": "Function", + "flags": {}, "signatures": [ { - "id": 25, - "name": "removeListener", + "id": 604, + "name": "getDefaultValue", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Remove a listener" - }, "parameters": [ { - "id": 26, - "name": "token", + "id": 605, + "name": "v", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The token that was specified when subscribing to the listener.\nAn invalid token does not result in an error.\n" - }, "type": { - "type": "reference", - "name": "TokenType", - "id": 55 + "type": "intrinsic", + "name": "any" } } ], "type": { "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "BaklavaEvent.removeListener", - "id": 8 + "name": "any" } } ], "sources": [ { - "fileName": "events/eventEmitter.ts", - "line": 24, - "character": 25 + "fileName": "src/nodeBuilder.ts", + "line": 22, + "character": 24 } - ], - "inheritedFrom": { - "type": "reference", - "name": "BaklavaEvent.removeListener", - "id": 8 - } + ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Classes", + "kind": 128, "children": [ - 19 + 559 ] }, { - "title": "Methods", - "kind": 2048, + "title": "Interfaces", + "kind": 256, "children": [ - 20, - 16, - 24 + 548, + 554 ] - } - ], - "sources": [ + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 596, + 601 + ] + }, { - "fileName": "events/eventEmitter.ts", - "line": 43, - "character": 36 + "title": "Functions", + "kind": 64, + "children": [ + 606, + 603 + ] } ], - "extendedTypes": [ + "sources": [ { - "type": "reference", - "name": "BaklavaEvent", - "id": 1, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] + "fileName": "src/nodeBuilder.ts", + "line": 1, + "character": 0 } ] }, { - "id": 41, - "name": "SequentialHook", - "kind": 128, - "kindString": "Class", + "id": 492, + "name": "\"src/nodeInterface\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "comment": { - "shortText": "This class will run the taps one after each other and pass the data from every tap to another." - }, - "typeParameter": [ - { - "id": 42, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - }, - { - "id": 46, - "name": "O", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/nodeInterface.ts", "children": [ { - "id": 47, - "name": "taps", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 65, - "character": 18 - } - ], - "type": { - "type": "reference", - "name": "Array", - "typeArguments": [ - { - "type": "reference", - "name": "HookTap", - "id": 61, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - }, - { - "type": "typeParameter", - "name": "O" - } - ] - } - ] - }, - "defaultValue": " []", - "inheritedFrom": { - "type": "reference", - "name": "Hook.taps", - "id": 30 - } - }, - { - "id": 43, - "name": "execute", - "kind": 2048, - "kindString": "Method", + "id": 493, + "name": "NodeInterface", + "kind": 128, + "kindString": "Class", "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true + "isExported": true }, - "signatures": [ + "children": [ { - "id": 44, - "name": "execute", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 515, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ { - "id": 45, - "name": "data", - "kind": 32768, - "kindString": "Parameter", + "id": 516, + "name": "new NodeInterface", + "kind": 16384, + "kindString": "Constructor signature", "flags": {}, + "parameters": [ + { + "id": 517, + "name": "parent", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INode", + "id": 176 + } + }, + { + "id": 518, + "name": "isInput", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], "type": { - "type": "typeParameter", - "name": "T" + "type": "reference", + "name": "NodeInterface", + "id": 493 } } ], + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 42, + "character": 5 + } + ] + }, + { + "id": 505, + "name": "_connectionCount", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 25, + "character": 28 + } + ], "type": { - "type": "typeParameter", - "name": "T" + "type": "intrinsic", + "name": "number" }, - "overwrites": { - "type": "reference", - "name": "Hook.execute", - "id": 38 - } - } - ], - "sources": [ + "defaultValue": "0" + }, { - "fileName": "events/eventEmitter.ts", - "line": 91, - "character": 18 - } - ], - "overwrites": { - "type": "reference", - "name": "Hook.execute", - "id": 38 - } - }, - { - "id": 48, - "name": "tap", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + "id": 510, + "name": "_value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 34, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null" + }, { - "id": 49, - "name": "tap", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 494, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ { - "id": 50, - "name": "token", - "kind": 32768, - "kindString": "Parameter", + "fileName": "src/nodeInterface.ts", + "line": 9, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "implementationOf": { + "type": "reference", + "name": "INodeInterface.id", + "id": 222 + } + }, + { + "id": 495, + "name": "isInput", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 10, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "implementationOf": { + "type": "reference", + "name": "INodeInterface.isInput", + "id": 223 + } + }, + { + "id": 497, + "name": "option", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 12, + "character": 17 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "implementationOf": { + "type": "reference", + "name": "INodeInterface.option", + "id": 225 + } + }, + { + "id": 496, + "name": "parent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 11, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "INode", + "id": 176 + }, + "implementationOf": { + "type": "reference", + "name": "INodeInterface.parent", + "id": 224 + } + }, + { + "id": 506, + "name": "connectionCount", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, + "getSignature": [ + { + "id": 509, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, "type": { - "type": "reference", - "name": "TokenType", - "id": 55 + "type": "intrinsic", + "name": "number" + } + } + ], + "setSignature": [ + { + "id": 507, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "parameters": [ + { + "id": 508, + "name": "v", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" } + } + ], + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 26, + "character": 30 }, { - "id": 51, - "name": "tapFn", - "kind": 32768, - "kindString": "Parameter", + "fileName": "src/nodeInterface.ts", + "line": 30, + "character": 30 + } + ], + "implementationOf": { + "type": "reference", + "name": "INodeInterface.connectionCount", + "id": 231 + } + }, + { + "id": 511, + "name": "value", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, + "getSignature": [ + { + "id": 514, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", "flags": {}, "type": { - "type": "reference", - "name": "HookTap", - "id": 61, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - }, - { - "type": "typeParameter", - "name": "O" + "type": "intrinsic", + "name": "any" + } + } + ], + "setSignature": [ + { + "id": 512, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "parameters": [ + { + "id": 513, + "name": "v", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" } - ] + } + ], + "type": { + "type": "intrinsic", + "name": "void" } } ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 35, + "character": 20 + }, + { + "fileName": "src/nodeInterface.ts", + "line": 40, + "character": 20 + } + ], + "implementationOf": { "type": "reference", - "name": "Hook.tap", - "id": 31 + "name": "INodeInterface.value", + "id": 232 } - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 67, - "character": 14 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Hook.tap", - "id": 31 - } - }, - { - "id": 52, - "name": "untap", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true, - "isExternal": true - }, - "signatures": [ + }, { - "id": 53, - "name": "untap", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 519, + "name": "load", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ { - "id": 54, - "name": "token", - "kind": 32768, - "kindString": "Parameter", + "id": 520, + "name": "load", + "kind": 4096, + "kindString": "Call signature", "flags": {}, + "parameters": [ + { + "id": 521, + "name": "state", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "IInterfaceState", + "id": 18 + } + } + ], "type": { + "type": "intrinsic", + "name": "void" + }, + "implementationOf": { "type": "reference", - "name": "TokenType", - "id": 55 + "name": "INodeInterface.load", + "id": 234 } } ], - "type": { - "type": "intrinsic", - "name": "void" + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 50, + "character": 15 + } + ], + "implementationOf": { + "type": "reference", + "name": "INodeInterface.load", + "id": 233 + } + }, + { + "id": 522, + "name": "save", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true }, - "inheritedFrom": { + "signatures": [ + { + "id": 523, + "name": "save", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "IInterfaceState", + "id": 18 + }, + "implementationOf": { + "type": "reference", + "name": "INodeInterface.save", + "id": 237 + } + } + ], + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 56, + "character": 15 + } + ], + "implementationOf": { "type": "reference", - "name": "Hook.untap", - "id": 35 + "name": "INodeInterface.save", + "id": 236 } - } - ], - "sources": [ + }, { - "fileName": "events/eventEmitter.ts", - "line": 75, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "Hook.untap", - "id": 35 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 47 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 43, - 48, - 52 - ] - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 89, - "character": 27 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "Hook", - "id": 27, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ] - } - ] - }, - { - "id": 311, - "name": "IAddConnectionEventData", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 312, - "name": "from", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "id": 498, + "name": "events", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isPublic": true, + "isExported": true + }, + "children": [ + { + "id": 500, + "name": "beforeSetValue", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 16, + "character": 22 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 499, + "name": "setConnectionCount", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 15, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + }, + "defaultValue": " new BaklavaEvent()" + }, + { + "id": 501, + "name": "setValue", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 17, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "defaultValue": " new BaklavaEvent()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 500, + 499, + 501 + ] + } + ], + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 14, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + }, + "implementationOf": { + "type": "reference", + "name": "INodeInterface.events", + "id": 226 + } + }, { - "fileName": "events/eventDataTypes.ts", - "line": 6, - "character": 8 + "id": 502, + "name": "hooks", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isPublic": true, + "isExported": true + }, + "children": [ + { + "id": 503, + "name": "load", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 21, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SequentialHook", + "id": 302, + "typeArguments": [ + { + "type": "reference", + "name": "IInterfaceState", + "id": 18 + } + ] + }, + "defaultValue": " new SequentialHook()" + }, + { + "id": 504, + "name": "save", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 22, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "SequentialHook", + "id": 302, + "typeArguments": [ + { + "type": "reference", + "name": "IInterfaceState", + "id": 18 + } + ] + }, + "defaultValue": " new SequentialHook()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 503, + 504 + ] + } + ], + "sources": [ + { + "fileName": "src/nodeInterface.ts", + "line": 20, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } } ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, - { - "id": 313, - "name": "to", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "groups": [ { - "fileName": "events/eventDataTypes.ts", - "line": 7, - "character": 6 - } - ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 312, - 313 - ] - } - ], - "sources": [ - { - "fileName": "events/eventDataTypes.ts", - "line": 5, - "character": 40 - } - ] - }, - { - "id": 318, - "name": "IAddInterfaceEventData", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 322, - "name": "defaultValue", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ + "title": "Constructors", + "kind": 512, + "children": [ + 515 + ] + }, { - "fileName": "events/eventDataTypes.ts", - "line": 21, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 320, - "name": "isInput", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "title": "Properties", + "kind": 1024, + "children": [ + 505, + 510, + 494, + 495, + 497, + 496 + ] + }, { - "fileName": "events/eventDataTypes.ts", - "line": 19, - "character": 11 + "title": "Accessors", + "kind": 262144, + "children": [ + 506, + 511 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 519, + 522 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 498, + 502 + ] } ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 319, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 18, - "character": 8 + "fileName": "src/nodeInterface.ts", + "line": 7, + "character": 26 } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 321, - "name": "option", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ + "implementedTypes": [ { - "fileName": "events/eventDataTypes.ts", - "line": 20, - "character": 10 + "type": "reference", + "name": "INodeInterface", + "id": 221 } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } + ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Classes", + "kind": 128, "children": [ - 322, - 320, - 319, - 321 + 493 ] } ], "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 17, - "character": 39 + "fileName": "src/nodeInterface.ts", + "line": 1, + "character": 0 } ] }, { - "id": 314, - "name": "IAddNodeTypeEventData", - "kind": 256, - "kindString": "Interface", + "id": 397, + "name": "\"src/nodeOption\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/src/nodeOption.ts", "children": [ { - "id": 317, - "name": "category", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "events/eventDataTypes.ts", - "line": 13, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 316, - "name": "type", - "kind": 1024, - "kindString": "Property", + "id": 398, + "name": "NodeOption", + "kind": 128, + "kindString": "Class", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "events/eventDataTypes.ts", - "line": 12, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "NodeConstructor", - "id": 309 - } - }, - { - "id": 315, - "name": "typeName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, + "id": 405, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 406, + "name": "new NodeOption", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 407, + "name": "optionComponent", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 408, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 409, + "name": "sidebarComponent", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "NodeOption", + "id": 398 + } + } + ], + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 16, + "character": 24 + } + ] + }, + { + "id": 404, + "name": "_value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 16, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 399, + "name": "optionComponent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Name of the component that should be displayed for the option" + }, + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 7, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "implementationOf": { + "type": "reference", + "name": "INodeOption.optionComponent", + "id": 143 + } + }, + { + "id": 400, + "name": "sidebarComponent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Name of the component that should be displayed in the sidebar" + }, + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 9, + "character": 27 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "implementationOf": { + "type": "reference", + "name": "INodeOption.sidebarComponent", + "id": 145 + } + }, + { + "id": 410, + "name": "value", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isPublic": true, + "isExported": true + }, + "getSignature": [ + { + "id": 411, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "setSignature": [ + { + "id": 412, + "name": "__set", + "kind": 1048576, + "kindString": "Set signature", + "flags": {}, + "parameters": [ + { + "id": 413, + "name": "v", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 24, + "character": 20 + }, + { + "fileName": "src/nodeOption.ts", + "line": 28, + "character": 20 + } + ], + "implementationOf": { + "type": "reference", + "name": "INodeOption.value", + "id": 144 + } + }, + { + "id": 401, + "name": "events", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isPublic": true, + "isExported": true + }, + "children": [ + { + "id": 402, + "name": "beforeSetValue", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 12, + "character": 22 + } + ], + "type": { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "defaultValue": " new PreventableBaklavaEvent()" + }, + { + "id": 403, + "name": "setValue", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 13, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "BaklavaEvent", + "id": 261, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "defaultValue": " new BaklavaEvent()" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 402, + 403 + ] + } + ], + "sources": [ + { + "fileName": "src/nodeOption.ts", + "line": 11, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + }, + "implementationOf": { + "type": "reference", + "name": "INodeOption.events", + "id": 146 + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 405 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 404, + 399, + 400 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 410 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 401 + ] + } + ], "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 11, - "character": 12 + "fileName": "src/nodeOption.ts", + "line": 4, + "character": 23 } ], - "type": { - "type": "intrinsic", - "name": "string" - } + "implementedTypes": [ + { + "type": "reference", + "name": "INodeOption", + "id": 142 + } + ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Classes", + "kind": 128, "children": [ - 317, - 316, - 315 + 398 ] } ], "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 10, - "character": 38 + "fileName": "src/nodeOption.ts", + "line": 1, + "character": 0 } ] }, { - "id": 323, - "name": "IAddOptionEventData", - "kind": 256, - "kindString": "Interface", + "id": 238, + "name": "\"types/connection\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/connection.ts", "children": [ { - "id": 325, - "name": "component", - "kind": 1024, - "kindString": "Property", + "id": 239, + "name": "TemporaryConnectionState", + "kind": 4, + "kindString": "Enumeration", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "children": [ + { + "id": 241, + "name": "ALLOWED", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 5, + "character": 11 + } + ] + }, + { + "id": 242, + "name": "FORBIDDEN", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 6, + "character": 13 + } + ] + }, { - "fileName": "events/eventDataTypes.ts", - "line": 26, - "character": 13 + "id": 240, + "name": "NONE", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 4, + "character": 8 + } + ] } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 326, - "name": "defaultValue", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "groups": [ { - "fileName": "events/eventDataTypes.ts", - "line": 27, - "character": 16 + "title": "Enumeration members", + "kind": 16, + "children": [ + 241, + 242, + 240 + ] } ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 324, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 25, - "character": 8 + "fileName": "types/connection.ts", + "line": 3, + "character": 36 } - ], - "type": { - "type": "intrinsic", - "name": "string" - } + ] }, { - "id": 327, - "name": "sidebarComponent", - "kind": 1024, - "kindString": "Property", + "id": 249, + "name": "IConnection", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "events/eventDataTypes.ts", - "line": 28, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 251, + "name": "from", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "types/connection.ts", + "line": 19, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + }, + { + "id": 250, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 18, + "character": 6 + } + ], + "type": { "type": "intrinsic", "name": "string" } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 325, - 326, - 324, - 327 - ] - } - ], - "sources": [ - { - "fileName": "events/eventDataTypes.ts", - "line": 24, - "character": 36 - } - ] - }, - { - "id": 219, - "name": "IConnection", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 221, - "name": "from", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + }, { - "fileName": "connection.ts", - "line": 21, - "character": 8 + "id": 252, + "name": "to", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 20, + "character": 6 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } } ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, - { - "id": 220, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "groups": [ { - "fileName": "connection.ts", - "line": 20, - "character": 6 + "title": "Properties", + "kind": 1024, + "children": [ + 251, + 250, + 252 + ] } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 222, - "name": "to", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "connection.ts", - "line": 22, - "character": 6 + "fileName": "types/connection.ts", + "line": 17, + "character": 28 } ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 221, - 220, - 222 - ] - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 19, - "character": 28 - } - ], - "implementedBy": [ - { - "type": "reference", - "name": "DummyConnection", - "id": 237 - } - ] - }, - { - "id": 85, - "name": "IConnectionState", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 87, - "name": "from", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "extendedBy": [ { - "fileName": "state.ts", - "line": 22, - "character": 8 + "type": "reference", + "name": "ITransferConnection", + "id": 253 } ], - "type": { - "type": "intrinsic", - "name": "string" - } + "implementedBy": [ + { + "type": "reference", + "name": "DummyConnection", + "id": 539 + } + ] }, { - "id": 86, - "name": "id", - "kind": 1024, - "kindString": "Property", + "id": 243, + "name": "ITemporaryConnection", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "children": [ + { + "id": 245, + "name": "from", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 11, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + }, + { + "id": 247, + "name": "mx", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 13, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 248, + "name": "my", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 14, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 244, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 10, + "character": 10 + } + ], + "type": { + "type": "reference", + "name": "TemporaryConnectionState", + "id": 239 + } + }, { - "fileName": "state.ts", - "line": 21, - "character": 6 + "id": 246, + "name": "to", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 12, + "character": 6 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 88, - "name": "to", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "groups": [ { - "fileName": "state.ts", - "line": 23, - "character": 6 + "title": "Properties", + "kind": 1024, + "children": [ + 245, + 247, + 248, + 244, + 246 + ] } ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 87, - 86, - 88 + "sources": [ + { + "fileName": "types/connection.ts", + "line": 9, + "character": 37 + } ] - } - ], - "sources": [ - { - "fileName": "state.ts", - "line": 20, - "character": 33 - } - ], - "extendedTypes": [ - { - "type": "reflection", - "declaration": { - "id": 89, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "state.ts", - "line": 20, - "character": 41 - } - ] - } - } - ] - }, - { - "id": 138, - "name": "IInterfaceCreateOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ + }, { - "id": 140, - "name": "name", - "kind": 1024, - "kindString": "Property", + "id": 253, + "name": "ITransferConnection", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "node.ts", - "line": 11, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { + "id": 255, + "name": "destructed", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 25, + "character": 14 + } + ], + "type": { "type": "intrinsic", - "name": "undefined" + "name": "boolean" + } + }, + { + "id": 257, + "name": "from", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "types/connection.ts", + "line": 19, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + }, + "inheritedFrom": { + "type": "reference", + "name": "IConnection.from", + "id": 251 + } + }, + { + "id": 256, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 18, + "character": 6 + } + ], + "type": { "type": "intrinsic", "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "IConnection.id", + "id": 250 } - ] - } + }, + { + "id": 254, + "name": "isInDanger", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 24, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 258, + "name": "to", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/connection.ts", + "line": 20, + "character": 6 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + }, + "inheritedFrom": { + "type": "reference", + "name": "IConnection.to", + "id": 252 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 255, + 257, + 256, + 254, + 258 + ] + } + ], + "sources": [ + { + "fileName": "types/connection.ts", + "line": 23, + "character": 36 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ], + "implementedBy": [ + { + "type": "reference", + "name": "Connection", + "id": 525 + } + ] + } + ], + "groups": [ + { + "title": "Enumerations", + "kind": 4, + "children": [ + 239 + ] }, { - "id": 141, - "name": "optionName", - "kind": 1024, - "kindString": "Property", + "title": "Interfaces", + "kind": 256, + "children": [ + 249, + 243, + 253 + ] + } + ], + "sources": [ + { + "fileName": "types/connection.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 83, + "name": "\"types/editor\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/editor.ts", + "children": [ + { + "id": 84, + "name": "IEditor", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "node.ts", - "line": 12, - "character": 14 + "id": 105, + "name": "connections", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 35, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "ReadonlyArray", + "typeArguments": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + } + }, + { + "id": 85, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 13, + "character": 10 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 86, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 94, + "name": "addConnection", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 21, + "character": 21 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + } + }, + { + "id": 90, + "name": "addNode", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 17, + "character": 15 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + } + }, + { + "id": 93, + "name": "beforeAddConnection", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 20, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IAddConnectionEventData", + "id": 151 + } + ] + } + }, + { + "id": 89, + "name": "beforeAddNode", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 16, + "character": 21 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + } + }, + { + "id": 87, + "name": "beforeRegisterNodeType", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 14, + "character": 30 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IAddNodeTypeEventData", + "id": 154 + } + ] + } + }, + { + "id": 96, + "name": "beforeRemoveConnection", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 23, + "character": 30 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + } + }, + { + "id": 91, + "name": "beforeRemoveNode", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 18, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + } + }, + { + "id": 98, + "name": "beforeUsePlugin", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 25, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + ] + } + }, + { + "id": 95, + "name": "checkConnection", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 22, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IAddConnectionEventData", + "id": 151 + } + ] + } + }, + { + "id": 88, + "name": "registerNodeType", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 15, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "IAddNodeTypeEventData", + "id": 154 + } + ] + } + }, + { + "id": 97, + "name": "removeConnection", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 24, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + } + }, + { + "id": 92, + "name": "removeNode", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 19, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + } + }, + { + "id": 99, + "name": "usePlugin", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 26, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 94, + 90, + 93, + 89, + 87, + 96, + 91, + 98, + 95, + 88, + 97, + 92, + 99 + ] + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 13, + "character": 11 + } + ] + } + } + }, + { + "id": 100, + "name": "hooks", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 29, + "character": 9 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 101, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 103, + "name": "load", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 31, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "IHook", + "id": 52, + "typeArguments": [ + { + "type": "reference", + "name": "IState", + "id": 6 + } + ] + } + }, + { + "id": 102, + "name": "save", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 30, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "IHook", + "id": 52, + "typeArguments": [ + { + "type": "reference", + "name": "IState", + "id": 6 + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 103, + 102 + ] + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 29, + "character": 10 + } + ] + } + } + }, + { + "id": 107, + "name": "nodeCategories", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 37, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "ReadonlyMap", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + }, + { + "id": 106, + "name": "nodeTypes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 36, + "character": 22 + } + ], + "type": { + "type": "reference", + "name": "ReadonlyMap", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "NodeConstructor", + "id": 139 + } + ] + } + }, + { + "id": 104, + "name": "nodes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 34, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "ReadonlyArray", + "typeArguments": [ + { + "type": "reference", + "name": "INode", + "id": 176 + } + ] + } + }, + { + "id": 108, + "name": "plugins", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 38, + "character": 20 + } + ], + "type": { + "type": "reference", + "name": "ReadonlySet", + "typeArguments": [ + { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + ] + } + }, + { + "id": 120, + "name": "addConnection", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 121, + "name": "addConnection", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 122, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + }, + { + "id": 123, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "IConnection", + "id": 249 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 43, + "character": 17 + } + ] + }, + { + "id": 114, + "name": "addNode", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 115, + "name": "addNode", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 116, + "name": "node", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INode", + "id": 176 + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "INode", + "id": 176 + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 41, + "character": 11 + } + ] + }, + { + "id": 127, + "name": "checkConnection", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 128, + "name": "checkConnection", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 129, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + }, + { + "id": 130, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "reference", + "name": "IConnection", + "id": 249 + } + ] + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 45, + "character": 19 + } + ] + }, + { + "id": 131, + "name": "load", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 132, + "name": "load", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 133, + "name": "state", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "IState", + "id": 6 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 46, + "character": 8 + } + ] + }, + { + "id": 109, + "name": "registerNodeType", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 110, + "name": "registerNodeType", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 111, + "name": "typeName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 112, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "NodeConstructor", + "id": 139 + } + }, + { + "id": 113, + "name": "category", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 40, + "character": 20 + } + ] + }, + { + "id": 124, + "name": "removeConnection", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 125, + "name": "removeConnection", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 126, + "name": "connection", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "IConnection", + "id": 249 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 44, + "character": 20 + } + ] + }, + { + "id": 117, + "name": "removeNode", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 118, + "name": "removeNode", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 119, + "name": "node", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INode", + "id": 176 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 42, + "character": 14 + } + ] + }, + { + "id": 134, + "name": "save", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 135, + "name": "save", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "IState", + "id": 6 + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 47, + "character": 8 + } + ] + }, + { + "id": 136, + "name": "use", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 137, + "name": "use", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 138, + "name": "plugin", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "IPlugin", + "id": 78 + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 48, + "character": 7 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 105, + 85, + 100, + 107, + 106, + 104, + 108 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 120, + 114, + 127, + 131, + 109, + 124, + 117, + 134, + 136 + ] + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 11, + "character": 24 + } + ], + "implementedBy": [ + { + "type": "reference", + "name": "Editor", + "id": 330 + } + ] + }, + { + "id": 139, + "name": "NodeConstructor", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 9, + "character": 27 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 140, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "types/editor.ts", + "line": 9, + "character": 29 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 84 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 139 + ] + } + ], + "sources": [ + { + "fileName": "types/editor.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 150, + "name": "\"types/eventDataTypes\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/eventDataTypes.ts", + "children": [ + { + "id": 151, + "name": "IAddConnectionEventData", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 152, + "name": "from", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 7, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + }, + { + "id": 153, + "name": "to", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 8, + "character": 6 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 152, + 153 + ] + } + ], + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 6, + "character": 40 + } + ] + }, + { + "id": 158, + "name": "IAddInterfaceEventData", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 162, + "name": "defaultValue", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 22, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 160, + "name": "isInput", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 20, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 159, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 19, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 161, + "name": "option", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 21, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 162, + 160, + 159, + 161 + ] + } + ], + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 18, + "character": 39 + } + ] + }, + { + "id": 154, + "name": "IAddNodeTypeEventData", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 157, + "name": "category", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 14, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 156, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 13, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "NodeConstructor", + "id": 139 + } + }, + { + "id": 155, + "name": "typeName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 12, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 157, + 156, + 155 + ] + } + ], + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 11, + "character": 38 + } + ] + }, + { + "id": 163, + "name": "IAddOptionEventData", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 165, + "name": "component", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 27, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 166, + "name": "defaultValue", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 28, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 164, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 26, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 167, + "name": "sidebarComponent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 29, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 165, + 166, + 164, + 167 + ] + } + ], + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 25, + "character": 36 + } + ] + }, + { + "id": 171, + "name": "INodeUpdateEventData", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 174, + "name": "interface", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 40, + "character": 13 + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + }, + { + "id": 172, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 38, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 173, + "name": "option", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 39, + "character": 10 + } + ], + "type": { + "type": "reference", + "name": "INodeOption", + "id": 142 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 174, + 172, + 173 + ] + } + ], + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 37, + "character": 37 + } + ] + }, + { + "id": 168, + "name": "IOptionEventData", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 169, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 33, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 170, + "name": "option", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 34, + "character": 10 + } + ], + "type": { + "type": "reference", + "name": "INodeOption", + "id": 142 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 169, + 170 + ] + } + ], + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 32, + "character": 33 + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 151, + 158, + 154, + 163, + 171, + 168 + ] + } + ], + "sources": [ + { + "fileName": "types/eventDataTypes.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 27, + "name": "\"types/events\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/events.ts", + "children": [ + { + "id": 28, + "name": "IBaklavaEvent", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 29, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 30, + "name": "addListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 31, + "name": "addListener", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 32, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 65 + } + }, + { + "id": 33, + "name": "listener", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Listener", + "id": 66, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 6, + "character": 15 + } + ] + }, + { + "id": 37, + "name": "emit", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 38, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 39, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 8, + "character": 8 + } + ] + }, + { + "id": 34, + "name": "removeListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 35, + "name": "removeListener", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 36, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 65 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 7, + "character": 18 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 30, + 37, + 34 + ] + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 5, + "character": 30 + } + ], + "extendedBy": [ + { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40 + } + ], + "implementedBy": [ + { + "type": "reference", + "name": "BaklavaEvent", + "id": 261 + }, + { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274 + }, + { + "type": "reference", + "name": "PreventableBaklavaEvent", + "id": 274 + } + ] + }, + { + "id": 52, + "name": "IHook", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 53, + "name": "I", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 54, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 62, + "name": "execute", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 63, + "name": "execute", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 64, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "I" + } + } + ], + "type": { + "type": "typeParameter", + "name": "O" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 18, + "character": 11 + } + ] + }, + { + "id": 55, + "name": "tap", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 56, + "name": "tap", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 57, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 65 + } + }, + { + "id": 58, + "name": "tapFn", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "HookTap", + "id": 71, + "typeArguments": [ + { + "type": "typeParameter", + "name": "I" + }, + { + "type": "typeParameter", + "name": "O" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 16, + "character": 7 + } + ] + }, + { + "id": 59, + "name": "untap", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 60, + "name": "untap", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 61, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 65 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 17, + "character": 9 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 62, + 55, + 59 + ] + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 15, + "character": 22 + } + ], + "implementedBy": [ + { + "type": "reference", + "name": "Hook", + "id": 287 + }, + { + "type": "reference", + "name": "SequentialHook", + "id": 302 + } + ] + }, + { + "id": 40, + "name": "IPreventableBaklavaEvent", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 41, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "children": [ + { + "id": 45, + "name": "addListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 46, + "name": "addListener", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 47, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 65 + } + }, + { + "id": 48, + "name": "listener", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Listener", + "id": 66, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "IBaklavaEvent.addListener", + "id": 30 + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 6, + "character": 15 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "IBaklavaEvent.addListener", + "id": 30 + } + }, + { + "id": 42, + "name": "emit", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 43, + "name": "emit", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 44, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "overwrites": { + "type": "reference", + "name": "IBaklavaEvent.emit", + "id": 37 + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 12, + "character": 8 + } + ], + "overwrites": { + "type": "reference", + "name": "IBaklavaEvent.emit", + "id": 37 + } + }, + { + "id": 49, + "name": "removeListener", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 50, + "name": "removeListener", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 51, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TokenType", + "id": 65 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "IBaklavaEvent.removeListener", + "id": 34 + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 7, + "character": 18 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "IBaklavaEvent.removeListener", + "id": 34 + } + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 45, + 42, + 49 + ] + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 11, + "character": 41 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ] + } + ] + }, + { + "id": 71, + "name": "HookTap", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 72, + "name": "I", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + }, + { + "id": 73, + "name": "O", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 3, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 74, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 75, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 76, + "name": "i", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "I" + } + } + ], + "type": { + "type": "typeParameter", + "name": "O" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 3, + "character": 27 + } + ] + } + } + }, + { + "id": 66, + "name": "Listener", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 67, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {} + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 68, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 69, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 70, + "name": "ev", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "typeParameter", + "name": "T" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 2, + "character": 25 + } + ] + } + } + }, + { + "id": 65, + "name": "TokenType", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/events.ts", + "line": 1, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "intrinsic", + "name": "symbol" + } + ] + } + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 28, + 52, + 40 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 71, + 66, + 65 + ] + } + ], + "sources": [ + { + "fileName": "types/events.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 259, + "name": "\"types/index\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/index.ts", + "sources": [ + { + "fileName": "types/index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 175, + "name": "\"types/node\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/node.ts", + "children": [ + { + "id": 176, + "name": "INode", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 183, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 17, + "character": 10 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 184, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 186, + "name": "addInterface", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 19, + "character": 20 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + ] + } + }, + { + "id": 190, + "name": "addOption", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 23, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "IOptionEventData", + "id": 168 + } + ] + } + }, + { + "id": 185, + "name": "beforeAddInterface", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 18, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IAddInterfaceEventData", + "id": 158 + } + ] + } + }, + { + "id": 189, + "name": "beforeAddOption", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 22, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IAddOptionEventData", + "id": 163 + } + ] + } + }, + { + "id": 187, + "name": "beforeRemoveInterface", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 20, + "character": 29 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + ] + } + }, + { + "id": 191, + "name": "beforeRemoveOption", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 24, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "reference", + "name": "IOptionEventData", + "id": 168 + } + ] + } + }, + { + "id": 188, + "name": "removeInterface", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 21, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + ] + } + }, + { + "id": 192, + "name": "removeOption", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 25, + "character": 20 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "IOptionEventData", + "id": 168 + } + ] + } + }, + { + "id": 193, + "name": "update", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 26, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "reference", + "name": "INodeUpdateEventData", + "id": 171 + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 186, + 190, + 185, + 189, + 187, + 191, + 188, + 192, + 193 + ] + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 17, + "character": 11 + } + ] + } + } + }, + { + "id": 194, + "name": "hooks", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 29, + "character": 9 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 195, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 196, + "name": "load", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 30, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "IHook", + "id": 52, + "typeArguments": [ + { + "type": "reference", + "name": "INodeState", + "id": 10 + } + ] + } + }, + { + "id": 197, + "name": "save", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/node.ts", + "line": 31, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "IHook", + "id": 52, + "typeArguments": [ + { + "type": "reference", + "name": "INodeState", + "id": 10 + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 196, + 197 + ] + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 29, + "character": 10 + } + ] + } + } + }, + { + "id": 179, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 12, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 198, + "name": "inputInterfaces", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 34, + "character": 19 + } + ], + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + ] + } + }, + { + "id": 180, + "name": "interfaces", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 13, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Map", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + ] + } + }, + { + "id": 178, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 11, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 181, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 14, + "character": 11 + } + ], + "type": { + "type": "reference", + "name": "Map", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "INodeOption", + "id": 142 + } + ] + } + }, + { + "id": 199, + "name": "outputInterfaces", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 35, + "character": 20 + } + ], + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + ] + } + }, + { + "id": 182, + "name": "state", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 15, + "character": 9 + } + ], + "type": { + "type": "reference", + "name": "Record", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + }, + { + "id": 177, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/node.ts", + "line": 10, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 205, + "name": "calculate", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 206, + "name": "calculate", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 39, + "character": 13 + } + ] + }, + { + "id": 207, + "name": "getInterface", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 208, + "name": "getInterface", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 209, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "INodeInterface", + "id": 221 + } + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 40, + "character": 16 + } + ] + }, + { + "id": 210, + "name": "getOptionValue", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 211, + "name": "getOptionValue", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 212, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 41, + "character": 18 + } + ] + }, + { + "id": 200, + "name": "load", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 201, + "name": "load", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 202, + "name": "state", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "INodeState", + "id": 10 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 37, + "character": 8 + } + ] + }, + { + "id": 217, + "name": "registerEditor", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 218, + "name": "registerEditor", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 219, + "name": "editor", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "IEditor", + "id": 84 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 43, + "character": 18 + } + ] + }, + { + "id": 203, + "name": "save", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 204, + "name": "save", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "INodeState", + "id": 10 + } + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 38, + "character": 8 + } + ] + }, + { + "id": 213, + "name": "setOptionValue", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 214, + "name": "setOptionValue", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 215, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 216, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/node.ts", + "line": 42, + "character": 18 + } + ] } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 139, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 183, + 194, + 179, + 198, + 180, + 178, + 181, + 199, + 182, + 177 + ] + }, { - "fileName": "node.ts", - "line": 10, - "character": 8 + "title": "Methods", + "kind": 2048, + "children": [ + 205, + 207, + 210, + 200, + 217, + 203, + 213 + ] } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 140, - 141, - 139 - ] - } - ], - "sources": [ - { - "fileName": "node.ts", - "line": 9, - "character": 40 - } - ] - }, - { - "id": 81, - "name": "IInterfaceState", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 82, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "state.ts", - "line": 16, - "character": 6 + "fileName": "types/node.ts", + "line": 8, + "character": 22 } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 83, - "name": "value", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "implementedBy": [ { - "fileName": "state.ts", - "line": 17, - "character": 9 + "type": "reference", + "name": "Node", + "id": 419 } - ], - "type": { - "type": "intrinsic", - "name": "any" - } + ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Interfaces", + "kind": 256, "children": [ - 82, - 83 + 176 ] } ], "sources": [ { - "fileName": "state.ts", - "line": 15, - "character": 32 - } - ], - "extendedTypes": [ - { - "type": "reflection", - "declaration": { - "id": 84, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "state.ts", - "line": 15, - "character": 40 - } - ] - } + "fileName": "types/node.ts", + "line": 1, + "character": 0 } ] }, { - "id": 73, - "name": "INodeState", - "kind": 256, - "kindString": "Interface", + "id": 220, + "name": "\"types/nodeInterface\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/nodeInterface.ts", "children": [ { - "id": 76, - "name": "id", - "kind": 1024, - "kindString": "Property", + "id": 221, + "name": "INodeInterface", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "state.ts", - "line": 9, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 77, - "name": "interfaces", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "id": 231, + "name": "connectionCount", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 18, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, { - "fileName": "state.ts", - "line": 10, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "Array", - "typeArguments": [ - { - "type": "tuple", - "elements": [ + "id": 226, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 12, + "character": 10 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 227, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 229, + "name": "beforeSetValue", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 14, + "character": 22 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + }, + { + "id": 228, + "name": "setConnectionCount", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 13, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 230, + "name": "setValue", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 15, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 229, + 228, + 230 + ] + } + ], + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 12, + "character": 11 + } + ] + } + } + }, + { + "id": 222, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 7, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 223, + "name": "isInput", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 8, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 225, + "name": "option", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 10, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ { "type": "intrinsic", - "name": "string" + "name": "undefined" }, { - "type": "reference", - "name": "IInterfaceState", - "id": 81 + "type": "intrinsic", + "name": "string" } ] } - ] - } - }, - { - "id": 75, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + }, { - "fileName": "state.ts", - "line": 8, - "character": 8 + "id": 224, + "name": "parent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 9, + "character": 10 + } + ], + "type": { + "type": "reference", + "name": "INode", + "id": 176 + } + }, + { + "id": 232, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 19, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 233, + "name": "load", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 234, + "name": "load", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 235, + "name": "state", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "IInterfaceState", + "id": 18 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 21, + "character": 8 + } + ] + }, + { + "id": 236, + "name": "save", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 237, + "name": "save", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "IInterfaceState", + "id": 18 + } + } + ], + "sources": [ + { + "fileName": "types/nodeInterface.ts", + "line": 22, + "character": 8 + } + ] } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 78, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "groups": [ { - "fileName": "state.ts", - "line": 11, - "character": 11 + "title": "Properties", + "kind": 1024, + "children": [ + 231, + 226, + 222, + 223, + 225, + 224, + 232 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 233, + 236 + ] } ], - "type": { - "type": "reference", - "name": "Array", - "typeArguments": [ - { - "type": "tuple", - "elements": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "any" - } - ] - } - ] - } - }, - { - "id": 79, - "name": "state", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "state.ts", - "line": 12, - "character": 9 + "fileName": "types/nodeInterface.ts", + "line": 5, + "character": 31 } ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 74, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "implementedBy": [ { - "fileName": "state.ts", - "line": 7, - "character": 8 + "type": "reference", + "name": "NodeInterface", + "id": 493 } - ], - "type": { - "type": "intrinsic", - "name": "string" - } + ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Interfaces", + "kind": 256, "children": [ - 76, - 77, - 75, - 78, - 79, - 74 + 221 ] } ], "sources": [ { - "fileName": "state.ts", - "line": 6, - "character": 27 - } - ], - "extendedTypes": [ - { - "type": "reflection", - "declaration": { - "id": 80, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "state.ts", - "line": 6, - "character": 35 - } - ] - } + "fileName": "types/nodeInterface.ts", + "line": 1, + "character": 0 } ] }, { - "id": 331, - "name": "INodeUpdateEventData", - "kind": 256, - "kindString": "Interface", + "id": 141, + "name": "\"types/nodeOption\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/nodeOption.ts", "children": [ { - "id": 334, - "name": "interface", - "kind": 1024, - "kindString": "Property", + "id": 142, + "name": "INodeOption", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true + "isExported": true }, - "sources": [ + "children": [ + { + "id": 146, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeOption.ts", + "line": 8, + "character": 10 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 147, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 148, + "name": "beforeSetValue", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/nodeOption.ts", + "line": 9, + "character": 22 + } + ], + "type": { + "type": "reference", + "name": "IPreventableBaklavaEvent", + "id": 40, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + }, + { + "id": 149, + "name": "setValue", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "types/nodeOption.ts", + "line": 10, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "IBaklavaEvent", + "id": 28, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 148, + 149 + ] + } + ], + "sources": [ + { + "fileName": "types/nodeOption.ts", + "line": 8, + "character": 11 + } + ] + } + } + }, + { + "id": 143, + "name": "optionComponent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeOption.ts", + "line": 4, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 145, + "name": "sidebarComponent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "types/nodeOption.ts", + "line": 6, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { - "fileName": "events/eventDataTypes.ts", - "line": 39, - "character": 13 + "id": 144, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/nodeOption.ts", + "line": 5, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } } ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, - { - "id": 332, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "groups": [ { - "fileName": "events/eventDataTypes.ts", - "line": 37, - "character": 8 + "title": "Properties", + "kind": 1024, + "children": [ + 146, + 143, + 145, + 144 + ] } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 333, - "name": "option", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true - }, "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 38, - "character": 10 + "fileName": "types/nodeOption.ts", + "line": 3, + "character": 28 } ], - "type": { - "type": "reference", - "name": "NodeOption", - "id": 123 - } + "implementedBy": [ + { + "type": "reference", + "name": "NodeOption", + "id": 398 + } + ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Interfaces", + "kind": 256, "children": [ - 334, - 332, - 333 + 142 ] } ], "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 36, - "character": 37 + "fileName": "types/nodeOption.ts", + "line": 1, + "character": 0 } ] }, { - "id": 119, - "name": "IOption", - "kind": 256, - "kindString": "Interface", + "id": 77, + "name": "\"types/plugin\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/plugin.ts", "children": [ { - "id": 120, - "name": "optionComponent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "nodeOption.ts", - "line": 4, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 122, - "name": "sidebarComponent", - "kind": 1024, - "kindString": "Property", + "id": 78, + "name": "IPlugin", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "nodeOption.ts", - "line": 6, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 79, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "types/plugin.ts", + "line": 4, + "character": 8 + } + ], + "type": { "type": "intrinsic", "name": "string" } - ] - } - }, - { - "id": 121, - "name": "value", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + }, { - "fileName": "nodeOption.ts", - "line": 5, - "character": 9 + "id": 80, + "name": "register", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 81, + "name": "register", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 82, + "name": "editor", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "IEditor", + "id": 84 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "types/plugin.ts", + "line": 5, + "character": 12 + } + ] } ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 120, - 122, - 121 - ] - } - ], - "sources": [ - { - "fileName": "nodeOption.ts", - "line": 3, - "character": 24 - } - ], - "implementedBy": [ - { - "type": "reference", - "name": "NodeOption", - "id": 123 - } - ] - }, - { - "id": 328, - "name": "IOptionEventData", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 329, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + "groups": [ { - "fileName": "events/eventDataTypes.ts", - "line": 32, - "character": 8 + "title": "Properties", + "kind": 1024, + "children": [ + 79 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 80 + ] } ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 330, - "name": "option", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 33, - "character": 10 + "fileName": "types/plugin.ts", + "line": 3, + "character": 24 } - ], - "type": { - "type": "reference", - "name": "IOption", - "id": 119 - } + ] } ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Interfaces", + "kind": 256, "children": [ - 329, - 330 + 78 ] } ], "sources": [ { - "fileName": "events/eventDataTypes.ts", - "line": 31, - "character": 33 + "fileName": "types/plugin.ts", + "line": 1, + "character": 0 } ] }, { - "id": 245, - "name": "IPlugin", - "kind": 256, - "kindString": "Interface", + "id": 5, + "name": "\"types/state\"", + "kind": 1, + "kindString": "External module", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, + "originalName": "C:/Users/fredd/Programmieren/baklavajs/packages/baklavajs-core/types/state.ts", "children": [ { - "id": 246, - "name": "type", - "kind": 1024, - "kindString": "Property", + "id": 22, + "name": "IConnectionState", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "plugin.ts", - "line": 4, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 247, - "name": "register", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true, - "isExternal": true - }, - "signatures": [ + "id": 24, + "name": "from", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 22, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, { - "id": 248, - "name": "register", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 23, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 249, - "name": "editor", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Editor", - "id": 250 - } + "fileName": "types/state.ts", + "line": 21, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 25, + "name": "to", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 23, + "character": 6 } ], "type": { "type": "intrinsic", - "name": "void" + "name": "string" } } ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 24, + 23, + 25 + ] + } + ], "sources": [ { - "fileName": "plugin.ts", - "line": 5, - "character": 12 + "fileName": "types/state.ts", + "line": 20, + "character": 33 + } + ], + "extendedTypes": [ + { + "type": "reflection", + "declaration": { + "id": 26, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "types/state.ts", + "line": 20, + "character": 41 + } + ] + } } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 246 ] }, { - "title": "Methods", - "kind": 2048, - "children": [ - 247 - ] - } - ], - "sources": [ - { - "fileName": "plugin.ts", - "line": 3, - "character": 24 - } - ] - }, - { - "id": 69, - "name": "IState", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 71, - "name": "connections", - "kind": 1024, - "kindString": "Property", + "id": 18, + "name": "IInterfaceState", + "kind": 256, + "kindString": "Interface", "flags": { - "isExported": true, - "isExternal": true + "isExported": true }, - "sources": [ + "children": [ { - "fileName": "state.ts", - "line": 3, - "character": 15 + "id": 19, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 16, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 20, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 17, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "IConnectionState", - "id": 85 + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 19, + 20 + ] } - } - }, - { - "id": 70, - "name": "nodes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, + ], "sources": [ { - "fileName": "state.ts", - "line": 2, - "character": 9 + "fileName": "types/state.ts", + "line": 15, + "character": 32 } ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "INodeState", - "id": 73 + "extendedTypes": [ + { + "type": "reflection", + "declaration": { + "id": 21, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "types/state.ts", + "line": 15, + "character": 40 + } + ] + } } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 71, - 70 ] - } - ], - "sources": [ - { - "fileName": "state.ts", - "line": 1, - "character": 23 - } - ], - "extendedTypes": [ + }, { - "type": "reflection", - "declaration": { - "id": 72, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "state.ts", - "line": 1, - "character": 31 + "id": 10, + "name": "INodeState", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 13, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 9, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 14, + "name": "interfaces", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 10, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Array", + "typeArguments": [ + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "IInterfaceState", + "id": 18 + } + ] + } + ] + } + }, + { + "id": 12, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 8, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 15, + "name": "options", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "types/state.ts", + "line": 11, + "character": 11 + } + ], + "type": { + "type": "reference", + "name": "Array", + "typeArguments": [ + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ] + } + ] } - ] - } - } - ] - }, - { - "id": 213, - "name": "ITemporaryConnection", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true, - "isExternal": true - }, - "children": [ - { - "id": 215, - "name": "from", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "connection.ts", - "line": 13, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - }, - { - "id": 217, - "name": "mx", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "connection.ts", - "line": 15, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 16, + "name": "state", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "types/state.ts", + "line": 12, + "character": 9 + } + ], + "type": { "type": "intrinsic", - "name": "number" + "name": "any" } - ] - } - }, - { - "id": 218, - "name": "my", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ + }, { - "fileName": "connection.ts", - "line": 16, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" + "id": 11, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true }, - { + "sources": [ + { + "fileName": "types/state.ts", + "line": 7, + "character": 8 + } + ], + "type": { "type": "intrinsic", - "name": "number" + "name": "string" } - ] - } - }, - { - "id": 214, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ + } + ], + "groups": [ { - "fileName": "connection.ts", - "line": 12, - "character": 10 + "title": "Properties", + "kind": 1024, + "children": [ + 13, + 14, + 12, + 15, + 16, + 11 + ] } ], - "type": { - "type": "reference", - "name": "TemporaryConnectionState", - "id": 209 - } - }, - { - "id": 216, - "name": "to", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isExternal": true, - "isOptional": true - }, "sources": [ { - "fileName": "connection.ts", - "line": 14, - "character": 6 + "fileName": "types/state.ts", + "line": 6, + "character": 27 } ], - "type": { - "type": "reference", - "name": "NodeInterface", - "id": 90 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 215, - 217, - 218, - 214, - 216 + "extendedTypes": [ + { + "type": "reflection", + "declaration": { + "id": 17, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "types/state.ts", + "line": 6, + "character": 35 + } + ] + } + } ] - } - ], - "sources": [ - { - "fileName": "connection.ts", - "line": 11, - "character": 37 - } - ] - }, - { - "id": 61, - "name": "HookTap", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true, - "isExternal": true - }, - "typeParameter": [ - { - "id": 62, - "name": "I", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} }, { - "id": 63, - "name": "O", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 3, - "character": 19 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 64, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ + "id": 6, + "name": "IState", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ { - "id": 65, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 8, + "name": "connections", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 66, - "name": "i", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "I" - } + "fileName": "types/state.ts", + "line": 3, + "character": 15 } ], "type": { - "type": "typeParameter", - "name": "O" + "type": "array", + "elementType": { + "type": "reference", + "name": "IConnectionState", + "id": 22 + } } - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 3, - "character": 27 - } - ] - } - } - }, - { - "id": 56, - "name": "Listener", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true, - "isExternal": true - }, - "typeParameter": [ - { - "id": 57, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 2, - "character": 20 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 58, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ + }, { - "id": 59, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + "id": 7, + "name": "nodes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ { - "id": 60, - "name": "ev", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "typeParameter", - "name": "T" - } + "fileName": "types/state.ts", + "line": 2, + "character": 9 } ], "type": { - "type": "intrinsic", - "name": "any" + "type": "array", + "elementType": { + "type": "reference", + "name": "INodeState", + "id": 10 + } } } ], - "sources": [ + "groups": [ { - "fileName": "events/eventEmitter.ts", - "line": 2, - "character": 25 + "title": "Properties", + "kind": 1024, + "children": [ + 8, + 7 + ] } - ] - } - } - }, - { - "id": 309, - "name": "NodeConstructor", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "editor.ts", - "line": 8, - "character": 27 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 310, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, + ], "sources": [ { - "fileName": "editor.ts", - "line": 8, - "character": 29 + "fileName": "types/state.ts", + "line": 1, + "character": 23 + } + ], + "extendedTypes": [ + { + "type": "reflection", + "declaration": { + "id": 9, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "sources": [ + { + "fileName": "types/state.ts", + "line": 1, + "character": 31 + } + ] + } } ] } - } - }, - { - "id": 55, - "name": "TokenType", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "events/eventEmitter.ts", - "line": 1, - "character": 21 - } ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "object" - }, - { - "type": "intrinsic", - "name": "symbol" - } - ] - } - }, - { - "id": 67, - "name": "generateId", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isExternal": true - }, - "signatures": [ + "groups": [ { - "id": 68, - "name": "generateId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } + "title": "Interfaces", + "kind": 256, + "children": [ + 22, + 18, + 10, + 6 + ] } ], "sources": [ { - "fileName": "idGenerator.ts", - "line": 3, - "character": 34 + "fileName": "types/state.ts", + "line": 1, + "character": 0 } ] } ], "groups": [ { - "title": "Enumerations", - "kind": 4, - "children": [ - 209 - ] - }, - { - "title": "Classes", - "kind": 128, + "title": "External modules", + "kind": 1, "children": [ + 524, + 329, + 260, + 328, 1, - 223, - 237, - 250, + 613, + 414, + 547, + 492, + 397, + 238, + 83, + 150, 27, - 142, - 335, - 90, - 123, - 14, - 41 - ] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [ - 311, - 318, - 314, - 323, - 219, - 85, - 138, - 81, - 73, - 331, - 119, - 328, - 245, - 69, - 213 - ] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [ - 61, - 56, - 309, - 55 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [ - 67 + 259, + 175, + 220, + 141, + 77, + 5 ] } ] diff --git a/docs/apiPlugin.js b/docs/apiPlugin.js index 8f98ee29..d4dd1c91 100644 --- a/docs/apiPlugin.js +++ b/docs/apiPlugin.js @@ -12,7 +12,7 @@ const apiPlugin = function(hook, vm) { // The result can be accessed through the `m`-variable. const data = JSON.parse(m[1]); - let url = `/baklavajs/api/index.html#${encodeURIComponent(data.module)}/`; + let url = `/baklavajs/api/index.html#${data.module.replace("/", "%2F")}/`; if (data.type === "class") { url += `classes/${data.name}`; if (data.field) { diff --git a/docs/contributing.md b/docs/contributing.md new file mode 100644 index 00000000..8309e9a6 --- /dev/null +++ b/docs/contributing.md @@ -0,0 +1,33 @@ +# Contributing + +## Setup + +1. BaklavaJS is a monorepo managed using [lerna](https://github.com/lerna/lerna). Therefore you need to have lerna installed before setting up this repo: + +> A little note on the NPM vs Yarn discussion: This repo is set up to use Yarn workspaces. It is highly recommended to use Yarn as the package manager for this project. + +```bash +yarn global add lerna # when using Yarn +``` + +2. Now clone the repository: + +```bash +git clone https://github.com/newcat/baklavajs.git +cd baklavajs +``` + +3. Setup all dependencies: + +```bash +lerna bootstrap +``` + +4. Run the playground: + +```bash +yarn run playground +``` + +## Project Structure +This project is pretty much a normal monorepo except for some Typescript-specialties. In addition to the `src` folder, most packages have a `types` folder, which contains interfaces for all relevant types in the respective package. Packages only reference interfaces from other packages in this `types` folder. This decouples the packages and ensures that no functionality of other packages is included in the webpack build while still allowing direct referencing of packages and therefore fast and easy development. \ No newline at end of file diff --git a/docs/custom-nodes.md b/docs/custom-nodes.md index 901613bc..eff06938 100644 --- a/docs/custom-nodes.md +++ b/docs/custom-nodes.md @@ -34,7 +34,7 @@ There are two ways to create custom nodes: ### Node Builder The [NodeBuilder](!!API%{ "module": "@baklavajs/core", "type": "class", "name": "nodebuilder" }%) is a simple way to build nodes "on the fly". ```js -import { NodeBuilder } from "baklavajs"; +import { NodeBuilder } from "@baklavajs/core"; export default new NodeBuilder("MathNode") .setName("Math") @@ -66,7 +66,7 @@ export default new NodeBuilder("MathNode") If you have a more complex node, you can create a subclass of `Node` and implement the required methods/properties yourself. ```js -import { Node, Options } from "baklavajs"; +import { Node } from "@baklavajs/core"; export class MathNode extends Node { diff --git a/docs/styling.md b/docs/styling.md index 55d9b9b4..70549fdb 100644 --- a/docs/styling.md +++ b/docs/styling.md @@ -8,7 +8,7 @@ import "baklavajs/dist/styles.css"; ## Customizing Most styles can be customized by changing variables. -The default values can be found at [variables.scss](../src/styles/variables.scss). +The default values can be found at [variables.scss](../packages/baklavajs-plugin-renderer-vue/src/styles/variables.scss). To override values, create a scss file with the following contents: ```scss @import "baklavajs/dist/styles/variables.scss"; diff --git a/package.json b/package.json index 985b53ea..498033ce 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "chai": "^4.2.0", "clean-webpack-plugin": "^2.0.1", "lerna": "^3.13.1", + "typedoc": "^0.14.2", "webpack-bundle-analyzer": "^3.3.2" }, "postcss": { diff --git a/packages/baklavajs-core/package.json b/packages/baklavajs-core/package.json index 36828d78..356716fc 100644 --- a/packages/baklavajs-core/package.json +++ b/packages/baklavajs-core/package.json @@ -12,7 +12,8 @@ "types": "dist/src/index.d.ts", "scripts": { "build": "webpack", - "test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\"" + "test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\"", + "docs": "typedoc --json ../../docs/api/core.json" }, "repository": { "type": "git", diff --git a/packages/baklavajs-plugin-engine/package.json b/packages/baklavajs-plugin-engine/package.json index 1920f793..426f2e6f 100644 --- a/packages/baklavajs-plugin-engine/package.json +++ b/packages/baklavajs-plugin-engine/package.json @@ -11,7 +11,8 @@ "main": "dist/index.js", "types": "dist/baklavajs-plugin-engine/src/index.d.ts", "scripts": { - "build": "webpack" + "build": "webpack", + "docs": "typedoc --json ../../docs/api/plugin-engine.json" }, "repository": { "type": "git", diff --git a/packages/baklavajs-plugin-interface-types/package.json b/packages/baklavajs-plugin-interface-types/package.json index 506fa615..8b917428 100644 --- a/packages/baklavajs-plugin-interface-types/package.json +++ b/packages/baklavajs-plugin-interface-types/package.json @@ -12,7 +12,8 @@ "types": "dist/baklavajs-plugin-interface-types/src/index.d.ts", "scripts": { "build": "webpack", - "test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\"" + "test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts\"", + "docs": "typedoc --json ../../docs/api/plugin-interface-types.json" }, "repository": { "type": "git", diff --git a/yarn.lock b/yarn.lock index 60789daf..c0d83623 100644 --- a/yarn.lock +++ b/yarn.lock @@ -757,7 +757,14 @@ resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" integrity sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g== -"@types/glob@^7.1.1": +"@types/fs-extra@^5.0.3": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-5.1.0.tgz#2a325ef97901504a3828718c390d34b8426a10a1" + integrity sha512-AInn5+UBFIK9FK5xc9yP5e3TQSPNNgjHByqYcj9g5elVBnDQcQL7PlO1CIRy2gWlbwK7UPYqi7vRvFA44dCmYQ== + dependencies: + "@types/node" "*" + +"@types/glob@*", "@types/glob@^7.1.1": version "7.1.1" resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz#aa59a1c6e3fbc421e07ccd31a944c30eba521575" integrity sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w== @@ -766,7 +773,29 @@ "@types/minimatch" "*" "@types/node" "*" -"@types/minimatch@*": +"@types/handlebars@^4.0.38": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@types/handlebars/-/handlebars-4.1.0.tgz#3fcce9bf88f85fe73dc932240ab3fb682c624850" + integrity sha512-gq9YweFKNNB1uFK71eRqsd4niVkXrxHugqWFQkeLRJvGjnxsLr16bYtcsG4tOFwmYi0Bax+wCkbf1reUfdl4kA== + dependencies: + handlebars "*" + +"@types/highlight.js@^9.12.3": + version "9.12.3" + resolved "https://registry.yarnpkg.com/@types/highlight.js/-/highlight.js-9.12.3.tgz#b672cfaac25cbbc634a0fd92c515f66faa18dbca" + integrity sha512-pGF/zvYOACZ/gLGWdQH8zSwteQS1epp68yRcVLJMgUck/MjEn/FBYmPub9pXT8C1e4a8YZfHo1CKyV8q1vKUnQ== + +"@types/lodash@^4.14.110": + version "4.14.136" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.136.tgz#413e85089046b865d960c9ff1d400e04c31ab60f" + integrity sha512-0GJhzBdvsW2RUccNHOBkabI8HZVdOXmXbXhuKlDEd5Vv12P7oAVGfomGp3Ne21o5D/qu1WmthlNKFaoZJJeErA== + +"@types/marked@^0.4.0": + version "0.4.2" + resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.4.2.tgz#64a89e53ea37f61cc0f3ee1732c555c2dbf6452f" + integrity sha512-cDB930/7MbzaGF6U3IwSQp6XBru8xWajF5PV2YZZeV8DyiliTuld11afVztGI9+yJZ29il5E+NpGA6ooV/Cjkg== + +"@types/minimatch@*", "@types/minimatch@3.0.3": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== @@ -786,6 +815,14 @@ resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8" integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw== +"@types/shelljs@^0.8.0": + version "0.8.5" + resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.8.5.tgz#1e507b2f6d1f893269bd3e851ec24419ef9beeea" + integrity sha512-bZgjwIWu9gHCjirKJoOlLzGi5N0QgZ5t7EXEuoqyWCHTuSddURXo3FOBYDyRPNOWzZ6NbkLvZnVkn483Y/tvcQ== + dependencies: + "@types/glob" "*" + "@types/node" "*" + "@types/sinon@^7.0.11": version "7.0.11" resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-7.0.11.tgz#6f28f005a36e779b7db0f1359b9fb9eef72aae88" @@ -4161,6 +4198,17 @@ handle-thing@^2.0.0: resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.0.tgz#0e039695ff50c93fc288557d696f3c1dc6776754" integrity sha512-d4sze1JNC454Wdo2fkuyzCr6aHcbL6PGGuFAz0Li/NcOm1tCHGnWDRmJP85dh9IhQErTc2svWFEX5xHIOo//kQ== +handlebars@*, handlebars@^4.0.6: + version "4.1.2" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.2.tgz#b6b37c1ced0306b221e094fc7aca3ec23b131b67" + integrity sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw== + dependencies: + neo-async "^2.6.0" + optimist "^0.6.1" + source-map "^0.6.1" + optionalDependencies: + uglify-js "^3.1.4" + handlebars@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.1.tgz#6e4e41c18ebe7719ae4d38e5aca3d32fa3dd23d3" @@ -4276,6 +4324,11 @@ hex-color-regex@^1.1.0: resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== +highlight.js@^9.13.1: + version "9.15.8" + resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.15.8.tgz#f344fda123f36f1a65490e932cf90569e4999971" + integrity sha512-RrapkKQWwE+wKdF73VsOa2RQdIoO3mxwJ4P8mhbI6KYJUraUHRKM5w5zQQKXNk0xNL4UVRdulV9SBJcmzJNzVA== + hmac-drbg@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -4654,7 +4707,7 @@ internal-ip@^4.2.0: default-gateway "^4.0.1" ipaddr.js "^1.9.0" -interpret@^1.1.0: +interpret@^1.0.0, interpret@^1.1.0: version "1.2.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296" integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw== @@ -5526,6 +5579,11 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" +marked@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.4.0.tgz#9ad2c2a7a1791f10a852e0112f77b571dce10c66" + integrity sha512-tMsdNBgOsrUophCAFQl0XPe6Zqk/uy9gnue+jIIKhykO51hxyu6uNx7zBPy0+y/WKYVZZMspV9YeXLNdKk+iYw== + md5.js@^1.3.4: version "1.3.5" resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" @@ -7189,6 +7247,11 @@ process@^0.11.10: resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + promise-inflight@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" @@ -7502,6 +7565,13 @@ readdirp@^2.2.1: micromatch "^3.1.10" readable-stream "^2.0.2" +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q= + dependencies: + resolve "^1.1.6" + redent@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" @@ -7682,6 +7752,13 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= +resolve@^1.1.6: + version "1.11.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" + integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw== + dependencies: + path-parse "^1.0.6" + resolve@^1.10.0, resolve@^1.3.2: version "1.10.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.10.0.tgz#3bdaaeaf45cc07f375656dfd2e54ed0810b101ba" @@ -7970,6 +8047,15 @@ shell-quote@^1.6.1: array-reduce "~0.0.0" jsonify "~0.0.0" +shelljs@^0.8.2: + version "0.8.3" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.3.tgz#a7f3319520ebf09ee81275b2368adb286659b097" + integrity sha512-fc0BKlAWiLpwZljmOvAOTE/gXawtCoNrP5oaY7KIaQbbyHeQVg01pSEuEGvGh3HEdBU4baCD7wQBwADmM/7f7A== + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" @@ -8765,6 +8851,39 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= +typedoc-default-themes@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.5.0.tgz#6dc2433e78ed8bea8e887a3acde2f31785bd6227" + integrity sha1-bcJDPnjti+qOiHo6zeLzF4W9Yic= + +typedoc@^0.14.2: + version "0.14.2" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.14.2.tgz#769f457f4f9e4bdb8b5f3b177c86b6a31d8c3dc3" + integrity sha512-aEbgJXV8/KqaVhcedT7xG6d2r+mOvB5ep3eIz1KuB5sc4fDYXcepEEMdU7XSqLFO5hVPu0nllHi1QxX2h/QlpQ== + dependencies: + "@types/fs-extra" "^5.0.3" + "@types/handlebars" "^4.0.38" + "@types/highlight.js" "^9.12.3" + "@types/lodash" "^4.14.110" + "@types/marked" "^0.4.0" + "@types/minimatch" "3.0.3" + "@types/shelljs" "^0.8.0" + fs-extra "^7.0.0" + handlebars "^4.0.6" + highlight.js "^9.13.1" + lodash "^4.17.10" + marked "^0.4.0" + minimatch "^3.0.0" + progress "^2.0.0" + shelljs "^0.8.2" + typedoc-default-themes "^0.5.0" + typescript "3.2.x" + +typescript@3.2.x: + version "3.2.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d" + integrity sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg== + typescript@^3.2.1, typescript@^3.3.4000: version "3.3.4000" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.4000.tgz#76b0f89cfdbf97827e1112d64f283f1151d6adf0"