higlass 2.1.9 → 2.2.1
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/app/scripts/CombinedTrack.js +23 -0
- package/app/scripts/HiGlassComponent.jsx +23 -0
- package/app/scripts/LeftAxisTrack.js +12 -0
- package/app/scripts/configs/tracks-info.js +2 -1
- package/app/scripts/options-info.js +5 -0
- package/dist/app/scripts/CombinedTrack.d.ts +8 -0
- package/dist/app/scripts/HiGlassComponent.d.ts +1 -0
- package/dist/app/scripts/options-info.d.ts +176 -171
- package/dist/app/scripts/plugins/available-for-plugins.d.ts +13 -0
- package/dist/hglib.js +519 -440
- package/dist/hglib.min.js +87 -87
- package/dist/higlass.mjs +519 -440
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/higlass.mjs
CHANGED
|
@@ -12599,9 +12599,10 @@ const TRACKS_INFO = [osm, {
|
|
|
12599
12599
|
orientation: "1d-vertical",
|
|
12600
12600
|
name: "Left Axis",
|
|
12601
12601
|
thumbnail: svgVertical1DAxisIcon,
|
|
12602
|
-
availableOptions: ["minWidth"],
|
|
12602
|
+
availableOptions: ["minWidth", "reverseAxis"],
|
|
12603
12603
|
defaultOptions: {
|
|
12604
|
-
minWidth: 100
|
|
12604
|
+
minWidth: 100,
|
|
12605
|
+
reverseAxis: false
|
|
12605
12606
|
}
|
|
12606
12607
|
}, {
|
|
12607
12608
|
type: "top-axis",
|
|
@@ -13782,7 +13783,7 @@ const getXylofon = () => (
|
|
|
13782
13783
|
/** @type {const} */
|
|
13783
13784
|
[window, map$5((c) => c.charCodeAt(0))(
|
|
13784
13785
|
// @ts-expect-error - A global added by `vite.config.js`.
|
|
13785
|
-
"2.1
|
|
13786
|
+
"2.2.1"
|
|
13786
13787
|
).map((number3) => number3 <= 999 ? `00${number3}`.slice(-3) : number3).join("")]
|
|
13787
13788
|
);
|
|
13788
13789
|
const gradient = (steps, width2 = 1, height2 = 100, fromX = 0, fromY = 0, toX = 0, toY = 100) => {
|
|
@@ -14036,6 +14037,27 @@ let CombinedTrack = /* @__PURE__ */ function() {
|
|
|
14036
14037
|
}
|
|
14037
14038
|
return mouseOverHtml;
|
|
14038
14039
|
}
|
|
14040
|
+
/**
|
|
14041
|
+
* Get the uids of any items that are below the mouse
|
|
14042
|
+
*
|
|
14043
|
+
* @param {*} trackX
|
|
14044
|
+
* @param {*} trackY
|
|
14045
|
+
* @returns
|
|
14046
|
+
*/
|
|
14047
|
+
}, {
|
|
14048
|
+
key: "getMouseOverUids",
|
|
14049
|
+
value: function getMouseOverUids(trackX, trackY) {
|
|
14050
|
+
const mouseOverUids = [];
|
|
14051
|
+
for (const childTrack of this.childTracks) {
|
|
14052
|
+
if (childTrack.getMouseOverUids) {
|
|
14053
|
+
const trackMouseOverUids = childTrack.getMouseOverUids(trackX, trackY);
|
|
14054
|
+
if (trackMouseOverUids) {
|
|
14055
|
+
mouseOverUids.push(...trackMouseOverUids);
|
|
14056
|
+
}
|
|
14057
|
+
}
|
|
14058
|
+
}
|
|
14059
|
+
return mouseOverUids;
|
|
14060
|
+
}
|
|
14039
14061
|
}]);
|
|
14040
14062
|
}();
|
|
14041
14063
|
const isTrackOrChildTrack = (testTrack, track) => {
|
|
@@ -18754,15 +18776,15 @@ function __extends$3(d, b) {
|
|
|
18754
18776
|
}
|
|
18755
18777
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18756
18778
|
}
|
|
18757
|
-
var __assign$
|
|
18758
|
-
__assign$
|
|
18779
|
+
var __assign$2 = function() {
|
|
18780
|
+
__assign$2 = Object.assign || function __assign2(t) {
|
|
18759
18781
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18760
18782
|
s = arguments[i];
|
|
18761
18783
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
18762
18784
|
}
|
|
18763
18785
|
return t;
|
|
18764
18786
|
};
|
|
18765
|
-
return __assign$
|
|
18787
|
+
return __assign$2.apply(this, arguments);
|
|
18766
18788
|
};
|
|
18767
18789
|
function __rest$1(s, e3) {
|
|
18768
18790
|
var t = {};
|
|
@@ -18931,7 +18953,7 @@ function __generator(thisArg, body) {
|
|
|
18931
18953
|
return { value: op[0] ? op[1] : void 0, done: true };
|
|
18932
18954
|
}
|
|
18933
18955
|
}
|
|
18934
|
-
var __createBinding$
|
|
18956
|
+
var __createBinding$2 = Object.create ? function(o, m, k, k2) {
|
|
18935
18957
|
if (k2 === void 0) k2 = k;
|
|
18936
18958
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18937
18959
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -18945,7 +18967,7 @@ var __createBinding$3 = Object.create ? function(o, m, k, k2) {
|
|
|
18945
18967
|
o[k2] = m[k];
|
|
18946
18968
|
};
|
|
18947
18969
|
function __exportStar(m, o) {
|
|
18948
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding$
|
|
18970
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding$2(o, m, p);
|
|
18949
18971
|
}
|
|
18950
18972
|
function __values(o) {
|
|
18951
18973
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
@@ -19080,7 +19102,7 @@ function __makeTemplateObject(cooked, raw) {
|
|
|
19080
19102
|
}
|
|
19081
19103
|
return cooked;
|
|
19082
19104
|
}
|
|
19083
|
-
var __setModuleDefault$
|
|
19105
|
+
var __setModuleDefault$2 = Object.create ? function(o, v) {
|
|
19084
19106
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19085
19107
|
} : function(o, v) {
|
|
19086
19108
|
o["default"] = v;
|
|
@@ -19093,16 +19115,16 @@ var ownKeys = function(o) {
|
|
|
19093
19115
|
};
|
|
19094
19116
|
return ownKeys(o);
|
|
19095
19117
|
};
|
|
19096
|
-
function __importStar$
|
|
19118
|
+
function __importStar$2(mod2) {
|
|
19097
19119
|
if (mod2 && mod2.__esModule) return mod2;
|
|
19098
19120
|
var result = {};
|
|
19099
19121
|
if (mod2 != null) {
|
|
19100
|
-
for (var k = ownKeys(mod2), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$
|
|
19122
|
+
for (var k = ownKeys(mod2), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding$2(result, mod2, k[i]);
|
|
19101
19123
|
}
|
|
19102
|
-
__setModuleDefault$
|
|
19124
|
+
__setModuleDefault$2(result, mod2);
|
|
19103
19125
|
return result;
|
|
19104
19126
|
}
|
|
19105
|
-
function __importDefault$
|
|
19127
|
+
function __importDefault$5(mod2) {
|
|
19106
19128
|
return mod2 && mod2.__esModule ? mod2 : { default: mod2 };
|
|
19107
19129
|
}
|
|
19108
19130
|
function __classPrivateFieldGet(receiver, state, kind, f2) {
|
|
@@ -19187,7 +19209,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
|
19187
19209
|
}
|
|
19188
19210
|
const tslib_es6 = {
|
|
19189
19211
|
__extends: __extends$3,
|
|
19190
|
-
__assign: __assign$
|
|
19212
|
+
__assign: __assign$2,
|
|
19191
19213
|
__rest: __rest$1,
|
|
19192
19214
|
__decorate,
|
|
19193
19215
|
__param,
|
|
@@ -19198,7 +19220,7 @@ const tslib_es6 = {
|
|
|
19198
19220
|
__metadata,
|
|
19199
19221
|
__awaiter,
|
|
19200
19222
|
__generator,
|
|
19201
|
-
__createBinding: __createBinding$
|
|
19223
|
+
__createBinding: __createBinding$2,
|
|
19202
19224
|
__exportStar,
|
|
19203
19225
|
__values,
|
|
19204
19226
|
__read,
|
|
@@ -19210,8 +19232,8 @@ const tslib_es6 = {
|
|
|
19210
19232
|
__asyncDelegator,
|
|
19211
19233
|
__asyncValues,
|
|
19212
19234
|
__makeTemplateObject,
|
|
19213
|
-
__importStar: __importStar$
|
|
19214
|
-
__importDefault: __importDefault$
|
|
19235
|
+
__importStar: __importStar$2,
|
|
19236
|
+
__importDefault: __importDefault$5,
|
|
19215
19237
|
__classPrivateFieldGet,
|
|
19216
19238
|
__classPrivateFieldSet,
|
|
19217
19239
|
__classPrivateFieldIn,
|
|
@@ -19223,7 +19245,7 @@ const tslib_es6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
19223
19245
|
__proto__: null,
|
|
19224
19246
|
__addDisposableResource,
|
|
19225
19247
|
get __assign() {
|
|
19226
|
-
return __assign$
|
|
19248
|
+
return __assign$2;
|
|
19227
19249
|
},
|
|
19228
19250
|
__asyncDelegator,
|
|
19229
19251
|
__asyncGenerator,
|
|
@@ -19233,15 +19255,15 @@ const tslib_es6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
19233
19255
|
__classPrivateFieldGet,
|
|
19234
19256
|
__classPrivateFieldIn,
|
|
19235
19257
|
__classPrivateFieldSet,
|
|
19236
|
-
__createBinding: __createBinding$
|
|
19258
|
+
__createBinding: __createBinding$2,
|
|
19237
19259
|
__decorate,
|
|
19238
19260
|
__disposeResources,
|
|
19239
19261
|
__esDecorate,
|
|
19240
19262
|
__exportStar,
|
|
19241
19263
|
__extends: __extends$3,
|
|
19242
19264
|
__generator,
|
|
19243
|
-
__importDefault: __importDefault$
|
|
19244
|
-
__importStar: __importStar$
|
|
19265
|
+
__importDefault: __importDefault$5,
|
|
19266
|
+
__importStar: __importStar$2,
|
|
19245
19267
|
__makeTemplateObject,
|
|
19246
19268
|
__metadata,
|
|
19247
19269
|
__param,
|
|
@@ -19772,31 +19794,31 @@ var lib$8 = {};
|
|
|
19772
19794
|
value: true
|
|
19773
19795
|
});
|
|
19774
19796
|
exports2.Doctype = exports2.CDATA = exports2.Tag = exports2.Style = exports2.Script = exports2.Comment = exports2.Directive = exports2.Text = exports2.Root = exports2.isTag = exports2.ElementType = void 0;
|
|
19775
|
-
var
|
|
19776
|
-
(function(
|
|
19777
|
-
|
|
19778
|
-
|
|
19779
|
-
|
|
19780
|
-
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
|
|
19786
|
-
})(
|
|
19797
|
+
var ElementType;
|
|
19798
|
+
(function(ElementType2) {
|
|
19799
|
+
ElementType2["Root"] = "root";
|
|
19800
|
+
ElementType2["Text"] = "text";
|
|
19801
|
+
ElementType2["Directive"] = "directive";
|
|
19802
|
+
ElementType2["Comment"] = "comment";
|
|
19803
|
+
ElementType2["Script"] = "script";
|
|
19804
|
+
ElementType2["Style"] = "style";
|
|
19805
|
+
ElementType2["Tag"] = "tag";
|
|
19806
|
+
ElementType2["CDATA"] = "cdata";
|
|
19807
|
+
ElementType2["Doctype"] = "doctype";
|
|
19808
|
+
})(ElementType = exports2.ElementType || (exports2.ElementType = {}));
|
|
19787
19809
|
function isTag2(elem) {
|
|
19788
|
-
return elem.type ===
|
|
19810
|
+
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
19789
19811
|
}
|
|
19790
19812
|
exports2.isTag = isTag2;
|
|
19791
|
-
exports2.Root =
|
|
19792
|
-
exports2.Text =
|
|
19793
|
-
exports2.Directive =
|
|
19794
|
-
exports2.Comment =
|
|
19795
|
-
exports2.Script =
|
|
19796
|
-
exports2.Style =
|
|
19797
|
-
exports2.Tag =
|
|
19798
|
-
exports2.CDATA =
|
|
19799
|
-
exports2.Doctype =
|
|
19813
|
+
exports2.Root = ElementType.Root;
|
|
19814
|
+
exports2.Text = ElementType.Text;
|
|
19815
|
+
exports2.Directive = ElementType.Directive;
|
|
19816
|
+
exports2.Comment = ElementType.Comment;
|
|
19817
|
+
exports2.Script = ElementType.Script;
|
|
19818
|
+
exports2.Style = ElementType.Style;
|
|
19819
|
+
exports2.Tag = ElementType.Tag;
|
|
19820
|
+
exports2.CDATA = ElementType.CDATA;
|
|
19821
|
+
exports2.Doctype = ElementType.Doctype;
|
|
19800
19822
|
})(lib$8);
|
|
19801
19823
|
var node = {};
|
|
19802
19824
|
var __extends$2 = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
|
|
@@ -19819,15 +19841,15 @@ var __extends$2 = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */
|
|
|
19819
19841
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19820
19842
|
};
|
|
19821
19843
|
}();
|
|
19822
|
-
var __assign$
|
|
19823
|
-
__assign$
|
|
19844
|
+
var __assign$1 = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
19845
|
+
__assign$1 = Object.assign || function(t) {
|
|
19824
19846
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19825
19847
|
s = arguments[i];
|
|
19826
19848
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
19827
19849
|
}
|
|
19828
19850
|
return t;
|
|
19829
19851
|
};
|
|
19830
|
-
return __assign$
|
|
19852
|
+
return __assign$1.apply(this, arguments);
|
|
19831
19853
|
};
|
|
19832
19854
|
Object.defineProperty(node, "__esModule", {
|
|
19833
19855
|
value: true
|
|
@@ -20120,7 +20142,7 @@ function cloneNode$1(node2, recursive) {
|
|
|
20120
20142
|
result = new Comment(node2.data);
|
|
20121
20143
|
} else if (isTag(node2)) {
|
|
20122
20144
|
var children3 = recursive ? cloneChildren(node2.children) : [];
|
|
20123
|
-
var clone_1 = new Element$1(node2.name, __assign$
|
|
20145
|
+
var clone_1 = new Element$1(node2.name, __assign$1({}, node2.attribs), children3);
|
|
20124
20146
|
children3.forEach(function(child) {
|
|
20125
20147
|
return child.parent = clone_1;
|
|
20126
20148
|
});
|
|
@@ -20128,10 +20150,10 @@ function cloneNode$1(node2, recursive) {
|
|
|
20128
20150
|
clone_1.namespace = node2.namespace;
|
|
20129
20151
|
}
|
|
20130
20152
|
if (node2["x-attribsNamespace"]) {
|
|
20131
|
-
clone_1["x-attribsNamespace"] = __assign$
|
|
20153
|
+
clone_1["x-attribsNamespace"] = __assign$1({}, node2["x-attribsNamespace"]);
|
|
20132
20154
|
}
|
|
20133
20155
|
if (node2["x-attribsPrefix"]) {
|
|
20134
|
-
clone_1["x-attribsPrefix"] = __assign$
|
|
20156
|
+
clone_1["x-attribsPrefix"] = __assign$1({}, node2["x-attribsPrefix"]);
|
|
20135
20157
|
}
|
|
20136
20158
|
result = clone_1;
|
|
20137
20159
|
} else if (isCDATA(node2)) {
|
|
@@ -24857,7 +24879,7 @@ const require$$0$2 = {
|
|
|
24857
24879
|
"158": 382,
|
|
24858
24880
|
"159": 376
|
|
24859
24881
|
};
|
|
24860
|
-
var __importDefault$
|
|
24882
|
+
var __importDefault$4 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
24861
24883
|
return mod2 && mod2.__esModule ? mod2 : {
|
|
24862
24884
|
"default": mod2
|
|
24863
24885
|
};
|
|
@@ -24865,7 +24887,7 @@ var __importDefault$6 = commonjsGlobal && commonjsGlobal.__importDefault || func
|
|
|
24865
24887
|
Object.defineProperty(decode_codepoint, "__esModule", {
|
|
24866
24888
|
value: true
|
|
24867
24889
|
});
|
|
24868
|
-
var decode_json_1 = __importDefault$
|
|
24890
|
+
var decode_json_1 = __importDefault$4(require$$0$2);
|
|
24869
24891
|
var fromCodePoint = (
|
|
24870
24892
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
24871
24893
|
String.fromCodePoint || function(codePoint) {
|
|
@@ -24889,422 +24911,452 @@ function decodeCodePoint(codePoint) {
|
|
|
24889
24911
|
return fromCodePoint(codePoint);
|
|
24890
24912
|
}
|
|
24891
24913
|
decode_codepoint.default = decodeCodePoint;
|
|
24892
|
-
var
|
|
24893
|
-
|
|
24894
|
-
|
|
24914
|
+
var hasRequiredDecode;
|
|
24915
|
+
function requireDecode() {
|
|
24916
|
+
if (hasRequiredDecode) return decode;
|
|
24917
|
+
hasRequiredDecode = 1;
|
|
24918
|
+
var __importDefault2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
24919
|
+
return mod2 && mod2.__esModule ? mod2 : {
|
|
24920
|
+
"default": mod2
|
|
24921
|
+
};
|
|
24895
24922
|
};
|
|
24896
|
-
|
|
24897
|
-
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
var
|
|
24902
|
-
var
|
|
24903
|
-
var
|
|
24904
|
-
var
|
|
24905
|
-
|
|
24906
|
-
decode.
|
|
24907
|
-
|
|
24908
|
-
|
|
24909
|
-
|
|
24910
|
-
|
|
24911
|
-
|
|
24912
|
-
};
|
|
24913
|
-
}
|
|
24914
|
-
var sorter = function(a, b) {
|
|
24915
|
-
return a < b ? 1 : -1;
|
|
24916
|
-
};
|
|
24917
|
-
decode.decodeHTML = function() {
|
|
24918
|
-
var legacy2 = Object.keys(legacy_json_1$1.default).sort(sorter);
|
|
24919
|
-
var keys3 = Object.keys(entities_json_1$2.default).sort(sorter);
|
|
24920
|
-
for (var i = 0, j = 0; i < keys3.length; i++) {
|
|
24921
|
-
if (legacy2[j] === keys3[i]) {
|
|
24922
|
-
keys3[i] += ";?";
|
|
24923
|
-
j++;
|
|
24924
|
-
} else {
|
|
24925
|
-
keys3[i] += ";";
|
|
24926
|
-
}
|
|
24927
|
-
}
|
|
24928
|
-
var re2 = new RegExp("&(?:" + keys3.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g");
|
|
24929
|
-
var replace = getReplacer(entities_json_1$2.default);
|
|
24930
|
-
function replacer(str) {
|
|
24931
|
-
if (str.substr(-1) !== ";") str += ";";
|
|
24932
|
-
return replace(str);
|
|
24923
|
+
Object.defineProperty(decode, "__esModule", {
|
|
24924
|
+
value: true
|
|
24925
|
+
});
|
|
24926
|
+
decode.decodeHTML = decode.decodeHTMLStrict = decode.decodeXML = void 0;
|
|
24927
|
+
var entities_json_12 = __importDefault2(require$$1$1);
|
|
24928
|
+
var legacy_json_12 = __importDefault2(require$$2$1);
|
|
24929
|
+
var xml_json_12 = __importDefault2(require$$3$1);
|
|
24930
|
+
var decode_codepoint_12 = __importDefault2(decode_codepoint);
|
|
24931
|
+
var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;
|
|
24932
|
+
decode.decodeXML = getStrictDecoder(xml_json_12.default);
|
|
24933
|
+
decode.decodeHTMLStrict = getStrictDecoder(entities_json_12.default);
|
|
24934
|
+
function getStrictDecoder(map2) {
|
|
24935
|
+
var replace = getReplacer(map2);
|
|
24936
|
+
return function(str) {
|
|
24937
|
+
return String(str).replace(strictEntityRe, replace);
|
|
24938
|
+
};
|
|
24933
24939
|
}
|
|
24934
|
-
|
|
24935
|
-
return
|
|
24940
|
+
var sorter = function(a, b) {
|
|
24941
|
+
return a < b ? 1 : -1;
|
|
24936
24942
|
};
|
|
24937
|
-
|
|
24938
|
-
|
|
24939
|
-
|
|
24940
|
-
|
|
24941
|
-
|
|
24942
|
-
|
|
24943
|
-
|
|
24943
|
+
decode.decodeHTML = function() {
|
|
24944
|
+
var legacy2 = Object.keys(legacy_json_12.default).sort(sorter);
|
|
24945
|
+
var keys3 = Object.keys(entities_json_12.default).sort(sorter);
|
|
24946
|
+
for (var i = 0, j = 0; i < keys3.length; i++) {
|
|
24947
|
+
if (legacy2[j] === keys3[i]) {
|
|
24948
|
+
keys3[i] += ";?";
|
|
24949
|
+
j++;
|
|
24950
|
+
} else {
|
|
24951
|
+
keys3[i] += ";";
|
|
24944
24952
|
}
|
|
24945
|
-
return decode_codepoint_1$1.default(parseInt(str.substr(2), 10));
|
|
24946
24953
|
}
|
|
24947
|
-
|
|
24948
|
-
|
|
24954
|
+
var re2 = new RegExp("&(?:" + keys3.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g");
|
|
24955
|
+
var replace = getReplacer(entities_json_12.default);
|
|
24956
|
+
function replacer(str) {
|
|
24957
|
+
if (str.substr(-1) !== ";") str += ";";
|
|
24958
|
+
return replace(str);
|
|
24959
|
+
}
|
|
24960
|
+
return function(str) {
|
|
24961
|
+
return String(str).replace(re2, replacer);
|
|
24962
|
+
};
|
|
24963
|
+
}();
|
|
24964
|
+
function getReplacer(map2) {
|
|
24965
|
+
return function replace(str) {
|
|
24966
|
+
if (str.charAt(1) === "#") {
|
|
24967
|
+
var secondChar = str.charAt(2);
|
|
24968
|
+
if (secondChar === "X" || secondChar === "x") {
|
|
24969
|
+
return decode_codepoint_12.default(parseInt(str.substr(3), 16));
|
|
24970
|
+
}
|
|
24971
|
+
return decode_codepoint_12.default(parseInt(str.substr(2), 10));
|
|
24972
|
+
}
|
|
24973
|
+
return map2[str.slice(1, -1)] || str;
|
|
24974
|
+
};
|
|
24975
|
+
}
|
|
24976
|
+
return decode;
|
|
24949
24977
|
}
|
|
24950
24978
|
var encode = {};
|
|
24951
|
-
var
|
|
24952
|
-
|
|
24953
|
-
|
|
24979
|
+
var hasRequiredEncode;
|
|
24980
|
+
function requireEncode() {
|
|
24981
|
+
if (hasRequiredEncode) return encode;
|
|
24982
|
+
hasRequiredEncode = 1;
|
|
24983
|
+
var __importDefault2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
24984
|
+
return mod2 && mod2.__esModule ? mod2 : {
|
|
24985
|
+
"default": mod2
|
|
24986
|
+
};
|
|
24954
24987
|
};
|
|
24955
|
-
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
|
|
24959
|
-
|
|
24960
|
-
var
|
|
24961
|
-
var
|
|
24962
|
-
|
|
24963
|
-
|
|
24964
|
-
var
|
|
24965
|
-
var
|
|
24966
|
-
|
|
24967
|
-
encode.
|
|
24968
|
-
|
|
24969
|
-
|
|
24970
|
-
|
|
24971
|
-
|
|
24972
|
-
|
|
24973
|
-
}, {});
|
|
24974
|
-
}
|
|
24975
|
-
function getInverseReplacer(inverse) {
|
|
24976
|
-
var single = [];
|
|
24977
|
-
var multiple = [];
|
|
24978
|
-
for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) {
|
|
24979
|
-
var k = _a[_i];
|
|
24980
|
-
if (k.length === 1) {
|
|
24981
|
-
single.push("\\" + k);
|
|
24982
|
-
} else {
|
|
24983
|
-
multiple.push(k);
|
|
24984
|
-
}
|
|
24985
|
-
}
|
|
24986
|
-
single.sort();
|
|
24987
|
-
for (var start2 = 0; start2 < single.length - 1; start2++) {
|
|
24988
|
-
var end2 = start2;
|
|
24989
|
-
while (end2 < single.length - 1 && single[end2].charCodeAt(1) + 1 === single[end2 + 1].charCodeAt(1)) {
|
|
24990
|
-
end2 += 1;
|
|
24991
|
-
}
|
|
24992
|
-
var count2 = 1 + end2 - start2;
|
|
24993
|
-
if (count2 < 3) continue;
|
|
24994
|
-
single.splice(start2, count2, single[start2] + "-" + single[end2]);
|
|
24988
|
+
Object.defineProperty(encode, "__esModule", {
|
|
24989
|
+
value: true
|
|
24990
|
+
});
|
|
24991
|
+
encode.escapeUTF8 = encode.escape = encode.encodeNonAsciiHTML = encode.encodeHTML = encode.encodeXML = void 0;
|
|
24992
|
+
var xml_json_12 = __importDefault2(require$$3$1);
|
|
24993
|
+
var inverseXML = getInverseObj(xml_json_12.default);
|
|
24994
|
+
var xmlReplacer = getInverseReplacer(inverseXML);
|
|
24995
|
+
encode.encodeXML = getASCIIEncoder(inverseXML);
|
|
24996
|
+
var entities_json_12 = __importDefault2(require$$1$1);
|
|
24997
|
+
var inverseHTML = getInverseObj(entities_json_12.default);
|
|
24998
|
+
var htmlReplacer = getInverseReplacer(inverseHTML);
|
|
24999
|
+
encode.encodeHTML = getInverse(inverseHTML, htmlReplacer);
|
|
25000
|
+
encode.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML);
|
|
25001
|
+
function getInverseObj(obj) {
|
|
25002
|
+
return Object.keys(obj).sort().reduce(function(inverse, name) {
|
|
25003
|
+
inverse[obj[name]] = "&" + name + ";";
|
|
25004
|
+
return inverse;
|
|
25005
|
+
}, {});
|
|
24995
25006
|
}
|
|
24996
|
-
|
|
24997
|
-
|
|
24998
|
-
|
|
24999
|
-
var
|
|
25000
|
-
var
|
|
25001
|
-
|
|
25002
|
-
|
|
25003
|
-
|
|
25004
|
-
|
|
25005
|
-
|
|
25007
|
+
function getInverseReplacer(inverse) {
|
|
25008
|
+
var single = [];
|
|
25009
|
+
var multiple = [];
|
|
25010
|
+
for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) {
|
|
25011
|
+
var k = _a[_i];
|
|
25012
|
+
if (k.length === 1) {
|
|
25013
|
+
single.push("\\" + k);
|
|
25014
|
+
} else {
|
|
25015
|
+
multiple.push(k);
|
|
25016
|
+
}
|
|
25006
25017
|
}
|
|
25007
|
-
|
|
25008
|
-
|
|
25009
|
-
|
|
25010
|
-
|
|
25018
|
+
single.sort();
|
|
25019
|
+
for (var start2 = 0; start2 < single.length - 1; start2++) {
|
|
25020
|
+
var end2 = start2;
|
|
25021
|
+
while (end2 < single.length - 1 && single[end2].charCodeAt(1) + 1 === single[end2 + 1].charCodeAt(1)) {
|
|
25022
|
+
end2 += 1;
|
|
25023
|
+
}
|
|
25024
|
+
var count2 = 1 + end2 - start2;
|
|
25025
|
+
if (count2 < 3) continue;
|
|
25026
|
+
single.splice(start2, count2, single[start2] + "-" + single[end2]);
|
|
25011
25027
|
}
|
|
25012
|
-
|
|
25013
|
-
);
|
|
25014
|
-
|
|
25015
|
-
|
|
25016
|
-
|
|
25017
|
-
|
|
25018
|
-
|
|
25019
|
-
|
|
25020
|
-
|
|
25021
|
-
|
|
25022
|
-
|
|
25023
|
-
|
|
25024
|
-
|
|
25025
|
-
function
|
|
25026
|
-
|
|
25027
|
-
}
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
|
|
25028
|
+
multiple.unshift("[" + single.join("") + "]");
|
|
25029
|
+
return new RegExp(multiple.join("|"), "g");
|
|
25030
|
+
}
|
|
25031
|
+
var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;
|
|
25032
|
+
var getCodePoint = (
|
|
25033
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
25034
|
+
String.prototype.codePointAt != null ? (
|
|
25035
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
25036
|
+
function(str) {
|
|
25037
|
+
return str.codePointAt(0);
|
|
25038
|
+
}
|
|
25039
|
+
) : (
|
|
25040
|
+
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
|
25041
|
+
function(c) {
|
|
25042
|
+
return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536;
|
|
25043
|
+
}
|
|
25044
|
+
)
|
|
25045
|
+
);
|
|
25046
|
+
function singleCharReplacer(c) {
|
|
25047
|
+
return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";";
|
|
25048
|
+
}
|
|
25049
|
+
function getInverse(inverse, re2) {
|
|
25050
|
+
return function(data2) {
|
|
25051
|
+
return data2.replace(re2, function(name) {
|
|
25052
|
+
return inverse[name];
|
|
25053
|
+
}).replace(reNonASCII, singleCharReplacer);
|
|
25054
|
+
};
|
|
25055
|
+
}
|
|
25056
|
+
var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g");
|
|
25057
|
+
function escape2(data2) {
|
|
25058
|
+
return data2.replace(reEscapeChars, singleCharReplacer);
|
|
25059
|
+
}
|
|
25060
|
+
encode.escape = escape2;
|
|
25061
|
+
function escapeUTF8(data2) {
|
|
25062
|
+
return data2.replace(xmlReplacer, singleCharReplacer);
|
|
25063
|
+
}
|
|
25064
|
+
encode.escapeUTF8 = escapeUTF8;
|
|
25065
|
+
function getASCIIEncoder(obj) {
|
|
25066
|
+
return function(data2) {
|
|
25067
|
+
return data2.replace(reEscapeChars, function(c) {
|
|
25068
|
+
return obj[c] || singleCharReplacer(c);
|
|
25069
|
+
});
|
|
25070
|
+
};
|
|
25071
|
+
}
|
|
25072
|
+
return encode;
|
|
25031
25073
|
}
|
|
25032
|
-
|
|
25033
|
-
function
|
|
25034
|
-
|
|
25035
|
-
|
|
25036
|
-
|
|
25074
|
+
var hasRequiredLib$6;
|
|
25075
|
+
function requireLib$6() {
|
|
25076
|
+
if (hasRequiredLib$6) return lib$6;
|
|
25077
|
+
hasRequiredLib$6 = 1;
|
|
25078
|
+
(function(exports2) {
|
|
25079
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
25080
|
+
value: true
|
|
25037
25081
|
});
|
|
25038
|
-
|
|
25082
|
+
exports2.decodeXMLStrict = exports2.decodeHTML5Strict = exports2.decodeHTML4Strict = exports2.decodeHTML5 = exports2.decodeHTML4 = exports2.decodeHTMLStrict = exports2.decodeHTML = exports2.decodeXML = exports2.encodeHTML5 = exports2.encodeHTML4 = exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = exports2.encode = exports2.decodeStrict = exports2.decode = void 0;
|
|
25083
|
+
var decode_1 = requireDecode();
|
|
25084
|
+
var encode_1 = requireEncode();
|
|
25085
|
+
function decode2(data2, level) {
|
|
25086
|
+
return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data2);
|
|
25087
|
+
}
|
|
25088
|
+
exports2.decode = decode2;
|
|
25089
|
+
function decodeStrict(data2, level) {
|
|
25090
|
+
return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data2);
|
|
25091
|
+
}
|
|
25092
|
+
exports2.decodeStrict = decodeStrict;
|
|
25093
|
+
function encode2(data2, level) {
|
|
25094
|
+
return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data2);
|
|
25095
|
+
}
|
|
25096
|
+
exports2.encode = encode2;
|
|
25097
|
+
var encode_2 = requireEncode();
|
|
25098
|
+
Object.defineProperty(exports2, "encodeXML", {
|
|
25099
|
+
enumerable: true,
|
|
25100
|
+
get: function() {
|
|
25101
|
+
return encode_2.encodeXML;
|
|
25102
|
+
}
|
|
25103
|
+
});
|
|
25104
|
+
Object.defineProperty(exports2, "encodeHTML", {
|
|
25105
|
+
enumerable: true,
|
|
25106
|
+
get: function() {
|
|
25107
|
+
return encode_2.encodeHTML;
|
|
25108
|
+
}
|
|
25109
|
+
});
|
|
25110
|
+
Object.defineProperty(exports2, "encodeNonAsciiHTML", {
|
|
25111
|
+
enumerable: true,
|
|
25112
|
+
get: function() {
|
|
25113
|
+
return encode_2.encodeNonAsciiHTML;
|
|
25114
|
+
}
|
|
25115
|
+
});
|
|
25116
|
+
Object.defineProperty(exports2, "escape", {
|
|
25117
|
+
enumerable: true,
|
|
25118
|
+
get: function() {
|
|
25119
|
+
return encode_2.escape;
|
|
25120
|
+
}
|
|
25121
|
+
});
|
|
25122
|
+
Object.defineProperty(exports2, "escapeUTF8", {
|
|
25123
|
+
enumerable: true,
|
|
25124
|
+
get: function() {
|
|
25125
|
+
return encode_2.escapeUTF8;
|
|
25126
|
+
}
|
|
25127
|
+
});
|
|
25128
|
+
Object.defineProperty(exports2, "encodeHTML4", {
|
|
25129
|
+
enumerable: true,
|
|
25130
|
+
get: function() {
|
|
25131
|
+
return encode_2.encodeHTML;
|
|
25132
|
+
}
|
|
25133
|
+
});
|
|
25134
|
+
Object.defineProperty(exports2, "encodeHTML5", {
|
|
25135
|
+
enumerable: true,
|
|
25136
|
+
get: function() {
|
|
25137
|
+
return encode_2.encodeHTML;
|
|
25138
|
+
}
|
|
25139
|
+
});
|
|
25140
|
+
var decode_2 = requireDecode();
|
|
25141
|
+
Object.defineProperty(exports2, "decodeXML", {
|
|
25142
|
+
enumerable: true,
|
|
25143
|
+
get: function() {
|
|
25144
|
+
return decode_2.decodeXML;
|
|
25145
|
+
}
|
|
25146
|
+
});
|
|
25147
|
+
Object.defineProperty(exports2, "decodeHTML", {
|
|
25148
|
+
enumerable: true,
|
|
25149
|
+
get: function() {
|
|
25150
|
+
return decode_2.decodeHTML;
|
|
25151
|
+
}
|
|
25152
|
+
});
|
|
25153
|
+
Object.defineProperty(exports2, "decodeHTMLStrict", {
|
|
25154
|
+
enumerable: true,
|
|
25155
|
+
get: function() {
|
|
25156
|
+
return decode_2.decodeHTMLStrict;
|
|
25157
|
+
}
|
|
25158
|
+
});
|
|
25159
|
+
Object.defineProperty(exports2, "decodeHTML4", {
|
|
25160
|
+
enumerable: true,
|
|
25161
|
+
get: function() {
|
|
25162
|
+
return decode_2.decodeHTML;
|
|
25163
|
+
}
|
|
25164
|
+
});
|
|
25165
|
+
Object.defineProperty(exports2, "decodeHTML5", {
|
|
25166
|
+
enumerable: true,
|
|
25167
|
+
get: function() {
|
|
25168
|
+
return decode_2.decodeHTML;
|
|
25169
|
+
}
|
|
25170
|
+
});
|
|
25171
|
+
Object.defineProperty(exports2, "decodeHTML4Strict", {
|
|
25172
|
+
enumerable: true,
|
|
25173
|
+
get: function() {
|
|
25174
|
+
return decode_2.decodeHTMLStrict;
|
|
25175
|
+
}
|
|
25176
|
+
});
|
|
25177
|
+
Object.defineProperty(exports2, "decodeHTML5Strict", {
|
|
25178
|
+
enumerable: true,
|
|
25179
|
+
get: function() {
|
|
25180
|
+
return decode_2.decodeHTMLStrict;
|
|
25181
|
+
}
|
|
25182
|
+
});
|
|
25183
|
+
Object.defineProperty(exports2, "decodeXMLStrict", {
|
|
25184
|
+
enumerable: true,
|
|
25185
|
+
get: function() {
|
|
25186
|
+
return decode_2.decodeXML;
|
|
25187
|
+
}
|
|
25188
|
+
});
|
|
25189
|
+
})(lib$6);
|
|
25190
|
+
return lib$6;
|
|
25039
25191
|
}
|
|
25040
|
-
|
|
25041
|
-
|
|
25192
|
+
var foreignNames = {};
|
|
25193
|
+
var hasRequiredForeignNames;
|
|
25194
|
+
function requireForeignNames() {
|
|
25195
|
+
if (hasRequiredForeignNames) return foreignNames;
|
|
25196
|
+
hasRequiredForeignNames = 1;
|
|
25197
|
+
Object.defineProperty(foreignNames, "__esModule", {
|
|
25042
25198
|
value: true
|
|
25043
25199
|
});
|
|
25044
|
-
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
25048
|
-
|
|
25049
|
-
|
|
25050
|
-
|
|
25051
|
-
|
|
25052
|
-
|
|
25053
|
-
|
|
25054
|
-
|
|
25055
|
-
|
|
25056
|
-
|
|
25057
|
-
|
|
25058
|
-
|
|
25059
|
-
|
|
25060
|
-
|
|
25061
|
-
|
|
25062
|
-
|
|
25063
|
-
|
|
25064
|
-
|
|
25065
|
-
|
|
25066
|
-
|
|
25067
|
-
|
|
25068
|
-
|
|
25069
|
-
|
|
25070
|
-
}
|
|
25071
|
-
})
|
|
25072
|
-
|
|
25073
|
-
|
|
25074
|
-
get: function() {
|
|
25075
|
-
return encode_2.encodeNonAsciiHTML;
|
|
25076
|
-
}
|
|
25077
|
-
});
|
|
25078
|
-
Object.defineProperty(exports2, "escape", {
|
|
25079
|
-
enumerable: true,
|
|
25080
|
-
get: function() {
|
|
25081
|
-
return encode_2.escape;
|
|
25082
|
-
}
|
|
25083
|
-
});
|
|
25084
|
-
Object.defineProperty(exports2, "escapeUTF8", {
|
|
25085
|
-
enumerable: true,
|
|
25086
|
-
get: function() {
|
|
25087
|
-
return encode_2.escapeUTF8;
|
|
25088
|
-
}
|
|
25089
|
-
});
|
|
25090
|
-
Object.defineProperty(exports2, "encodeHTML4", {
|
|
25091
|
-
enumerable: true,
|
|
25092
|
-
get: function() {
|
|
25093
|
-
return encode_2.encodeHTML;
|
|
25094
|
-
}
|
|
25095
|
-
});
|
|
25096
|
-
Object.defineProperty(exports2, "encodeHTML5", {
|
|
25097
|
-
enumerable: true,
|
|
25098
|
-
get: function() {
|
|
25099
|
-
return encode_2.encodeHTML;
|
|
25100
|
-
}
|
|
25101
|
-
});
|
|
25102
|
-
var decode_2 = decode;
|
|
25103
|
-
Object.defineProperty(exports2, "decodeXML", {
|
|
25104
|
-
enumerable: true,
|
|
25105
|
-
get: function() {
|
|
25106
|
-
return decode_2.decodeXML;
|
|
25107
|
-
}
|
|
25108
|
-
});
|
|
25109
|
-
Object.defineProperty(exports2, "decodeHTML", {
|
|
25110
|
-
enumerable: true,
|
|
25111
|
-
get: function() {
|
|
25112
|
-
return decode_2.decodeHTML;
|
|
25113
|
-
}
|
|
25114
|
-
});
|
|
25115
|
-
Object.defineProperty(exports2, "decodeHTMLStrict", {
|
|
25116
|
-
enumerable: true,
|
|
25117
|
-
get: function() {
|
|
25118
|
-
return decode_2.decodeHTMLStrict;
|
|
25119
|
-
}
|
|
25120
|
-
});
|
|
25121
|
-
Object.defineProperty(exports2, "decodeHTML4", {
|
|
25122
|
-
enumerable: true,
|
|
25123
|
-
get: function() {
|
|
25124
|
-
return decode_2.decodeHTML;
|
|
25125
|
-
}
|
|
25126
|
-
});
|
|
25127
|
-
Object.defineProperty(exports2, "decodeHTML5", {
|
|
25128
|
-
enumerable: true,
|
|
25129
|
-
get: function() {
|
|
25130
|
-
return decode_2.decodeHTML;
|
|
25131
|
-
}
|
|
25132
|
-
});
|
|
25133
|
-
Object.defineProperty(exports2, "decodeHTML4Strict", {
|
|
25134
|
-
enumerable: true,
|
|
25135
|
-
get: function() {
|
|
25136
|
-
return decode_2.decodeHTMLStrict;
|
|
25137
|
-
}
|
|
25138
|
-
});
|
|
25139
|
-
Object.defineProperty(exports2, "decodeHTML5Strict", {
|
|
25140
|
-
enumerable: true,
|
|
25141
|
-
get: function() {
|
|
25142
|
-
return decode_2.decodeHTMLStrict;
|
|
25143
|
-
}
|
|
25200
|
+
foreignNames.attributeNames = foreignNames.elementNames = void 0;
|
|
25201
|
+
foreignNames.elementNames = /* @__PURE__ */ new Map([["altglyph", "altGlyph"], ["altglyphdef", "altGlyphDef"], ["altglyphitem", "altGlyphItem"], ["animatecolor", "animateColor"], ["animatemotion", "animateMotion"], ["animatetransform", "animateTransform"], ["clippath", "clipPath"], ["feblend", "feBlend"], ["fecolormatrix", "feColorMatrix"], ["fecomponenttransfer", "feComponentTransfer"], ["fecomposite", "feComposite"], ["feconvolvematrix", "feConvolveMatrix"], ["fediffuselighting", "feDiffuseLighting"], ["fedisplacementmap", "feDisplacementMap"], ["fedistantlight", "feDistantLight"], ["fedropshadow", "feDropShadow"], ["feflood", "feFlood"], ["fefunca", "feFuncA"], ["fefuncb", "feFuncB"], ["fefuncg", "feFuncG"], ["fefuncr", "feFuncR"], ["fegaussianblur", "feGaussianBlur"], ["feimage", "feImage"], ["femerge", "feMerge"], ["femergenode", "feMergeNode"], ["femorphology", "feMorphology"], ["feoffset", "feOffset"], ["fepointlight", "fePointLight"], ["fespecularlighting", "feSpecularLighting"], ["fespotlight", "feSpotLight"], ["fetile", "feTile"], ["feturbulence", "feTurbulence"], ["foreignobject", "foreignObject"], ["glyphref", "glyphRef"], ["lineargradient", "linearGradient"], ["radialgradient", "radialGradient"], ["textpath", "textPath"]]);
|
|
25202
|
+
foreignNames.attributeNames = /* @__PURE__ */ new Map([["definitionurl", "definitionURL"], ["attributename", "attributeName"], ["attributetype", "attributeType"], ["basefrequency", "baseFrequency"], ["baseprofile", "baseProfile"], ["calcmode", "calcMode"], ["clippathunits", "clipPathUnits"], ["diffuseconstant", "diffuseConstant"], ["edgemode", "edgeMode"], ["filterunits", "filterUnits"], ["glyphref", "glyphRef"], ["gradienttransform", "gradientTransform"], ["gradientunits", "gradientUnits"], ["kernelmatrix", "kernelMatrix"], ["kernelunitlength", "kernelUnitLength"], ["keypoints", "keyPoints"], ["keysplines", "keySplines"], ["keytimes", "keyTimes"], ["lengthadjust", "lengthAdjust"], ["limitingconeangle", "limitingConeAngle"], ["markerheight", "markerHeight"], ["markerunits", "markerUnits"], ["markerwidth", "markerWidth"], ["maskcontentunits", "maskContentUnits"], ["maskunits", "maskUnits"], ["numoctaves", "numOctaves"], ["pathlength", "pathLength"], ["patterncontentunits", "patternContentUnits"], ["patterntransform", "patternTransform"], ["patternunits", "patternUnits"], ["pointsatx", "pointsAtX"], ["pointsaty", "pointsAtY"], ["pointsatz", "pointsAtZ"], ["preservealpha", "preserveAlpha"], ["preserveaspectratio", "preserveAspectRatio"], ["primitiveunits", "primitiveUnits"], ["refx", "refX"], ["refy", "refY"], ["repeatcount", "repeatCount"], ["repeatdur", "repeatDur"], ["requiredextensions", "requiredExtensions"], ["requiredfeatures", "requiredFeatures"], ["specularconstant", "specularConstant"], ["specularexponent", "specularExponent"], ["spreadmethod", "spreadMethod"], ["startoffset", "startOffset"], ["stddeviation", "stdDeviation"], ["stitchtiles", "stitchTiles"], ["surfacescale", "surfaceScale"], ["systemlanguage", "systemLanguage"], ["tablevalues", "tableValues"], ["targetx", "targetX"], ["targety", "targetY"], ["textlength", "textLength"], ["viewbox", "viewBox"], ["viewtarget", "viewTarget"], ["xchannelselector", "xChannelSelector"], ["ychannelselector", "yChannelSelector"], ["zoomandpan", "zoomAndPan"]]);
|
|
25203
|
+
return foreignNames;
|
|
25204
|
+
}
|
|
25205
|
+
var hasRequiredLib$5;
|
|
25206
|
+
function requireLib$5() {
|
|
25207
|
+
if (hasRequiredLib$5) return lib$7;
|
|
25208
|
+
hasRequiredLib$5 = 1;
|
|
25209
|
+
var __assign2 = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
25210
|
+
__assign2 = Object.assign || function(t) {
|
|
25211
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25212
|
+
s = arguments[i];
|
|
25213
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
25214
|
+
}
|
|
25215
|
+
return t;
|
|
25216
|
+
};
|
|
25217
|
+
return __assign2.apply(this, arguments);
|
|
25218
|
+
};
|
|
25219
|
+
var __createBinding2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25220
|
+
if (k2 === void 0) k2 = k;
|
|
25221
|
+
Object.defineProperty(o, k2, {
|
|
25222
|
+
enumerable: true,
|
|
25223
|
+
get: function() {
|
|
25224
|
+
return m[k];
|
|
25225
|
+
}
|
|
25226
|
+
});
|
|
25227
|
+
} : function(o, m, k, k2) {
|
|
25228
|
+
if (k2 === void 0) k2 = k;
|
|
25229
|
+
o[k2] = m[k];
|
|
25144
25230
|
});
|
|
25145
|
-
Object.
|
|
25146
|
-
|
|
25147
|
-
|
|
25148
|
-
|
|
25149
|
-
}
|
|
25231
|
+
var __setModuleDefault2 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
|
|
25232
|
+
Object.defineProperty(o, "default", {
|
|
25233
|
+
enumerable: true,
|
|
25234
|
+
value: v
|
|
25235
|
+
});
|
|
25236
|
+
} : function(o, v) {
|
|
25237
|
+
o["default"] = v;
|
|
25150
25238
|
});
|
|
25151
|
-
|
|
25152
|
-
|
|
25153
|
-
|
|
25154
|
-
|
|
25155
|
-
|
|
25156
|
-
foreignNames.attributeNames = foreignNames.elementNames = void 0;
|
|
25157
|
-
foreignNames.elementNames = /* @__PURE__ */ new Map([["altglyph", "altGlyph"], ["altglyphdef", "altGlyphDef"], ["altglyphitem", "altGlyphItem"], ["animatecolor", "animateColor"], ["animatemotion", "animateMotion"], ["animatetransform", "animateTransform"], ["clippath", "clipPath"], ["feblend", "feBlend"], ["fecolormatrix", "feColorMatrix"], ["fecomponenttransfer", "feComponentTransfer"], ["fecomposite", "feComposite"], ["feconvolvematrix", "feConvolveMatrix"], ["fediffuselighting", "feDiffuseLighting"], ["fedisplacementmap", "feDisplacementMap"], ["fedistantlight", "feDistantLight"], ["fedropshadow", "feDropShadow"], ["feflood", "feFlood"], ["fefunca", "feFuncA"], ["fefuncb", "feFuncB"], ["fefuncg", "feFuncG"], ["fefuncr", "feFuncR"], ["fegaussianblur", "feGaussianBlur"], ["feimage", "feImage"], ["femerge", "feMerge"], ["femergenode", "feMergeNode"], ["femorphology", "feMorphology"], ["feoffset", "feOffset"], ["fepointlight", "fePointLight"], ["fespecularlighting", "feSpecularLighting"], ["fespotlight", "feSpotLight"], ["fetile", "feTile"], ["feturbulence", "feTurbulence"], ["foreignobject", "foreignObject"], ["glyphref", "glyphRef"], ["lineargradient", "linearGradient"], ["radialgradient", "radialGradient"], ["textpath", "textPath"]]);
|
|
25158
|
-
foreignNames.attributeNames = /* @__PURE__ */ new Map([["definitionurl", "definitionURL"], ["attributename", "attributeName"], ["attributetype", "attributeType"], ["basefrequency", "baseFrequency"], ["baseprofile", "baseProfile"], ["calcmode", "calcMode"], ["clippathunits", "clipPathUnits"], ["diffuseconstant", "diffuseConstant"], ["edgemode", "edgeMode"], ["filterunits", "filterUnits"], ["glyphref", "glyphRef"], ["gradienttransform", "gradientTransform"], ["gradientunits", "gradientUnits"], ["kernelmatrix", "kernelMatrix"], ["kernelunitlength", "kernelUnitLength"], ["keypoints", "keyPoints"], ["keysplines", "keySplines"], ["keytimes", "keyTimes"], ["lengthadjust", "lengthAdjust"], ["limitingconeangle", "limitingConeAngle"], ["markerheight", "markerHeight"], ["markerunits", "markerUnits"], ["markerwidth", "markerWidth"], ["maskcontentunits", "maskContentUnits"], ["maskunits", "maskUnits"], ["numoctaves", "numOctaves"], ["pathlength", "pathLength"], ["patterncontentunits", "patternContentUnits"], ["patterntransform", "patternTransform"], ["patternunits", "patternUnits"], ["pointsatx", "pointsAtX"], ["pointsaty", "pointsAtY"], ["pointsatz", "pointsAtZ"], ["preservealpha", "preserveAlpha"], ["preserveaspectratio", "preserveAspectRatio"], ["primitiveunits", "primitiveUnits"], ["refx", "refX"], ["refy", "refY"], ["repeatcount", "repeatCount"], ["repeatdur", "repeatDur"], ["requiredextensions", "requiredExtensions"], ["requiredfeatures", "requiredFeatures"], ["specularconstant", "specularConstant"], ["specularexponent", "specularExponent"], ["spreadmethod", "spreadMethod"], ["startoffset", "startOffset"], ["stddeviation", "stdDeviation"], ["stitchtiles", "stitchTiles"], ["surfacescale", "surfaceScale"], ["systemlanguage", "systemLanguage"], ["tablevalues", "tableValues"], ["targetx", "targetX"], ["targety", "targetY"], ["textlength", "textLength"], ["viewbox", "viewBox"], ["viewtarget", "viewTarget"], ["xchannelselector", "xChannelSelector"], ["ychannelselector", "yChannelSelector"], ["zoomandpan", "zoomAndPan"]]);
|
|
25159
|
-
var __assign$1 = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
25160
|
-
__assign$1 = Object.assign || function(t) {
|
|
25161
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25162
|
-
s = arguments[i];
|
|
25163
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
25239
|
+
var __importStar2 = commonjsGlobal && commonjsGlobal.__importStar || function(mod2) {
|
|
25240
|
+
if (mod2 && mod2.__esModule) return mod2;
|
|
25241
|
+
var result = {};
|
|
25242
|
+
if (mod2 != null) {
|
|
25243
|
+
for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding2(result, mod2, k);
|
|
25164
25244
|
}
|
|
25165
|
-
|
|
25245
|
+
__setModuleDefault2(result, mod2);
|
|
25246
|
+
return result;
|
|
25166
25247
|
};
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
var __createBinding$2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25170
|
-
if (k2 === void 0) k2 = k;
|
|
25171
|
-
Object.defineProperty(o, k2, {
|
|
25172
|
-
enumerable: true,
|
|
25173
|
-
get: function() {
|
|
25174
|
-
return m[k];
|
|
25175
|
-
}
|
|
25176
|
-
});
|
|
25177
|
-
} : function(o, m, k, k2) {
|
|
25178
|
-
if (k2 === void 0) k2 = k;
|
|
25179
|
-
o[k2] = m[k];
|
|
25180
|
-
});
|
|
25181
|
-
var __setModuleDefault$2 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o, v) {
|
|
25182
|
-
Object.defineProperty(o, "default", {
|
|
25183
|
-
enumerable: true,
|
|
25184
|
-
value: v
|
|
25248
|
+
Object.defineProperty(lib$7, "__esModule", {
|
|
25249
|
+
value: true
|
|
25185
25250
|
});
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
|
|
25189
|
-
var
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25251
|
+
var ElementType = __importStar2(lib$8);
|
|
25252
|
+
var entities_1 = requireLib$6();
|
|
25253
|
+
var foreignNames_1 = requireForeignNames();
|
|
25254
|
+
var unencodedElements = /* @__PURE__ */ new Set(["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"]);
|
|
25255
|
+
function formatAttributes(attributes2, opts) {
|
|
25256
|
+
if (!attributes2) return;
|
|
25257
|
+
return Object.keys(attributes2).map(function(key) {
|
|
25258
|
+
var _a, _b;
|
|
25259
|
+
var value2 = (_a = attributes2[key]) !== null && _a !== void 0 ? _a : "";
|
|
25260
|
+
if (opts.xmlMode === "foreign") {
|
|
25261
|
+
key = (_b = foreignNames_1.attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;
|
|
25262
|
+
}
|
|
25263
|
+
if (!opts.emptyAttrs && !opts.xmlMode && value2 === "") {
|
|
25264
|
+
return key;
|
|
25265
|
+
}
|
|
25266
|
+
return key + '="' + (opts.decodeEntities !== false ? entities_1.encodeXML(value2) : value2.replace(/"/g, """)) + '"';
|
|
25267
|
+
}).join(" ");
|
|
25194
25268
|
}
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
value: true
|
|
25200
|
-
});
|
|
25201
|
-
var ElementType = __importStar$2(lib$8);
|
|
25202
|
-
var entities_1 = lib$6;
|
|
25203
|
-
var foreignNames_1 = foreignNames;
|
|
25204
|
-
var unencodedElements = /* @__PURE__ */ new Set(["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"]);
|
|
25205
|
-
function formatAttributes(attributes2, opts) {
|
|
25206
|
-
if (!attributes2) return;
|
|
25207
|
-
return Object.keys(attributes2).map(function(key) {
|
|
25208
|
-
var _a, _b;
|
|
25209
|
-
var value2 = (_a = attributes2[key]) !== null && _a !== void 0 ? _a : "";
|
|
25210
|
-
if (opts.xmlMode === "foreign") {
|
|
25211
|
-
key = (_b = foreignNames_1.attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;
|
|
25269
|
+
var singleTag = /* @__PURE__ */ new Set(["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
|
|
25270
|
+
function render3(node2, options2) {
|
|
25271
|
+
if (options2 === void 0) {
|
|
25272
|
+
options2 = {};
|
|
25212
25273
|
}
|
|
25213
|
-
|
|
25214
|
-
|
|
25274
|
+
var nodes = "length" in node2 ? node2 : [node2];
|
|
25275
|
+
var output = "";
|
|
25276
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
25277
|
+
output += renderNode(nodes[i], options2);
|
|
25215
25278
|
}
|
|
25216
|
-
return
|
|
25217
|
-
}).join(" ");
|
|
25218
|
-
}
|
|
25219
|
-
var singleTag = /* @__PURE__ */ new Set(["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
|
|
25220
|
-
function render$2(node2, options2) {
|
|
25221
|
-
if (options2 === void 0) {
|
|
25222
|
-
options2 = {};
|
|
25223
|
-
}
|
|
25224
|
-
var nodes = "length" in node2 ? node2 : [node2];
|
|
25225
|
-
var output = "";
|
|
25226
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
25227
|
-
output += renderNode(nodes[i], options2);
|
|
25279
|
+
return output;
|
|
25228
25280
|
}
|
|
25229
|
-
|
|
25230
|
-
|
|
25231
|
-
|
|
25232
|
-
|
|
25233
|
-
|
|
25234
|
-
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
|
|
25241
|
-
|
|
25242
|
-
|
|
25243
|
-
|
|
25244
|
-
|
|
25245
|
-
|
|
25246
|
-
|
|
25247
|
-
|
|
25248
|
-
|
|
25249
|
-
|
|
25250
|
-
|
|
25251
|
-
|
|
25252
|
-
var
|
|
25253
|
-
|
|
25254
|
-
|
|
25255
|
-
|
|
25256
|
-
|
|
25257
|
-
|
|
25258
|
-
|
|
25259
|
-
|
|
25281
|
+
lib$7.default = render3;
|
|
25282
|
+
function renderNode(node2, options2) {
|
|
25283
|
+
switch (node2.type) {
|
|
25284
|
+
case ElementType.Root:
|
|
25285
|
+
return render3(node2.children, options2);
|
|
25286
|
+
case ElementType.Directive:
|
|
25287
|
+
case ElementType.Doctype:
|
|
25288
|
+
return renderDirective(node2);
|
|
25289
|
+
case ElementType.Comment:
|
|
25290
|
+
return renderComment(node2);
|
|
25291
|
+
case ElementType.CDATA:
|
|
25292
|
+
return renderCdata(node2);
|
|
25293
|
+
case ElementType.Script:
|
|
25294
|
+
case ElementType.Style:
|
|
25295
|
+
case ElementType.Tag:
|
|
25296
|
+
return renderTag(node2, options2);
|
|
25297
|
+
case ElementType.Text:
|
|
25298
|
+
return renderText(node2, options2);
|
|
25299
|
+
}
|
|
25300
|
+
}
|
|
25301
|
+
var foreignModeIntegrationPoints = /* @__PURE__ */ new Set(["mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignObject", "desc", "title"]);
|
|
25302
|
+
var foreignElements = /* @__PURE__ */ new Set(["svg", "math"]);
|
|
25303
|
+
function renderTag(elem, opts) {
|
|
25304
|
+
var _a;
|
|
25305
|
+
if (opts.xmlMode === "foreign") {
|
|
25306
|
+
elem.name = (_a = foreignNames_1.elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;
|
|
25307
|
+
if (elem.parent && foreignModeIntegrationPoints.has(elem.parent.name)) {
|
|
25308
|
+
opts = __assign2(__assign2({}, opts), {
|
|
25309
|
+
xmlMode: false
|
|
25310
|
+
});
|
|
25311
|
+
}
|
|
25312
|
+
}
|
|
25313
|
+
if (!opts.xmlMode && foreignElements.has(elem.name)) {
|
|
25314
|
+
opts = __assign2(__assign2({}, opts), {
|
|
25315
|
+
xmlMode: "foreign"
|
|
25260
25316
|
});
|
|
25261
25317
|
}
|
|
25318
|
+
var tag = "<" + elem.name;
|
|
25319
|
+
var attribs = formatAttributes(elem.attribs, opts);
|
|
25320
|
+
if (attribs) {
|
|
25321
|
+
tag += " " + attribs;
|
|
25322
|
+
}
|
|
25323
|
+
if (elem.children.length === 0 && (opts.xmlMode ? (
|
|
25324
|
+
// In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags
|
|
25325
|
+
opts.selfClosingTags !== false
|
|
25326
|
+
) : (
|
|
25327
|
+
// User explicitly asked for self-closing tags, even in HTML mode
|
|
25328
|
+
opts.selfClosingTags && singleTag.has(elem.name)
|
|
25329
|
+
))) {
|
|
25330
|
+
if (!opts.xmlMode) tag += " ";
|
|
25331
|
+
tag += "/>";
|
|
25332
|
+
} else {
|
|
25333
|
+
tag += ">";
|
|
25334
|
+
if (elem.children.length > 0) {
|
|
25335
|
+
tag += render3(elem.children, opts);
|
|
25336
|
+
}
|
|
25337
|
+
if (opts.xmlMode || !singleTag.has(elem.name)) {
|
|
25338
|
+
tag += "</" + elem.name + ">";
|
|
25339
|
+
}
|
|
25340
|
+
}
|
|
25341
|
+
return tag;
|
|
25262
25342
|
}
|
|
25263
|
-
|
|
25264
|
-
|
|
25265
|
-
xmlMode: "foreign"
|
|
25266
|
-
});
|
|
25267
|
-
}
|
|
25268
|
-
var tag = "<" + elem.name;
|
|
25269
|
-
var attribs = formatAttributes(elem.attribs, opts);
|
|
25270
|
-
if (attribs) {
|
|
25271
|
-
tag += " " + attribs;
|
|
25343
|
+
function renderDirective(elem) {
|
|
25344
|
+
return "<" + elem.data + ">";
|
|
25272
25345
|
}
|
|
25273
|
-
|
|
25274
|
-
|
|
25275
|
-
opts.
|
|
25276
|
-
|
|
25277
|
-
// User explicitly asked for self-closing tags, even in HTML mode
|
|
25278
|
-
opts.selfClosingTags && singleTag.has(elem.name)
|
|
25279
|
-
))) {
|
|
25280
|
-
if (!opts.xmlMode) tag += " ";
|
|
25281
|
-
tag += "/>";
|
|
25282
|
-
} else {
|
|
25283
|
-
tag += ">";
|
|
25284
|
-
if (elem.children.length > 0) {
|
|
25285
|
-
tag += render$2(elem.children, opts);
|
|
25286
|
-
}
|
|
25287
|
-
if (opts.xmlMode || !singleTag.has(elem.name)) {
|
|
25288
|
-
tag += "</" + elem.name + ">";
|
|
25346
|
+
function renderText(elem, opts) {
|
|
25347
|
+
var data2 = elem.data || "";
|
|
25348
|
+
if (opts.decodeEntities !== false && !(!opts.xmlMode && elem.parent && unencodedElements.has(elem.parent.name))) {
|
|
25349
|
+
data2 = entities_1.encodeXML(data2);
|
|
25289
25350
|
}
|
|
25351
|
+
return data2;
|
|
25290
25352
|
}
|
|
25291
|
-
|
|
25292
|
-
|
|
25293
|
-
function renderDirective(elem) {
|
|
25294
|
-
return "<" + elem.data + ">";
|
|
25295
|
-
}
|
|
25296
|
-
function renderText(elem, opts) {
|
|
25297
|
-
var data2 = elem.data || "";
|
|
25298
|
-
if (opts.decodeEntities !== false && !(!opts.xmlMode && elem.parent && unencodedElements.has(elem.parent.name))) {
|
|
25299
|
-
data2 = entities_1.encodeXML(data2);
|
|
25353
|
+
function renderCdata(elem) {
|
|
25354
|
+
return "<![CDATA[" + elem.children[0].data + "]]>";
|
|
25300
25355
|
}
|
|
25301
|
-
|
|
25302
|
-
|
|
25303
|
-
|
|
25304
|
-
return
|
|
25305
|
-
}
|
|
25306
|
-
function renderComment(elem) {
|
|
25307
|
-
return "<!--" + elem.data + "-->";
|
|
25356
|
+
function renderComment(elem) {
|
|
25357
|
+
return "<!--" + elem.data + "-->";
|
|
25358
|
+
}
|
|
25359
|
+
return lib$7;
|
|
25308
25360
|
}
|
|
25309
25361
|
var __importDefault$3 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
25310
25362
|
return mod2 && mod2.__esModule ? mod2 : {
|
|
@@ -25316,7 +25368,7 @@ Object.defineProperty(stringify, "__esModule", {
|
|
|
25316
25368
|
});
|
|
25317
25369
|
stringify.innerText = stringify.textContent = stringify.getText = stringify.getInnerHTML = stringify.getOuterHTML = void 0;
|
|
25318
25370
|
var domhandler_1$6 = lib$9;
|
|
25319
|
-
var dom_serializer_1 = __importDefault$3(
|
|
25371
|
+
var dom_serializer_1 = __importDefault$3(requireLib$5());
|
|
25320
25372
|
var domelementtype_1 = lib$8;
|
|
25321
25373
|
function getOuterHTML(node2, options2) {
|
|
25322
25374
|
return (0, dom_serializer_1.default)(node2, options2);
|
|
@@ -29058,8 +29110,8 @@ FeedHandler$1.parseFeed = parseFeed;
|
|
|
29058
29110
|
return __importDefault2(Tokenizer_12).default;
|
|
29059
29111
|
}
|
|
29060
29112
|
});
|
|
29061
|
-
var
|
|
29062
|
-
exports2.ElementType =
|
|
29113
|
+
var ElementType = __importStar2(lib$8);
|
|
29114
|
+
exports2.ElementType = ElementType;
|
|
29063
29115
|
__exportStar2(FeedHandler$1, exports2);
|
|
29064
29116
|
exports2.DomUtils = __importStar2(lib$a);
|
|
29065
29117
|
var FeedHandler_1 = FeedHandler$1;
|
|
@@ -37049,7 +37101,7 @@ function requireHtmlparser2Adapter() {
|
|
|
37049
37101
|
return htmlparser2_12.parseDocument;
|
|
37050
37102
|
}
|
|
37051
37103
|
});
|
|
37052
|
-
var dom_serializer_12 =
|
|
37104
|
+
var dom_serializer_12 = requireLib$5();
|
|
37053
37105
|
Object.defineProperty(exports2, "render", {
|
|
37054
37106
|
enumerable: true,
|
|
37055
37107
|
get: function() {
|
|
@@ -65524,6 +65576,10 @@ const OPTIONS_INFO = {
|
|
|
65524
65576
|
name: "Axis Margin",
|
|
65525
65577
|
inlineOptions: sizesInPx([0, 10, 20, 30, 40, 50, 100, 200, 400], "px")
|
|
65526
65578
|
},
|
|
65579
|
+
reverseAxis: {
|
|
65580
|
+
name: "Reverse Axis",
|
|
65581
|
+
inlineOptions: YES_NO
|
|
65582
|
+
},
|
|
65527
65583
|
colorbarPosition: {
|
|
65528
65584
|
name: "Colorbar Position",
|
|
65529
65585
|
inlineOptions: {
|
|
@@ -78884,6 +78940,12 @@ let LeftAxisTrack = /* @__PURE__ */ function(_SVGTrack) {
|
|
|
78884
78940
|
key: "draw",
|
|
78885
78941
|
value: function draw() {
|
|
78886
78942
|
this.axis.scale(this._yScale);
|
|
78943
|
+
if (this.options.reverseAxis === "yes" || this.options.reverseAxis === true) {
|
|
78944
|
+
const defaultFormat = format$1(",");
|
|
78945
|
+
this.axis.tickFormat((d) => defaultFormat(-d));
|
|
78946
|
+
} else {
|
|
78947
|
+
this.axis.tickFormat(null);
|
|
78948
|
+
}
|
|
78887
78949
|
this.gAxis.call(this.axis);
|
|
78888
78950
|
return this;
|
|
78889
78951
|
}
|
|
@@ -90279,7 +90341,7 @@ Object.assign(LruCache.prototype, {
|
|
|
90279
90341
|
toJSON,
|
|
90280
90342
|
toString: toString2
|
|
90281
90343
|
});
|
|
90282
|
-
const version = "2.1
|
|
90344
|
+
const version = "2.2.1";
|
|
90283
90345
|
const configs = {
|
|
90284
90346
|
..._configs,
|
|
90285
90347
|
IS_TRACK_RANGE_SELECTABLE,
|
|
@@ -107749,6 +107811,7 @@ ${svgString}`;
|
|
|
107749
107811
|
isFromVerticalTrack: evt.isFromVerticalTrack
|
|
107750
107812
|
});
|
|
107751
107813
|
this.showHoverMenu(evt);
|
|
107814
|
+
this.showHoverUids(evt);
|
|
107752
107815
|
}
|
|
107753
107816
|
}, {
|
|
107754
107817
|
key: "getMinMaxValue",
|
|
@@ -107767,6 +107830,22 @@ ${svgString}`;
|
|
|
107767
107830
|
}
|
|
107768
107831
|
return [track.minVisibleValueInTiles(ignoreFixedScale), track.maxVisibleValueInTiles(ignoreFixedScale)];
|
|
107769
107832
|
}
|
|
107833
|
+
/*
|
|
107834
|
+
* Someone has hovered over an item in sourceTrack so we need to inform
|
|
107835
|
+
* any other track that has that item that it's been hovered over.
|
|
107836
|
+
*/
|
|
107837
|
+
}, {
|
|
107838
|
+
key: "showHoverUids",
|
|
107839
|
+
value: function showHoverUids(evt) {
|
|
107840
|
+
var _a;
|
|
107841
|
+
const mouseOverUids = ((_a = evt.track) == null ? void 0 : _a.getMouseOverUids) ? evt.track.getMouseOverUids(evt.relTrackX, evt.relTrackY) : null;
|
|
107842
|
+
for (const track of this.iterateOverTracks()) {
|
|
107843
|
+
const trackObj = getTrackObjById(this.tiledPlots, track.viewId, track.trackId);
|
|
107844
|
+
if (trackObj.itemsHovered) {
|
|
107845
|
+
trackObj.itemsHovered(mouseOverUids);
|
|
107846
|
+
}
|
|
107847
|
+
}
|
|
107848
|
+
}
|
|
107770
107849
|
/**
|
|
107771
107850
|
* Show a menu displaying some information about the track under it
|
|
107772
107851
|
*/
|