Basic Primitives Diagrams API Reference

JavaScript Controls

PDFKit Plugins

Organizational Chart Configuration Objects

Family Diagram Configuration Objects

Enumerations

Structures

Functions

Algorithms

PDFKit Plugins

Plugin

Creates PDFKit Organizational Chart Plugin

primitives.pdf.orgdiagram.Plugin

Constructor

Plugin(options)

Creates PDFKit Organizational Chart Plugin

Returns: orgdiagram - returns reference to organizational chart pdfkit renderer instance.

ParamTypeDefaultDescription
optionsConfigOrganizational Chart Configuration object

Functions

draw(doc, positionX, positionY)

Calculates size of the diagram required to render all nodes without truncation.

Returns: Size - returns size of the diagram

ParamTypeDefaultDescription
docobjectPDFKit document
positionXnumberDiagram placement X coordinate
positionYnumberDiagram placement Y coordinate

getSize()

Calculates size of the diagram required to render all nodes without truncation.

Returns: Size - returns size of the diagram

Plugin

Creates PDFKit Family Diagram Plugin

primitives.pdf.famdiagram.Plugin

Constructor

Plugin(options)

Creates PDFKit Family Diagram Plugin

Returns: orgdiagram - returns reference to family chart pdfkit renderer instance.

ParamTypeDefaultDescription
optionsConfigFamily Diagram Configuration object

Functions

draw(doc, positionX, positionY)

Calculates size of the diagram required to render all nodes without truncation.

Returns: Size - returns size of the diagram

ParamTypeDefaultDescription
docobjectPDFKit document
positionXnumberDiagram placement X coordinate
positionYnumberDiagram placement Y coordinate

getSize()

Calculates size of the diagram required to render all nodes without truncation.

Returns: Size - returns size of the diagram

Have questions? Ask for help on Github.