ScalarBarActor unconsistent?


I’m trying to change the styling (forcing horizontal orientation) of the vtkScalarBarActor by passing a custom autoLayout function. No error is returned, but no changes are seen too. Same applies to setGenerateTicks.

I have also noticed that scalarBarActor.getMapper() returns null. is it something to be expected?

Here is a link to the codepen: Playground - CodeSandbox


There are some errors in your code sandbox playground.
vtkScalarBarActor is expecting a function (i.e. (helper)=>{}) as autoLayout and not a function of function ((publicAPI, model) => (helper) => {}).
Same problem with generateTicks.