Functions
buildMark
- buildMark(markType: MarkType): MarkBuilder
Parameters
Returns MarkBuilder
createItem
- createItem(itemType: MarkType, props?: {}): SGItem
Parameters
itemType: MarkType
props: {} = {}
Returns SGItem
createMark
- createMark(markType: MarkType, items: SGItem[]): Mark<Item>
Parameters
markType: MarkType
items: SGItem[]
parseScene
- parseScene(json: string | Record<string, any>): SGMark<any>
Parameters
json: string | Record<string, any>
Returns SGMark<any>
registerItemType
- registerItemType(ctor: ItemConstructor): void
sceneToJSON
- sceneToJSON(scene: Mark<any>, indent?: string | number): string
Parameters
scene: Mark<any>
Optional indent: string | number
Returns string
The type of mark item to create