@vitessce/config 3.1.1 → 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 (2) hide show
  1. package/dist/index.js +390 -30
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -161,6 +161,396 @@ const CoordinationType$1 = {
161
161
  FEATURE_VALUE_TRANSFORM_COEFFICIENT: "featureValueTransformCoefficient",
162
162
  TOOLTIPS_VISIBLE: "tooltipsVisible"
163
163
  };
164
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
165
+ function getDefaultExportFromCjs(x) {
166
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
167
+ }
168
+ function getAugmentedNamespace(n) {
169
+ if (n.__esModule)
170
+ return n;
171
+ var f = n.default;
172
+ if (typeof f == "function") {
173
+ var a = function a2() {
174
+ if (this instanceof a2) {
175
+ var args = [null];
176
+ args.push.apply(args, arguments);
177
+ var Ctor = Function.bind.apply(f, args);
178
+ return new Ctor();
179
+ }
180
+ return f.apply(this, arguments);
181
+ };
182
+ a.prototype = f.prototype;
183
+ } else
184
+ a = {};
185
+ Object.defineProperty(a, "__esModule", { value: true });
186
+ Object.keys(n).forEach(function(k) {
187
+ var d = Object.getOwnPropertyDescriptor(n, k);
188
+ Object.defineProperty(a, k, d.get ? d : {
189
+ enumerable: true,
190
+ get: function() {
191
+ return n[k];
192
+ }
193
+ });
194
+ });
195
+ return a;
196
+ }
197
+ function commonjsRequire(path) {
198
+ 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.');
199
+ }
200
+ var pluralize = { exports: {} };
201
+ (function(module2, exports2) {
202
+ (function(root2, pluralize2) {
203
+ if (typeof commonjsRequire === "function" && true && true) {
204
+ module2.exports = pluralize2();
205
+ } else {
206
+ root2.pluralize = pluralize2();
207
+ }
208
+ })(commonjsGlobal, function() {
209
+ var pluralRules = [];
210
+ var singularRules = [];
211
+ var uncountables = {};
212
+ var irregularPlurals = {};
213
+ var irregularSingles = {};
214
+ function sanitizeRule(rule) {
215
+ if (typeof rule === "string") {
216
+ return new RegExp("^" + rule + "$", "i");
217
+ }
218
+ return rule;
219
+ }
220
+ function restoreCase(word, token) {
221
+ if (word === token)
222
+ return token;
223
+ if (word === word.toLowerCase())
224
+ return token.toLowerCase();
225
+ if (word === word.toUpperCase())
226
+ return token.toUpperCase();
227
+ if (word[0] === word[0].toUpperCase()) {
228
+ return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
229
+ }
230
+ return token.toLowerCase();
231
+ }
232
+ function interpolate(str, args) {
233
+ return str.replace(/\$(\d{1,2})/g, function(match, index) {
234
+ return args[index] || "";
235
+ });
236
+ }
237
+ function replace(word, rule) {
238
+ return word.replace(rule[0], function(match, index) {
239
+ var result = interpolate(rule[1], arguments);
240
+ if (match === "") {
241
+ return restoreCase(word[index - 1], result);
242
+ }
243
+ return restoreCase(match, result);
244
+ });
245
+ }
246
+ function sanitizeWord(token, word, rules) {
247
+ if (!token.length || uncountables.hasOwnProperty(token)) {
248
+ return word;
249
+ }
250
+ var len = rules.length;
251
+ while (len--) {
252
+ var rule = rules[len];
253
+ if (rule[0].test(word))
254
+ return replace(word, rule);
255
+ }
256
+ return word;
257
+ }
258
+ function replaceWord(replaceMap, keepMap, rules) {
259
+ return function(word) {
260
+ var token = word.toLowerCase();
261
+ if (keepMap.hasOwnProperty(token)) {
262
+ return restoreCase(word, token);
263
+ }
264
+ if (replaceMap.hasOwnProperty(token)) {
265
+ return restoreCase(word, replaceMap[token]);
266
+ }
267
+ return sanitizeWord(token, word, rules);
268
+ };
269
+ }
270
+ function checkWord(replaceMap, keepMap, rules, bool) {
271
+ return function(word) {
272
+ var token = word.toLowerCase();
273
+ if (keepMap.hasOwnProperty(token))
274
+ return true;
275
+ if (replaceMap.hasOwnProperty(token))
276
+ return false;
277
+ return sanitizeWord(token, token, rules) === token;
278
+ };
279
+ }
280
+ function pluralize2(word, count, inclusive) {
281
+ var pluralized = count === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
282
+ return (inclusive ? count + " " : "") + pluralized;
283
+ }
284
+ pluralize2.plural = replaceWord(
285
+ irregularSingles,
286
+ irregularPlurals,
287
+ pluralRules
288
+ );
289
+ pluralize2.isPlural = checkWord(
290
+ irregularSingles,
291
+ irregularPlurals,
292
+ pluralRules
293
+ );
294
+ pluralize2.singular = replaceWord(
295
+ irregularPlurals,
296
+ irregularSingles,
297
+ singularRules
298
+ );
299
+ pluralize2.isSingular = checkWord(
300
+ irregularPlurals,
301
+ irregularSingles,
302
+ singularRules
303
+ );
304
+ pluralize2.addPluralRule = function(rule, replacement) {
305
+ pluralRules.push([sanitizeRule(rule), replacement]);
306
+ };
307
+ pluralize2.addSingularRule = function(rule, replacement) {
308
+ singularRules.push([sanitizeRule(rule), replacement]);
309
+ };
310
+ pluralize2.addUncountableRule = function(word) {
311
+ if (typeof word === "string") {
312
+ uncountables[word.toLowerCase()] = true;
313
+ return;
314
+ }
315
+ pluralize2.addPluralRule(word, "$0");
316
+ pluralize2.addSingularRule(word, "$0");
317
+ };
318
+ pluralize2.addIrregularRule = function(single, plural) {
319
+ plural = plural.toLowerCase();
320
+ single = single.toLowerCase();
321
+ irregularSingles[single] = plural;
322
+ irregularPlurals[plural] = single;
323
+ };
324
+ [
325
+ // Pronouns.
326
+ ["I", "we"],
327
+ ["me", "us"],
328
+ ["he", "they"],
329
+ ["she", "they"],
330
+ ["them", "them"],
331
+ ["myself", "ourselves"],
332
+ ["yourself", "yourselves"],
333
+ ["itself", "themselves"],
334
+ ["herself", "themselves"],
335
+ ["himself", "themselves"],
336
+ ["themself", "themselves"],
337
+ ["is", "are"],
338
+ ["was", "were"],
339
+ ["has", "have"],
340
+ ["this", "these"],
341
+ ["that", "those"],
342
+ // Words ending in with a consonant and `o`.
343
+ ["echo", "echoes"],
344
+ ["dingo", "dingoes"],
345
+ ["volcano", "volcanoes"],
346
+ ["tornado", "tornadoes"],
347
+ ["torpedo", "torpedoes"],
348
+ // Ends with `us`.
349
+ ["genus", "genera"],
350
+ ["viscus", "viscera"],
351
+ // Ends with `ma`.
352
+ ["stigma", "stigmata"],
353
+ ["stoma", "stomata"],
354
+ ["dogma", "dogmata"],
355
+ ["lemma", "lemmata"],
356
+ ["schema", "schemata"],
357
+ ["anathema", "anathemata"],
358
+ // Other irregular rules.
359
+ ["ox", "oxen"],
360
+ ["axe", "axes"],
361
+ ["die", "dice"],
362
+ ["yes", "yeses"],
363
+ ["foot", "feet"],
364
+ ["eave", "eaves"],
365
+ ["goose", "geese"],
366
+ ["tooth", "teeth"],
367
+ ["quiz", "quizzes"],
368
+ ["human", "humans"],
369
+ ["proof", "proofs"],
370
+ ["carve", "carves"],
371
+ ["valve", "valves"],
372
+ ["looey", "looies"],
373
+ ["thief", "thieves"],
374
+ ["groove", "grooves"],
375
+ ["pickaxe", "pickaxes"],
376
+ ["passerby", "passersby"]
377
+ ].forEach(function(rule) {
378
+ return pluralize2.addIrregularRule(rule[0], rule[1]);
379
+ });
380
+ [
381
+ [/s?$/i, "s"],
382
+ [/[^\u0000-\u007F]$/i, "$0"],
383
+ [/([^aeiou]ese)$/i, "$1"],
384
+ [/(ax|test)is$/i, "$1es"],
385
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
386
+ [/(e[mn]u)s?$/i, "$1s"],
387
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
388
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
389
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
390
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
391
+ [/(her|at|gr)o$/i, "$1oes"],
392
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
393
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
394
+ [/sis$/i, "ses"],
395
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
396
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
397
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
398
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
399
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
400
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
401
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
402
+ [/(child)(?:ren)?$/i, "$1ren"],
403
+ [/eaux$/i, "$0"],
404
+ [/m[ae]n$/i, "men"],
405
+ ["thou", "you"]
406
+ ].forEach(function(rule) {
407
+ return pluralize2.addPluralRule(rule[0], rule[1]);
408
+ });
409
+ [
410
+ [/s$/i, ""],
411
+ [/(ss)$/i, "$1"],
412
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
413
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
414
+ [/ies$/i, "y"],
415
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
416
+ [/\b(mon|smil)ies$/i, "$1ey"],
417
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
418
+ [/(seraph|cherub)im$/i, "$1"],
419
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
420
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
421
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
422
+ [/(test)(?:is|es)$/i, "$1is"],
423
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
424
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
425
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
426
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
427
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
428
+ [/(matr|append)ices$/i, "$1ix"],
429
+ [/(pe)(rson|ople)$/i, "$1rson"],
430
+ [/(child)ren$/i, "$1"],
431
+ [/(eau)x?$/i, "$1"],
432
+ [/men$/i, "man"]
433
+ ].forEach(function(rule) {
434
+ return pluralize2.addSingularRule(rule[0], rule[1]);
435
+ });
436
+ [
437
+ // Singular words with no plurals.
438
+ "adulthood",
439
+ "advice",
440
+ "agenda",
441
+ "aid",
442
+ "aircraft",
443
+ "alcohol",
444
+ "ammo",
445
+ "analytics",
446
+ "anime",
447
+ "athletics",
448
+ "audio",
449
+ "bison",
450
+ "blood",
451
+ "bream",
452
+ "buffalo",
453
+ "butter",
454
+ "carp",
455
+ "cash",
456
+ "chassis",
457
+ "chess",
458
+ "clothing",
459
+ "cod",
460
+ "commerce",
461
+ "cooperation",
462
+ "corps",
463
+ "debris",
464
+ "diabetes",
465
+ "digestion",
466
+ "elk",
467
+ "energy",
468
+ "equipment",
469
+ "excretion",
470
+ "expertise",
471
+ "firmware",
472
+ "flounder",
473
+ "fun",
474
+ "gallows",
475
+ "garbage",
476
+ "graffiti",
477
+ "hardware",
478
+ "headquarters",
479
+ "health",
480
+ "herpes",
481
+ "highjinks",
482
+ "homework",
483
+ "housework",
484
+ "information",
485
+ "jeans",
486
+ "justice",
487
+ "kudos",
488
+ "labour",
489
+ "literature",
490
+ "machinery",
491
+ "mackerel",
492
+ "mail",
493
+ "media",
494
+ "mews",
495
+ "moose",
496
+ "music",
497
+ "mud",
498
+ "manga",
499
+ "news",
500
+ "only",
501
+ "personnel",
502
+ "pike",
503
+ "plankton",
504
+ "pliers",
505
+ "police",
506
+ "pollution",
507
+ "premises",
508
+ "rain",
509
+ "research",
510
+ "rice",
511
+ "salmon",
512
+ "scissors",
513
+ "series",
514
+ "sewage",
515
+ "shambles",
516
+ "shrimp",
517
+ "software",
518
+ "species",
519
+ "staff",
520
+ "swine",
521
+ "tennis",
522
+ "traffic",
523
+ "transportation",
524
+ "trout",
525
+ "tuna",
526
+ "wealth",
527
+ "welfare",
528
+ "whiting",
529
+ "wildebeest",
530
+ "wildlife",
531
+ "you",
532
+ /pok[eé]mon$/i,
533
+ // Regexes.
534
+ /[^aeiou]ese$/i,
535
+ // "chinese", "japanese"
536
+ /deer$/i,
537
+ // "deer", "reindeer"
538
+ /fish$/i,
539
+ // "fish", "blowfish", "angelfish"
540
+ /measles$/i,
541
+ /o[iu]s$/i,
542
+ // "carnivorous"
543
+ /pox$/i,
544
+ // "chickpox", "smallpox"
545
+ /sheep$/i
546
+ ].forEach(pluralize2.addUncountableRule);
547
+ return pluralize2;
548
+ });
549
+ })(pluralize);
550
+ var pluralizeExports = pluralize.exports;
551
+ const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
552
+ plur.addPluralRule("glomerulus", "glomeruli");
553
+ plur.addPluralRule("interstitium", "interstitia");
164
554
  function fromEntries(iterable) {
165
555
  return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
166
556
  }
@@ -1033,36 +1423,6 @@ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
1033
1423
  function cloneDeep(value) {
1034
1424
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
1035
1425
  }
1036
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1037
- function getAugmentedNamespace(n) {
1038
- if (n.__esModule)
1039
- return n;
1040
- var f = n.default;
1041
- if (typeof f == "function") {
1042
- var a = function a2() {
1043
- if (this instanceof a2) {
1044
- var args = [null];
1045
- args.push.apply(args, arguments);
1046
- var Ctor = Function.bind.apply(f, args);
1047
- return new Ctor();
1048
- }
1049
- return f.apply(this, arguments);
1050
- };
1051
- a.prototype = f.prototype;
1052
- } else
1053
- a = {};
1054
- Object.defineProperty(a, "__esModule", { value: true });
1055
- Object.keys(n).forEach(function(k) {
1056
- var d = Object.getOwnPropertyDescriptor(n, k);
1057
- Object.defineProperty(a, k, d.get ? d : {
1058
- enumerable: true,
1059
- get: function() {
1060
- return n[k];
1061
- }
1062
- });
1063
- });
1064
- return a;
1065
- }
1066
1426
  var concaveman$1 = { exports: {} };
1067
1427
  var rbush_min = { exports: {} };
1068
1428
  (function(module2, exports2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/config",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -16,8 +16,8 @@
16
16
  "dist-tsc"
17
17
  ],
18
18
  "dependencies": {
19
- "@vitessce/constants-internal": "3.1.1",
20
- "@vitessce/utils": "3.1.1"
19
+ "@vitessce/constants-internal": "3.1.2",
20
+ "@vitessce/utils": "3.1.2"
21
21
  },
22
22
  "scripts": {
23
23
  "bundle": "pnpm exec vite build -c ../../scripts/vite.config.js",