Inconsistent property names for ViewConfig #1364
Replies: 1 comment
-
Thanks for the report! This is behavior that is intentionally different between A year ago we decided to normalize the In this case, you should look at the PerspectiveViewerOptions typing in the Typescript definitions for the viewer. The warnings you are seeing are to ensure backwards compatibility (as the invalid keys are converted to valid ones), and if we make a change to the viewer API in the future, there will be more warnings/conversions for backwards compatibility. Additionally, I tried calling |
Beta Was this translation helpful? Give feedback.
-
Bug Report
Steps to Reproduce:
Expected Result:
The property names used by the perspective-viewer, and provided by the viewer from the save() method should match.
Actual Result:
The save() method returns a config with different property names than defined in the typescript exports, more specifically "row-pivots", and "column-pivots".
Environment:
Version 0.5.0 running in angular app.
Other context
I have tried rolling back to using the "-" property names but get a warning in console "Deprecated: "row-pivots" config parameter, please use "row_pivots" instead"
Beta Was this translation helpful? Give feedback.
All reactions