Class Presenter
Hierarchy
- Presenter
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
-
Instantiate a new Presenter.
Parameters
-
el: HTMLElement
Parent HTMLElement to present within.
-
Optional style: PresenterStyle
Optional PresenterStyle styling options.
Returns Presenter
-
Properties
animationTimer
Handle of the timer for animation.
el
logger
Logger, such as console.log
Type declaration
-
-
Logger, such as console.log
Parameters
-
Optional message: any
-
Rest ...optionalParams: any[]
Returns void
-
-
morphChartsRenderResult
Handle to recent MorphCharts rendering result.
morphchartsref
MorphCharts instance for rendering WebGL.
style
Options for styling the output.
Accessors
stage
-
Get the previously rendered Stage object.
Returns Stage
view
-
Get the current View camera type.
Returns View
Methods
animationCancel
-
Cancels any pending animation, calling animationCanceled() on original queue.
Returns void
animationQueue
-
Stops the current animation and queues a new animation.
Parameters
-
handler: () => void
Function to invoke when timeout is complete.
-
-
Returns void
-
-
-
timeout: number
Length of time to wait before invoking the handler.
-
Optional options: QueuedAnimationOptions
Optional QueuedAnimationOptions object.
Returns void
-
canvasToDataURL
-
Returns Promise<string>
configColors
-
Parameters
-
mcColors: MorphChartsColors
Returns void
-
finalize
-
Returns void
getElement
-
Retrieve a sub-element of the rendered output.
Parameters
-
type: PresenterElement
PresenterElement type of the HTMLElement to retrieve.
Returns HTMLElement
-
homeCamera
-
Home the camera to the last initial position.
Returns void
present
-
Present the Vega Scene, or Stage object using Morphcharts.
Parameters
-
sceneOrStage: Stage | Scene3d
Vega Scene object, or Stage object containing chart layout info.
-
height: number
Height of the rendering area.
-
width: number
Width of the rendering area.
-
Optional config: PresenterConfig
Optional presentation configuration object.
Returns void
-
showGuides
-
Show guidelines of rendering height/width and center of OrbitView.
Returns void
Generated using TypeDoc
Class which presents a Stage of chart data using MorphCharts to render.