Class: Schematic

Schematic

Class representing a schematic.

Source:
Example
// node: the XML schematic view node
let schematic = Schematic.fromXML(node);	// parses the node
schematic.printToStream(process.stdout);	// serializes as TikZ code

Methods

(async) printToStream(out)

Serializes the schematic and prints it to an writeable stream. The stream won't be closed.

Parameters:
Name Type Description
out writeableStream

the stream to write to

Source:
Throws:

on error writing to out

Type
Error

(static) fromXML(node) → {Schematic}

Parses a schematic view node and creates an instance of schematic.

Parameters:
Name Type Description
node Element

the node to parse

Source:
Returns:
  • the parsed schematic
Type
Schematic