rii-mango / Papaya

A pure JavaScript medical research image viewer.
Other
546 stars 201 forks source link

Unable to load the toolbar #238

Open pbbaba opened 1 month ago

pbbaba commented 1 month ago

I have set the kioskMode to false. Despite setting it to false, unable to see the toolbar in the viewer.

I am using papaya.js build version=1456

Following is the code I am using -

var params = []
// Images
params["images"] = files.filter(item => item.includes('nii'));
params["surfaces"] = files.filter(item => item.includes('gii'))

// UI Parameters    
params['fullScreen'] = false
params["kioskMode"] = false;
params["showControlBar"] = true; 
params["expandable"] = true;

// Display Parameters
params["worldSpace"] = true;
params["showOrientation"] = true;
params["showRuler"] = true;

papaya.Container.startPapaya()
papaya.Container.resetViewer(0, params);

HTML:

<body>
    <div class="papaya" data-params="params"></div>
</body>

Please find the screenshot below that indicates that the toolbar is loading, however not populating with the menu items.

Screenshot 2024-07-15 at 12 28 50 PM

If I set kioskMode to true this div is not loaded in the DOM.

Could someone please assist me in this.

niks2060 commented 1 month ago

@pbbaba Can you try with one of the reference html page with all .js loaded. I think there issue with this build.

params["kioskMode"] = true;

image

pbbaba commented 1 month ago

@niks2060 thanks for your update. I tried that too, and as per the documentation, setting kioskmode to true actually disables the toolbar (please see the attached screenshot)

Screenshot 2024-07-25 at 1 03 18 PM

Documentation link: https://github.com/rii-mango/Papaya/wiki/Configuration

niks2060 commented 1 month ago

@pbbaba Toolbar is visible please find the attached image. Find the top side of the viewer.

image