DarkForce8
DarkForce8
LTLeaning Technologies
Created by DarkForce8 on 3/12/2024 in #support
Accessing Java class / object attributes in CheerpJ based PWA
Thanks for the lead
9 replies
LTLeaning Technologies
Created by DarkForce8 on 3/12/2024 in #support
Accessing Java class / object attributes in CheerpJ based PWA
Thanks so much for the help. I just checked out the library mode and it’s exactly what I need. I’ll try to request imjoy team to upgrade. Based on your experience would upgrading imjoy to CJ3 be challenging?
9 replies
LTLeaning Technologies
Created by DarkForce8 on 3/12/2024 in #support
Accessing Java class / object attributes in CheerpJ based PWA
Steps to reproduce issue: 1. Head over to https://ij.imjoy.io/?run=https://gist.githubusercontent.com/sspathak/902c5d7d1e8de08c7232f790cb5511b6/raw/3f498140a3cd83ce3e88b34c00582ca77e3b0b72/gistfile1.txt 2. Inspect element and go to console. 3. Run let get_image = await cjResolveCall("ij.WindowManager", "getCurrentImage"); 4. Run let im = await get_image() 5. Run Object.getOwnPropertyNames(im) You'll see that the property names have an integer suffix. This integer suffix seems to follow the order in which the instance variables are defined at https://imagej.net/ij/source/ij/ImagePlus.java
9 replies