@vitessce/json 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.
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-4747e079.js";
2
+ import { B as BaseDecoder } from "./index-5eaf12d6.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -3879,6 +3879,396 @@ var z = /* @__PURE__ */ Object.freeze({
3879
3879
  quotelessJson,
3880
3880
  ZodError
3881
3881
  });
3882
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3883
+ function getDefaultExportFromCjs(x2) {
3884
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
3885
+ }
3886
+ function getAugmentedNamespace(n3) {
3887
+ if (n3.__esModule)
3888
+ return n3;
3889
+ var f2 = n3.default;
3890
+ if (typeof f2 == "function") {
3891
+ var a2 = function a3() {
3892
+ if (this instanceof a3) {
3893
+ var args = [null];
3894
+ args.push.apply(args, arguments);
3895
+ var Ctor = Function.bind.apply(f2, args);
3896
+ return new Ctor();
3897
+ }
3898
+ return f2.apply(this, arguments);
3899
+ };
3900
+ a2.prototype = f2.prototype;
3901
+ } else
3902
+ a2 = {};
3903
+ Object.defineProperty(a2, "__esModule", { value: true });
3904
+ Object.keys(n3).forEach(function(k) {
3905
+ var d = Object.getOwnPropertyDescriptor(n3, k);
3906
+ Object.defineProperty(a2, k, d.get ? d : {
3907
+ enumerable: true,
3908
+ get: function() {
3909
+ return n3[k];
3910
+ }
3911
+ });
3912
+ });
3913
+ return a2;
3914
+ }
3915
+ function commonjsRequire(path) {
3916
+ 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.');
3917
+ }
3918
+ var pluralize = { exports: {} };
3919
+ (function(module2, exports2) {
3920
+ (function(root2, pluralize2) {
3921
+ if (typeof commonjsRequire === "function" && true && true) {
3922
+ module2.exports = pluralize2();
3923
+ } else {
3924
+ root2.pluralize = pluralize2();
3925
+ }
3926
+ })(commonjsGlobal, function() {
3927
+ var pluralRules = [];
3928
+ var singularRules = [];
3929
+ var uncountables = {};
3930
+ var irregularPlurals = {};
3931
+ var irregularSingles = {};
3932
+ function sanitizeRule(rule) {
3933
+ if (typeof rule === "string") {
3934
+ return new RegExp("^" + rule + "$", "i");
3935
+ }
3936
+ return rule;
3937
+ }
3938
+ function restoreCase(word, token) {
3939
+ if (word === token)
3940
+ return token;
3941
+ if (word === word.toLowerCase())
3942
+ return token.toLowerCase();
3943
+ if (word === word.toUpperCase())
3944
+ return token.toUpperCase();
3945
+ if (word[0] === word[0].toUpperCase()) {
3946
+ return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
3947
+ }
3948
+ return token.toLowerCase();
3949
+ }
3950
+ function interpolate2(str, args) {
3951
+ return str.replace(/\$(\d{1,2})/g, function(match, index2) {
3952
+ return args[index2] || "";
3953
+ });
3954
+ }
3955
+ function replace(word, rule) {
3956
+ return word.replace(rule[0], function(match, index2) {
3957
+ var result = interpolate2(rule[1], arguments);
3958
+ if (match === "") {
3959
+ return restoreCase(word[index2 - 1], result);
3960
+ }
3961
+ return restoreCase(match, result);
3962
+ });
3963
+ }
3964
+ function sanitizeWord(token, word, rules) {
3965
+ if (!token.length || uncountables.hasOwnProperty(token)) {
3966
+ return word;
3967
+ }
3968
+ var len2 = rules.length;
3969
+ while (len2--) {
3970
+ var rule = rules[len2];
3971
+ if (rule[0].test(word))
3972
+ return replace(word, rule);
3973
+ }
3974
+ return word;
3975
+ }
3976
+ function replaceWord(replaceMap, keepMap, rules) {
3977
+ return function(word) {
3978
+ var token = word.toLowerCase();
3979
+ if (keepMap.hasOwnProperty(token)) {
3980
+ return restoreCase(word, token);
3981
+ }
3982
+ if (replaceMap.hasOwnProperty(token)) {
3983
+ return restoreCase(word, replaceMap[token]);
3984
+ }
3985
+ return sanitizeWord(token, word, rules);
3986
+ };
3987
+ }
3988
+ function checkWord(replaceMap, keepMap, rules, bool) {
3989
+ return function(word) {
3990
+ var token = word.toLowerCase();
3991
+ if (keepMap.hasOwnProperty(token))
3992
+ return true;
3993
+ if (replaceMap.hasOwnProperty(token))
3994
+ return false;
3995
+ return sanitizeWord(token, token, rules) === token;
3996
+ };
3997
+ }
3998
+ function pluralize2(word, count2, inclusive) {
3999
+ var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
4000
+ return (inclusive ? count2 + " " : "") + pluralized;
4001
+ }
4002
+ pluralize2.plural = replaceWord(
4003
+ irregularSingles,
4004
+ irregularPlurals,
4005
+ pluralRules
4006
+ );
4007
+ pluralize2.isPlural = checkWord(
4008
+ irregularSingles,
4009
+ irregularPlurals,
4010
+ pluralRules
4011
+ );
4012
+ pluralize2.singular = replaceWord(
4013
+ irregularPlurals,
4014
+ irregularSingles,
4015
+ singularRules
4016
+ );
4017
+ pluralize2.isSingular = checkWord(
4018
+ irregularPlurals,
4019
+ irregularSingles,
4020
+ singularRules
4021
+ );
4022
+ pluralize2.addPluralRule = function(rule, replacement) {
4023
+ pluralRules.push([sanitizeRule(rule), replacement]);
4024
+ };
4025
+ pluralize2.addSingularRule = function(rule, replacement) {
4026
+ singularRules.push([sanitizeRule(rule), replacement]);
4027
+ };
4028
+ pluralize2.addUncountableRule = function(word) {
4029
+ if (typeof word === "string") {
4030
+ uncountables[word.toLowerCase()] = true;
4031
+ return;
4032
+ }
4033
+ pluralize2.addPluralRule(word, "$0");
4034
+ pluralize2.addSingularRule(word, "$0");
4035
+ };
4036
+ pluralize2.addIrregularRule = function(single, plural) {
4037
+ plural = plural.toLowerCase();
4038
+ single = single.toLowerCase();
4039
+ irregularSingles[single] = plural;
4040
+ irregularPlurals[plural] = single;
4041
+ };
4042
+ [
4043
+ // Pronouns.
4044
+ ["I", "we"],
4045
+ ["me", "us"],
4046
+ ["he", "they"],
4047
+ ["she", "they"],
4048
+ ["them", "them"],
4049
+ ["myself", "ourselves"],
4050
+ ["yourself", "yourselves"],
4051
+ ["itself", "themselves"],
4052
+ ["herself", "themselves"],
4053
+ ["himself", "themselves"],
4054
+ ["themself", "themselves"],
4055
+ ["is", "are"],
4056
+ ["was", "were"],
4057
+ ["has", "have"],
4058
+ ["this", "these"],
4059
+ ["that", "those"],
4060
+ // Words ending in with a consonant and `o`.
4061
+ ["echo", "echoes"],
4062
+ ["dingo", "dingoes"],
4063
+ ["volcano", "volcanoes"],
4064
+ ["tornado", "tornadoes"],
4065
+ ["torpedo", "torpedoes"],
4066
+ // Ends with `us`.
4067
+ ["genus", "genera"],
4068
+ ["viscus", "viscera"],
4069
+ // Ends with `ma`.
4070
+ ["stigma", "stigmata"],
4071
+ ["stoma", "stomata"],
4072
+ ["dogma", "dogmata"],
4073
+ ["lemma", "lemmata"],
4074
+ ["schema", "schemata"],
4075
+ ["anathema", "anathemata"],
4076
+ // Other irregular rules.
4077
+ ["ox", "oxen"],
4078
+ ["axe", "axes"],
4079
+ ["die", "dice"],
4080
+ ["yes", "yeses"],
4081
+ ["foot", "feet"],
4082
+ ["eave", "eaves"],
4083
+ ["goose", "geese"],
4084
+ ["tooth", "teeth"],
4085
+ ["quiz", "quizzes"],
4086
+ ["human", "humans"],
4087
+ ["proof", "proofs"],
4088
+ ["carve", "carves"],
4089
+ ["valve", "valves"],
4090
+ ["looey", "looies"],
4091
+ ["thief", "thieves"],
4092
+ ["groove", "grooves"],
4093
+ ["pickaxe", "pickaxes"],
4094
+ ["passerby", "passersby"]
4095
+ ].forEach(function(rule) {
4096
+ return pluralize2.addIrregularRule(rule[0], rule[1]);
4097
+ });
4098
+ [
4099
+ [/s?$/i, "s"],
4100
+ [/[^\u0000-\u007F]$/i, "$0"],
4101
+ [/([^aeiou]ese)$/i, "$1"],
4102
+ [/(ax|test)is$/i, "$1es"],
4103
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
4104
+ [/(e[mn]u)s?$/i, "$1s"],
4105
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
4106
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
4107
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
4108
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
4109
+ [/(her|at|gr)o$/i, "$1oes"],
4110
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
4111
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
4112
+ [/sis$/i, "ses"],
4113
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
4114
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
4115
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
4116
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
4117
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
4118
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
4119
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
4120
+ [/(child)(?:ren)?$/i, "$1ren"],
4121
+ [/eaux$/i, "$0"],
4122
+ [/m[ae]n$/i, "men"],
4123
+ ["thou", "you"]
4124
+ ].forEach(function(rule) {
4125
+ return pluralize2.addPluralRule(rule[0], rule[1]);
4126
+ });
4127
+ [
4128
+ [/s$/i, ""],
4129
+ [/(ss)$/i, "$1"],
4130
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
4131
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
4132
+ [/ies$/i, "y"],
4133
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
4134
+ [/\b(mon|smil)ies$/i, "$1ey"],
4135
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
4136
+ [/(seraph|cherub)im$/i, "$1"],
4137
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
4138
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
4139
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
4140
+ [/(test)(?:is|es)$/i, "$1is"],
4141
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
4142
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
4143
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
4144
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
4145
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
4146
+ [/(matr|append)ices$/i, "$1ix"],
4147
+ [/(pe)(rson|ople)$/i, "$1rson"],
4148
+ [/(child)ren$/i, "$1"],
4149
+ [/(eau)x?$/i, "$1"],
4150
+ [/men$/i, "man"]
4151
+ ].forEach(function(rule) {
4152
+ return pluralize2.addSingularRule(rule[0], rule[1]);
4153
+ });
4154
+ [
4155
+ // Singular words with no plurals.
4156
+ "adulthood",
4157
+ "advice",
4158
+ "agenda",
4159
+ "aid",
4160
+ "aircraft",
4161
+ "alcohol",
4162
+ "ammo",
4163
+ "analytics",
4164
+ "anime",
4165
+ "athletics",
4166
+ "audio",
4167
+ "bison",
4168
+ "blood",
4169
+ "bream",
4170
+ "buffalo",
4171
+ "butter",
4172
+ "carp",
4173
+ "cash",
4174
+ "chassis",
4175
+ "chess",
4176
+ "clothing",
4177
+ "cod",
4178
+ "commerce",
4179
+ "cooperation",
4180
+ "corps",
4181
+ "debris",
4182
+ "diabetes",
4183
+ "digestion",
4184
+ "elk",
4185
+ "energy",
4186
+ "equipment",
4187
+ "excretion",
4188
+ "expertise",
4189
+ "firmware",
4190
+ "flounder",
4191
+ "fun",
4192
+ "gallows",
4193
+ "garbage",
4194
+ "graffiti",
4195
+ "hardware",
4196
+ "headquarters",
4197
+ "health",
4198
+ "herpes",
4199
+ "highjinks",
4200
+ "homework",
4201
+ "housework",
4202
+ "information",
4203
+ "jeans",
4204
+ "justice",
4205
+ "kudos",
4206
+ "labour",
4207
+ "literature",
4208
+ "machinery",
4209
+ "mackerel",
4210
+ "mail",
4211
+ "media",
4212
+ "mews",
4213
+ "moose",
4214
+ "music",
4215
+ "mud",
4216
+ "manga",
4217
+ "news",
4218
+ "only",
4219
+ "personnel",
4220
+ "pike",
4221
+ "plankton",
4222
+ "pliers",
4223
+ "police",
4224
+ "pollution",
4225
+ "premises",
4226
+ "rain",
4227
+ "research",
4228
+ "rice",
4229
+ "salmon",
4230
+ "scissors",
4231
+ "series",
4232
+ "sewage",
4233
+ "shambles",
4234
+ "shrimp",
4235
+ "software",
4236
+ "species",
4237
+ "staff",
4238
+ "swine",
4239
+ "tennis",
4240
+ "traffic",
4241
+ "transportation",
4242
+ "trout",
4243
+ "tuna",
4244
+ "wealth",
4245
+ "welfare",
4246
+ "whiting",
4247
+ "wildebeest",
4248
+ "wildlife",
4249
+ "you",
4250
+ /pok[eé]mon$/i,
4251
+ // Regexes.
4252
+ /[^aeiou]ese$/i,
4253
+ // "chinese", "japanese"
4254
+ /deer$/i,
4255
+ // "deer", "reindeer"
4256
+ /fish$/i,
4257
+ // "fish", "blowfish", "angelfish"
4258
+ /measles$/i,
4259
+ /o[iu]s$/i,
4260
+ // "carnivorous"
4261
+ /pox$/i,
4262
+ // "chickpox", "smallpox"
4263
+ /sheep$/i
4264
+ ].forEach(pluralize2.addUncountableRule);
4265
+ return pluralize2;
4266
+ });
4267
+ })(pluralize);
4268
+ var pluralizeExports = pluralize.exports;
4269
+ const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
4270
+ plur.addPluralRule("glomerulus", "glomeruli");
4271
+ plur.addPluralRule("interstitium", "interstitia");
3882
4272
  function fromEntries(iterable) {
3883
4273
  return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
3884
4274
  }
@@ -6072,39 +6462,6 @@ const es$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
6072
6462
  segmentEach: segmentEach$1,
6073
6463
  segmentReduce: segmentReduce$1
6074
6464
  }, Symbol.toStringTag, { value: "Module" }));
6075
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
6076
- function getDefaultExportFromCjs(x2) {
6077
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
6078
- }
6079
- function getAugmentedNamespace(n3) {
6080
- if (n3.__esModule)
6081
- return n3;
6082
- var f2 = n3.default;
6083
- if (typeof f2 == "function") {
6084
- var a2 = function a3() {
6085
- if (this instanceof a3) {
6086
- var args = [null];
6087
- args.push.apply(args, arguments);
6088
- var Ctor = Function.bind.apply(f2, args);
6089
- return new Ctor();
6090
- }
6091
- return f2.apply(this, arguments);
6092
- };
6093
- a2.prototype = f2.prototype;
6094
- } else
6095
- a2 = {};
6096
- Object.defineProperty(a2, "__esModule", { value: true });
6097
- Object.keys(n3).forEach(function(k) {
6098
- var d = Object.getOwnPropertyDescriptor(n3, k);
6099
- Object.defineProperty(a2, k, d.get ? d : {
6100
- enumerable: true,
6101
- get: function() {
6102
- return n3[k];
6103
- }
6104
- });
6105
- });
6106
- return a2;
6107
- }
6108
6465
  var concaveman$1 = { exports: {} };
6109
6466
  var rbush_min = { exports: {} };
6110
6467
  (function(module2, exports2) {
@@ -69947,9 +70304,6 @@ class GeoCellLayer extends CompositeLayer {
69947
70304
  }
69948
70305
  _defineProperty$e(GeoCellLayer, "layerName", "GeoCellLayer");
69949
70306
  _defineProperty$e(GeoCellLayer, "defaultProps", defaultProps$t);
69950
- function commonjsRequire(path) {
69951
- 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.');
69952
- }
69953
70307
  var long = { exports: {} };
69954
70308
  (function(module2) {
69955
70309
  /**
@@ -134111,16 +134465,16 @@ async function getDecoder(fileDirectory) {
134111
134465
  const Decoder = await importFn();
134112
134466
  return new Decoder(fileDirectory);
134113
134467
  }
134114
- addDecoder([void 0, 1], () => import("./raw-fc3a808c.js").then((m) => m.default));
134115
- addDecoder(5, () => import("./lzw-10a09468.js").then((m) => m.default));
134468
+ addDecoder([void 0, 1], () => import("./raw-e999bbbe.js").then((m) => m.default));
134469
+ addDecoder(5, () => import("./lzw-fa7b8ffe.js").then((m) => m.default));
134116
134470
  addDecoder(6, () => {
134117
134471
  throw new Error("old style JPEG compression is not supported.");
134118
134472
  });
134119
- addDecoder(7, () => import("./jpeg-abb345c7.js").then((m) => m.default));
134120
- addDecoder([8, 32946], () => import("./deflate-4ca42b76.js").then((m) => m.default));
134121
- addDecoder(32773, () => import("./packbits-d8a8e4a5.js").then((m) => m.default));
134122
- addDecoder(34887, () => import("./lerc-9046df68.js").then((m) => m.default));
134123
- addDecoder(50001, () => import("./webimage-1a311fc4.js").then((m) => m.default));
134473
+ addDecoder(7, () => import("./jpeg-9552e89a.js").then((m) => m.default));
134474
+ addDecoder([8, 32946], () => import("./deflate-f77ff47e.js").then((m) => m.default));
134475
+ addDecoder(32773, () => import("./packbits-9fa1f51b.js").then((m) => m.default));
134476
+ addDecoder(34887, () => import("./lerc-dd5ffcb9.js").then((m) => m.default));
134477
+ addDecoder(50001, () => import("./webimage-6f7695f8.js").then((m) => m.default));
134124
134478
  function copyNewSize(array2, width, height, samplesPerPixel = 1) {
134125
134479
  return new (Object.getPrototypeOf(array2)).constructor(width * height * samplesPerPixel);
134126
134480
  }
@@ -151207,10 +151561,10 @@ class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
151207
151561
  console.warn("Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsObsSegmentationsLoader. This may be an indicator that the image could not be loaded.");
151208
151562
  }
151209
151563
  return new LoaderResult(
151210
- {
151564
+ loaders.length > 0 && meta2.length > 0 ? {
151211
151565
  obsSegmentationsType: "bitmask",
151212
- obsSegmentations: loaders.length > 0 && meta2.length > 0 ? { loaders, meta: meta2 } : null
151213
- },
151566
+ obsSegmentations: { loaders, meta: meta2 }
151567
+ } : null,
151214
151568
  urls,
151215
151569
  {
151216
151570
  // Filter coordinationValues, keeping only bitmask layers.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-4747e079.js";
1
+ import { C, d, e, f, h, G, b, J, M, i, O, c, R, j } from "./index-5eaf12d6.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-4747e079.js";
1
+ import { B as BaseDecoder } from "./index-5eaf12d6.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const dctZigZag = new Int32Array([
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-4747e079.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-5eaf12d6.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-4747e079.js";
1
+ import { B as BaseDecoder } from "./index-5eaf12d6.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-4747e079.js";
1
+ import { B as BaseDecoder } from "./index-5eaf12d6.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-4747e079.js";
1
+ import { B as BaseDecoder } from "./index-5eaf12d6.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-4747e079.js";
1
+ import { B as BaseDecoder } from "./index-5eaf12d6.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class WebImageDecoder extends BaseDecoder {
@@ -20,10 +20,10 @@ export default class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
20
20
  if (!coordinationValues?.spatialImageLayer) {
21
21
  console.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsObsSegmentationsLoader. This may be an indicator that the image could not be loaded.');
22
22
  }
23
- return new LoaderResult({
23
+ return new LoaderResult((loaders.length > 0 && meta.length > 0 ? ({
24
24
  obsSegmentationsType: 'bitmask',
25
- obsSegmentations: (loaders.length > 0 && meta.length > 0 ? { loaders, meta } : null),
26
- }, urls, {
25
+ obsSegmentations: { loaders, meta },
26
+ }) : null), urls, {
27
27
  // Filter coordinationValues, keeping only bitmask layers.
28
28
  spatialSegmentationLayer: coordinationValues?.spatialImageLayer?.filter(l => l.type === 'bitmask')
29
29
  // Re-index since we removed the bitmask layers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -20,13 +20,13 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "zarr": "0.5.1",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.1.0",
24
- "@vitessce/gl": "3.1.0",
25
- "@vitessce/schemas": "3.1.0",
26
- "@vitessce/sets-utils": "3.1.0",
27
- "@vitessce/spatial-utils": "3.1.0",
28
- "@vitessce/utils": "3.1.0",
29
- "@vitessce/vit-s": "3.1.0"
23
+ "@vitessce/constants-internal": "3.1.2",
24
+ "@vitessce/gl": "3.1.2",
25
+ "@vitessce/schemas": "3.1.2",
26
+ "@vitessce/sets-utils": "3.1.2",
27
+ "@vitessce/spatial-utils": "3.1.2",
28
+ "@vitessce/utils": "3.1.2",
29
+ "@vitessce/vit-s": "3.1.2"
30
30
  },
31
31
  "scripts": {
32
32
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
@@ -26,10 +26,10 @@ export default class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
26
26
  }
27
27
 
28
28
  return new LoaderResult(
29
- {
29
+ (loaders.length > 0 && meta.length > 0 ? ({
30
30
  obsSegmentationsType: 'bitmask',
31
- obsSegmentations: (loaders.length > 0 && meta.length > 0 ? { loaders, meta } : null),
32
- },
31
+ obsSegmentations: { loaders, meta },
32
+ }) : null),
33
33
  urls,
34
34
  {
35
35
  // Filter coordinationValues, keeping only bitmask layers.