Class Explorer_Class
Hierarchy
Index
Constructors
Properties
Methods
- UNSAFE_
component Will Mount - UNSAFE_
component Will Receive Props - UNSAFE_
component Will Update - add
History - calculate
- change
Chart Type - change
Column Mapping - change
View - changespec
Capabilities - component
Did Catch - component
Did Mount - component
Did Update - component
Will Mount - component
Will Receive Props - component
Will Unmount - component
Will Update - finalize
- force
Update - get
Insight - get
Setup - get
Snapshot Before Update - load
- redo
- render
- resize
- revive
Snapshot - scroll
Snapshot Into View - set
Insight - set
State - should
Component Update - sidebar
- signal
- undo
- update
Viewer Options
Constructors
constructor
-
Parameters
-
props: Props
Returns Explorer_Class
-
Properties
context
dialogFocusHandler
Type declaration
-
focus: function
-
Returns void
-
discardColorContextUpdates
div
imageHolder
prefs
Readonly props
refs
Type declaration
-
[key: string]: ReactInstance
snapshotThumbWidth
state
viewer
viewerOptions
Static Optional contextType
If set, this.context
will be set at runtime to the current value of the given Context.
Usage:
type MyContext = number
const Ctx = React.createContext<MyContext>(0)
class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}
Methods
Optional UNSAFE_componentWillMount
-
Called immediately before mounting occurs, and before
Component#render
. Avoid introducing any side-effects or subscriptions in this method.This method will not stop working in React 17.
Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps prevents this from being invoked.
Returns void
Optional UNSAFE_componentWillReceiveProps
-
Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.
Calling
Component#setState
generally does not trigger this method.This method will not stop working in React 17.
Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps prevents this from being invoked.
Parameters
-
nextProps: Readonly<Props>
-
nextContext: any
Returns void
-
Optional UNSAFE_componentWillUpdate
-
Called immediately before rendering when new props or state is received. Not called for the initial render.
Note: You cannot call
Component#setState
here.This method will not stop working in React 17.
Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps prevents this from being invoked.
Parameters
Returns void
addHistory
-
Parameters
-
historicInsight: Partial<HistoricInsight>
-
historyAction: HistoryAction
-
Optional additionalUIState: Partial<UIState>
Returns void
-
calculate
-
Parameters
-
calculating: () => any
-
-
Returns any
-
-
Returns void
-
changeChartType
-
Parameters
-
chart: Chart
Returns InsightColumns
-
changeColumnMapping
-
Parameters
-
role: InsightColumnRoles
-
column: Column
-
Optional options: ChangeColumnMappingOptions
Returns void
-
changeView
-
Parameters
-
view: View
Returns void
-
changespecCapabilities
-
Parameters
-
specCapabilities: SpecCapabilities
Returns void
-
Optional componentDidCatch
-
Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.
Parameters
-
error: Error
-
errorInfo: ErrorInfo
Returns void
-
componentDidMount
-
Returns void
Optional componentDidUpdate
Optional componentWillMount
-
Called immediately before mounting occurs, and before
Component#render
. Avoid introducing any side-effects or subscriptions in this method.Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps prevents this from being invoked.
Returns void
Optional componentWillReceiveProps
-
Called when the component may be receiving new props. React may call this even if props have not changed, so be sure to compare new and existing props if you only want to handle changes.
Calling
Component#setState
generally does not trigger this method.Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps prevents this from being invoked.
Parameters
-
nextProps: Readonly<Props>
-
nextContext: any
Returns void
-
Optional componentWillUnmount
-
Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in
componentDidMount
.Returns void
Optional componentWillUpdate
-
Called immediately before rendering when new props or state is received. Not called for the initial render.
Note: You cannot call
Component#setState
here.Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps prevents this from being invoked.
Parameters
Returns void
finalize
-
Returns void
forceUpdate
-
Parameters
-
Optional callback: () => void
-
-
Returns void
-
-
Returns void
-
getInsight
-
Returns Insight
getSetup
-
Returns Setup
Optional getSnapshotBeforeUpdate
-
Runs before React applies the result of
render
to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position beforerender
causes changes to it.Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.
Parameters
Returns any
load
redo
-
Parameters
-
Optional historyIndex: number
Returns void
-
render
-
Returns Element
resize
-
Returns void
reviveSnapshot
-
Parameters
-
snapshotOrIndex: number | Snapshot
Returns void
-
scrollSnapshotIntoView
-
Parameters
-
selectedSnapshotIndex: number
Returns void
-
setInsight
setState
Optional shouldComponentUpdate
-
Called to determine whether the change in props and state should trigger a re-render.
Component
always returns true.PureComponent
implements a shallow comparison on props and state and returns true if any props or states have changed.If false is returned,
Component#render
,componentWillUpdate
andcomponentDidUpdate
will not be called.Parameters
Returns boolean
sidebar
-
Parameters
-
sidebarClosed: boolean
-
sidebarPinned: boolean
Returns void
-
signal
-
Parameters
-
signalName: string
-
signalValue: any
-
Optional newViewStateTarget: boolean
Returns void
-
undo
-
Returns void
updateViewerOptions
-
Parameters
-
viewerOptions: Partial<ViewerOptions>
Returns void
-
Generated using TypeDoc
If using the new style context, re-declare this in your class to be the
React.ContextType
of yourstatic contextType
. Should be used with type annotation or static contextType.https://react.dev/reference/react/Component#context