Open lpatiny opened 2 months ago
The type of 'pixelSize' should be: https://github.com/cheminfo/cheminfo-types/blob/main/src/core/Value.d.ts
The allowed units could be for now: nm, µm, mm, m, km
You can use 'input group' to input the value
https://blueprintjs.com/docs/#core/components/input-group
pixelSize should be defined as a number + units. Like '1 mm' and corresponds to the size of 1 pixel.
@lpatiny Should the pixel value and unit be saved in the same metadata ? I think it would be easier for the display and data editing if they are saved separately
"metadata": {
"name": "Silica_small.tif",
"relativePath": "Fribourg/Silica_small.tif"
"pixelSize": "0.272727272727"
"pixelUnit": "nm"
},
I would prefer it is saved in the same metadata but you are right that we didn't develop a way to display it so you can for now use 2 fields.
Please add a 's' at units. pixelUnits
There should be an edit button on each row of the images:
That allows to edit metadata information.
There should be 2 metadata information currently:
pixelSize
should be defined as a number + units. Like '1 mm' and corresponds to the size of 1 pixel.We will see later to convert this using
js-quantities
.