Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.49 KB

Namespace.render.md

File metadata and controls

38 lines (22 loc) · 1.49 KB

Low-level rendering functions.

Functions

renderJsToTree()

renderJsToTree(data: JsObj, indent?: string): LeafData

Given a Javascript object, render a leafdata symbol tree.

Parameters

Parameter Type Description
data JsObj the js object to render
indent? string if omitted, the tree will be generated without pretty printing to conserve space. If specified, the content will be pretty printed for humans.

Returns

LeafData


renderTreeToStr()

renderTreeToStr(data: LeafData): string

Given a leafdata symbol tree, render a leafdata document string.

Parameters

Parameter Type
data LeafData

Returns

string