@tissuumaps/render 0.1.0-beta.0 → 0.1.0-beta.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.
- package/CHANGELOG.md +12 -0
- package/dist/index.js +5 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tissuumaps/render
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#253](https://github.com/TissUUmaps/TissUUmaps/pull/253) [`8acd194`](https://github.com/TissUUmaps/TissUUmaps/commit/8acd1946245c89c961af2857e13ae373bc256d62) Thanks [@jwindhager](https://github.com/jwindhager)! - Group-by palettes (colors and markers without a map) now assign their values by group position, in the order the groups first appear in the table column, instead of by hashing the group names; random colors are still hashed. Projects that group by a palette show different colors or markers than before. `ConfigUtils.createGroupValueGetter` takes the ordered groups alongside the palette, and the new `TableUtils.loadGroupCounts` lists them.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#253](https://github.com/TissUUmaps/TissUUmaps/pull/253) [`8acd194`](https://github.com/TissUUmaps/TissUUmaps/commit/8acd1946245c89c961af2857e13ae373bc256d62) Thanks [@jwindhager](https://github.com/jwindhager)! - `TableData.loadUniqueValueCounts` and `TableData.loadValueRange` are now optional: table data only implements them if it can determine the counts or the range more cheaply than by loading the column (e.g. from file metadata). Callers use the new `TableUtils.loadUniqueValueCounts` and `TableUtils.loadValueRange`, which fall back to the loaded column values (see `TableUtils.computeValueRange`). CSV tables no longer implement either method, and Parquet and hierarchical (AnnData) tables no longer implement `loadUniqueValueCounts`. Unless the table data determines them itself, the app now computes unique value counts and value ranges from the column values it has already loaded, instead of loading the column again.
|
|
12
|
+
- Updated dependencies [[`62b79c2`](https://github.com/TissUUmaps/TissUUmaps/commit/62b79c2218ea5419972553b43cc217084d9a9d23), [`8acd194`](https://github.com/TissUUmaps/TissUUmaps/commit/8acd1946245c89c961af2857e13ae373bc256d62), [`8acd194`](https://github.com/TissUUmaps/TissUUmaps/commit/8acd1946245c89c961af2857e13ae373bc256d62), [`cb49f75`](https://github.com/TissUUmaps/TissUUmaps/commit/cb49f75bb87c17d06198562d53e4ab17cd89aaf5)]:
|
|
13
|
+
- @tissuumaps/core@0.1.0-beta.1
|
|
14
|
+
|
|
3
15
|
## 0.1.0-beta.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -2478,7 +2478,7 @@ var ColorResolver = class ColorResolver {
|
|
|
2478
2478
|
return ColorResolver.createUniformColors(ids.length, defaultColor, { align });
|
|
2479
2479
|
}
|
|
2480
2480
|
const data = await loadTable(config.from.table, { signal });
|
|
2481
|
-
const valueRange = config.from.range ?? await
|
|
2481
|
+
const valueRange = config.from.range ?? await TableUtils.loadValueRange(data, config.from.column, { signal });
|
|
2482
2482
|
const packedColors = ColorResolver.createColorBuffer(ids.length, { align });
|
|
2483
2483
|
await TableUtils.fillFromTableValues(packedColors, data, ids, config.from.column, defaultColor, (value) => ColorResolver.parseColor(value, valueRange, colorPalette), (color) => ColorResolver.packColor(color), { signal });
|
|
2484
2484
|
return packedColors;
|
|
@@ -2509,8 +2509,9 @@ var ColorResolver = class ColorResolver {
|
|
|
2509
2509
|
return ColorResolver.createUniformColors(ids.length, defaultColor, { align });
|
|
2510
2510
|
}
|
|
2511
2511
|
const data = await loadTable(config.groupBy.table, { signal });
|
|
2512
|
+
const groupCounts = colorMap === void 0 ? await TableUtils.loadGroupCounts(data, config.groupBy.column, { signal }) : void 0;
|
|
2512
2513
|
const packedColors = ColorResolver.createColorBuffer(ids.length, { align });
|
|
2513
|
-
await TableUtils.fillFromTableGroups(packedColors, data, ids, config.groupBy.column, colorMap?.default ?? defaultColor, ConfigUtils.createGroupValueGetter(config, colorMap, defaultColor, colorPalette?.colors), (color) => ColorResolver.packColor(color), { signal });
|
|
2514
|
+
await TableUtils.fillFromTableGroups(packedColors, data, ids, config.groupBy.column, colorMap?.default ?? defaultColor, ConfigUtils.createGroupValueGetter(config, colorMap, defaultColor, colorPalette?.colors, groupCounts?.keys()), (color) => ColorResolver.packColor(color), { signal });
|
|
2514
2515
|
return packedColors;
|
|
2515
2516
|
}
|
|
2516
2517
|
/**
|
|
@@ -3632,8 +3633,9 @@ var MarkerResolver = class MarkerResolver {
|
|
|
3632
3633
|
return MarkerResolver.createUniformMarkers(ids.length, defaultMarker, { align });
|
|
3633
3634
|
}
|
|
3634
3635
|
const data = await loadTable(config.groupBy.table, { signal });
|
|
3636
|
+
const groupCounts = markerMap === void 0 ? await TableUtils.loadGroupCounts(data, config.groupBy.column, { signal }) : void 0;
|
|
3635
3637
|
const packedMarkers = MarkerResolver.createMarkerBuffer(ids.length, { align });
|
|
3636
|
-
await TableUtils.fillFromTableGroups(packedMarkers, data, ids, config.groupBy.column, markerMap?.default ?? defaultMarker, ConfigUtils.createGroupValueGetter(config, markerMap, defaultMarker, markerPalette), (marker) => MarkerResolver.packMarker(marker), { signal });
|
|
3638
|
+
await TableUtils.fillFromTableGroups(packedMarkers, data, ids, config.groupBy.column, markerMap?.default ?? defaultMarker, ConfigUtils.createGroupValueGetter(config, markerMap, defaultMarker, markerPalette, groupCounts?.keys()), (marker) => MarkerResolver.packMarker(marker), { signal });
|
|
3637
3639
|
return packedMarkers;
|
|
3638
3640
|
}
|
|
3639
3641
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tissuumaps/render",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.1",
|
|
4
4
|
"description": "Rendering backends for TissUUmaps images, labels, points and shapes",
|
|
5
5
|
"homepage": "https://tissuumaps.github.io/TissUUmaps/",
|
|
6
6
|
"bugs": "https://github.com/TissUUmaps/TissUUmaps/issues",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"openseadragon": "^6.1.1",
|
|
32
|
-
"@tissuumaps/core": "^0.1.0-beta.
|
|
32
|
+
"@tissuumaps/core": "^0.1.0-beta.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"openseadragon": "^6.1.1",
|
|
36
|
-
"@tissuumaps/core": "^0.1.0-beta.
|
|
36
|
+
"@tissuumaps/core": "^0.1.0-beta.1"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|