@vitessce/ome-tiff 3.1.1 → 3.1.3

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-82db596e.js";
2
+ import { B as BaseDecoder } from "./index-902940dd.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -103456,16 +103456,16 @@ async function getDecoder(fileDirectory) {
103456
103456
  const Decoder = await importFn();
103457
103457
  return new Decoder(fileDirectory);
103458
103458
  }
103459
- addDecoder([void 0, 1], () => import("./raw-c5567cae.js").then((m) => m.default));
103460
- addDecoder(5, () => import("./lzw-390cd1d6.js").then((m) => m.default));
103459
+ addDecoder([void 0, 1], () => import("./raw-066e1e3c.js").then((m) => m.default));
103460
+ addDecoder(5, () => import("./lzw-2712730c.js").then((m) => m.default));
103461
103461
  addDecoder(6, () => {
103462
103462
  throw new Error("old style JPEG compression is not supported.");
103463
103463
  });
103464
- addDecoder(7, () => import("./jpeg-610e360a.js").then((m) => m.default));
103465
- addDecoder([8, 32946], () => import("./deflate-3577cf79.js").then((m) => m.default));
103466
- addDecoder(32773, () => import("./packbits-80edb884.js").then((m) => m.default));
103467
- addDecoder(34887, () => import("./lerc-a137ebe9.js").then((m) => m.default));
103468
- addDecoder(50001, () => import("./webimage-47f6a56e.js").then((m) => m.default));
103464
+ addDecoder(7, () => import("./jpeg-714c2bbe.js").then((m) => m.default));
103465
+ addDecoder([8, 32946], () => import("./deflate-fab4dad6.js").then((m) => m.default));
103466
+ addDecoder(32773, () => import("./packbits-41f0b851.js").then((m) => m.default));
103467
+ addDecoder(34887, () => import("./lerc-ba258177.js").then((m) => m.default));
103468
+ addDecoder(50001, () => import("./webimage-f3f86602.js").then((m) => m.default));
103469
103469
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
103470
103470
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
103471
103471
  }
@@ -133314,6 +133314,360 @@ var unit = /* @__PURE__ */ createUnitFunction({
133314
133314
  Unit,
133315
133315
  typed
133316
133316
  });
133317
+ var pluralize = { exports: {} };
133318
+ (function(module2, exports2) {
133319
+ (function(root2, pluralize2) {
133320
+ if (typeof commonjsRequire === "function" && true && true) {
133321
+ module2.exports = pluralize2();
133322
+ } else {
133323
+ root2.pluralize = pluralize2();
133324
+ }
133325
+ })(commonjsGlobal, function() {
133326
+ var pluralRules = [];
133327
+ var singularRules = [];
133328
+ var uncountables = {};
133329
+ var irregularPlurals = {};
133330
+ var irregularSingles = {};
133331
+ function sanitizeRule(rule) {
133332
+ if (typeof rule === "string") {
133333
+ return new RegExp("^" + rule + "$", "i");
133334
+ }
133335
+ return rule;
133336
+ }
133337
+ function restoreCase(word, token) {
133338
+ if (word === token)
133339
+ return token;
133340
+ if (word === word.toLowerCase())
133341
+ return token.toLowerCase();
133342
+ if (word === word.toUpperCase())
133343
+ return token.toUpperCase();
133344
+ if (word[0] === word[0].toUpperCase()) {
133345
+ return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
133346
+ }
133347
+ return token.toLowerCase();
133348
+ }
133349
+ function interpolate2(str, args) {
133350
+ return str.replace(/\$(\d{1,2})/g, function(match, index2) {
133351
+ return args[index2] || "";
133352
+ });
133353
+ }
133354
+ function replace(word, rule) {
133355
+ return word.replace(rule[0], function(match, index2) {
133356
+ var result = interpolate2(rule[1], arguments);
133357
+ if (match === "") {
133358
+ return restoreCase(word[index2 - 1], result);
133359
+ }
133360
+ return restoreCase(match, result);
133361
+ });
133362
+ }
133363
+ function sanitizeWord(token, word, rules) {
133364
+ if (!token.length || uncountables.hasOwnProperty(token)) {
133365
+ return word;
133366
+ }
133367
+ var len2 = rules.length;
133368
+ while (len2--) {
133369
+ var rule = rules[len2];
133370
+ if (rule[0].test(word))
133371
+ return replace(word, rule);
133372
+ }
133373
+ return word;
133374
+ }
133375
+ function replaceWord(replaceMap, keepMap, rules) {
133376
+ return function(word) {
133377
+ var token = word.toLowerCase();
133378
+ if (keepMap.hasOwnProperty(token)) {
133379
+ return restoreCase(word, token);
133380
+ }
133381
+ if (replaceMap.hasOwnProperty(token)) {
133382
+ return restoreCase(word, replaceMap[token]);
133383
+ }
133384
+ return sanitizeWord(token, word, rules);
133385
+ };
133386
+ }
133387
+ function checkWord(replaceMap, keepMap, rules, bool) {
133388
+ return function(word) {
133389
+ var token = word.toLowerCase();
133390
+ if (keepMap.hasOwnProperty(token))
133391
+ return true;
133392
+ if (replaceMap.hasOwnProperty(token))
133393
+ return false;
133394
+ return sanitizeWord(token, token, rules) === token;
133395
+ };
133396
+ }
133397
+ function pluralize2(word, count2, inclusive) {
133398
+ var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
133399
+ return (inclusive ? count2 + " " : "") + pluralized;
133400
+ }
133401
+ pluralize2.plural = replaceWord(
133402
+ irregularSingles,
133403
+ irregularPlurals,
133404
+ pluralRules
133405
+ );
133406
+ pluralize2.isPlural = checkWord(
133407
+ irregularSingles,
133408
+ irregularPlurals,
133409
+ pluralRules
133410
+ );
133411
+ pluralize2.singular = replaceWord(
133412
+ irregularPlurals,
133413
+ irregularSingles,
133414
+ singularRules
133415
+ );
133416
+ pluralize2.isSingular = checkWord(
133417
+ irregularPlurals,
133418
+ irregularSingles,
133419
+ singularRules
133420
+ );
133421
+ pluralize2.addPluralRule = function(rule, replacement) {
133422
+ pluralRules.push([sanitizeRule(rule), replacement]);
133423
+ };
133424
+ pluralize2.addSingularRule = function(rule, replacement) {
133425
+ singularRules.push([sanitizeRule(rule), replacement]);
133426
+ };
133427
+ pluralize2.addUncountableRule = function(word) {
133428
+ if (typeof word === "string") {
133429
+ uncountables[word.toLowerCase()] = true;
133430
+ return;
133431
+ }
133432
+ pluralize2.addPluralRule(word, "$0");
133433
+ pluralize2.addSingularRule(word, "$0");
133434
+ };
133435
+ pluralize2.addIrregularRule = function(single, plural) {
133436
+ plural = plural.toLowerCase();
133437
+ single = single.toLowerCase();
133438
+ irregularSingles[single] = plural;
133439
+ irregularPlurals[plural] = single;
133440
+ };
133441
+ [
133442
+ // Pronouns.
133443
+ ["I", "we"],
133444
+ ["me", "us"],
133445
+ ["he", "they"],
133446
+ ["she", "they"],
133447
+ ["them", "them"],
133448
+ ["myself", "ourselves"],
133449
+ ["yourself", "yourselves"],
133450
+ ["itself", "themselves"],
133451
+ ["herself", "themselves"],
133452
+ ["himself", "themselves"],
133453
+ ["themself", "themselves"],
133454
+ ["is", "are"],
133455
+ ["was", "were"],
133456
+ ["has", "have"],
133457
+ ["this", "these"],
133458
+ ["that", "those"],
133459
+ // Words ending in with a consonant and `o`.
133460
+ ["echo", "echoes"],
133461
+ ["dingo", "dingoes"],
133462
+ ["volcano", "volcanoes"],
133463
+ ["tornado", "tornadoes"],
133464
+ ["torpedo", "torpedoes"],
133465
+ // Ends with `us`.
133466
+ ["genus", "genera"],
133467
+ ["viscus", "viscera"],
133468
+ // Ends with `ma`.
133469
+ ["stigma", "stigmata"],
133470
+ ["stoma", "stomata"],
133471
+ ["dogma", "dogmata"],
133472
+ ["lemma", "lemmata"],
133473
+ ["schema", "schemata"],
133474
+ ["anathema", "anathemata"],
133475
+ // Other irregular rules.
133476
+ ["ox", "oxen"],
133477
+ ["axe", "axes"],
133478
+ ["die", "dice"],
133479
+ ["yes", "yeses"],
133480
+ ["foot", "feet"],
133481
+ ["eave", "eaves"],
133482
+ ["goose", "geese"],
133483
+ ["tooth", "teeth"],
133484
+ ["quiz", "quizzes"],
133485
+ ["human", "humans"],
133486
+ ["proof", "proofs"],
133487
+ ["carve", "carves"],
133488
+ ["valve", "valves"],
133489
+ ["looey", "looies"],
133490
+ ["thief", "thieves"],
133491
+ ["groove", "grooves"],
133492
+ ["pickaxe", "pickaxes"],
133493
+ ["passerby", "passersby"]
133494
+ ].forEach(function(rule) {
133495
+ return pluralize2.addIrregularRule(rule[0], rule[1]);
133496
+ });
133497
+ [
133498
+ [/s?$/i, "s"],
133499
+ [/[^\u0000-\u007F]$/i, "$0"],
133500
+ [/([^aeiou]ese)$/i, "$1"],
133501
+ [/(ax|test)is$/i, "$1es"],
133502
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
133503
+ [/(e[mn]u)s?$/i, "$1s"],
133504
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
133505
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
133506
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
133507
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
133508
+ [/(her|at|gr)o$/i, "$1oes"],
133509
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
133510
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
133511
+ [/sis$/i, "ses"],
133512
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
133513
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
133514
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
133515
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
133516
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
133517
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
133518
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
133519
+ [/(child)(?:ren)?$/i, "$1ren"],
133520
+ [/eaux$/i, "$0"],
133521
+ [/m[ae]n$/i, "men"],
133522
+ ["thou", "you"]
133523
+ ].forEach(function(rule) {
133524
+ return pluralize2.addPluralRule(rule[0], rule[1]);
133525
+ });
133526
+ [
133527
+ [/s$/i, ""],
133528
+ [/(ss)$/i, "$1"],
133529
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
133530
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
133531
+ [/ies$/i, "y"],
133532
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
133533
+ [/\b(mon|smil)ies$/i, "$1ey"],
133534
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
133535
+ [/(seraph|cherub)im$/i, "$1"],
133536
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
133537
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
133538
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
133539
+ [/(test)(?:is|es)$/i, "$1is"],
133540
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
133541
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
133542
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
133543
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
133544
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
133545
+ [/(matr|append)ices$/i, "$1ix"],
133546
+ [/(pe)(rson|ople)$/i, "$1rson"],
133547
+ [/(child)ren$/i, "$1"],
133548
+ [/(eau)x?$/i, "$1"],
133549
+ [/men$/i, "man"]
133550
+ ].forEach(function(rule) {
133551
+ return pluralize2.addSingularRule(rule[0], rule[1]);
133552
+ });
133553
+ [
133554
+ // Singular words with no plurals.
133555
+ "adulthood",
133556
+ "advice",
133557
+ "agenda",
133558
+ "aid",
133559
+ "aircraft",
133560
+ "alcohol",
133561
+ "ammo",
133562
+ "analytics",
133563
+ "anime",
133564
+ "athletics",
133565
+ "audio",
133566
+ "bison",
133567
+ "blood",
133568
+ "bream",
133569
+ "buffalo",
133570
+ "butter",
133571
+ "carp",
133572
+ "cash",
133573
+ "chassis",
133574
+ "chess",
133575
+ "clothing",
133576
+ "cod",
133577
+ "commerce",
133578
+ "cooperation",
133579
+ "corps",
133580
+ "debris",
133581
+ "diabetes",
133582
+ "digestion",
133583
+ "elk",
133584
+ "energy",
133585
+ "equipment",
133586
+ "excretion",
133587
+ "expertise",
133588
+ "firmware",
133589
+ "flounder",
133590
+ "fun",
133591
+ "gallows",
133592
+ "garbage",
133593
+ "graffiti",
133594
+ "hardware",
133595
+ "headquarters",
133596
+ "health",
133597
+ "herpes",
133598
+ "highjinks",
133599
+ "homework",
133600
+ "housework",
133601
+ "information",
133602
+ "jeans",
133603
+ "justice",
133604
+ "kudos",
133605
+ "labour",
133606
+ "literature",
133607
+ "machinery",
133608
+ "mackerel",
133609
+ "mail",
133610
+ "media",
133611
+ "mews",
133612
+ "moose",
133613
+ "music",
133614
+ "mud",
133615
+ "manga",
133616
+ "news",
133617
+ "only",
133618
+ "personnel",
133619
+ "pike",
133620
+ "plankton",
133621
+ "pliers",
133622
+ "police",
133623
+ "pollution",
133624
+ "premises",
133625
+ "rain",
133626
+ "research",
133627
+ "rice",
133628
+ "salmon",
133629
+ "scissors",
133630
+ "series",
133631
+ "sewage",
133632
+ "shambles",
133633
+ "shrimp",
133634
+ "software",
133635
+ "species",
133636
+ "staff",
133637
+ "swine",
133638
+ "tennis",
133639
+ "traffic",
133640
+ "transportation",
133641
+ "trout",
133642
+ "tuna",
133643
+ "wealth",
133644
+ "welfare",
133645
+ "whiting",
133646
+ "wildebeest",
133647
+ "wildlife",
133648
+ "you",
133649
+ /pok[eé]mon$/i,
133650
+ // Regexes.
133651
+ /[^aeiou]ese$/i,
133652
+ // "chinese", "japanese"
133653
+ /deer$/i,
133654
+ // "deer", "reindeer"
133655
+ /fish$/i,
133656
+ // "fish", "blowfish", "angelfish"
133657
+ /measles$/i,
133658
+ /o[iu]s$/i,
133659
+ // "carnivorous"
133660
+ /pox$/i,
133661
+ // "chickpox", "smallpox"
133662
+ /sheep$/i
133663
+ ].forEach(pluralize2.addUncountableRule);
133664
+ return pluralize2;
133665
+ });
133666
+ })(pluralize);
133667
+ var pluralizeExports = pluralize.exports;
133668
+ const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
133669
+ plur.addPluralRule("glomerulus", "glomeruli");
133670
+ plur.addPluralRule("interstitium", "interstitia");
133317
133671
  function fromEntries(iterable) {
133318
133672
  return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
133319
133673
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, b, O } from "./index-82db596e.js";
1
+ import { c, b, O } from "./index-902940dd.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-82db596e.js";
1
+ import { B as BaseDecoder } from "./index-902940dd.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
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-82db596e.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-902940dd.js";
3
3
  import "react";
4
4
  import "@vitessce/vit-s";
5
5
  var LercDecode = { exports: {} };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-82db596e.js";
1
+ import { B as BaseDecoder } from "./index-902940dd.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-82db596e.js";
1
+ import { B as BaseDecoder } from "./index-902940dd.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-82db596e.js";
1
+ import { B as BaseDecoder } from "./index-902940dd.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-82db596e.js";
1
+ import { B as BaseDecoder } from "./index-902940dd.js";
2
2
  import "react";
3
3
  import "@vitessce/vit-s";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/ome-tiff",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "author": "Gehlenborg Lab",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -19,12 +19,12 @@
19
19
  "ajv": "^6.10.0",
20
20
  "d3-array": "^2.4.0",
21
21
  "lodash-es": "^4.17.21",
22
- "@vitessce/constants-internal": "3.1.1",
23
- "@vitessce/gl": "3.1.1",
24
- "@vitessce/sets-utils": "3.1.1",
25
- "@vitessce/spatial-utils": "3.1.1",
26
- "@vitessce/utils": "3.1.1",
27
- "@vitessce/vit-s": "3.1.1"
22
+ "@vitessce/constants-internal": "3.1.3",
23
+ "@vitessce/gl": "3.1.3",
24
+ "@vitessce/sets-utils": "3.1.3",
25
+ "@vitessce/spatial-utils": "3.1.3",
26
+ "@vitessce/utils": "3.1.3",
27
+ "@vitessce/vit-s": "3.1.3"
28
28
  },
29
29
  "devDependencies": {
30
30
  "ajv": "^6.10.0"