You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
SciChartReact (and so SciChartDeclarative and SciChartNestedOverview) adds the scichart_initialized class to its element once its chart is initialized, and scichart_rendered once the chart has also rendered at least once. Its new onRendered
callback is called at that point.
ChartGroupLoader does the same for the whole group, with scichart_group_initialized and scichart_group_rendered, and forwards a new onRendered callback. SciChartGroup accepts onRendered too.
The class names can be overridden per state with the stateClassNames prop. The defaults are
exported as defaultChartStateClassNames and defaultGroupStateClassNames, and their type as IStateClassNames.
The init function may return a destructor along with the surface. It is called on
unmount, even if the init function has not resolved yet, before the surface is deleted.
onRendered may return a cleanup function, like onInit.
Changed
onInit is now always called while the fallback is still shown and before the children are
mounted. Apps mounted with ReactDOM.render previously got it after the fallback was removed.
onRendered is now always called after the fallback has been removed and the children are
mounted.
Fixed
SciChartGroup no longer passes a null init result to onInit and onDelete when a chart,
such as a nested overview, joins the group in the same render that initialized it.