@vitessce/layer-controller 3.3.4 → 3.3.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-badee5a7.js → deflate-3576c2c5.js} +1 -1
- package/dist/{index-30d7650f.js → index-992a7ac6.js} +24 -44
- package/dist/index.js +1 -1
- package/dist/{jpeg-4e52b30b.js → jpeg-07a4e5ca.js} +1 -1
- package/dist/{lerc-702c52d2.js → lerc-277634dd.js} +1 -1
- package/dist/{lzw-ae73b909.js → lzw-5db958a7.js} +1 -1
- package/dist/{packbits-e8de9b00.js → packbits-af532629.js} +1 -1
- package/dist/{raw-a3f961fb.js → raw-404fd103.js} +1 -1
- package/dist/{webimage-cfa194f7.js → webimage-015bc3bf.js} +1 -1
- package/package.json +6 -6
|
@@ -3095,19 +3095,19 @@ function _createClass$x(Constructor, protoProps, staticProps) {
|
|
|
3095
3095
|
});
|
|
3096
3096
|
return Constructor;
|
|
3097
3097
|
}
|
|
3098
|
-
function _setPrototypeOf$
|
|
3099
|
-
_setPrototypeOf$
|
|
3098
|
+
function _setPrototypeOf$v(o2, p) {
|
|
3099
|
+
_setPrototypeOf$v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
3100
3100
|
o3.__proto__ = p2;
|
|
3101
3101
|
return o3;
|
|
3102
3102
|
};
|
|
3103
|
-
return _setPrototypeOf$
|
|
3103
|
+
return _setPrototypeOf$v(o2, p);
|
|
3104
3104
|
}
|
|
3105
|
-
function _inheritsLoose
|
|
3105
|
+
function _inheritsLoose(subClass, superClass) {
|
|
3106
3106
|
subClass.prototype = Object.create(superClass.prototype);
|
|
3107
3107
|
subClass.prototype.constructor = subClass;
|
|
3108
|
-
_setPrototypeOf$
|
|
3108
|
+
_setPrototypeOf$v(subClass, superClass);
|
|
3109
3109
|
}
|
|
3110
|
-
function _assertThisInitialized$
|
|
3110
|
+
function _assertThisInitialized$v(self2) {
|
|
3111
3111
|
if (self2 === void 0) {
|
|
3112
3112
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3113
3113
|
}
|
|
@@ -3314,7 +3314,7 @@ var BaseStyleRule = /* @__PURE__ */ function() {
|
|
|
3314
3314
|
return BaseStyleRule2;
|
|
3315
3315
|
}();
|
|
3316
3316
|
var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
3317
|
-
_inheritsLoose
|
|
3317
|
+
_inheritsLoose(StyleRule2, _BaseStyleRule);
|
|
3318
3318
|
function StyleRule2(key, style2, options) {
|
|
3319
3319
|
var _this;
|
|
3320
3320
|
_this = _BaseStyleRule.call(this, key, style2, options) || this;
|
|
@@ -3322,7 +3322,7 @@ var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
|
3322
3322
|
if (selector) {
|
|
3323
3323
|
_this.selectorText = selector;
|
|
3324
3324
|
} else if (scoped !== false) {
|
|
3325
|
-
_this.id = generateId(_assertThisInitialized$
|
|
3325
|
+
_this.id = generateId(_assertThisInitialized$v(_assertThisInitialized$v(_this)), sheet);
|
|
3326
3326
|
_this.selectorText = "." + escape(_this.id);
|
|
3327
3327
|
}
|
|
3328
3328
|
return _this;
|
|
@@ -3552,7 +3552,7 @@ var pluginKeyframesRule = {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
};
|
|
3554
3554
|
var KeyframeRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
3555
|
-
_inheritsLoose
|
|
3555
|
+
_inheritsLoose(KeyframeRule2, _BaseStyleRule);
|
|
3556
3556
|
function KeyframeRule2() {
|
|
3557
3557
|
return _BaseStyleRule.apply(this, arguments) || this;
|
|
3558
3558
|
}
|
|
@@ -6558,18 +6558,6 @@ function useIsFocusVisible() {
|
|
|
6558
6558
|
function _toArray(arr) {
|
|
6559
6559
|
return _arrayWithHoles$6(arr) || _iterableToArray$j(arr) || _unsupportedIterableToArray$k(arr) || _nonIterableRest$6();
|
|
6560
6560
|
}
|
|
6561
|
-
function _setPrototypeOf$v(o2, p) {
|
|
6562
|
-
_setPrototypeOf$v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
6563
|
-
o3.__proto__ = p2;
|
|
6564
|
-
return o3;
|
|
6565
|
-
};
|
|
6566
|
-
return _setPrototypeOf$v(o2, p);
|
|
6567
|
-
}
|
|
6568
|
-
function _inheritsLoose(subClass, superClass) {
|
|
6569
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
6570
|
-
subClass.prototype.constructor = subClass;
|
|
6571
|
-
_setPrototypeOf$v(subClass, superClass);
|
|
6572
|
-
}
|
|
6573
6561
|
const config$1 = {
|
|
6574
6562
|
disabled: false
|
|
6575
6563
|
};
|
|
@@ -6815,7 +6803,7 @@ var Transition$1 = /* @__PURE__ */ function(_React$Component) {
|
|
|
6815
6803
|
_this$props.onExiting;
|
|
6816
6804
|
_this$props.onExited;
|
|
6817
6805
|
_this$props.nodeRef;
|
|
6818
|
-
var childProps = _objectWithoutPropertiesLoose
|
|
6806
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
6819
6807
|
return (
|
|
6820
6808
|
// allows for nested Transitions
|
|
6821
6809
|
/* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
@@ -7019,12 +7007,6 @@ Transition$1.ENTERING = ENTERING;
|
|
|
7019
7007
|
Transition$1.ENTERED = ENTERED;
|
|
7020
7008
|
Transition$1.EXITING = EXITING;
|
|
7021
7009
|
const Transition$2 = Transition$1;
|
|
7022
|
-
function _assertThisInitialized$v(self2) {
|
|
7023
|
-
if (self2 === void 0) {
|
|
7024
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7025
|
-
}
|
|
7026
|
-
return self2;
|
|
7027
|
-
}
|
|
7028
7010
|
function getChildMapping(children, mapFn) {
|
|
7029
7011
|
var mapper = function mapper2(child) {
|
|
7030
7012
|
return mapFn && isValidElement(child) ? mapFn(child) : child;
|
|
@@ -7173,7 +7155,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
7173
7155
|
}
|
|
7174
7156
|
if (this.mounted) {
|
|
7175
7157
|
this.setState(function(state) {
|
|
7176
|
-
var children = _extends({}, state.children);
|
|
7158
|
+
var children = _extends$1({}, state.children);
|
|
7177
7159
|
delete children[child.key];
|
|
7178
7160
|
return {
|
|
7179
7161
|
children
|
|
@@ -7182,7 +7164,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
7182
7164
|
}
|
|
7183
7165
|
};
|
|
7184
7166
|
_proto.render = function render() {
|
|
7185
|
-
var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props2 = _objectWithoutPropertiesLoose
|
|
7167
|
+
var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props2 = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
|
7186
7168
|
var contextValue = this.state.contextValue;
|
|
7187
7169
|
var children = values(this.state.children).map(childFactory2);
|
|
7188
7170
|
delete props2.appear;
|
|
@@ -17654,9 +17636,6 @@ var pluralizeExports = pluralize.exports;
|
|
|
17654
17636
|
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
17655
17637
|
plur.addPluralRule("glomerulus", "glomeruli");
|
|
17656
17638
|
plur.addPluralRule("interstitium", "interstitia");
|
|
17657
|
-
function fromEntries(iterable) {
|
|
17658
|
-
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
|
|
17659
|
-
}
|
|
17660
17639
|
function capitalize(word) {
|
|
17661
17640
|
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
17662
17641
|
}
|
|
@@ -120211,7 +120190,8 @@ const AXIS_TITLE_TEXT_SIZE = 15;
|
|
|
120211
120190
|
const AXIS_MARGIN = 3;
|
|
120212
120191
|
const THEME_TO_TEXT_COLOR = {
|
|
120213
120192
|
dark: [224, 224, 224],
|
|
120214
|
-
light: [64, 64, 64]
|
|
120193
|
+
light: [64, 64, 64],
|
|
120194
|
+
light2: [64, 64, 64]
|
|
120215
120195
|
};
|
|
120216
120196
|
const AXIS_FONT_FAMILY = "-apple-system, 'Helvetica Neue', Arial, sans-serif";
|
|
120217
120197
|
const PIXELATED_TEXTURE_PARAMETERS = {
|
|
@@ -121314,16 +121294,16 @@ function addDecoder(cases, importFn) {
|
|
|
121314
121294
|
}
|
|
121315
121295
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
121316
121296
|
}
|
|
121317
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
121318
|
-
addDecoder(5, () => import("./lzw-
|
|
121297
|
+
addDecoder([void 0, 1], () => import("./raw-404fd103.js").then((m) => m.default));
|
|
121298
|
+
addDecoder(5, () => import("./lzw-5db958a7.js").then((m) => m.default));
|
|
121319
121299
|
addDecoder(6, () => {
|
|
121320
121300
|
throw new Error("old style JPEG compression is not supported.");
|
|
121321
121301
|
});
|
|
121322
|
-
addDecoder(7, () => import("./jpeg-
|
|
121323
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
121324
|
-
addDecoder(32773, () => import("./packbits-
|
|
121325
|
-
addDecoder(34887, () => import("./lerc-
|
|
121326
|
-
addDecoder(50001, () => import("./webimage-
|
|
121302
|
+
addDecoder(7, () => import("./jpeg-07a4e5ca.js").then((m) => m.default));
|
|
121303
|
+
addDecoder([8, 32946], () => import("./deflate-3576c2c5.js").then((m) => m.default));
|
|
121304
|
+
addDecoder(32773, () => import("./packbits-af532629.js").then((m) => m.default));
|
|
121305
|
+
addDecoder(34887, () => import("./lerc-277634dd.js").then((m) => m.default));
|
|
121306
|
+
addDecoder(50001, () => import("./webimage-015bc3bf.js").then((m) => m.default));
|
|
121327
121307
|
function decodeRowAcc(row, stride) {
|
|
121328
121308
|
let length2 = row.length - stride;
|
|
121329
121309
|
let offset4 = 0;
|
|
@@ -132751,7 +132731,7 @@ class BitmaskLayer2 extends XRLayer {
|
|
|
132751
132731
|
} = this.state;
|
|
132752
132732
|
if (textures && model) {
|
|
132753
132733
|
const scaleFactor = 1 / 2 ** (maxZoom - zoom);
|
|
132754
|
-
const colors = fromEntries(range$4(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
|
|
132734
|
+
const colors = Object.fromEntries(range$4(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
|
|
132755
132735
|
model.setUniforms(Object.assign({}, uniforms, {
|
|
132756
132736
|
...colors,
|
|
132757
132737
|
// Bitmask image channel data textures
|
|
@@ -132903,7 +132883,7 @@ class BitmaskLayer2 extends XRLayer {
|
|
|
132903
132883
|
BitmaskLayer2.layerName = "BitmaskLayer";
|
|
132904
132884
|
BitmaskLayer2.defaultProps = defaultProps;
|
|
132905
132885
|
const toRgbUIString = (on, arr, theme) => {
|
|
132906
|
-
const color = on || theme
|
|
132886
|
+
const color = on || theme !== "dark" && (arr == null ? void 0 : arr.every((i2) => i2 === 255)) ? [220, 220, 220] : arr;
|
|
132907
132887
|
return `rgb(${color})`;
|
|
132908
132888
|
};
|
|
132909
132889
|
function filterSelection(loader, selection) {
|
|
@@ -132912,7 +132892,7 @@ function filterSelection(loader, selection) {
|
|
|
132912
132892
|
}
|
|
132913
132893
|
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
|
132914
132894
|
const { labels } = data;
|
|
132915
|
-
return fromEntries(Object.entries(selection).filter(([key]) => labels.includes(key)));
|
|
132895
|
+
return Object.fromEntries(Object.entries(selection).filter(([key]) => labels.includes(key)));
|
|
132916
132896
|
}
|
|
132917
132897
|
async function getSingleSelectionStats2D({ loader, selection }) {
|
|
132918
132898
|
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-992a7ac6.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/layer-controller",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
22
|
"math.gl": "^3.5.6",
|
|
23
23
|
"react-aria": "^3.28.0",
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/spatial-utils": "3.3.
|
|
27
|
-
"@vitessce/utils": "3.3.
|
|
28
|
-
"@vitessce/vit-s": "3.3.
|
|
24
|
+
"@vitessce/gl": "3.3.6",
|
|
25
|
+
"@vitessce/constants-internal": "3.3.6",
|
|
26
|
+
"@vitessce/spatial-utils": "3.3.6",
|
|
27
|
+
"@vitessce/utils": "3.3.6",
|
|
28
|
+
"@vitessce/vit-s": "3.3.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"react": "^18.0.0",
|