Api - Exporter Class
Hierarchy
- Exporter
Index
Constructors
Properties
Methods
Constructors
constructor
-
Parameters
-
map: IPathOriginFunctionMap
Object containing properties: property name is the type of path, e.g. "line", "circle"; property value is a function to render a path. Function parameters are path and point.
-
Optional fixPoint: function
Optional function to modify a point prior to export. Function parameter is a point; function must return a point.
-
Optional fixPath: function
Optional function to modify a path prior to output. Function parameters are path and offset point; function must return a path.
-
Optional beginModel: function
-
-
Parameters
-
id: string
-
modelContext: IModel
Returns void
-
-
-
-
Optional endModel: function
-
-
Parameters
-
modelContext: IModel
Returns void
-
-
-
Returns Exporter
-
Properties
Private Optional beginModel
Type declaration
-
-
Parameters
-
id: string
-
modelContext: IModel
Returns void
-
-
Private Optional endModel
Type declaration
-
-
Parameters
-
modelContext: IModel
Returns void
-
-
Private Optional fixPath
Optional function to modify a path prior to output. Function parameters are path and offset point; function must return a path.
Private Optional fixPoint
Optional function to modify a point prior to export. Function parameter is a point; function must return a point.
Private map
Object containing properties: property name is the type of path, e.g. "line", "circle"; property value is a function to render a path. Function parameters are path and point.
Methods
exportItem
-
Export an object.
Parameters
-
itemId: string
-
itemToExport: any
-
origin: IPoint
Returns void
-
exportModel
exportPath
Generated using TypeDoc
Class to traverse an item 's models or paths and ultimately render each path.