@vitessce/layer-controller 4.0.4 → 4.0.6
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/dist/{deflate-ClWgDGm4.js → deflate-Boj6T2f8.js} +1 -1
- package/dist/{index-DbwVFs5B.js → index-imWYvgCt.js} +30 -11
- package/dist/index.js +1 -1
- package/dist/{jpeg-BIZK3Tvc.js → jpeg-qEHhnFxg.js} +1 -1
- package/dist/{lerc-tnE3DJ96.js → lerc-CxsPWOpO.js} +1 -1
- package/dist/{lzw-BojDYgWh.js → lzw-BUiQlht2.js} +1 -1
- package/dist/{packbits-PMd-Pku-.js → packbits-Csx0O27a.js} +1 -1
- package/dist/{raw-cOeiySk1.js → raw-CFxI_WvJ.js} +1 -1
- package/dist/{webimage-BQcGyVMa.js → webimage-BldO2DMp.js} +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-imWYvgCt.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -21493,6 +21493,7 @@ const CoordinationType = {
|
|
|
21493
21493
|
SPATIAL_LAYER_VISIBLE: "spatialLayerVisible",
|
|
21494
21494
|
SPATIAL_LAYER_OPACITY: "spatialLayerOpacity",
|
|
21495
21495
|
SPATIAL_LAYER_COLORMAP: "spatialLayerColormap",
|
|
21496
|
+
SPATIAL_LAYER_LABEL: "spatialLayerLabel",
|
|
21496
21497
|
SPATIAL_LAYER_TRANSPARENT_COLOR: "spatialLayerTransparentColor",
|
|
21497
21498
|
SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
|
|
21498
21499
|
SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
|
|
@@ -21600,6 +21601,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
21600
21601
|
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
21601
21602
|
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
21602
21603
|
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
21604
|
+
CoordinationType.SPATIAL_LAYER_LABEL,
|
|
21603
21605
|
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
21604
21606
|
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
21605
21607
|
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
@@ -21982,6 +21984,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
21982
21984
|
CoordinationType.FILE_UID,
|
|
21983
21985
|
CoordinationType.SPATIAL_TARGET_C,
|
|
21984
21986
|
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
21987
|
+
CoordinationType.SPATIAL_LAYER_LABEL,
|
|
21985
21988
|
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
21986
21989
|
CoordinationType.SPATIAL_LAYER_COLORMAP,
|
|
21987
21990
|
CoordinationType.SPATIAL_LAYER_TRANSPARENT_COLOR,
|
|
@@ -22901,7 +22904,7 @@ function formatBytes(bytes, decimals = 2) {
|
|
|
22901
22904
|
return "0 Bytes";
|
|
22902
22905
|
const k = 1024;
|
|
22903
22906
|
const dm = decimals < 0 ? 0 : decimals;
|
|
22904
|
-
const sizes = ["Bytes", "KB", "MB", "GB"];
|
|
22907
|
+
const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB"];
|
|
22905
22908
|
const i2 = Math.floor(Math.log(bytes) / Math.log(k));
|
|
22906
22909
|
return `${parseFloat((bytes / Math.pow(k, i2)).toFixed(dm))} ${sizes[i2]}`;
|
|
22907
22910
|
}
|
|
@@ -126562,6 +126565,20 @@ function requireDistEs6() {
|
|
|
126562
126565
|
var distEs6Exports$2 = requireDistEs6();
|
|
126563
126566
|
var distEs6Exports$1 = requireDistEs6$1();
|
|
126564
126567
|
var distEs6Exports = requireDistEs6$2();
|
|
126568
|
+
function runSelectionWithBusySignal(onBusy, work) {
|
|
126569
|
+
if (typeof onBusy !== "function" || typeof requestAnimationFrame !== "function") {
|
|
126570
|
+
work();
|
|
126571
|
+
return;
|
|
126572
|
+
}
|
|
126573
|
+
onBusy(true);
|
|
126574
|
+
requestAnimationFrame(() => setTimeout(() => {
|
|
126575
|
+
try {
|
|
126576
|
+
work();
|
|
126577
|
+
} finally {
|
|
126578
|
+
onBusy(false);
|
|
126579
|
+
}
|
|
126580
|
+
}, 0));
|
|
126581
|
+
}
|
|
126565
126582
|
const EDIT_TYPE_ADD = "addFeature";
|
|
126566
126583
|
const EDIT_TYPE_CLEAR = "clearFeatures";
|
|
126567
126584
|
class ClickableDrawPolygonByDraggingMode extends distEs6Exports.DrawPolygonByDraggingMode {
|
|
@@ -126576,7 +126593,8 @@ const MODE_MAP = {
|
|
|
126576
126593
|
const defaultProps$f = {
|
|
126577
126594
|
layerIds: [],
|
|
126578
126595
|
onSelect: () => {
|
|
126579
|
-
}
|
|
126596
|
+
},
|
|
126597
|
+
onSelectionBusy: null
|
|
126580
126598
|
};
|
|
126581
126599
|
const EMPTY_DATA = {
|
|
126582
126600
|
type: "FeatureCollection",
|
|
@@ -126668,11 +126686,12 @@ class SelectionLayer extends CompositeLayer {
|
|
|
126668
126686
|
selectedFeatureIndexes: [],
|
|
126669
126687
|
data: EMPTY_DATA,
|
|
126670
126688
|
onEdit: ({ updatedData, editType }) => {
|
|
126689
|
+
const { onSelectionBusy } = this.props;
|
|
126671
126690
|
if (editType === EDIT_TYPE_ADD) {
|
|
126672
126691
|
const { coordinates: coordinates2 } = updatedData.features[0].geometry;
|
|
126673
|
-
this._selectPolygonObjects(coordinates2);
|
|
126692
|
+
runSelectionWithBusySignal(onSelectionBusy, () => this._selectPolygonObjects(coordinates2));
|
|
126674
126693
|
} else if (editType === EDIT_TYPE_CLEAR) {
|
|
126675
|
-
this._selectEmpty();
|
|
126694
|
+
runSelectionWithBusySignal(onSelectionBusy, () => this._selectEmpty());
|
|
126676
126695
|
}
|
|
126677
126696
|
},
|
|
126678
126697
|
_subLayerProps: {
|
|
@@ -127813,22 +127832,22 @@ function addDecoder(cases, importFn) {
|
|
|
127813
127832
|
}
|
|
127814
127833
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
127815
127834
|
}
|
|
127816
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
127817
|
-
addDecoder(5, () => import("./lzw-
|
|
127835
|
+
addDecoder([void 0, 1], () => import("./raw-CFxI_WvJ.js").then((m) => m.default));
|
|
127836
|
+
addDecoder(5, () => import("./lzw-BUiQlht2.js").then((m) => m.default));
|
|
127818
127837
|
addDecoder(6, () => {
|
|
127819
127838
|
throw new Error("old style JPEG compression is not supported.");
|
|
127820
127839
|
});
|
|
127821
|
-
addDecoder(7, () => import("./jpeg-
|
|
127822
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
127823
|
-
addDecoder(32773, () => import("./packbits-
|
|
127840
|
+
addDecoder(7, () => import("./jpeg-qEHhnFxg.js").then((m) => m.default));
|
|
127841
|
+
addDecoder([8, 32946], () => import("./deflate-Boj6T2f8.js").then((m) => m.default));
|
|
127842
|
+
addDecoder(32773, () => import("./packbits-Csx0O27a.js").then((m) => m.default));
|
|
127824
127843
|
addDecoder(
|
|
127825
127844
|
34887,
|
|
127826
|
-
() => import("./lerc-
|
|
127845
|
+
() => import("./lerc-CxsPWOpO.js").then(async (m) => {
|
|
127827
127846
|
await m.zstd.init();
|
|
127828
127847
|
return m;
|
|
127829
127848
|
}).then((m) => m.default)
|
|
127830
127849
|
);
|
|
127831
|
-
addDecoder(50001, () => import("./webimage-
|
|
127850
|
+
addDecoder(50001, () => import("./webimage-BldO2DMp.js").then((m) => m.default));
|
|
127832
127851
|
function decodeRowAcc(row, stride) {
|
|
127833
127852
|
let length2 = row.length - stride;
|
|
127834
127853
|
let offset2 = 0;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-imWYvgCt.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/layer-controller",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"math.gl": "^3.5.6",
|
|
21
21
|
"react-aria": "^3.47.0",
|
|
22
|
-
"@vitessce/styles": "4.0.
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
22
|
+
"@vitessce/styles": "4.0.6",
|
|
23
|
+
"@vitessce/utils": "4.0.6",
|
|
24
|
+
"@vitessce/vit-s": "4.0.6",
|
|
25
|
+
"@vitessce/constants-internal": "4.0.6",
|
|
26
|
+
"@vitessce/gl": "4.0.6",
|
|
27
|
+
"@vitessce/spatial-utils": "4.0.6"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "19.2.6",
|