@vitessce/neuroglancer 3.9.3 → 3.9.4
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.
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import React__default from "react";
|
|
5
|
-
import { g as getDefaultExportFromCjs, c as commonjsGlobal, d as diffCameraState } from "./index-
|
|
5
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal, d as diffCameraState } from "./index-Wdrc02VW.js";
|
|
6
6
|
var es6_object_assign = {};
|
|
7
7
|
var _global = { exports: {} };
|
|
8
8
|
var hasRequired_global;
|
|
@@ -24584,6 +24584,27 @@ function useForkRef$1(...refs) {
|
|
|
24584
24584
|
};
|
|
24585
24585
|
}, refs);
|
|
24586
24586
|
}
|
|
24587
|
+
function _extends$1() {
|
|
24588
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
24589
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
24590
|
+
var t = arguments[e];
|
|
24591
|
+
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
|
|
24592
|
+
}
|
|
24593
|
+
return n;
|
|
24594
|
+
}, _extends$1.apply(null, arguments);
|
|
24595
|
+
}
|
|
24596
|
+
function _setPrototypeOf(t, e) {
|
|
24597
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
24598
|
+
return t2.__proto__ = e2, t2;
|
|
24599
|
+
}, _setPrototypeOf(t, e);
|
|
24600
|
+
}
|
|
24601
|
+
function _inheritsLoose(t, o) {
|
|
24602
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
24603
|
+
}
|
|
24604
|
+
function _assertThisInitialized(e) {
|
|
24605
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24606
|
+
return e;
|
|
24607
|
+
}
|
|
24587
24608
|
function hasCorrectMainProperty(obj) {
|
|
24588
24609
|
return typeof obj.main === "string";
|
|
24589
24610
|
}
|
|
@@ -25182,7 +25203,7 @@ var defineProperty = function(obj, key, value) {
|
|
|
25182
25203
|
}
|
|
25183
25204
|
return obj;
|
|
25184
25205
|
};
|
|
25185
|
-
var _extends
|
|
25206
|
+
var _extends = Object.assign || function(target) {
|
|
25186
25207
|
for (var i = 1; i < arguments.length; i++) {
|
|
25187
25208
|
var source = arguments[i];
|
|
25188
25209
|
for (var key in source) {
|
|
@@ -25194,7 +25215,7 @@ var _extends$1 = Object.assign || function(target) {
|
|
|
25194
25215
|
return target;
|
|
25195
25216
|
};
|
|
25196
25217
|
function getClientRect(offsets) {
|
|
25197
|
-
return _extends
|
|
25218
|
+
return _extends({}, offsets, {
|
|
25198
25219
|
right: offsets.left + offsets.width,
|
|
25199
25220
|
bottom: offsets.top + offsets.height
|
|
25200
25221
|
});
|
|
@@ -25378,7 +25399,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
|
|
|
25378
25399
|
}
|
|
25379
25400
|
};
|
|
25380
25401
|
var sortedAreas = Object.keys(rects).map(function(key) {
|
|
25381
|
-
return _extends
|
|
25402
|
+
return _extends({
|
|
25382
25403
|
key
|
|
25383
25404
|
}, rects[key], {
|
|
25384
25405
|
area: getArea(rects[key])
|
|
@@ -25686,9 +25707,9 @@ function computeStyle(data, options) {
|
|
|
25686
25707
|
var attributes = {
|
|
25687
25708
|
"x-placement": data.placement
|
|
25688
25709
|
};
|
|
25689
|
-
data.attributes = _extends
|
|
25690
|
-
data.styles = _extends
|
|
25691
|
-
data.arrowStyles = _extends
|
|
25710
|
+
data.attributes = _extends({}, attributes, data.attributes);
|
|
25711
|
+
data.styles = _extends({}, styles, data.styles);
|
|
25712
|
+
data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
|
|
25692
25713
|
return data;
|
|
25693
25714
|
}
|
|
25694
25715
|
function isModifierRequired(modifiers2, requestingName, requestedName) {
|
|
@@ -25823,7 +25844,7 @@ function flip(data, options) {
|
|
|
25823
25844
|
variation = getOppositeVariation(variation);
|
|
25824
25845
|
}
|
|
25825
25846
|
data.placement = placement + (variation ? "-" + variation : "");
|
|
25826
|
-
data.offsets.popper = _extends
|
|
25847
|
+
data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
|
25827
25848
|
data = runModifiers(data.instance.modifiers, data, "flip");
|
|
25828
25849
|
}
|
|
25829
25850
|
});
|
|
@@ -25982,7 +26003,7 @@ function preventOverflow(data, options) {
|
|
|
25982
26003
|
};
|
|
25983
26004
|
order.forEach(function(placement) {
|
|
25984
26005
|
var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
|
|
25985
|
-
popper = _extends
|
|
26006
|
+
popper = _extends({}, popper, check[side](placement));
|
|
25986
26007
|
});
|
|
25987
26008
|
data.offsets.popper = popper;
|
|
25988
26009
|
return data;
|
|
@@ -26000,7 +26021,7 @@ function shift(data) {
|
|
|
26000
26021
|
start: defineProperty({}, side, reference[side]),
|
|
26001
26022
|
end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
|
|
26002
26023
|
};
|
|
26003
|
-
data.offsets.popper = _extends
|
|
26024
|
+
data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
|
|
26004
26025
|
}
|
|
26005
26026
|
return data;
|
|
26006
26027
|
}
|
|
@@ -26403,7 +26424,7 @@ var Popper = function() {
|
|
|
26403
26424
|
return requestAnimationFrame(_this.update);
|
|
26404
26425
|
};
|
|
26405
26426
|
this.update = debounce(this.update.bind(this));
|
|
26406
|
-
this.options = _extends
|
|
26427
|
+
this.options = _extends({}, Popper2.Defaults, options);
|
|
26407
26428
|
this.state = {
|
|
26408
26429
|
isDestroyed: false,
|
|
26409
26430
|
isCreated: false,
|
|
@@ -26412,11 +26433,11 @@ var Popper = function() {
|
|
|
26412
26433
|
this.reference = reference && reference.jquery ? reference[0] : reference;
|
|
26413
26434
|
this.popper = popper && popper.jquery ? popper[0] : popper;
|
|
26414
26435
|
this.options.modifiers = {};
|
|
26415
|
-
Object.keys(_extends
|
|
26416
|
-
_this.options.modifiers[name] = _extends
|
|
26436
|
+
Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name) {
|
|
26437
|
+
_this.options.modifiers[name] = _extends({}, Popper2.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
|
|
26417
26438
|
});
|
|
26418
26439
|
this.modifiers = Object.keys(this.options.modifiers).map(function(name) {
|
|
26419
|
-
return _extends
|
|
26440
|
+
return _extends({
|
|
26420
26441
|
name
|
|
26421
26442
|
}, _this.options.modifiers[name]);
|
|
26422
26443
|
}).sort(function(a, b) {
|
|
@@ -26660,38 +26681,6 @@ function ScopedGlobalStyles(props) {
|
|
|
26660
26681
|
}, [parentClassName, styles]);
|
|
26661
26682
|
return component;
|
|
26662
26683
|
}
|
|
26663
|
-
function _extends() {
|
|
26664
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
26665
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
26666
|
-
var source = arguments[i];
|
|
26667
|
-
for (var key in source) {
|
|
26668
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
26669
|
-
target[key] = source[key];
|
|
26670
|
-
}
|
|
26671
|
-
}
|
|
26672
|
-
}
|
|
26673
|
-
return target;
|
|
26674
|
-
};
|
|
26675
|
-
return _extends.apply(this, arguments);
|
|
26676
|
-
}
|
|
26677
|
-
function _assertThisInitialized(self2) {
|
|
26678
|
-
if (self2 === void 0) {
|
|
26679
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
26680
|
-
}
|
|
26681
|
-
return self2;
|
|
26682
|
-
}
|
|
26683
|
-
function _setPrototypeOf(o, p) {
|
|
26684
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
26685
|
-
o2.__proto__ = p2;
|
|
26686
|
-
return o2;
|
|
26687
|
-
};
|
|
26688
|
-
return _setPrototypeOf(o, p);
|
|
26689
|
-
}
|
|
26690
|
-
function _inheritsLoose(subClass, superClass) {
|
|
26691
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
26692
|
-
subClass.prototype.constructor = subClass;
|
|
26693
|
-
_setPrototypeOf(subClass, superClass);
|
|
26694
|
-
}
|
|
26695
26684
|
var safeIsNaN = Number.isNaN || function ponyfill(value) {
|
|
26696
26685
|
return typeof value === "number" && value !== value;
|
|
26697
26686
|
};
|
|
@@ -27059,7 +27048,7 @@ function createListComponent(_ref) {
|
|
|
27059
27048
|
className,
|
|
27060
27049
|
onScroll,
|
|
27061
27050
|
ref: this._outerRefSetter,
|
|
27062
|
-
style: _extends({
|
|
27051
|
+
style: _extends$1({
|
|
27063
27052
|
position: "relative",
|
|
27064
27053
|
height: height2,
|
|
27065
27054
|
width: width2,
|
|
@@ -29976,7 +29965,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
29976
29965
|
}
|
|
29977
29966
|
));
|
|
29978
29967
|
}
|
|
29979
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
29968
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-BCg93QGV.js"));
|
|
29980
29969
|
function createWorker() {
|
|
29981
29970
|
return new WorkerFactory();
|
|
29982
29971
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/neuroglancer",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
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
|
"three": "^0.154.0",
|
|
22
22
|
"react": "18.3.1",
|
|
23
|
-
"@vitessce/neuroglancer-workers": "3.9.
|
|
24
|
-
"@vitessce/styles": "3.9.
|
|
25
|
-
"@vitessce/constants-internal": "3.9.
|
|
26
|
-
"@vitessce/vit-s": "3.9.
|
|
27
|
-
"@vitessce/utils": "3.9.
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
23
|
+
"@vitessce/neuroglancer-workers": "3.9.4",
|
|
24
|
+
"@vitessce/styles": "3.9.4",
|
|
25
|
+
"@vitessce/constants-internal": "3.9.4",
|
|
26
|
+
"@vitessce/vit-s": "3.9.4",
|
|
27
|
+
"@vitessce/sets-utils": "3.9.4",
|
|
28
|
+
"@vitessce/tooltip": "3.9.4",
|
|
29
|
+
"@vitessce/utils": "3.9.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/jest-dom": "^6.6.3",
|