KitwareMedical / tensorboard-plugin-3d

https://tensorboardplugin3d.readthedocs.io/en/latest/
33 stars 4 forks source link

Use getConfig on the viewer to retrieve state #43

Open thewtex opened 2 years ago

bnmajor commented 2 years ago

Looking at the getConfig option it seems it doesn't contain a lot of the data that we would need to update the state

{
    "uiMachineOptions": "reference",
    "viewerConfigVersion": "0.3",
    "xyLowerLeft": false,
    "renderingViewContainerStyle": {
        "position": "relative",
        "width": "100%",
        "height": "auto",
        "minHeight": "200px",
        "minWidth": "450px",
        "margin": "0",
        "padding": "0",
        "top": "0",
        "left": "0",
        "flex": "1 1 0px",
        "overflow": "hidden"
    },
    "uiCollapsed": false,
    "main": {
        "backgroundColor": [
            0.5,
            0.5,
            0.5
        ],
        "units": ""
    }
}