Closed stuarteberg closed 2 years ago
The embedded neuroglancer view has a button to copy the URL for external viewing, but the URL is missing the domain prefix. Instead, it copies text like this:
/#!%7B%22dimensions%22:%7B%22x%22:%5B8e-9%2C%22m%22%5D%2C%22y%22:%5B8e-9%2C%22m%22%5D%2C%22z%22:%5B8e-9%2C%22m%22%5D%7D%2C%22position%22:%5B6819.5%2C4027.5%2C17256.5%5D%2C%22crossSectionScale%22:1%2C%22projectionOrientation%22:%5B0.23881180584430695%2C-0.25295183062553406%2C-0.8898875117301941%2C0.2951008975505829%5D%2C%22projectionScale%22:13787.97173895742%2C%22layers%22:%5B%7B%22type%22:%22image%22%2C%22source%22:%7B%22url%22:%22n5://gs://janelia-flyem-fib19/fib19.n5/raw/%22%2C%22subsources%22:%7B%22default%22:true%7D%2C%22enableDefaultSubsources%22:false%7D%2C%22tab%22:%22source%22%2C%22name%22:%22fib19-grayscalejpeg%22%7D%2C%7B%22type%22:%22segmentation%22%2C%22source%22:%7B%22url%22:%22dvid://https://emdata6-fib19.janelia.org/6c1b9/segmentation%22%2C%22subsources%22:%7B%22default%22:true%2C%22meshes%22:true%2C%22skeletons%22:true%7D%2C%22enableDefaultSubsources%22:false%7D%2C%22tab%22:%22source%22%2C%22segments%22:%5B%22127866580%22%5D%2C%22name%22:%22fib19%22%7D%2C%7B%22type%22:%22segmentation%22%2C%22source%22:%7B%22url%22:%22precomputed://gs://janelia-flyem-fib19/roi%22%2C%22subsources%22:%7B%22default%22:true%2C%22properties%22:true%2C%22mesh%22:true%7D%2C%22enableDefaultSubsources%22:false%7D%2C%22tab%22:%22rendering%22%2C%22selectedAlpha%22:0.4%2C%22saturation%22:0.48%2C%22objectAlpha%22:0.26%2C%22segments%22:%5B%221%22%2C%222%22%2C%223%22%5D%2C%22name%22:%22rois%22%2C%22visible%22:false%7D%2C%7B%22type%22:%22annotation%22%2C%22source%22:%22dvid://https://emdata6-fib19.janelia.org/6c1b9/synapses%22%2C%22tab%22:%22source%22%2C%22shader%22:%22#uicontrol%20vec3%20preColor%20color%28default=%5C%22yellow%5C%22%29%5Cn#uicontrol%20vec3%20postColor%20color%28default=%5C%22gray%5C%22%29%5Cn#uicontrol%20float%20preConfidence%20slider%28min=0%2C%20max=1%2C%20default=0%29%5Cn#uicontrol%20float%20postConfidence%20slider%28min=0%2C%20max=1%2C%20default=0%29%5Cn#uicontrol%20float%20sliceViewOpacity%20slider%28min=0%2C%20max=1%2C%20default=0.5%29%5Cn#uicontrol%20float%20projectionViewOpacity%20slider%28min=0%2C%20max=1%2C%20default=0.3%29%5Cn%5Cnvoid%20main%28%29%20%7B%5Cn%20%20float%20opacity%20=%20PROJECTION_VIEW%20?%20projectionViewOpacity%20:%20sliceViewOpacity%3B%5Cn%20%20setColor%28vec4%28defaultColor%28%29%2C%20opacity%29%29%3B%5Cn%20%20setEndpointMarkerColor%28%5Cn%20%20%20%20vec4%28preColor%2C%20opacity%29%2C%5Cn%20%20%20%20vec4%28postColor%2C%20opacity%29%29%3B%5Cn%20%20setEndpointMarkerBorderColor%28%5Cn%20%20%20%20vec4%280%2C%200%2C%200%2C%20opacity%29%2C%5Cn%20%20%20%20vec4%280%2C%200%2C%200%2C%20%20%20%20%20opacity%29%5Cn%20%20%29%3B%5Cn%5Cn%20%20setEndpointMarkerSize%285.0%2C%205.0%29%3B%5Cn%20%20setLineWidth%282.0%29%3B%5Cn%20%20if%20%28prop_pre_synaptic_confidence%28%29%3C%20preConfidence%20%7C%7C%5Cn%20%20prop_post_synaptic_confidence%28%29%3C%20postConfidence%29%20discard%3B%5Cn%7D%5Cn%22%2C%22name%22:%22fib19-synapses%22%7D%5D%2C%22showAxisLines%22:false%2C%22showSlices%22:false%2C%22layout%22:%223d%22%7D
this has been deployed and is now working on https://neuprint.janelia.org
The embedded neuroglancer view has a button to copy the URL for external viewing, but the URL is missing the domain prefix. Instead, it copies text like this: