@vitessce/scatterplot 3.8.10 → 3.8.13

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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-BgH5JCMh.js";
2
+ import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -105941,22 +105941,22 @@ function addDecoder(cases, importFn) {
105941
105941
  }
105942
105942
  cases.forEach((c2) => registry$1.set(c2, importFn));
105943
105943
  }
105944
- addDecoder([void 0, 1], () => import("./raw-ChRkwMzK.js").then((m2) => m2.default));
105945
- addDecoder(5, () => import("./lzw-CgToJLS_.js").then((m2) => m2.default));
105944
+ addDecoder([void 0, 1], () => import("./raw-x7WjGrAR.js").then((m2) => m2.default));
105945
+ addDecoder(5, () => import("./lzw-B7vskPPs.js").then((m2) => m2.default));
105946
105946
  addDecoder(6, () => {
105947
105947
  throw new Error("old style JPEG compression is not supported.");
105948
105948
  });
105949
- addDecoder(7, () => import("./jpeg-DOj-mktM.js").then((m2) => m2.default));
105950
- addDecoder([8, 32946], () => import("./deflate-BUOOeR_H.js").then((m2) => m2.default));
105951
- addDecoder(32773, () => import("./packbits-Co4VqP5m.js").then((m2) => m2.default));
105949
+ addDecoder(7, () => import("./jpeg-9W5Yt9ZO.js").then((m2) => m2.default));
105950
+ addDecoder([8, 32946], () => import("./deflate-CeYijgt6.js").then((m2) => m2.default));
105951
+ addDecoder(32773, () => import("./packbits-BPd00-mr.js").then((m2) => m2.default));
105952
105952
  addDecoder(
105953
105953
  34887,
105954
- () => import("./lerc-DJ1FEjnQ.js").then(async (m2) => {
105954
+ () => import("./lerc-6BpvcXOs.js").then(async (m2) => {
105955
105955
  await m2.zstd.init();
105956
105956
  return m2;
105957
105957
  }).then((m2) => m2.default)
105958
105958
  );
105959
- addDecoder(50001, () => import("./webimage-Mf5GLiYz.js").then((m2) => m2.default));
105959
+ addDecoder(50001, () => import("./webimage-BfG0h7pO.js").then((m2) => m2.default));
105960
105960
  function decodeRowAcc(row, stride) {
105961
105961
  let length2 = row.length - stride;
105962
105962
  let offset2 = 0;
@@ -131142,11 +131142,6 @@ const { tss } = createTss({
131142
131142
  "usePlugin": useMuiThemeStyleOverridesPlugin
131143
131143
  });
131144
131144
  const useStyles$3 = tss.create({});
131145
- function chainPropTypes(propType1, propType2) {
131146
- return function validate2(...args) {
131147
- return propType1(...args) || propType2(...args);
131148
- };
131149
- }
131150
131145
  const memoTheme = unstable_memoTheme;
131151
131146
  ({
131152
131147
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -131165,413 +131160,87 @@ const memoTheme = unstable_memoTheme;
131165
131160
  function useDefaultProps(params) {
131166
131161
  return useDefaultProps$1(params);
131167
131162
  }
131168
- function _extends$1() {
131169
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
131170
- for (var e2 = 1; e2 < arguments.length; e2++) {
131171
- var t = arguments[e2];
131172
- for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
131173
- }
131174
- return n2;
131175
- }, _extends$1.apply(null, arguments);
131176
- }
131177
- function _objectWithoutPropertiesLoose(r2, e2) {
131178
- if (null == r2) return {};
131179
- var t = {};
131180
- for (var n2 in r2) if ({}.hasOwnProperty.call(r2, n2)) {
131181
- if (-1 !== e2.indexOf(n2)) continue;
131182
- t[n2] = r2[n2];
131183
- }
131184
- return t;
131185
- }
131186
- function _setPrototypeOf(t, e2) {
131187
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
131188
- return t2.__proto__ = e3, t2;
131189
- }, _setPrototypeOf(t, e2);
131190
- }
131191
- function _inheritsLoose(t, o2) {
131192
- t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o2);
131193
- }
131194
- const TransitionGroupContext = React__default.createContext(null);
131195
- function _assertThisInitialized(e2) {
131196
- if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
131197
- return e2;
131163
+ function getSvgIconUtilityClass(slot) {
131164
+ return generateUtilityClass("MuiSvgIcon", slot);
131198
131165
  }
131199
- function getChildMapping(children, mapFn) {
131200
- var mapper = function mapper2(child) {
131201
- return mapFn && isValidElement(child) ? mapFn(child) : child;
131166
+ generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
131167
+ const useUtilityClasses$7 = (ownerState) => {
131168
+ const {
131169
+ color: color2,
131170
+ fontSize,
131171
+ classes
131172
+ } = ownerState;
131173
+ const slots = {
131174
+ root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
131202
131175
  };
131203
- var result = /* @__PURE__ */ Object.create(null);
131204
- if (children) Children.map(children, function(c2) {
131205
- return c2;
131206
- }).forEach(function(child) {
131207
- result[child.key] = mapper(child);
131208
- });
131209
- return result;
131210
- }
131211
- function mergeChildMappings(prev2, next2) {
131212
- prev2 = prev2 || {};
131213
- next2 = next2 || {};
131214
- function getValueForKey(key) {
131215
- return key in next2 ? next2[key] : prev2[key];
131216
- }
131217
- var nextKeysPending = /* @__PURE__ */ Object.create(null);
131218
- var pendingKeys = [];
131219
- for (var prevKey in prev2) {
131220
- if (prevKey in next2) {
131221
- if (pendingKeys.length) {
131222
- nextKeysPending[prevKey] = pendingKeys;
131223
- pendingKeys = [];
131224
- }
131225
- } else {
131226
- pendingKeys.push(prevKey);
131227
- }
131228
- }
131229
- var i2;
131230
- var childMapping = {};
131231
- for (var nextKey in next2) {
131232
- if (nextKeysPending[nextKey]) {
131233
- for (i2 = 0; i2 < nextKeysPending[nextKey].length; i2++) {
131234
- var pendingNextKey = nextKeysPending[nextKey][i2];
131235
- childMapping[nextKeysPending[nextKey][i2]] = getValueForKey(pendingNextKey);
131236
- }
131237
- }
131238
- childMapping[nextKey] = getValueForKey(nextKey);
131239
- }
131240
- for (i2 = 0; i2 < pendingKeys.length; i2++) {
131241
- childMapping[pendingKeys[i2]] = getValueForKey(pendingKeys[i2]);
131242
- }
131243
- return childMapping;
131244
- }
131245
- function getProp(child, prop, props) {
131246
- return props[prop] != null ? props[prop] : child.props[prop];
131247
- }
131248
- function getInitialChildMapping(props, onExited) {
131249
- return getChildMapping(props.children, function(child) {
131250
- return cloneElement(child, {
131251
- onExited: onExited.bind(null, child),
131252
- in: true,
131253
- appear: getProp(child, "appear", props),
131254
- enter: getProp(child, "enter", props),
131255
- exit: getProp(child, "exit", props)
131256
- });
131257
- });
131258
- }
131259
- function getNextChildMapping(nextProps, prevChildMapping, onExited) {
131260
- var nextChildMapping = getChildMapping(nextProps.children);
131261
- var children = mergeChildMappings(prevChildMapping, nextChildMapping);
131262
- Object.keys(children).forEach(function(key) {
131263
- var child = children[key];
131264
- if (!isValidElement(child)) return;
131265
- var hasPrev = key in prevChildMapping;
131266
- var hasNext = key in nextChildMapping;
131267
- var prevChild = prevChildMapping[key];
131268
- var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
131269
- if (hasNext && (!hasPrev || isLeaving)) {
131270
- children[key] = cloneElement(child, {
131271
- onExited: onExited.bind(null, child),
131272
- in: true,
131273
- exit: getProp(child, "exit", nextProps),
131274
- enter: getProp(child, "enter", nextProps)
131275
- });
131276
- } else if (!hasNext && hasPrev && !isLeaving) {
131277
- children[key] = cloneElement(child, {
131278
- in: false
131279
- });
131280
- } else if (hasNext && hasPrev && isValidElement(prevChild)) {
131281
- children[key] = cloneElement(child, {
131282
- onExited: onExited.bind(null, child),
131283
- in: prevChild.props.in,
131284
- exit: getProp(child, "exit", nextProps),
131285
- enter: getProp(child, "enter", nextProps)
131286
- });
131287
- }
131288
- });
131289
- return children;
131290
- }
131291
- var values = Object.values || function(obj) {
131292
- return Object.keys(obj).map(function(k) {
131293
- return obj[k];
131294
- });
131176
+ return composeClasses(slots, getSvgIconUtilityClass, classes);
131295
131177
  };
131296
- var defaultProps = {
131297
- component: "div",
131298
- childFactory: function childFactory(child) {
131299
- return child;
131178
+ const SvgIconRoot = styled("svg", {
131179
+ name: "MuiSvgIcon",
131180
+ slot: "Root",
131181
+ overridesResolver: (props, styles) => {
131182
+ const {
131183
+ ownerState
131184
+ } = props;
131185
+ return [styles.root, ownerState.color !== "inherit" && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];
131300
131186
  }
131301
- };
131302
- var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
131303
- _inheritsLoose(TransitionGroup2, _React$Component);
131304
- function TransitionGroup2(props, context) {
131305
- var _this;
131306
- _this = _React$Component.call(this, props, context) || this;
131307
- var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
131308
- _this.state = {
131309
- contextValue: {
131310
- isMounting: true
131187
+ })(memoTheme(({
131188
+ theme
131189
+ }) => {
131190
+ var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
131191
+ return {
131192
+ userSelect: "none",
131193
+ width: "1em",
131194
+ height: "1em",
131195
+ display: "inline-block",
131196
+ flexShrink: 0,
131197
+ transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
131198
+ duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
131199
+ }),
131200
+ variants: [
131201
+ {
131202
+ props: (props) => !props.hasSvgAsChild,
131203
+ style: {
131204
+ // the <svg> will define the property that has `currentColor`
131205
+ // for example heroicons uses fill="none" and stroke="currentColor"
131206
+ fill: "currentColor"
131207
+ }
131311
131208
  },
131312
- handleExited,
131313
- firstRender: true
131314
- };
131315
- return _this;
131316
- }
131317
- var _proto = TransitionGroup2.prototype;
131318
- _proto.componentDidMount = function componentDidMount() {
131319
- this.mounted = true;
131320
- this.setState({
131321
- contextValue: {
131322
- isMounting: false
131323
- }
131324
- });
131325
- };
131326
- _proto.componentWillUnmount = function componentWillUnmount() {
131327
- this.mounted = false;
131328
- };
131329
- TransitionGroup2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
131330
- var prevChildMapping = _ref.children, handleExited = _ref.handleExited, firstRender = _ref.firstRender;
131331
- return {
131332
- children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
131333
- firstRender: false
131334
- };
131335
- };
131336
- _proto.handleExited = function handleExited(child, node2) {
131337
- var currentChildMapping = getChildMapping(this.props.children);
131338
- if (child.key in currentChildMapping) return;
131339
- if (child.props.onExited) {
131340
- child.props.onExited(node2);
131341
- }
131342
- if (this.mounted) {
131343
- this.setState(function(state) {
131344
- var children = _extends$1({}, state.children);
131345
- delete children[child.key];
131346
- return {
131347
- children
131348
- };
131349
- });
131350
- }
131351
- };
131352
- _proto.render = function render() {
131353
- var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
131354
- var contextValue = this.state.contextValue;
131355
- var children = values(this.state.children).map(childFactory2);
131356
- delete props.appear;
131357
- delete props.enter;
131358
- delete props.exit;
131359
- if (Component2 === null) {
131360
- return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
131361
- value: contextValue
131362
- }, children);
131363
- }
131364
- return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
131365
- value: contextValue
131366
- }, /* @__PURE__ */ React__default.createElement(Component2, props, children));
131367
- };
131368
- return TransitionGroup2;
131369
- }(React__default.Component);
131370
- TransitionGroup.propTypes = {
131371
- /**
131372
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
131373
- * behavior by providing a `component` prop.
131374
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
131375
- * you can pass in `component={null}`. This is useful if the wrapping div
131376
- * borks your css styles.
131377
- */
131378
- component: PropTypes.any,
131379
- /**
131380
- * A set of `<Transition>` components, that are toggled `in` and out as they
131381
- * leave. the `<TransitionGroup>` will inject specific transition props, so
131382
- * remember to spread them through if you are wrapping the `<Transition>` as
131383
- * with our `<Fade>` example.
131384
- *
131385
- * While this component is meant for multiple `Transition` or `CSSTransition`
131386
- * children, sometimes you may want to have a single transition child with
131387
- * content that you want to be transitioned out and in when you change it
131388
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
131389
- * the transition child as you change its content, this will cause
131390
- * `TransitionGroup` to transition the child out and back in.
131391
- */
131392
- children: PropTypes.node,
131393
- /**
131394
- * A convenience prop that enables or disables appear animations
131395
- * for all children. Note that specifying this will override any defaults set
131396
- * on individual children Transitions.
131397
- */
131398
- appear: PropTypes.bool,
131399
- /**
131400
- * A convenience prop that enables or disables enter animations
131401
- * for all children. Note that specifying this will override any defaults set
131402
- * on individual children Transitions.
131403
- */
131404
- enter: PropTypes.bool,
131405
- /**
131406
- * A convenience prop that enables or disables exit animations
131407
- * for all children. Note that specifying this will override any defaults set
131408
- * on individual children Transitions.
131409
- */
131410
- exit: PropTypes.bool,
131411
- /**
131412
- * You may need to apply reactive updates to a child as it is exiting.
131413
- * This is generally done by using `cloneElement` however in the case of an exiting
131414
- * child the element has already been removed and not accessible to the consumer.
131415
- *
131416
- * If you do need to update a child as it leaves you can provide a `childFactory`
131417
- * to wrap every child, even the ones that are leaving.
131418
- *
131419
- * @type Function(child: ReactElement) -> ReactElement
131420
- */
131421
- childFactory: PropTypes.func
131422
- };
131423
- TransitionGroup.defaultProps = defaultProps;
131424
- const UNINITIALIZED = {};
131425
- function useLazyRef(init, initArg) {
131426
- const ref = React.useRef(UNINITIALIZED);
131427
- if (ref.current === UNINITIALIZED) {
131428
- ref.current = init(initArg);
131429
- }
131430
- return ref;
131431
- }
131432
- const EMPTY = [];
131433
- function useOnMount(fn) {
131434
- React.useEffect(fn, EMPTY);
131435
- }
131436
- class Timeout {
131437
- constructor() {
131438
- __publicField(this, "currentId", null);
131439
- __publicField(this, "clear", () => {
131440
- if (this.currentId !== null) {
131441
- clearTimeout(this.currentId);
131442
- this.currentId = null;
131443
- }
131444
- });
131445
- __publicField(this, "disposeEffect", () => {
131446
- return this.clear;
131447
- });
131448
- }
131449
- static create() {
131450
- return new Timeout();
131451
- }
131452
- /**
131453
- * Executes `fn` after `delay`, clearing any previously scheduled call.
131454
- */
131455
- start(delay, fn) {
131456
- this.clear();
131457
- this.currentId = setTimeout(() => {
131458
- this.currentId = null;
131459
- fn();
131460
- }, delay);
131461
- }
131462
- }
131463
- function useTimeout() {
131464
- const timeout2 = useLazyRef(Timeout.create).current;
131465
- useOnMount(timeout2.disposeEffect);
131466
- return timeout2;
131467
- }
131468
- function isClassComponent(elementType) {
131469
- const {
131470
- prototype = {}
131471
- } = elementType;
131472
- return Boolean(prototype.isReactComponent);
131473
- }
131474
- function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {
131475
- const propValue = props[propName];
131476
- const safePropName = propFullName || propName;
131477
- if (propValue == null || // When server-side rendering React doesn't warn either.
131478
- // This is not an accurate check for SSR.
131479
- // This is only in place for emotion compat.
131480
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
131481
- typeof window === "undefined") {
131482
- return null;
131483
- }
131484
- let warningHint;
131485
- if (typeof propValue === "function" && !isClassComponent(propValue)) {
131486
- warningHint = "Did you accidentally provide a plain function component instead?";
131487
- }
131488
- if (warningHint !== void 0) {
131489
- return new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element type that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`);
131490
- }
131491
- return null;
131492
- }
131493
- const elementTypeAcceptingRef$1 = chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);
131494
- function getSvgIconUtilityClass(slot) {
131495
- return generateUtilityClass("MuiSvgIcon", slot);
131496
- }
131497
- generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
131498
- const useUtilityClasses$7 = (ownerState) => {
131499
- const {
131500
- color: color2,
131501
- fontSize,
131502
- classes
131503
- } = ownerState;
131504
- const slots = {
131505
- root: ["root", color2 !== "inherit" && `color${capitalize(color2)}`, `fontSize${capitalize(fontSize)}`]
131506
- };
131507
- return composeClasses(slots, getSvgIconUtilityClass, classes);
131508
- };
131509
- const SvgIconRoot = styled("svg", {
131510
- name: "MuiSvgIcon",
131511
- slot: "Root",
131512
- overridesResolver: (props, styles) => {
131513
- const {
131514
- ownerState
131515
- } = props;
131516
- return [styles.root, ownerState.color !== "inherit" && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];
131517
- }
131518
- })(memoTheme(({
131519
- theme
131520
- }) => {
131521
- var _a3, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
131522
- return {
131523
- userSelect: "none",
131524
- width: "1em",
131525
- height: "1em",
131526
- display: "inline-block",
131527
- flexShrink: 0,
131528
- transition: (_d = (_a3 = theme.transitions) == null ? void 0 : _a3.create) == null ? void 0 : _d.call(_a3, "fill", {
131529
- duration: (_c = (_b2 = (theme.vars ?? theme).transitions) == null ? void 0 : _b2.duration) == null ? void 0 : _c.shorter
131530
- }),
131531
- variants: [
131532
- {
131533
- props: (props) => !props.hasSvgAsChild,
131534
- style: {
131535
- // the <svg> will define the property that has `currentColor`
131536
- // for example heroicons uses fill="none" and stroke="currentColor"
131537
- fill: "currentColor"
131538
- }
131539
- },
131540
- {
131541
- props: {
131542
- fontSize: "inherit"
131543
- },
131544
- style: {
131545
- fontSize: "inherit"
131546
- }
131547
- },
131548
- {
131549
- props: {
131550
- fontSize: "small"
131551
- },
131552
- style: {
131553
- fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
131554
- }
131555
- },
131556
- {
131557
- props: {
131558
- fontSize: "medium"
131559
- },
131560
- style: {
131561
- fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
131562
- }
131563
- },
131564
- {
131565
- props: {
131566
- fontSize: "large"
131567
- },
131568
- style: {
131569
- fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
131570
- }
131571
- },
131572
- // TODO v5 deprecate color prop, v6 remove for sx
131573
- ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
131574
- var _a4, _b3;
131209
+ {
131210
+ props: {
131211
+ fontSize: "inherit"
131212
+ },
131213
+ style: {
131214
+ fontSize: "inherit"
131215
+ }
131216
+ },
131217
+ {
131218
+ props: {
131219
+ fontSize: "small"
131220
+ },
131221
+ style: {
131222
+ fontSize: ((_f = (_e = theme.typography) == null ? void 0 : _e.pxToRem) == null ? void 0 : _f.call(_e, 20)) || "1.25rem"
131223
+ }
131224
+ },
131225
+ {
131226
+ props: {
131227
+ fontSize: "medium"
131228
+ },
131229
+ style: {
131230
+ fontSize: ((_h = (_g = theme.typography) == null ? void 0 : _g.pxToRem) == null ? void 0 : _h.call(_g, 24)) || "1.5rem"
131231
+ }
131232
+ },
131233
+ {
131234
+ props: {
131235
+ fontSize: "large"
131236
+ },
131237
+ style: {
131238
+ fontSize: ((_j = (_i = theme.typography) == null ? void 0 : _i.pxToRem) == null ? void 0 : _j.call(_i, 35)) || "2.1875rem"
131239
+ }
131240
+ },
131241
+ // TODO v5 deprecate color prop, v6 remove for sx
131242
+ ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color2]) => {
131243
+ var _a4, _b3;
131575
131244
  return {
131576
131245
  props: {
131577
131246
  color: color2
@@ -131907,6 +131576,337 @@ function mergeSlotProps$1(externalSlotProps, defaultSlotProps) {
131907
131576
  }
131908
131577
  };
131909
131578
  }
131579
+ function chainPropTypes(propType1, propType2) {
131580
+ return function validate2(...args) {
131581
+ return propType1(...args) || propType2(...args);
131582
+ };
131583
+ }
131584
+ function _extends$1() {
131585
+ return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
131586
+ for (var e2 = 1; e2 < arguments.length; e2++) {
131587
+ var t = arguments[e2];
131588
+ for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
131589
+ }
131590
+ return n2;
131591
+ }, _extends$1.apply(null, arguments);
131592
+ }
131593
+ function _objectWithoutPropertiesLoose(r2, e2) {
131594
+ if (null == r2) return {};
131595
+ var t = {};
131596
+ for (var n2 in r2) if ({}.hasOwnProperty.call(r2, n2)) {
131597
+ if (-1 !== e2.indexOf(n2)) continue;
131598
+ t[n2] = r2[n2];
131599
+ }
131600
+ return t;
131601
+ }
131602
+ function _setPrototypeOf(t, e2) {
131603
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
131604
+ return t2.__proto__ = e3, t2;
131605
+ }, _setPrototypeOf(t, e2);
131606
+ }
131607
+ function _inheritsLoose(t, o2) {
131608
+ t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o2);
131609
+ }
131610
+ const TransitionGroupContext = React__default.createContext(null);
131611
+ function _assertThisInitialized(e2) {
131612
+ if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
131613
+ return e2;
131614
+ }
131615
+ function getChildMapping(children, mapFn) {
131616
+ var mapper = function mapper2(child) {
131617
+ return mapFn && isValidElement(child) ? mapFn(child) : child;
131618
+ };
131619
+ var result = /* @__PURE__ */ Object.create(null);
131620
+ if (children) Children.map(children, function(c2) {
131621
+ return c2;
131622
+ }).forEach(function(child) {
131623
+ result[child.key] = mapper(child);
131624
+ });
131625
+ return result;
131626
+ }
131627
+ function mergeChildMappings(prev2, next2) {
131628
+ prev2 = prev2 || {};
131629
+ next2 = next2 || {};
131630
+ function getValueForKey(key) {
131631
+ return key in next2 ? next2[key] : prev2[key];
131632
+ }
131633
+ var nextKeysPending = /* @__PURE__ */ Object.create(null);
131634
+ var pendingKeys = [];
131635
+ for (var prevKey in prev2) {
131636
+ if (prevKey in next2) {
131637
+ if (pendingKeys.length) {
131638
+ nextKeysPending[prevKey] = pendingKeys;
131639
+ pendingKeys = [];
131640
+ }
131641
+ } else {
131642
+ pendingKeys.push(prevKey);
131643
+ }
131644
+ }
131645
+ var i2;
131646
+ var childMapping = {};
131647
+ for (var nextKey in next2) {
131648
+ if (nextKeysPending[nextKey]) {
131649
+ for (i2 = 0; i2 < nextKeysPending[nextKey].length; i2++) {
131650
+ var pendingNextKey = nextKeysPending[nextKey][i2];
131651
+ childMapping[nextKeysPending[nextKey][i2]] = getValueForKey(pendingNextKey);
131652
+ }
131653
+ }
131654
+ childMapping[nextKey] = getValueForKey(nextKey);
131655
+ }
131656
+ for (i2 = 0; i2 < pendingKeys.length; i2++) {
131657
+ childMapping[pendingKeys[i2]] = getValueForKey(pendingKeys[i2]);
131658
+ }
131659
+ return childMapping;
131660
+ }
131661
+ function getProp(child, prop, props) {
131662
+ return props[prop] != null ? props[prop] : child.props[prop];
131663
+ }
131664
+ function getInitialChildMapping(props, onExited) {
131665
+ return getChildMapping(props.children, function(child) {
131666
+ return cloneElement(child, {
131667
+ onExited: onExited.bind(null, child),
131668
+ in: true,
131669
+ appear: getProp(child, "appear", props),
131670
+ enter: getProp(child, "enter", props),
131671
+ exit: getProp(child, "exit", props)
131672
+ });
131673
+ });
131674
+ }
131675
+ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
131676
+ var nextChildMapping = getChildMapping(nextProps.children);
131677
+ var children = mergeChildMappings(prevChildMapping, nextChildMapping);
131678
+ Object.keys(children).forEach(function(key) {
131679
+ var child = children[key];
131680
+ if (!isValidElement(child)) return;
131681
+ var hasPrev = key in prevChildMapping;
131682
+ var hasNext = key in nextChildMapping;
131683
+ var prevChild = prevChildMapping[key];
131684
+ var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
131685
+ if (hasNext && (!hasPrev || isLeaving)) {
131686
+ children[key] = cloneElement(child, {
131687
+ onExited: onExited.bind(null, child),
131688
+ in: true,
131689
+ exit: getProp(child, "exit", nextProps),
131690
+ enter: getProp(child, "enter", nextProps)
131691
+ });
131692
+ } else if (!hasNext && hasPrev && !isLeaving) {
131693
+ children[key] = cloneElement(child, {
131694
+ in: false
131695
+ });
131696
+ } else if (hasNext && hasPrev && isValidElement(prevChild)) {
131697
+ children[key] = cloneElement(child, {
131698
+ onExited: onExited.bind(null, child),
131699
+ in: prevChild.props.in,
131700
+ exit: getProp(child, "exit", nextProps),
131701
+ enter: getProp(child, "enter", nextProps)
131702
+ });
131703
+ }
131704
+ });
131705
+ return children;
131706
+ }
131707
+ var values = Object.values || function(obj) {
131708
+ return Object.keys(obj).map(function(k) {
131709
+ return obj[k];
131710
+ });
131711
+ };
131712
+ var defaultProps = {
131713
+ component: "div",
131714
+ childFactory: function childFactory(child) {
131715
+ return child;
131716
+ }
131717
+ };
131718
+ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
131719
+ _inheritsLoose(TransitionGroup2, _React$Component);
131720
+ function TransitionGroup2(props, context) {
131721
+ var _this;
131722
+ _this = _React$Component.call(this, props, context) || this;
131723
+ var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
131724
+ _this.state = {
131725
+ contextValue: {
131726
+ isMounting: true
131727
+ },
131728
+ handleExited,
131729
+ firstRender: true
131730
+ };
131731
+ return _this;
131732
+ }
131733
+ var _proto = TransitionGroup2.prototype;
131734
+ _proto.componentDidMount = function componentDidMount() {
131735
+ this.mounted = true;
131736
+ this.setState({
131737
+ contextValue: {
131738
+ isMounting: false
131739
+ }
131740
+ });
131741
+ };
131742
+ _proto.componentWillUnmount = function componentWillUnmount() {
131743
+ this.mounted = false;
131744
+ };
131745
+ TransitionGroup2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
131746
+ var prevChildMapping = _ref.children, handleExited = _ref.handleExited, firstRender = _ref.firstRender;
131747
+ return {
131748
+ children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
131749
+ firstRender: false
131750
+ };
131751
+ };
131752
+ _proto.handleExited = function handleExited(child, node2) {
131753
+ var currentChildMapping = getChildMapping(this.props.children);
131754
+ if (child.key in currentChildMapping) return;
131755
+ if (child.props.onExited) {
131756
+ child.props.onExited(node2);
131757
+ }
131758
+ if (this.mounted) {
131759
+ this.setState(function(state) {
131760
+ var children = _extends$1({}, state.children);
131761
+ delete children[child.key];
131762
+ return {
131763
+ children
131764
+ };
131765
+ });
131766
+ }
131767
+ };
131768
+ _proto.render = function render() {
131769
+ var _this$props = this.props, Component2 = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
131770
+ var contextValue = this.state.contextValue;
131771
+ var children = values(this.state.children).map(childFactory2);
131772
+ delete props.appear;
131773
+ delete props.enter;
131774
+ delete props.exit;
131775
+ if (Component2 === null) {
131776
+ return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
131777
+ value: contextValue
131778
+ }, children);
131779
+ }
131780
+ return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
131781
+ value: contextValue
131782
+ }, /* @__PURE__ */ React__default.createElement(Component2, props, children));
131783
+ };
131784
+ return TransitionGroup2;
131785
+ }(React__default.Component);
131786
+ TransitionGroup.propTypes = {
131787
+ /**
131788
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
131789
+ * behavior by providing a `component` prop.
131790
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
131791
+ * you can pass in `component={null}`. This is useful if the wrapping div
131792
+ * borks your css styles.
131793
+ */
131794
+ component: PropTypes.any,
131795
+ /**
131796
+ * A set of `<Transition>` components, that are toggled `in` and out as they
131797
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
131798
+ * remember to spread them through if you are wrapping the `<Transition>` as
131799
+ * with our `<Fade>` example.
131800
+ *
131801
+ * While this component is meant for multiple `Transition` or `CSSTransition`
131802
+ * children, sometimes you may want to have a single transition child with
131803
+ * content that you want to be transitioned out and in when you change it
131804
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
131805
+ * the transition child as you change its content, this will cause
131806
+ * `TransitionGroup` to transition the child out and back in.
131807
+ */
131808
+ children: PropTypes.node,
131809
+ /**
131810
+ * A convenience prop that enables or disables appear animations
131811
+ * for all children. Note that specifying this will override any defaults set
131812
+ * on individual children Transitions.
131813
+ */
131814
+ appear: PropTypes.bool,
131815
+ /**
131816
+ * A convenience prop that enables or disables enter animations
131817
+ * for all children. Note that specifying this will override any defaults set
131818
+ * on individual children Transitions.
131819
+ */
131820
+ enter: PropTypes.bool,
131821
+ /**
131822
+ * A convenience prop that enables or disables exit animations
131823
+ * for all children. Note that specifying this will override any defaults set
131824
+ * on individual children Transitions.
131825
+ */
131826
+ exit: PropTypes.bool,
131827
+ /**
131828
+ * You may need to apply reactive updates to a child as it is exiting.
131829
+ * This is generally done by using `cloneElement` however in the case of an exiting
131830
+ * child the element has already been removed and not accessible to the consumer.
131831
+ *
131832
+ * If you do need to update a child as it leaves you can provide a `childFactory`
131833
+ * to wrap every child, even the ones that are leaving.
131834
+ *
131835
+ * @type Function(child: ReactElement) -> ReactElement
131836
+ */
131837
+ childFactory: PropTypes.func
131838
+ };
131839
+ TransitionGroup.defaultProps = defaultProps;
131840
+ const UNINITIALIZED = {};
131841
+ function useLazyRef(init, initArg) {
131842
+ const ref = React.useRef(UNINITIALIZED);
131843
+ if (ref.current === UNINITIALIZED) {
131844
+ ref.current = init(initArg);
131845
+ }
131846
+ return ref;
131847
+ }
131848
+ const EMPTY = [];
131849
+ function useOnMount(fn) {
131850
+ React.useEffect(fn, EMPTY);
131851
+ }
131852
+ class Timeout {
131853
+ constructor() {
131854
+ __publicField(this, "currentId", null);
131855
+ __publicField(this, "clear", () => {
131856
+ if (this.currentId !== null) {
131857
+ clearTimeout(this.currentId);
131858
+ this.currentId = null;
131859
+ }
131860
+ });
131861
+ __publicField(this, "disposeEffect", () => {
131862
+ return this.clear;
131863
+ });
131864
+ }
131865
+ static create() {
131866
+ return new Timeout();
131867
+ }
131868
+ /**
131869
+ * Executes `fn` after `delay`, clearing any previously scheduled call.
131870
+ */
131871
+ start(delay, fn) {
131872
+ this.clear();
131873
+ this.currentId = setTimeout(() => {
131874
+ this.currentId = null;
131875
+ fn();
131876
+ }, delay);
131877
+ }
131878
+ }
131879
+ function useTimeout() {
131880
+ const timeout2 = useLazyRef(Timeout.create).current;
131881
+ useOnMount(timeout2.disposeEffect);
131882
+ return timeout2;
131883
+ }
131884
+ function isClassComponent(elementType) {
131885
+ const {
131886
+ prototype = {}
131887
+ } = elementType;
131888
+ return Boolean(prototype.isReactComponent);
131889
+ }
131890
+ function elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {
131891
+ const propValue = props[propName];
131892
+ const safePropName = propFullName || propName;
131893
+ if (propValue == null || // When server-side rendering React doesn't warn either.
131894
+ // This is not an accurate check for SSR.
131895
+ // This is only in place for emotion compat.
131896
+ // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
131897
+ typeof window === "undefined") {
131898
+ return null;
131899
+ }
131900
+ let warningHint;
131901
+ if (typeof propValue === "function" && !isClassComponent(propValue)) {
131902
+ warningHint = "Did you accidentally provide a plain function component instead?";
131903
+ }
131904
+ if (warningHint !== void 0) {
131905
+ return new Error(`Invalid ${location} \`${safePropName}\` supplied to \`${componentName}\`. Expected an element type that can hold a ref. ${warningHint} For more information see https://mui.com/r/caveat-with-refs-guide`);
131906
+ }
131907
+ return null;
131908
+ }
131909
+ const elementTypeAcceptingRef$1 = chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);
131910
131910
  function getTypeByValue(value) {
131911
131911
  const valueType = typeof value;
131912
131912
  switch (valueType) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, E, S, a, b, f, e, d, c } from "./index-BgH5JCMh.js";
1
+ import { A, E, S, a, b, f, e, d, c } from "./index-DOJ0SQ9r.js";
2
2
  export {
3
3
  A as AbstractSpatialOrScatterplot,
4
4
  E as EmptyMessage,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BgH5JCMh.js";
1
+ import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -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-BgH5JCMh.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DOJ0SQ9r.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BgH5JCMh.js";
1
+ import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BgH5JCMh.js";
1
+ import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BgH5JCMh.js";
1
+ import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BgH5JCMh.js";
1
+ import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/scatterplot",
3
- "version": "3.8.10",
3
+ "version": "3.8.13",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -21,13 +21,13 @@
21
21
  "d3-quadtree": "^1.0.7",
22
22
  "lodash-es": "^4.17.21",
23
23
  "react-aria": "^3.28.0",
24
- "@vitessce/styles": "3.8.10",
25
- "@vitessce/constants-internal": "3.8.10",
26
- "@vitessce/gl": "3.8.10",
27
- "@vitessce/icons": "3.8.10",
28
- "@vitessce/tooltip": "3.8.10",
29
- "@vitessce/utils": "3.8.10",
30
- "@vitessce/vit-s": "3.8.10"
24
+ "@vitessce/gl": "3.8.13",
25
+ "@vitessce/styles": "3.8.13",
26
+ "@vitessce/constants-internal": "3.8.13",
27
+ "@vitessce/icons": "3.8.13",
28
+ "@vitessce/tooltip": "3.8.13",
29
+ "@vitessce/utils": "3.8.13",
30
+ "@vitessce/vit-s": "3.8.13"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",