@vitessce/glb 4.0.4 → 4.0.5
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.
- package/dist/index.js +615 -0
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -51,6 +51,621 @@ class AbstractTwoStepLoader extends AbstractLoader {
|
|
|
51
51
|
this.dataSource = dataSource;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
+
function getDefaultExportFromCjs(x) {
|
|
55
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
56
|
+
}
|
|
57
|
+
var loglevel$1 = { exports: {} };
|
|
58
|
+
var loglevel = loglevel$1.exports;
|
|
59
|
+
var hasRequiredLoglevel;
|
|
60
|
+
function requireLoglevel() {
|
|
61
|
+
if (hasRequiredLoglevel) return loglevel$1.exports;
|
|
62
|
+
hasRequiredLoglevel = 1;
|
|
63
|
+
(function(module) {
|
|
64
|
+
(function(root, definition) {
|
|
65
|
+
if (module.exports) {
|
|
66
|
+
module.exports = definition();
|
|
67
|
+
} else {
|
|
68
|
+
root.log = definition();
|
|
69
|
+
}
|
|
70
|
+
})(loglevel, function() {
|
|
71
|
+
var noop = function() {
|
|
72
|
+
};
|
|
73
|
+
var undefinedType = "undefined";
|
|
74
|
+
var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
75
|
+
var logMethods = [
|
|
76
|
+
"trace",
|
|
77
|
+
"debug",
|
|
78
|
+
"info",
|
|
79
|
+
"warn",
|
|
80
|
+
"error"
|
|
81
|
+
];
|
|
82
|
+
var _loggersByName = {};
|
|
83
|
+
var defaultLogger = null;
|
|
84
|
+
function bindMethod(obj, methodName) {
|
|
85
|
+
var method = obj[methodName];
|
|
86
|
+
if (typeof method.bind === "function") {
|
|
87
|
+
return method.bind(obj);
|
|
88
|
+
} else {
|
|
89
|
+
try {
|
|
90
|
+
return Function.prototype.bind.call(method, obj);
|
|
91
|
+
} catch (e) {
|
|
92
|
+
return function() {
|
|
93
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function traceForIE() {
|
|
99
|
+
if (console.log) {
|
|
100
|
+
if (console.log.apply) {
|
|
101
|
+
console.log.apply(console, arguments);
|
|
102
|
+
} else {
|
|
103
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (console.trace) console.trace();
|
|
107
|
+
}
|
|
108
|
+
function realMethod(methodName) {
|
|
109
|
+
if (methodName === "debug") {
|
|
110
|
+
methodName = "log";
|
|
111
|
+
}
|
|
112
|
+
if (typeof console === undefinedType) {
|
|
113
|
+
return false;
|
|
114
|
+
} else if (methodName === "trace" && isIE) {
|
|
115
|
+
return traceForIE;
|
|
116
|
+
} else if (console[methodName] !== void 0) {
|
|
117
|
+
return bindMethod(console, methodName);
|
|
118
|
+
} else if (console.log !== void 0) {
|
|
119
|
+
return bindMethod(console, "log");
|
|
120
|
+
} else {
|
|
121
|
+
return noop;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function replaceLoggingMethods() {
|
|
125
|
+
var level = this.getLevel();
|
|
126
|
+
for (var i = 0; i < logMethods.length; i++) {
|
|
127
|
+
var methodName = logMethods[i];
|
|
128
|
+
this[methodName] = i < level ? noop : this.methodFactory(methodName, level, this.name);
|
|
129
|
+
}
|
|
130
|
+
this.log = this.debug;
|
|
131
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
132
|
+
return "No console available for logging";
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
136
|
+
return function() {
|
|
137
|
+
if (typeof console !== undefinedType) {
|
|
138
|
+
replaceLoggingMethods.call(this);
|
|
139
|
+
this[methodName].apply(this, arguments);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
144
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
145
|
+
}
|
|
146
|
+
function Logger(name, factory) {
|
|
147
|
+
var self = this;
|
|
148
|
+
var inheritedLevel;
|
|
149
|
+
var defaultLevel;
|
|
150
|
+
var userLevel;
|
|
151
|
+
var storageKey = "loglevel";
|
|
152
|
+
if (typeof name === "string") {
|
|
153
|
+
storageKey += ":" + name;
|
|
154
|
+
} else if (typeof name === "symbol") {
|
|
155
|
+
storageKey = void 0;
|
|
156
|
+
}
|
|
157
|
+
function persistLevelIfPossible(levelNum) {
|
|
158
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
159
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
160
|
+
try {
|
|
161
|
+
window.localStorage[storageKey] = levelName;
|
|
162
|
+
return;
|
|
163
|
+
} catch (ignore) {
|
|
164
|
+
}
|
|
165
|
+
try {
|
|
166
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
167
|
+
} catch (ignore) {
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function getPersistedLevel() {
|
|
171
|
+
var storedLevel;
|
|
172
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
173
|
+
try {
|
|
174
|
+
storedLevel = window.localStorage[storageKey];
|
|
175
|
+
} catch (ignore) {
|
|
176
|
+
}
|
|
177
|
+
if (typeof storedLevel === undefinedType) {
|
|
178
|
+
try {
|
|
179
|
+
var cookie = window.document.cookie;
|
|
180
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
181
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
182
|
+
if (location !== -1) {
|
|
183
|
+
storedLevel = /^([^;]+)/.exec(
|
|
184
|
+
cookie.slice(location + cookieName.length + 1)
|
|
185
|
+
)[1];
|
|
186
|
+
}
|
|
187
|
+
} catch (ignore) {
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (self.levels[storedLevel] === void 0) {
|
|
191
|
+
storedLevel = void 0;
|
|
192
|
+
}
|
|
193
|
+
return storedLevel;
|
|
194
|
+
}
|
|
195
|
+
function clearPersistedLevel() {
|
|
196
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
197
|
+
try {
|
|
198
|
+
window.localStorage.removeItem(storageKey);
|
|
199
|
+
} catch (ignore) {
|
|
200
|
+
}
|
|
201
|
+
try {
|
|
202
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
203
|
+
} catch (ignore) {
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function normalizeLevel(input) {
|
|
207
|
+
var level = input;
|
|
208
|
+
if (typeof level === "string" && self.levels[level.toUpperCase()] !== void 0) {
|
|
209
|
+
level = self.levels[level.toUpperCase()];
|
|
210
|
+
}
|
|
211
|
+
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
212
|
+
return level;
|
|
213
|
+
} else {
|
|
214
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
self.name = name;
|
|
218
|
+
self.levels = {
|
|
219
|
+
"TRACE": 0,
|
|
220
|
+
"DEBUG": 1,
|
|
221
|
+
"INFO": 2,
|
|
222
|
+
"WARN": 3,
|
|
223
|
+
"ERROR": 4,
|
|
224
|
+
"SILENT": 5
|
|
225
|
+
};
|
|
226
|
+
self.methodFactory = factory || defaultMethodFactory;
|
|
227
|
+
self.getLevel = function() {
|
|
228
|
+
if (userLevel != null) {
|
|
229
|
+
return userLevel;
|
|
230
|
+
} else if (defaultLevel != null) {
|
|
231
|
+
return defaultLevel;
|
|
232
|
+
} else {
|
|
233
|
+
return inheritedLevel;
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
self.setLevel = function(level, persist) {
|
|
237
|
+
userLevel = normalizeLevel(level);
|
|
238
|
+
if (persist !== false) {
|
|
239
|
+
persistLevelIfPossible(userLevel);
|
|
240
|
+
}
|
|
241
|
+
return replaceLoggingMethods.call(self);
|
|
242
|
+
};
|
|
243
|
+
self.setDefaultLevel = function(level) {
|
|
244
|
+
defaultLevel = normalizeLevel(level);
|
|
245
|
+
if (!getPersistedLevel()) {
|
|
246
|
+
self.setLevel(level, false);
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
self.resetLevel = function() {
|
|
250
|
+
userLevel = null;
|
|
251
|
+
clearPersistedLevel();
|
|
252
|
+
replaceLoggingMethods.call(self);
|
|
253
|
+
};
|
|
254
|
+
self.enableAll = function(persist) {
|
|
255
|
+
self.setLevel(self.levels.TRACE, persist);
|
|
256
|
+
};
|
|
257
|
+
self.disableAll = function(persist) {
|
|
258
|
+
self.setLevel(self.levels.SILENT, persist);
|
|
259
|
+
};
|
|
260
|
+
self.rebuild = function() {
|
|
261
|
+
if (defaultLogger !== self) {
|
|
262
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
263
|
+
}
|
|
264
|
+
replaceLoggingMethods.call(self);
|
|
265
|
+
if (defaultLogger === self) {
|
|
266
|
+
for (var childName in _loggersByName) {
|
|
267
|
+
_loggersByName[childName].rebuild();
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
inheritedLevel = normalizeLevel(
|
|
272
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
273
|
+
);
|
|
274
|
+
var initialLevel = getPersistedLevel();
|
|
275
|
+
if (initialLevel != null) {
|
|
276
|
+
userLevel = normalizeLevel(initialLevel);
|
|
277
|
+
}
|
|
278
|
+
replaceLoggingMethods.call(self);
|
|
279
|
+
}
|
|
280
|
+
defaultLogger = new Logger();
|
|
281
|
+
defaultLogger.getLogger = function getLogger(name) {
|
|
282
|
+
if (typeof name !== "symbol" && typeof name !== "string" || name === "") {
|
|
283
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
284
|
+
}
|
|
285
|
+
var logger = _loggersByName[name];
|
|
286
|
+
if (!logger) {
|
|
287
|
+
logger = _loggersByName[name] = new Logger(
|
|
288
|
+
name,
|
|
289
|
+
defaultLogger.methodFactory
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
return logger;
|
|
293
|
+
};
|
|
294
|
+
var _log = typeof window !== undefinedType ? window.log : void 0;
|
|
295
|
+
defaultLogger.noConflict = function() {
|
|
296
|
+
if (typeof window !== undefinedType && window.log === defaultLogger) {
|
|
297
|
+
window.log = _log;
|
|
298
|
+
}
|
|
299
|
+
return defaultLogger;
|
|
300
|
+
};
|
|
301
|
+
defaultLogger.getLoggers = function getLoggers() {
|
|
302
|
+
return _loggersByName;
|
|
303
|
+
};
|
|
304
|
+
defaultLogger["default"] = defaultLogger;
|
|
305
|
+
return defaultLogger;
|
|
306
|
+
});
|
|
307
|
+
})(loglevel$1);
|
|
308
|
+
return loglevel$1.exports;
|
|
309
|
+
}
|
|
310
|
+
requireLoglevel();
|
|
311
|
+
function commonjsRequire(path) {
|
|
312
|
+
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.');
|
|
313
|
+
}
|
|
314
|
+
var pluralize$1 = { exports: {} };
|
|
315
|
+
var pluralize = pluralize$1.exports;
|
|
316
|
+
var hasRequiredPluralize;
|
|
317
|
+
function requirePluralize() {
|
|
318
|
+
if (hasRequiredPluralize) return pluralize$1.exports;
|
|
319
|
+
hasRequiredPluralize = 1;
|
|
320
|
+
(function(module, exports) {
|
|
321
|
+
(function(root, pluralize2) {
|
|
322
|
+
if (typeof commonjsRequire === "function" && true && true) {
|
|
323
|
+
module.exports = pluralize2();
|
|
324
|
+
} else {
|
|
325
|
+
root.pluralize = pluralize2();
|
|
326
|
+
}
|
|
327
|
+
})(pluralize, function() {
|
|
328
|
+
var pluralRules = [];
|
|
329
|
+
var singularRules = [];
|
|
330
|
+
var uncountables = {};
|
|
331
|
+
var irregularPlurals = {};
|
|
332
|
+
var irregularSingles = {};
|
|
333
|
+
function sanitizeRule(rule) {
|
|
334
|
+
if (typeof rule === "string") {
|
|
335
|
+
return new RegExp("^" + rule + "$", "i");
|
|
336
|
+
}
|
|
337
|
+
return rule;
|
|
338
|
+
}
|
|
339
|
+
function restoreCase(word, token) {
|
|
340
|
+
if (word === token) return token;
|
|
341
|
+
if (word === word.toLowerCase()) return token.toLowerCase();
|
|
342
|
+
if (word === word.toUpperCase()) return token.toUpperCase();
|
|
343
|
+
if (word[0] === word[0].toUpperCase()) {
|
|
344
|
+
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
345
|
+
}
|
|
346
|
+
return token.toLowerCase();
|
|
347
|
+
}
|
|
348
|
+
function interpolate(str, args) {
|
|
349
|
+
return str.replace(/\$(\d{1,2})/g, function(match, index) {
|
|
350
|
+
return args[index] || "";
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
function replace(word, rule) {
|
|
354
|
+
return word.replace(rule[0], function(match, index) {
|
|
355
|
+
var result = interpolate(rule[1], arguments);
|
|
356
|
+
if (match === "") {
|
|
357
|
+
return restoreCase(word[index - 1], result);
|
|
358
|
+
}
|
|
359
|
+
return restoreCase(match, result);
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
function sanitizeWord(token, word, rules) {
|
|
363
|
+
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
364
|
+
return word;
|
|
365
|
+
}
|
|
366
|
+
var len = rules.length;
|
|
367
|
+
while (len--) {
|
|
368
|
+
var rule = rules[len];
|
|
369
|
+
if (rule[0].test(word)) return replace(word, rule);
|
|
370
|
+
}
|
|
371
|
+
return word;
|
|
372
|
+
}
|
|
373
|
+
function replaceWord(replaceMap, keepMap, rules) {
|
|
374
|
+
return function(word) {
|
|
375
|
+
var token = word.toLowerCase();
|
|
376
|
+
if (keepMap.hasOwnProperty(token)) {
|
|
377
|
+
return restoreCase(word, token);
|
|
378
|
+
}
|
|
379
|
+
if (replaceMap.hasOwnProperty(token)) {
|
|
380
|
+
return restoreCase(word, replaceMap[token]);
|
|
381
|
+
}
|
|
382
|
+
return sanitizeWord(token, word, rules);
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
386
|
+
return function(word) {
|
|
387
|
+
var token = word.toLowerCase();
|
|
388
|
+
if (keepMap.hasOwnProperty(token)) return true;
|
|
389
|
+
if (replaceMap.hasOwnProperty(token)) return false;
|
|
390
|
+
return sanitizeWord(token, token, rules) === token;
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function pluralize2(word, count, inclusive) {
|
|
394
|
+
var pluralized = count === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
395
|
+
return (inclusive ? count + " " : "") + pluralized;
|
|
396
|
+
}
|
|
397
|
+
pluralize2.plural = replaceWord(
|
|
398
|
+
irregularSingles,
|
|
399
|
+
irregularPlurals,
|
|
400
|
+
pluralRules
|
|
401
|
+
);
|
|
402
|
+
pluralize2.isPlural = checkWord(
|
|
403
|
+
irregularSingles,
|
|
404
|
+
irregularPlurals,
|
|
405
|
+
pluralRules
|
|
406
|
+
);
|
|
407
|
+
pluralize2.singular = replaceWord(
|
|
408
|
+
irregularPlurals,
|
|
409
|
+
irregularSingles,
|
|
410
|
+
singularRules
|
|
411
|
+
);
|
|
412
|
+
pluralize2.isSingular = checkWord(
|
|
413
|
+
irregularPlurals,
|
|
414
|
+
irregularSingles,
|
|
415
|
+
singularRules
|
|
416
|
+
);
|
|
417
|
+
pluralize2.addPluralRule = function(rule, replacement) {
|
|
418
|
+
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
419
|
+
};
|
|
420
|
+
pluralize2.addSingularRule = function(rule, replacement) {
|
|
421
|
+
singularRules.push([sanitizeRule(rule), replacement]);
|
|
422
|
+
};
|
|
423
|
+
pluralize2.addUncountableRule = function(word) {
|
|
424
|
+
if (typeof word === "string") {
|
|
425
|
+
uncountables[word.toLowerCase()] = true;
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
pluralize2.addPluralRule(word, "$0");
|
|
429
|
+
pluralize2.addSingularRule(word, "$0");
|
|
430
|
+
};
|
|
431
|
+
pluralize2.addIrregularRule = function(single, plural) {
|
|
432
|
+
plural = plural.toLowerCase();
|
|
433
|
+
single = single.toLowerCase();
|
|
434
|
+
irregularSingles[single] = plural;
|
|
435
|
+
irregularPlurals[plural] = single;
|
|
436
|
+
};
|
|
437
|
+
[
|
|
438
|
+
// Pronouns.
|
|
439
|
+
["I", "we"],
|
|
440
|
+
["me", "us"],
|
|
441
|
+
["he", "they"],
|
|
442
|
+
["she", "they"],
|
|
443
|
+
["them", "them"],
|
|
444
|
+
["myself", "ourselves"],
|
|
445
|
+
["yourself", "yourselves"],
|
|
446
|
+
["itself", "themselves"],
|
|
447
|
+
["herself", "themselves"],
|
|
448
|
+
["himself", "themselves"],
|
|
449
|
+
["themself", "themselves"],
|
|
450
|
+
["is", "are"],
|
|
451
|
+
["was", "were"],
|
|
452
|
+
["has", "have"],
|
|
453
|
+
["this", "these"],
|
|
454
|
+
["that", "those"],
|
|
455
|
+
// Words ending in with a consonant and `o`.
|
|
456
|
+
["echo", "echoes"],
|
|
457
|
+
["dingo", "dingoes"],
|
|
458
|
+
["volcano", "volcanoes"],
|
|
459
|
+
["tornado", "tornadoes"],
|
|
460
|
+
["torpedo", "torpedoes"],
|
|
461
|
+
// Ends with `us`.
|
|
462
|
+
["genus", "genera"],
|
|
463
|
+
["viscus", "viscera"],
|
|
464
|
+
// Ends with `ma`.
|
|
465
|
+
["stigma", "stigmata"],
|
|
466
|
+
["stoma", "stomata"],
|
|
467
|
+
["dogma", "dogmata"],
|
|
468
|
+
["lemma", "lemmata"],
|
|
469
|
+
["schema", "schemata"],
|
|
470
|
+
["anathema", "anathemata"],
|
|
471
|
+
// Other irregular rules.
|
|
472
|
+
["ox", "oxen"],
|
|
473
|
+
["axe", "axes"],
|
|
474
|
+
["die", "dice"],
|
|
475
|
+
["yes", "yeses"],
|
|
476
|
+
["foot", "feet"],
|
|
477
|
+
["eave", "eaves"],
|
|
478
|
+
["goose", "geese"],
|
|
479
|
+
["tooth", "teeth"],
|
|
480
|
+
["quiz", "quizzes"],
|
|
481
|
+
["human", "humans"],
|
|
482
|
+
["proof", "proofs"],
|
|
483
|
+
["carve", "carves"],
|
|
484
|
+
["valve", "valves"],
|
|
485
|
+
["looey", "looies"],
|
|
486
|
+
["thief", "thieves"],
|
|
487
|
+
["groove", "grooves"],
|
|
488
|
+
["pickaxe", "pickaxes"],
|
|
489
|
+
["passerby", "passersby"]
|
|
490
|
+
].forEach(function(rule) {
|
|
491
|
+
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
492
|
+
});
|
|
493
|
+
[
|
|
494
|
+
[/s?$/i, "s"],
|
|
495
|
+
[/[^\u0000-\u007F]$/i, "$0"],
|
|
496
|
+
[/([^aeiou]ese)$/i, "$1"],
|
|
497
|
+
[/(ax|test)is$/i, "$1es"],
|
|
498
|
+
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
499
|
+
[/(e[mn]u)s?$/i, "$1s"],
|
|
500
|
+
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
501
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
502
|
+
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
503
|
+
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
504
|
+
[/(her|at|gr)o$/i, "$1oes"],
|
|
505
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
506
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
507
|
+
[/sis$/i, "ses"],
|
|
508
|
+
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
509
|
+
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
510
|
+
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
511
|
+
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
512
|
+
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
513
|
+
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
514
|
+
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
515
|
+
[/(child)(?:ren)?$/i, "$1ren"],
|
|
516
|
+
[/eaux$/i, "$0"],
|
|
517
|
+
[/m[ae]n$/i, "men"],
|
|
518
|
+
["thou", "you"]
|
|
519
|
+
].forEach(function(rule) {
|
|
520
|
+
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
521
|
+
});
|
|
522
|
+
[
|
|
523
|
+
[/s$/i, ""],
|
|
524
|
+
[/(ss)$/i, "$1"],
|
|
525
|
+
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
526
|
+
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
527
|
+
[/ies$/i, "y"],
|
|
528
|
+
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
529
|
+
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
530
|
+
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
531
|
+
[/(seraph|cherub)im$/i, "$1"],
|
|
532
|
+
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
533
|
+
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
534
|
+
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
535
|
+
[/(test)(?:is|es)$/i, "$1is"],
|
|
536
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
537
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
538
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
539
|
+
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
540
|
+
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
541
|
+
[/(matr|append)ices$/i, "$1ix"],
|
|
542
|
+
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
543
|
+
[/(child)ren$/i, "$1"],
|
|
544
|
+
[/(eau)x?$/i, "$1"],
|
|
545
|
+
[/men$/i, "man"]
|
|
546
|
+
].forEach(function(rule) {
|
|
547
|
+
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
548
|
+
});
|
|
549
|
+
[
|
|
550
|
+
// Singular words with no plurals.
|
|
551
|
+
"adulthood",
|
|
552
|
+
"advice",
|
|
553
|
+
"agenda",
|
|
554
|
+
"aid",
|
|
555
|
+
"aircraft",
|
|
556
|
+
"alcohol",
|
|
557
|
+
"ammo",
|
|
558
|
+
"analytics",
|
|
559
|
+
"anime",
|
|
560
|
+
"athletics",
|
|
561
|
+
"audio",
|
|
562
|
+
"bison",
|
|
563
|
+
"blood",
|
|
564
|
+
"bream",
|
|
565
|
+
"buffalo",
|
|
566
|
+
"butter",
|
|
567
|
+
"carp",
|
|
568
|
+
"cash",
|
|
569
|
+
"chassis",
|
|
570
|
+
"chess",
|
|
571
|
+
"clothing",
|
|
572
|
+
"cod",
|
|
573
|
+
"commerce",
|
|
574
|
+
"cooperation",
|
|
575
|
+
"corps",
|
|
576
|
+
"debris",
|
|
577
|
+
"diabetes",
|
|
578
|
+
"digestion",
|
|
579
|
+
"elk",
|
|
580
|
+
"energy",
|
|
581
|
+
"equipment",
|
|
582
|
+
"excretion",
|
|
583
|
+
"expertise",
|
|
584
|
+
"firmware",
|
|
585
|
+
"flounder",
|
|
586
|
+
"fun",
|
|
587
|
+
"gallows",
|
|
588
|
+
"garbage",
|
|
589
|
+
"graffiti",
|
|
590
|
+
"hardware",
|
|
591
|
+
"headquarters",
|
|
592
|
+
"health",
|
|
593
|
+
"herpes",
|
|
594
|
+
"highjinks",
|
|
595
|
+
"homework",
|
|
596
|
+
"housework",
|
|
597
|
+
"information",
|
|
598
|
+
"jeans",
|
|
599
|
+
"justice",
|
|
600
|
+
"kudos",
|
|
601
|
+
"labour",
|
|
602
|
+
"literature",
|
|
603
|
+
"machinery",
|
|
604
|
+
"mackerel",
|
|
605
|
+
"mail",
|
|
606
|
+
"media",
|
|
607
|
+
"mews",
|
|
608
|
+
"moose",
|
|
609
|
+
"music",
|
|
610
|
+
"mud",
|
|
611
|
+
"manga",
|
|
612
|
+
"news",
|
|
613
|
+
"only",
|
|
614
|
+
"personnel",
|
|
615
|
+
"pike",
|
|
616
|
+
"plankton",
|
|
617
|
+
"pliers",
|
|
618
|
+
"police",
|
|
619
|
+
"pollution",
|
|
620
|
+
"premises",
|
|
621
|
+
"rain",
|
|
622
|
+
"research",
|
|
623
|
+
"rice",
|
|
624
|
+
"salmon",
|
|
625
|
+
"scissors",
|
|
626
|
+
"series",
|
|
627
|
+
"sewage",
|
|
628
|
+
"shambles",
|
|
629
|
+
"shrimp",
|
|
630
|
+
"software",
|
|
631
|
+
"species",
|
|
632
|
+
"staff",
|
|
633
|
+
"swine",
|
|
634
|
+
"tennis",
|
|
635
|
+
"traffic",
|
|
636
|
+
"transportation",
|
|
637
|
+
"trout",
|
|
638
|
+
"tuna",
|
|
639
|
+
"wealth",
|
|
640
|
+
"welfare",
|
|
641
|
+
"whiting",
|
|
642
|
+
"wildebeest",
|
|
643
|
+
"wildlife",
|
|
644
|
+
"you",
|
|
645
|
+
/pok[eé]mon$/i,
|
|
646
|
+
// Regexes.
|
|
647
|
+
/[^aeiou]ese$/i,
|
|
648
|
+
// "chinese", "japanese"
|
|
649
|
+
/deer$/i,
|
|
650
|
+
// "deer", "reindeer"
|
|
651
|
+
/fish$/i,
|
|
652
|
+
// "fish", "blowfish", "angelfish"
|
|
653
|
+
/measles$/i,
|
|
654
|
+
/o[iu]s$/i,
|
|
655
|
+
// "carnivorous"
|
|
656
|
+
/pox$/i,
|
|
657
|
+
// "chickpox", "smallpox"
|
|
658
|
+
/sheep$/i
|
|
659
|
+
].forEach(pluralize2.addUncountableRule);
|
|
660
|
+
return pluralize2;
|
|
661
|
+
});
|
|
662
|
+
})(pluralize$1);
|
|
663
|
+
return pluralize$1.exports;
|
|
664
|
+
}
|
|
665
|
+
var pluralizeExports = requirePluralize();
|
|
666
|
+
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
667
|
+
plur.addPluralRule("glomerulus", "glomeruli");
|
|
668
|
+
plur.addPluralRule("interstitium", "interstitia");
|
|
54
669
|
class GlbDataLoader extends AbstractTwoStepLoader {
|
|
55
670
|
async load() {
|
|
56
671
|
const { url, options } = this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/glb",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
|
-
"@vitessce/abstract": "4.0.
|
|
22
|
-
"@vitessce/error": "4.0.
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/utils": "4.0.
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
21
|
+
"@vitessce/abstract": "4.0.5",
|
|
22
|
+
"@vitessce/error": "4.0.5",
|
|
23
|
+
"@vitessce/constants-internal": "4.0.5",
|
|
24
|
+
"@vitessce/gl": "4.0.5",
|
|
25
|
+
"@vitessce/sets-utils": "4.0.5",
|
|
26
|
+
"@vitessce/spatial-utils": "4.0.5",
|
|
27
|
+
"@vitessce/image-utils": "4.0.5",
|
|
28
|
+
"@vitessce/utils": "4.0.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/three": "^0.162.0",
|