omezarr-tilesource 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,13 +116,13 @@ var d = class o extends i.TileSource {
|
|
|
116
116
|
}
|
|
117
117
|
get ranges() {
|
|
118
118
|
let e = this.channels, t = (e) => {
|
|
119
|
-
if (e?.window
|
|
119
|
+
if (e?.window?.start !== void 0 && e?.window?.end !== void 0) return [e.window.start, e.window.end];
|
|
120
120
|
};
|
|
121
121
|
return o._repeat(this._renderSettings.ranges, e)?.map((n, r) => n ?? t(e?.[r]));
|
|
122
122
|
}
|
|
123
123
|
get colors() {
|
|
124
124
|
let e = this.channels, t = (e) => {
|
|
125
|
-
if (e === void 0) return;
|
|
125
|
+
if (e?.color === void 0) return;
|
|
126
126
|
let t = /^#?([0-9A-Fa-f]{6})$/.exec(e.color)?.[1];
|
|
127
127
|
if (t !== void 0) return [
|
|
128
128
|
parseInt(t.slice(0, 2), 16),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omezarr-tilesource",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "An OpenSeadragon tile source for the OME-Zarr bioimage file format",
|
|
5
5
|
"homepage": "https://github.com/TissUUmaps/OMEZarrTileSource#readme",
|
|
6
6
|
"bugs": "https://github.com/TissUUmaps/OMEZarrTileSource/issues",
|