The root namespace for all Vercengen classes and options.
Namespaces
Methods
(static) clear()
Clears all Vercengen components from both state and DOM.
(static) gc()
Performs garbage collection when elements are detached.
- Source:
(static) getFilesInFolder(arg0_folder_path, arg1_evaluated_setopt, arg2_optionsopt) → {Array.<string>}
Returns all non-evaluated files in a folder, so long as an evaluated set is provided. /** Recursively collects files in a folder adhering to exclusion options.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_folder_path |
string
|
|||||||||||||||||||||||||||
arg1_evaluated_set |
Set.<string>
|
<optional> |
||||||||||||||||||||||||||
arg2_options |
Object
|
<optional> |
|
Returns:
- Type:
-
Array.<string>
(static) getImportFiles(arg0_patterns, arg1_optionsopt) → {Array.<string>}
Returns a string[] from a list of patterns. The last pattern to match a file determines its final position in the load order. This function iterates patterns in reverse to ensure that more specific patterns listed later correctly claim files from broader patterns listed earlier.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg0_patterns |
Array.<string>
|
The list of patterns to resolve. |
|
arg1_options |
Object
|
<optional> |
(static) getWildcardsInFolder(arg0_folder_path, arg1_wildcard_pattern, arg2_optionsopt) → {Array.<string>}
Returns the absolute file paths of all wildcards within a given folder.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg0_folder_path |
string
|
||
arg1_wildcard_pattern |
string
|
||
arg2_options |
Object
|
<optional> |
Returns:
- Type:
-
Array.<string>
(static) initialise()
Initialises Vercengen and associated UF files.
(static) initialiseIPC(arg0_optionsopt)
Initialises IPC handlers.
List of valid IPC channels:
- electron:close-dev-tools
- electron:is-dev-tools-focused
- electron:is-dev-tools-open
- electron:open-dev-tools
- electron:toggle-dev-tools
- ndjson - NDJSON handler (arg0_function_key, argn_arguments).
- ndjson:get-all-functions - Returns all NDJSON functions.
- ontology:initialise - Initialises Ontology streaming.
- ontology:stream-batch - DB sends batch to render.
- ontology:stream-done - Marks all streaming as finished (loaded into memory).
- ontology:stream-next - Render requests batch from DB.
Parameters:
| Name | Type | Attributes | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arg0_options |
Object
|
<optional> |
|
(static) start()
Initialises a Vercengen app, alongside necessary UF imports.
arg0_options: Object
.do_not_import_UF: boolean - Whether to refuse UF imports unrelated to Vercengen startup functions..load_files: Array<string> - The sequence of files to load.!should be used as an exclusion prefix, whilst*functions as a wildcard pattern..is_browser=true: boolean - Whether the imports are for the Browser/Electron. Imports are assumed to be eval/Node.js otherwise..is_node=false: boolean - Whether the imports are for Node.js. Overridden by.is_browser. Inputs are assumed to be for eval if false..ontology_function: function(arg0_ontologies:Array<Ontology>) - The function to execute once Ontology instances are loaded from DBs..special_function: function - The function to execute upon startup and Vercengen initialisation.
Returns:
Array