@vitessce/layer-controller 3.1.0 → 3.1.2

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.
Files changed (44) hide show
  1. package/dist/{deflate-806a8813.js → deflate-460ebda8.js} +1 -1
  2. package/dist/{index-f05b8dd7.js → index-7295e6e7.js} +561 -108
  3. package/dist/index.js +1 -1
  4. package/dist/{jpeg-ad5bae1d.js → jpeg-5e6a02ae.js} +1 -1
  5. package/dist/{lerc-588ff773.js → lerc-f147b9b3.js} +1 -1
  6. package/dist/{lzw-8827a384.js → lzw-328dcf22.js} +1 -1
  7. package/dist/{packbits-88aef591.js → packbits-d1842d12.js} +1 -1
  8. package/dist/{raw-86577f38.js → raw-e59a20ba.js} +1 -1
  9. package/dist/{webimage-c9cb4e30.js → webimage-30f949aa.js} +1 -1
  10. package/dist-tsc/BitmaskChannelController.d.ts.map +1 -1
  11. package/dist-tsc/BitmaskChannelController.js +1 -1
  12. package/dist-tsc/ChannelOptions.d.ts.map +1 -1
  13. package/dist-tsc/ChannelOptions.js +1 -1
  14. package/dist-tsc/ColorPalette.d.ts.map +1 -1
  15. package/dist-tsc/ColorPalette.js +1 -1
  16. package/dist-tsc/ImageAddButton.d.ts.map +1 -1
  17. package/dist-tsc/ImageAddButton.js +1 -1
  18. package/dist-tsc/LayerController.d.ts.map +1 -1
  19. package/dist-tsc/LayerController.js +6 -5
  20. package/dist-tsc/LayerOptions.d.ts.map +1 -1
  21. package/dist-tsc/LayerOptions.js +19 -13
  22. package/dist-tsc/RasterChannelController.d.ts.map +1 -1
  23. package/dist-tsc/RasterChannelController.js +6 -1
  24. package/dist-tsc/VectorLayerController.d.ts.map +1 -1
  25. package/dist-tsc/VectorLayerController.js +4 -1
  26. package/dist-tsc/VolumeOptions.d.ts.map +1 -1
  27. package/dist-tsc/VolumeOptions.js +3 -2
  28. package/dist-tsc/shared-channel-controls.d.ts.map +1 -1
  29. package/dist-tsc/shared-channel-controls.js +2 -2
  30. package/dist-tsc/styles.d.ts +1 -0
  31. package/dist-tsc/styles.d.ts.map +1 -1
  32. package/dist-tsc/styles.js +9 -0
  33. package/package.json +6 -6
  34. package/src/BitmaskChannelController.js +5 -1
  35. package/src/ChannelOptions.js +14 -3
  36. package/src/ColorPalette.js +2 -1
  37. package/src/ImageAddButton.js +1 -0
  38. package/src/LayerController.js +13 -4
  39. package/src/LayerOptions.js +39 -16
  40. package/src/RasterChannelController.js +11 -1
  41. package/src/VectorLayerController.js +10 -1
  42. package/src/VolumeOptions.js +5 -1
  43. package/src/shared-channel-controls.js +2 -0
  44. package/src/styles.js +10 -0
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React__default, { Children, isValidElement, cloneElement, useState, useEffect, useCallback, useRef, forwardRef } from "react";
2
+ import React__default, { Children, isValidElement, cloneElement, useState, useEffect, useCallback, useId, useRef, forwardRef } from "react";
3
3
  import { PopperMenu, TitleInfo, useLoaders, useCoordination, useAuxiliaryCoordination, useComponentLayout, useClosestVitessceContainerSize, useWindowDimensions, useObsLocationsData, useObsSegmentationsData, useImageData, useReady } from "@vitessce/vit-s";
4
4
  import * as ReactDOM from "react-dom";
5
5
  import ReactDOM__default from "react-dom";
@@ -17205,6 +17205,363 @@ const COMPONENT_COORDINATION_TYPES = {
17205
17205
  CoordinationType$1.FEATURE_SELECTION
17206
17206
  ]
17207
17207
  };
17208
+ function commonjsRequire(path) {
17209
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
17210
+ }
17211
+ var pluralize = { exports: {} };
17212
+ (function(module2, exports2) {
17213
+ (function(root2, pluralize2) {
17214
+ if (typeof commonjsRequire === "function" && true && true) {
17215
+ module2.exports = pluralize2();
17216
+ } else {
17217
+ root2.pluralize = pluralize2();
17218
+ }
17219
+ })(commonjsGlobal, function() {
17220
+ var pluralRules = [];
17221
+ var singularRules = [];
17222
+ var uncountables = {};
17223
+ var irregularPlurals = {};
17224
+ var irregularSingles = {};
17225
+ function sanitizeRule(rule) {
17226
+ if (typeof rule === "string") {
17227
+ return new RegExp("^" + rule + "$", "i");
17228
+ }
17229
+ return rule;
17230
+ }
17231
+ function restoreCase(word, token) {
17232
+ if (word === token)
17233
+ return token;
17234
+ if (word === word.toLowerCase())
17235
+ return token.toLowerCase();
17236
+ if (word === word.toUpperCase())
17237
+ return token.toUpperCase();
17238
+ if (word[0] === word[0].toUpperCase()) {
17239
+ return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
17240
+ }
17241
+ return token.toLowerCase();
17242
+ }
17243
+ function interpolate2(str, args) {
17244
+ return str.replace(/\$(\d{1,2})/g, function(match, index2) {
17245
+ return args[index2] || "";
17246
+ });
17247
+ }
17248
+ function replace(word, rule) {
17249
+ return word.replace(rule[0], function(match, index2) {
17250
+ var result = interpolate2(rule[1], arguments);
17251
+ if (match === "") {
17252
+ return restoreCase(word[index2 - 1], result);
17253
+ }
17254
+ return restoreCase(match, result);
17255
+ });
17256
+ }
17257
+ function sanitizeWord(token, word, rules) {
17258
+ if (!token.length || uncountables.hasOwnProperty(token)) {
17259
+ return word;
17260
+ }
17261
+ var len2 = rules.length;
17262
+ while (len2--) {
17263
+ var rule = rules[len2];
17264
+ if (rule[0].test(word))
17265
+ return replace(word, rule);
17266
+ }
17267
+ return word;
17268
+ }
17269
+ function replaceWord(replaceMap, keepMap, rules) {
17270
+ return function(word) {
17271
+ var token = word.toLowerCase();
17272
+ if (keepMap.hasOwnProperty(token)) {
17273
+ return restoreCase(word, token);
17274
+ }
17275
+ if (replaceMap.hasOwnProperty(token)) {
17276
+ return restoreCase(word, replaceMap[token]);
17277
+ }
17278
+ return sanitizeWord(token, word, rules);
17279
+ };
17280
+ }
17281
+ function checkWord(replaceMap, keepMap, rules, bool) {
17282
+ return function(word) {
17283
+ var token = word.toLowerCase();
17284
+ if (keepMap.hasOwnProperty(token))
17285
+ return true;
17286
+ if (replaceMap.hasOwnProperty(token))
17287
+ return false;
17288
+ return sanitizeWord(token, token, rules) === token;
17289
+ };
17290
+ }
17291
+ function pluralize2(word, count2, inclusive) {
17292
+ var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
17293
+ return (inclusive ? count2 + " " : "") + pluralized;
17294
+ }
17295
+ pluralize2.plural = replaceWord(
17296
+ irregularSingles,
17297
+ irregularPlurals,
17298
+ pluralRules
17299
+ );
17300
+ pluralize2.isPlural = checkWord(
17301
+ irregularSingles,
17302
+ irregularPlurals,
17303
+ pluralRules
17304
+ );
17305
+ pluralize2.singular = replaceWord(
17306
+ irregularPlurals,
17307
+ irregularSingles,
17308
+ singularRules
17309
+ );
17310
+ pluralize2.isSingular = checkWord(
17311
+ irregularPlurals,
17312
+ irregularSingles,
17313
+ singularRules
17314
+ );
17315
+ pluralize2.addPluralRule = function(rule, replacement) {
17316
+ pluralRules.push([sanitizeRule(rule), replacement]);
17317
+ };
17318
+ pluralize2.addSingularRule = function(rule, replacement) {
17319
+ singularRules.push([sanitizeRule(rule), replacement]);
17320
+ };
17321
+ pluralize2.addUncountableRule = function(word) {
17322
+ if (typeof word === "string") {
17323
+ uncountables[word.toLowerCase()] = true;
17324
+ return;
17325
+ }
17326
+ pluralize2.addPluralRule(word, "$0");
17327
+ pluralize2.addSingularRule(word, "$0");
17328
+ };
17329
+ pluralize2.addIrregularRule = function(single, plural) {
17330
+ plural = plural.toLowerCase();
17331
+ single = single.toLowerCase();
17332
+ irregularSingles[single] = plural;
17333
+ irregularPlurals[plural] = single;
17334
+ };
17335
+ [
17336
+ // Pronouns.
17337
+ ["I", "we"],
17338
+ ["me", "us"],
17339
+ ["he", "they"],
17340
+ ["she", "they"],
17341
+ ["them", "them"],
17342
+ ["myself", "ourselves"],
17343
+ ["yourself", "yourselves"],
17344
+ ["itself", "themselves"],
17345
+ ["herself", "themselves"],
17346
+ ["himself", "themselves"],
17347
+ ["themself", "themselves"],
17348
+ ["is", "are"],
17349
+ ["was", "were"],
17350
+ ["has", "have"],
17351
+ ["this", "these"],
17352
+ ["that", "those"],
17353
+ // Words ending in with a consonant and `o`.
17354
+ ["echo", "echoes"],
17355
+ ["dingo", "dingoes"],
17356
+ ["volcano", "volcanoes"],
17357
+ ["tornado", "tornadoes"],
17358
+ ["torpedo", "torpedoes"],
17359
+ // Ends with `us`.
17360
+ ["genus", "genera"],
17361
+ ["viscus", "viscera"],
17362
+ // Ends with `ma`.
17363
+ ["stigma", "stigmata"],
17364
+ ["stoma", "stomata"],
17365
+ ["dogma", "dogmata"],
17366
+ ["lemma", "lemmata"],
17367
+ ["schema", "schemata"],
17368
+ ["anathema", "anathemata"],
17369
+ // Other irregular rules.
17370
+ ["ox", "oxen"],
17371
+ ["axe", "axes"],
17372
+ ["die", "dice"],
17373
+ ["yes", "yeses"],
17374
+ ["foot", "feet"],
17375
+ ["eave", "eaves"],
17376
+ ["goose", "geese"],
17377
+ ["tooth", "teeth"],
17378
+ ["quiz", "quizzes"],
17379
+ ["human", "humans"],
17380
+ ["proof", "proofs"],
17381
+ ["carve", "carves"],
17382
+ ["valve", "valves"],
17383
+ ["looey", "looies"],
17384
+ ["thief", "thieves"],
17385
+ ["groove", "grooves"],
17386
+ ["pickaxe", "pickaxes"],
17387
+ ["passerby", "passersby"]
17388
+ ].forEach(function(rule) {
17389
+ return pluralize2.addIrregularRule(rule[0], rule[1]);
17390
+ });
17391
+ [
17392
+ [/s?$/i, "s"],
17393
+ [/[^\u0000-\u007F]$/i, "$0"],
17394
+ [/([^aeiou]ese)$/i, "$1"],
17395
+ [/(ax|test)is$/i, "$1es"],
17396
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
17397
+ [/(e[mn]u)s?$/i, "$1s"],
17398
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
17399
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
17400
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
17401
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
17402
+ [/(her|at|gr)o$/i, "$1oes"],
17403
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
17404
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
17405
+ [/sis$/i, "ses"],
17406
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
17407
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
17408
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
17409
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
17410
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
17411
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
17412
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
17413
+ [/(child)(?:ren)?$/i, "$1ren"],
17414
+ [/eaux$/i, "$0"],
17415
+ [/m[ae]n$/i, "men"],
17416
+ ["thou", "you"]
17417
+ ].forEach(function(rule) {
17418
+ return pluralize2.addPluralRule(rule[0], rule[1]);
17419
+ });
17420
+ [
17421
+ [/s$/i, ""],
17422
+ [/(ss)$/i, "$1"],
17423
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
17424
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
17425
+ [/ies$/i, "y"],
17426
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
17427
+ [/\b(mon|smil)ies$/i, "$1ey"],
17428
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
17429
+ [/(seraph|cherub)im$/i, "$1"],
17430
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
17431
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
17432
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
17433
+ [/(test)(?:is|es)$/i, "$1is"],
17434
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
17435
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
17436
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
17437
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
17438
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
17439
+ [/(matr|append)ices$/i, "$1ix"],
17440
+ [/(pe)(rson|ople)$/i, "$1rson"],
17441
+ [/(child)ren$/i, "$1"],
17442
+ [/(eau)x?$/i, "$1"],
17443
+ [/men$/i, "man"]
17444
+ ].forEach(function(rule) {
17445
+ return pluralize2.addSingularRule(rule[0], rule[1]);
17446
+ });
17447
+ [
17448
+ // Singular words with no plurals.
17449
+ "adulthood",
17450
+ "advice",
17451
+ "agenda",
17452
+ "aid",
17453
+ "aircraft",
17454
+ "alcohol",
17455
+ "ammo",
17456
+ "analytics",
17457
+ "anime",
17458
+ "athletics",
17459
+ "audio",
17460
+ "bison",
17461
+ "blood",
17462
+ "bream",
17463
+ "buffalo",
17464
+ "butter",
17465
+ "carp",
17466
+ "cash",
17467
+ "chassis",
17468
+ "chess",
17469
+ "clothing",
17470
+ "cod",
17471
+ "commerce",
17472
+ "cooperation",
17473
+ "corps",
17474
+ "debris",
17475
+ "diabetes",
17476
+ "digestion",
17477
+ "elk",
17478
+ "energy",
17479
+ "equipment",
17480
+ "excretion",
17481
+ "expertise",
17482
+ "firmware",
17483
+ "flounder",
17484
+ "fun",
17485
+ "gallows",
17486
+ "garbage",
17487
+ "graffiti",
17488
+ "hardware",
17489
+ "headquarters",
17490
+ "health",
17491
+ "herpes",
17492
+ "highjinks",
17493
+ "homework",
17494
+ "housework",
17495
+ "information",
17496
+ "jeans",
17497
+ "justice",
17498
+ "kudos",
17499
+ "labour",
17500
+ "literature",
17501
+ "machinery",
17502
+ "mackerel",
17503
+ "mail",
17504
+ "media",
17505
+ "mews",
17506
+ "moose",
17507
+ "music",
17508
+ "mud",
17509
+ "manga",
17510
+ "news",
17511
+ "only",
17512
+ "personnel",
17513
+ "pike",
17514
+ "plankton",
17515
+ "pliers",
17516
+ "police",
17517
+ "pollution",
17518
+ "premises",
17519
+ "rain",
17520
+ "research",
17521
+ "rice",
17522
+ "salmon",
17523
+ "scissors",
17524
+ "series",
17525
+ "sewage",
17526
+ "shambles",
17527
+ "shrimp",
17528
+ "software",
17529
+ "species",
17530
+ "staff",
17531
+ "swine",
17532
+ "tennis",
17533
+ "traffic",
17534
+ "transportation",
17535
+ "trout",
17536
+ "tuna",
17537
+ "wealth",
17538
+ "welfare",
17539
+ "whiting",
17540
+ "wildebeest",
17541
+ "wildlife",
17542
+ "you",
17543
+ /pok[eé]mon$/i,
17544
+ // Regexes.
17545
+ /[^aeiou]ese$/i,
17546
+ // "chinese", "japanese"
17547
+ /deer$/i,
17548
+ // "deer", "reindeer"
17549
+ /fish$/i,
17550
+ // "fish", "blowfish", "angelfish"
17551
+ /measles$/i,
17552
+ /o[iu]s$/i,
17553
+ // "carnivorous"
17554
+ /pox$/i,
17555
+ // "chickpox", "smallpox"
17556
+ /sheep$/i
17557
+ ].forEach(pluralize2.addUncountableRule);
17558
+ return pluralize2;
17559
+ });
17560
+ })(pluralize);
17561
+ var pluralizeExports = pluralize.exports;
17562
+ const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
17563
+ plur.addPluralRule("glomerulus", "glomeruli");
17564
+ plur.addPluralRule("interstitium", "interstitia");
17208
17565
  function fromEntries(iterable) {
17209
17566
  return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
17210
17567
  }
@@ -71579,9 +71936,6 @@ class GeoCellLayer extends CompositeLayer {
71579
71936
  }
71580
71937
  _defineProperty$f(GeoCellLayer, "layerName", "GeoCellLayer");
71581
71938
  _defineProperty$f(GeoCellLayer, "defaultProps", defaultProps$t);
71582
- function commonjsRequire(path) {
71583
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
71584
- }
71585
71939
  var long = { exports: {} };
71586
71940
  (function(module2) {
71587
71941
  /**
@@ -135064,16 +135418,16 @@ function addDecoder(cases, importFn) {
135064
135418
  }
135065
135419
  cases.forEach((c) => registry$1.set(c, importFn));
135066
135420
  }
135067
- addDecoder([void 0, 1], () => import("./raw-86577f38.js").then((m) => m.default));
135068
- addDecoder(5, () => import("./lzw-8827a384.js").then((m) => m.default));
135421
+ addDecoder([void 0, 1], () => import("./raw-e59a20ba.js").then((m) => m.default));
135422
+ addDecoder(5, () => import("./lzw-328dcf22.js").then((m) => m.default));
135069
135423
  addDecoder(6, () => {
135070
135424
  throw new Error("old style JPEG compression is not supported.");
135071
135425
  });
135072
- addDecoder(7, () => import("./jpeg-ad5bae1d.js").then((m) => m.default));
135073
- addDecoder([8, 32946], () => import("./deflate-806a8813.js").then((m) => m.default));
135074
- addDecoder(32773, () => import("./packbits-88aef591.js").then((m) => m.default));
135075
- addDecoder(34887, () => import("./lerc-588ff773.js").then((m) => m.default));
135076
- addDecoder(50001, () => import("./webimage-c9cb4e30.js").then((m) => m.default));
135426
+ addDecoder(7, () => import("./jpeg-5e6a02ae.js").then((m) => m.default));
135427
+ addDecoder([8, 32946], () => import("./deflate-460ebda8.js").then((m) => m.default));
135428
+ addDecoder(32773, () => import("./packbits-d1842d12.js").then((m) => m.default));
135429
+ addDecoder(34887, () => import("./lerc-f147b9b3.js").then((m) => m.default));
135430
+ addDecoder(50001, () => import("./webimage-30f949aa.js").then((m) => m.default));
135077
135431
  function decodeRowAcc(row, stride) {
135078
135432
  let length2 = row.length - stride;
135079
135433
  let offset4 = 0;
@@ -146077,6 +146431,17 @@ const useSpanStyles = makeStyles(() => ({
146077
146431
  paddingRight: "2px"
146078
146432
  }
146079
146433
  }));
146434
+ const useChannelSliderStyles = makeStyles((theme) => ({
146435
+ valueLabel: {
146436
+ marginTop: "7px",
146437
+ "& span": {
146438
+ color: theme.palette.secondaryForeground,
146439
+ // Change color here
146440
+ backgroundColor: theme.palette.secondaryBackgroundDim
146441
+ // Change color here
146442
+ }
146443
+ }
146444
+ }));
146080
146445
  function MuiSpan(props2) {
146081
146446
  const { children } = props2;
146082
146447
  const classes = useSpanStyles();
@@ -146164,11 +146529,12 @@ const useStyles$2 = makeStyles((theme) => ({
146164
146529
  }));
146165
146530
  const ColorPalette = ({ handleChange }) => {
146166
146531
  const classes = useStyles$2();
146167
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.paletteContainer, "aria-label": "color-swatch", children: VIEWER_PALETTE.map((color) => /* @__PURE__ */ jsxRuntimeExports.jsx(
146532
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.paletteContainer, "aria-label": "Color swatch", children: VIEWER_PALETTE.map((color) => /* @__PURE__ */ jsxRuntimeExports.jsx(
146168
146533
  IconButton$1,
146169
146534
  {
146170
146535
  className: classes.button,
146171
146536
  onClick: () => handleChange(color),
146537
+ "aria-label": `Change color to ${color}`,
146172
146538
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146173
146539
  LensIcon,
146174
146540
  {
@@ -146210,10 +146576,29 @@ function ChannelOptions({ handlePropertyChange, handleChannelRemove, handleIQRUp
146210
146576
  setOpen,
146211
146577
  buttonIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(MoreVertIcon, { fontSize: "small" }),
146212
146578
  buttonClassName: classes.menuButton,
146579
+ "aria-label": "Open channel options menu",
146213
146580
  children: [
146214
- /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem$1, { dense: true, disableGutters: true, onClick: handleRemove, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MuiSpan, { children: "Remove" }) }),
146215
- /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem$1, { dense: true, disableGutters: true, onClick: handleIQRUpdate, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MuiSpan, { children: "Use IQR" }) }),
146216
- /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem$1, { dense: true, disableGutters: true, className: classes.colors, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColorPalette, { handleChange: handleColorSelect }) })
146581
+ /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem$1, { dense: true, disableGutters: true, onClick: handleRemove, "aria-label": "Click to remove channel", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MuiSpan, { children: "Remove" }) }),
146582
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
146583
+ MenuItem$1,
146584
+ {
146585
+ dense: true,
146586
+ disableGutters: true,
146587
+ onClick: handleIQRUpdate,
146588
+ "aria-label": "Click to use IQR for channel",
146589
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(MuiSpan, { children: "Use IQR" })
146590
+ }
146591
+ ),
146592
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
146593
+ MenuItem$1,
146594
+ {
146595
+ dense: true,
146596
+ disableGutters: true,
146597
+ className: classes.colors,
146598
+ "aria-label": "Click to select color for channel",
146599
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ColorPalette, { handleChange: handleColorSelect })
146600
+ }
146601
+ )
146217
146602
  ]
146218
146603
  }
146219
146604
  );
@@ -146340,6 +146725,7 @@ function ChannelSelectionDropdown({
146340
146725
  native: true,
146341
146726
  value: selectionIndex,
146342
146727
  onChange: (e2) => handleChange(Number(e2.target.value)),
146728
+ inputProps: { "aria-label": "Select a channel" },
146343
146729
  children: channelOptions.map((opt, i2) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { disabled, value: i2, children: opt }, opt))
146344
146730
  }
146345
146731
  );
@@ -146356,7 +146742,8 @@ function ChannelVisibilityCheckbox({
146356
146742
  onChange: toggle,
146357
146743
  checked,
146358
146744
  disabled,
146359
- style: { color, "&$checked": { color } }
146745
+ style: { color, "&$checked": { color } },
146746
+ inputProps: { "aria-label": "Toggle on or off a channel" }
146360
146747
  }
146361
146748
  );
146362
146749
  }
@@ -146397,15 +146784,21 @@ function ChannelSlider({
146397
146784
  debounce$1(handleChange, 3, { trailing: true }),
146398
146785
  [handleChange]
146399
146786
  );
146787
+ const classes = useChannelSliderStyles();
146400
146788
  const step = max - min < 500 && dtype.startsWith("Float") ? (max - min) / 500 : 1;
146401
146789
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
146402
146790
  Slider$1,
146403
146791
  {
146792
+ classes: { valueLabel: classes.valueLabel },
146404
146793
  value: slider,
146405
146794
  valueLabelFormat: abbreviateNumber,
146406
146795
  onChange: (e2, v) => handleChangeDebounced(v),
146407
146796
  valueLabelDisplay: "auto",
146408
- getAriaLabel: () => `${color}-${slider}`,
146797
+ getAriaLabel: (index2) => {
146798
+ const labelPrefix = index2 === 0 ? "Low value slider" : "High value slider";
146799
+ return `${labelPrefix} for ${color} colormap channel`;
146800
+ },
146801
+ getAriaValueText: () => `Current colormap values: ${color}-${slider}`,
146409
146802
  min,
146410
146803
  max,
146411
146804
  step,
@@ -146574,7 +146967,15 @@ function BitmaskChannelController({
146574
146967
  channelOptions
146575
146968
  }
146576
146969
  ) }),
146577
- /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { onClick: handleChannelRemove, style: { padding: "6px 6px 6px 0px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RemoveCircleIcon, {}) }) })
146970
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146971
+ IconButton$1,
146972
+ {
146973
+ onClick: handleChannelRemove,
146974
+ style: { padding: "6px 6px 6px 0px" },
146975
+ "aria-label": "Remove channel",
146976
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(RemoveCircleIcon, {})
146977
+ }
146978
+ ) })
146578
146979
  ] });
146579
146980
  }
146580
146981
  function VectorLayerController(props2) {
@@ -146610,7 +147011,15 @@ function VectorLayerController(props2) {
146610
147011
  }
146611
147012
  ),
146612
147013
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "row", justifyContent: "space-between", children: [
146613
- /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox$1, { color: "primary", checked: isOn, onChange: (e2, v) => handleCheckBoxChange(v) }) }),
147014
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
147015
+ Checkbox$1,
147016
+ {
147017
+ color: "primary",
147018
+ checked: isOn,
147019
+ onChange: (e2, v) => handleCheckBoxChange(v),
147020
+ inputProps: { "aria-label": "Show or hide vector layer" }
147021
+ }
147022
+ ) }),
146614
147023
  /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 9, style: { paddingRight: "8px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146615
147024
  Slider$1,
146616
147025
  {
@@ -146620,7 +147029,11 @@ function VectorLayerController(props2) {
146620
147029
  step: 1e-3,
146621
147030
  onChange: (e2, v) => handleSliderChange(v),
146622
147031
  style: { marginTop: "7px" },
146623
- orientation: "horizontal"
147032
+ orientation: "horizontal",
147033
+ getAriaLabel: (index2) => {
147034
+ const labelPrefix = index2 === 0 ? "Low value slider" : "High value slider";
147035
+ return `${labelPrefix} for ${label} layer controller`;
147036
+ }
146624
147037
  }
146625
147038
  ) })
146626
147039
  ] })
@@ -146725,6 +147138,7 @@ function VolumeDropdown({
146725
147138
  onChange: (e2) => handleChange(
146726
147139
  e2.target.value === "2D" ? e2.target.value : Number(e2.target.value)
146727
147140
  ),
147141
+ inputProps: { "aria-label": "Resolution selector" },
146728
147142
  classes: { root: classes.selectRoot },
146729
147143
  children: [
146730
147144
  /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "2D", children: "2D Visualization" }, "2D"),
@@ -146764,7 +147178,7 @@ function ColormapSelect({ value, inputId, handleChange }) {
146764
147178
  native: true,
146765
147179
  onChange: (e2) => handleChange(e2.target.value === "" ? null : e2.target.value),
146766
147180
  value,
146767
- inputProps: { name: "colormap", id: inputId },
147181
+ inputProps: { name: "colormap", id: inputId, "aria-label": "Colormap selector" },
146768
147182
  style: { width: "100%" },
146769
147183
  classes: { root: classes.selectRoot },
146770
147184
  children: [
@@ -146774,7 +147188,7 @@ function ColormapSelect({ value, inputId, handleChange }) {
146774
147188
  }
146775
147189
  );
146776
147190
  }
146777
- function TransparentColorCheckbox({ value, handleChange }) {
147191
+ function TransparentColorCheckbox({ value, inputId, handleChange }) {
146778
147192
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
146779
147193
  Checkbox$1,
146780
147194
  {
@@ -146787,23 +147201,27 @@ function TransparentColorCheckbox({ value, handleChange }) {
146787
147201
  handleChange([0, 0, 0]);
146788
147202
  }
146789
147203
  },
146790
- checked: Boolean(value)
147204
+ checked: Boolean(value),
147205
+ id: inputId,
147206
+ inputProps: { "aria-label": "Enable or disable color transparency" }
146791
147207
  }
146792
147208
  );
146793
147209
  }
146794
- function OpacitySlider({ value, handleChange }) {
147210
+ function OpacitySlider({ value, inputId, handleChange }) {
147211
+ const classes = useChannelSliderStyles();
146795
147212
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
146796
147213
  Slider$1,
146797
147214
  {
147215
+ classes: { valueLabel: classes.valueLabel },
146798
147216
  value,
146799
147217
  onChange: (e2, v) => handleChange(v),
146800
147218
  valueLabelDisplay: "auto",
146801
- getAriaLabel: () => "opacity slider",
147219
+ "aria-label": "Layer opacity slider",
147220
+ id: inputId,
146802
147221
  min: 0,
146803
147222
  max: 1,
146804
147223
  step: 0.01,
146805
- orientation: "horizontal",
146806
- style: { marginTop: "7px" }
147224
+ orientation: "horizontal"
146807
147225
  }
146808
147226
  );
146809
147227
  }
@@ -146815,7 +147233,8 @@ function SliderDomainSelector({ value, inputId, handleChange }) {
146815
147233
  native: true,
146816
147234
  onChange: (e2) => handleChange(e2.target.value),
146817
147235
  value,
146818
- inputProps: { name: "domain-selector", id: inputId },
147236
+ id: inputId,
147237
+ inputProps: { name: "domain-selector", "aria-label": "Domain type selector" },
146819
147238
  style: { width: "100%" },
146820
147239
  classes: { root: classes.selectRoot },
146821
147240
  children: DOMAIN_OPTIONS.map((name2) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: name2, children: name2 }, name2))
@@ -146825,6 +147244,7 @@ function SliderDomainSelector({ value, inputId, handleChange }) {
146825
147244
  function GlobalSelectionSlider({
146826
147245
  field,
146827
147246
  value,
147247
+ inputId,
146828
147248
  handleChange,
146829
147249
  possibleValues
146830
147250
  }) {
@@ -146841,7 +147261,8 @@ function GlobalSelectionSlider({
146841
147261
  handleChange({ selection: { [field]: newValue }, event });
146842
147262
  },
146843
147263
  valueLabelDisplay: "auto",
146844
- getAriaLabel: () => `${field} slider`,
147264
+ "aria-label": `${field} slider`,
147265
+ id: inputId,
146845
147266
  marks: possibleValues.map((val) => ({ value: val })),
146846
147267
  min: Number(possibleValues[0]),
146847
147268
  max: Number(possibleValues.slice(-1)),
@@ -146895,6 +147316,11 @@ function LayerOptions({
146895
147316
  const hasViewableResolutions = Boolean(Array.from({
146896
147317
  length: loader.data.length
146897
147318
  }).filter((_, res) => canLoadResolution(loader.data, res)).length);
147319
+ const globalSelectionSliderId = useId();
147320
+ const colormapSelectId = useId();
147321
+ const domainSelectorId = useId();
147322
+ const opacitySliderId = useId();
147323
+ const zeroTransparentId = useId();
146898
147324
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "column", style: { width: "100%" }, children: [
146899
147325
  hasZStack && !disable3d && hasViewableResolutions && /* @__PURE__ */ jsxRuntimeExports.jsx(
146900
147326
  VolumeDropdown,
@@ -146916,10 +147342,11 @@ function LayerOptions({
146916
147342
  }
146917
147343
  ),
146918
147344
  hasDimensionsAndChannels && !use3d && globalControlLabels.map(
146919
- (field) => shape2[labels.indexOf(field)] > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: field, inputId: `${field}-slider`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
147345
+ (field) => shape2[labels.indexOf(field)] > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: field, inputId: `${field}-${globalSelectionSliderId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146920
147346
  GlobalSelectionSlider,
146921
147347
  {
146922
147348
  field,
147349
+ inputId: `${field}-${globalSelectionSliderId}`,
146923
147350
  value: globalLabelValues[field],
146924
147351
  handleChange: handleGlobalChannelsSelectionChange,
146925
147352
  possibleValues: range$5(shape2[labels.indexOf(field)])
@@ -146927,35 +147354,44 @@ function LayerOptions({
146927
147354
  ) }, field)
146928
147355
  ),
146929
147356
  !disableChannelsIfRgbDetected ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
146930
- shouldShowColormap && /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: "Colormap", inputId: "colormap-select", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
147357
+ shouldShowColormap && /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: "Colormap", inputId: colormapSelectId, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146931
147358
  ColormapSelect,
146932
147359
  {
146933
147360
  value: colormap || "",
146934
- inputId: "colormap-select",
147361
+ inputId: colormapSelectId,
146935
147362
  handleChange: handleColormapChange
146936
147363
  }
146937
147364
  ) }) }),
146938
- shouldShowDomain && /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: "Domain", inputId: "domain-selector", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
147365
+ shouldShowDomain && /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: "Domain", inputId: domainSelectorId, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146939
147366
  SliderDomainSelector,
146940
147367
  {
146941
147368
  value: domainType || DEFAULT_RASTER_DOMAIN_TYPE,
147369
+ inputId: domainSelectorId,
146942
147370
  handleChange: (value) => {
146943
147371
  handleDomainChange(value);
146944
147372
  }
146945
147373
  }
146946
147374
  ) }) })
146947
147375
  ] }) : null,
146948
- !use3d && /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: "Opacity", inputId: "opacity-slider", children: /* @__PURE__ */ jsxRuntimeExports.jsx(OpacitySlider, { value: opacity, handleChange: handleOpacityChange }) }) }),
147376
+ !use3d && /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LayerOption, { name: "Opacity", inputId: opacitySliderId, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
147377
+ OpacitySlider,
147378
+ {
147379
+ value: opacity,
147380
+ handleChange: handleOpacityChange,
147381
+ inputId: opacitySliderId
147382
+ }
147383
+ ) }) }),
146949
147384
  shouldShowTransparentColor && !use3d && /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146950
147385
  LayerOption,
146951
147386
  {
146952
147387
  name: "Zero Transparent",
146953
- inputId: "transparent-color-selector",
147388
+ inputId: zeroTransparentId,
146954
147389
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
146955
147390
  TransparentColorCheckbox,
146956
147391
  {
146957
147392
  value: transparentColor,
146958
- handleChange: handleTransparentColorChange
147393
+ handleChange: handleTransparentColorChange,
147394
+ inputId: zeroTransparentId
146959
147395
  }
146960
147396
  )
146961
147397
  }
@@ -147021,6 +147457,7 @@ const Slicer = ({
147021
147457
  {
147022
147458
  className: !use3d ? classes.disabled : classes.enabled,
147023
147459
  style: { marginBottom: 0 },
147460
+ variant: "h2",
147024
147461
  children: [
147025
147462
  label,
147026
147463
  ":"
@@ -147036,7 +147473,7 @@ const Slicer = ({
147036
147473
  onChange: (e2, v) => setVal(v),
147037
147474
  valueLabelDisplay: "auto",
147038
147475
  valueLabelFormat: (v) => abbreviateNumber$1(v),
147039
- getAriaLabel: () => `${label} slider`,
147476
+ "aria-label": `Volume options ${label} slider`,
147040
147477
  min,
147041
147478
  max,
147042
147479
  step: 5e-3,
@@ -147054,6 +147491,7 @@ const Slicer = ({
147054
147491
  {
147055
147492
  className: !use3d ? classes.disabled : classes.enabled,
147056
147493
  style: { marginTop: 16, marginBottom: 0 },
147494
+ variant: "h2",
147057
147495
  children: [
147058
147496
  "Clipping Planes:",
147059
147497
  " "
@@ -147082,7 +147520,8 @@ function RenderingModeSelect({
147082
147520
  value: use3d ? renderingMode : "",
147083
147521
  inputProps: {
147084
147522
  name: "rendering-mode",
147085
- id: "rendering-mode-select"
147523
+ id: "rendering-mode-select",
147524
+ "aria-label": "Select rendering mode option"
147086
147525
  },
147087
147526
  disabled: !use3d,
147088
147527
  classes: { root: classes.selectRoot },
@@ -147251,6 +147690,7 @@ function LayerController(props2) {
147251
147690
  channelRef.current = channels2;
147252
147691
  return void 0;
147253
147692
  }, [channels2]);
147693
+ const layerControlsId = useId();
147254
147694
  const firstSelection = ((_a2 = channels2[0]) == null ? void 0 : _a2.selection) || {};
147255
147695
  const { data, channels: channelOptions } = loader;
147256
147696
  const [tab, setTab] = useState(0);
@@ -147549,6 +147989,7 @@ function LayerController(props2) {
147549
147989
  },
147550
147990
  TransitionProps: { enter: false },
147551
147991
  expanded: !disabled && isExpanded,
147992
+ id: `layer-controls-accordion-${layerControlsId}`,
147552
147993
  children: [
147553
147994
  /* @__PURE__ */ jsxRuntimeExports.jsx(
147554
147995
  AccordionSummary$1,
@@ -147561,11 +148002,13 @@ function LayerController(props2) {
147561
148002
  },
147562
148003
  expandIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandMoreIcon, { role: "presentation" }),
147563
148004
  "aria-controls": `layer-${name2}-controls`,
148005
+ "aria-expanded": isExpanded,
147564
148006
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "column", m: 1, justifyContent: "center", children: [
147565
148007
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Grid$1, { item: true, classes: { item: overflowEllipsisGridClasses.item }, children: [
147566
148008
  /* @__PURE__ */ jsxRuntimeExports.jsx(
147567
148009
  Button$1,
147568
148010
  {
148011
+ "aria-label": "Toggle layer visibility",
147569
148012
  onClick: (e2) => {
147570
148013
  if (!disabled) {
147571
148014
  e2.stopPropagation();
@@ -147607,7 +148050,7 @@ function LayerController(props2) {
147607
148050
  value: opacity,
147608
148051
  onChange: (e2, v) => setOpacity(v),
147609
148052
  valueLabelDisplay: "auto",
147610
- getAriaLabel: () => "opacity slider",
148053
+ "aria-label": `Adjust opacity for layer ${name2}`,
147611
148054
  min: 0,
147612
148055
  max: 1,
147613
148056
  step: 0.01,
@@ -147620,75 +148063,84 @@ function LayerController(props2) {
147620
148063
  ] })
147621
148064
  }
147622
148065
  ),
147623
- /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionDetails$1, { classes: { root: accordionClasses.accordionDetailsRoot }, children: [
147624
- useVolumeTabs ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
147625
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
147626
- Tabs$1,
147627
- {
147628
- value: tab,
147629
- onChange: handleTabChange,
147630
- "aria-label": "simple tabs example",
147631
- style: { height: "24px", minHeight: "24px" },
147632
- children: [
147633
- /* @__PURE__ */ jsxRuntimeExports.jsx(
147634
- Tab$1,
147635
- {
147636
- label: "Channels",
147637
- style: {
147638
- fontSize: ".75rem",
147639
- bottom: 12,
147640
- width: "50%",
147641
- minWidth: "50%"
147642
- },
147643
- disableRipple: true
147644
- }
147645
- ),
147646
- /* @__PURE__ */ jsxRuntimeExports.jsx(
147647
- Tab$1,
147648
- {
147649
- label: "Volume",
147650
- style: {
147651
- fontSize: ".75rem",
147652
- bottom: 12,
147653
- width: "50%",
147654
- minWidth: "50%"
147655
- }
147656
- }
147657
- )
147658
- ]
147659
- }
147660
- ),
147661
- /* @__PURE__ */ jsxRuntimeExports.jsx(TabPanel, { value: tab, index: 0, children: FullController }),
147662
- /* @__PURE__ */ jsxRuntimeExports.jsx(TabPanel, { value: tab, index: 1, style: { marginTop: 4 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
147663
- VolumeOptions,
147664
- {
147665
- loader,
147666
- handleSlicerSetting,
147667
- handleRenderingModeChange: setRenderingMode,
147668
- renderingMode,
147669
- xSlice,
147670
- ySlice,
147671
- zSlice,
147672
- use3d,
147673
- setViewState,
147674
- spatialHeight,
147675
- spatialWidth,
147676
- modelMatrix: modelMatrix2
147677
- }
147678
- ) })
147679
- ] }) : FullController,
147680
- shouldShowRemoveLayerButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(
147681
- Button$1,
147682
- {
147683
- onClick: handleLayerRemove,
147684
- fullWidth: true,
147685
- variant: "outlined",
147686
- style: buttonStyles,
147687
- size: "small",
147688
- children: "Remove Image Layer"
147689
- }
147690
- ) : null
147691
- ] })
148066
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
148067
+ AccordionDetails$1,
148068
+ {
148069
+ classes: { root: accordionClasses.accordionDetailsRoot },
148070
+ id: `layer-${name2}-controls`,
148071
+ children: [
148072
+ useVolumeTabs ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
148073
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
148074
+ Tabs$1,
148075
+ {
148076
+ value: tab,
148077
+ onChange: handleTabChange,
148078
+ "aria-label": "Change the layer tab type",
148079
+ style: { height: "24px", minHeight: "24px" },
148080
+ children: [
148081
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
148082
+ Tab$1,
148083
+ {
148084
+ label: "Channels",
148085
+ "aria-label": "Channels tab",
148086
+ style: {
148087
+ fontSize: ".75rem",
148088
+ bottom: 12,
148089
+ width: "50%",
148090
+ minWidth: "50%"
148091
+ },
148092
+ disableRipple: true
148093
+ }
148094
+ ),
148095
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
148096
+ Tab$1,
148097
+ {
148098
+ label: "Volume",
148099
+ "aria-label": "Volume tab",
148100
+ style: {
148101
+ fontSize: ".75rem",
148102
+ bottom: 12,
148103
+ width: "50%",
148104
+ minWidth: "50%"
148105
+ }
148106
+ }
148107
+ )
148108
+ ]
148109
+ }
148110
+ ),
148111
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TabPanel, { value: tab, index: 0, children: FullController }),
148112
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TabPanel, { value: tab, index: 1, style: { marginTop: 4 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
148113
+ VolumeOptions,
148114
+ {
148115
+ loader,
148116
+ handleSlicerSetting,
148117
+ handleRenderingModeChange: setRenderingMode,
148118
+ renderingMode,
148119
+ xSlice,
148120
+ ySlice,
148121
+ zSlice,
148122
+ use3d,
148123
+ setViewState,
148124
+ spatialHeight,
148125
+ spatialWidth,
148126
+ modelMatrix: modelMatrix2
148127
+ }
148128
+ ) })
148129
+ ] }) : FullController,
148130
+ shouldShowRemoveLayerButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(
148131
+ Button$1,
148132
+ {
148133
+ onClick: handleLayerRemove,
148134
+ fullWidth: true,
148135
+ variant: "outlined",
148136
+ style: buttonStyles,
148137
+ size: "small",
148138
+ children: "Remove Image Layer"
148139
+ }
148140
+ ) : null
148141
+ ]
148142
+ }
148143
+ )
147692
148144
  ]
147693
148145
  }
147694
148146
  );
@@ -147723,6 +148175,7 @@ function ImageAddButton({ imageOptions, handleImageAdd }) {
147723
148175
  buttonIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(ImageAddIcon, {}),
147724
148176
  buttonClassName: classes.addButton,
147725
148177
  placement: "bottom-start",
148178
+ "aria-label": "Add image menu",
147726
148179
  children: imageOptions.map((imgData, i2) => /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItem$1, { dense: true, onClick: () => handleAdd(i2), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: imgData.name }) }, imgData.name))
147727
148180
  }
147728
148181
  );