Skip to main content

Class: M2NodeFactory

Constructors

new M2NodeFactory()

new M2NodeFactory(): M2NodeFactory

The M2NodeFactory creates nodes of the specified type with the specified options for event replay.

Returns

M2NodeFactory

Defined in

M2NodeFactory.ts:15

Methods

createNode()

createNode(type, compositeType, options): M2Node

Creates a new node of the specified type with the specified options.

Parameters

type: string

The type of node to create

compositeType: undefined | string

The composite type of the node to create

options: M2NodeOptions

The options to use when creating the node

Returns

M2Node

created node

Defined in

M2NodeFactory.ts:32