@hpcc-js/common 3.3.1 → 3.3.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.
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +3 -3
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.common_Widget{font-family:Verdana,Geneva,sans-serif;font-size:12px}#hpcc_js_font_size{display:none}.common_Text{fill:#000;font-size:12px}.common_FAChar .common_Text{font-size:14px}.common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Icon .common_FAChar .common_Text{fill:#fff}.common_Icon .common_FAChar .common_Text,.common_Icon .common_FAChar .common_Text g,.common_Icon .common_FAChar .common_Text text,.common_Icon .common_FAChar .common_Text tspan{pointer-events:none}.common_EntityRectList .entityRectItem{margin:6px;border-width:2px;border-radius:8px;border-color:"black";border-style:solid}.common_EntityRectList .entityRectItem rect{stroke-width:4px;shape-rendering:geometricPrecision}.common_EntityRect .entity_shape>g>rect{shape-rendering:geometricPrecision}.common_TextBox .common_Shape{fill:#dcf1ff;stroke:#1f77b4}.common_List .common_TextBox .common_Shape{fill:#dcf1ff;stroke:#dcf1ff}.common_List .common_TextBox .common_Text{pointer-events:none}.common_List .common_TextBox .common_Shape:hover{fill:#fff;stroke:#fff}.common_Menu .common_FAChar{fill:#fff;cursor:pointer}.common_Menu.disabled .common_FAChar{visibility:hidden;cursor:inherit}.common_Menu .common_List .common_TextBox .common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Menu .common_List .common_TextBox .common_Text{fill:#fff}.common_Menu .common_List .common_TextBox .common_Shape:hover{fill:#ff7f0e;stroke:#ff7f0e}.common_Surface .container .common_Shape{fill:#f9fcff;stroke:#1f77b4;stroke-width:1px}.common_Surface .title{cursor:move}.common_Surface .title .common_Shape{fill:#1f77b4;stroke:#1f77b4;stroke-width:1px}.common_Surface .title text{fill:#fff;stroke:none}.svg-button-container{position:fixed}.svg-button-container .surface-button{position:relative;background:transparent;border:none;opacity:.8;color:#fff}.svg-button-container .surface-button:hover{opacity:1}.svg-button-container .surface-button:active{opacity:.5}.resizeN{cursor:ns-resize;opacity:0}.resizeNE{cursor:ne-resize;opacity:0}.resizeE{cursor:ew-resize;opacity:0}.resizeSE{cursor:se-resize;opacity:0}.resizeS{cursor:ns-resize;opacity:0}.resizeSW{cursor:sw-resize;opacity:0}.resizeW{cursor:ew-resize;opacity:0}.resizeNW{cursor:nw-resize;opacity:0}.common_IconBar{display:flex;flex-flow:row;justify-content:space-between}.common_IconBar .icon-bar{display:flex;opacity:.95;flex-wrap:nowrap;margin:0;white-space:nowrap;line-height:28px;z-index:1}.common_IconBar .icon-bar a{text-align:center;padding:4px 2px;transition:all .3s ease;color:#a9a9a9}.common_IconBar .icon-bar a.disabled{opacity:.3;pointer-events:none;color:#a9a9a9}.common_IconBar .icon-bar a:hover{background-color:#f5f5f5}.common_IconBar .icon-bar a{background-color:#fff}.common_IconBar .icon-bar a.selected{background-color:#efe5e5}.common_IconBar .icon-bar div.spacer{text-align:center;height:28px;border-left-style:solid;border-left-width:1px;border-left-color:transparent;padding-top:0;padding-left:2px;margin-left:2px;padding-bottom:0}.common_IconBar .icon-bar div.spacer.vline{border-left-color:#a9a9a9;padding-left:4px;margin-left:4px}.common_IconBar .icon-bar a.spacer:hover{background-color:transparent}.common_TitleBar>.title-title{margin:4px}.common_TitleBar>.icon-bar{margin:4px}.common_TitleBar .title-icon{padding:4px 0;position:static}.common_TitleBar .data-count{position:absolute;visibility:hidden}.common_TitleBar .title-text{padding:4px 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;font-weight:700}.common_TitleBar .description-text{padding:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:400}.common_SVGZoomWidget .zoomBackground{pointer-events:all;fill:none}.common_SVGZoomWidget rect.marqueeSelection{stroke:gray;stroke-dasharray:4px;stroke-opacity:.75;fill:transparent;pointer-events:none}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
|
|
4
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
|
|
@@ -5867,7 +5866,6 @@ class SVGWidget extends Widget {
|
|
|
5867
5866
|
});
|
|
5868
5867
|
break;
|
|
5869
5868
|
case "center":
|
|
5870
|
-
/* falls through */
|
|
5871
5869
|
default:
|
|
5872
5870
|
this.pos({
|
|
5873
5871
|
x: this._size.width / 2,
|
|
@@ -6483,7 +6481,12 @@ var index = {
|
|
|
6483
6481
|
11: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd", "#ccebc5"],
|
|
6484
6482
|
12: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd", "#ccebc5", "#ffed6f"]
|
|
6485
6483
|
}
|
|
6486
|
-
}
|
|
6484
|
+
};
|
|
6485
|
+
const _colorbrewer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6486
|
+
__proto__: null,
|
|
6487
|
+
default: index
|
|
6488
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6489
|
+
var array = Array.prototype, map = array.map, slice = array.slice, implicit = { name: "implicit" };
|
|
6487
6490
|
function ordinal$1(range) {
|
|
6488
6491
|
var index2 = map$2(), domain = [], unknown = implicit;
|
|
6489
6492
|
range = range == null ? [] : slice.call(range);
|
|
@@ -6954,7 +6957,7 @@ const d3Schemes = {
|
|
|
6954
6957
|
category20: d3SchemeCategory20,
|
|
6955
6958
|
category20b: d3SchemeCategory20b,
|
|
6956
6959
|
category20c: d3SchemeCategory20c
|
|
6957
|
-
}, m_colorbrewer = index, m_d3 = {
|
|
6960
|
+
}, m_colorbrewer = index || _colorbrewer, m_d3 = {
|
|
6958
6961
|
Viridis: d3InterpolateViridis,
|
|
6959
6962
|
Magma: magma,
|
|
6960
6963
|
Inferno: inferno,
|
|
@@ -8071,7 +8074,6 @@ function d3Drag() {
|
|
|
8071
8074
|
break;
|
|
8072
8075
|
case "end":
|
|
8073
8076
|
delete gestures[id2], --active2;
|
|
8074
|
-
// nobreak
|
|
8075
8077
|
case "drag":
|
|
8076
8078
|
p = point2(container2, id2), n = active2;
|
|
8077
8079
|
break;
|
|
@@ -8242,25 +8244,21 @@ class ResizeSurface extends Surface {
|
|
|
8242
8244
|
switch (d.loc) {
|
|
8243
8245
|
case "NW":
|
|
8244
8246
|
delta.x = _dx / 2, delta.w = -_dx;
|
|
8245
|
-
/* falls through */
|
|
8246
8247
|
case "N":
|
|
8247
8248
|
delta.y = _dy / 2, delta.h = -_dy;
|
|
8248
8249
|
break;
|
|
8249
8250
|
case "NE":
|
|
8250
8251
|
delta.y = _dy / 2, delta.h = -_dy;
|
|
8251
|
-
/* falls through */
|
|
8252
8252
|
case "E":
|
|
8253
8253
|
delta.x = _dx / 2, delta.w = _dx;
|
|
8254
8254
|
break;
|
|
8255
8255
|
case "SE":
|
|
8256
8256
|
delta.x = _dx / 2, delta.w = _dx;
|
|
8257
|
-
/* falls through */
|
|
8258
8257
|
case "S":
|
|
8259
8258
|
delta.y = _dy / 2, delta.h = _dy;
|
|
8260
8259
|
break;
|
|
8261
8260
|
case "SW":
|
|
8262
8261
|
delta.y = _dy / 2, delta.h = _dy;
|
|
8263
|
-
/* falls through */
|
|
8264
8262
|
case "W":
|
|
8265
8263
|
delta.x = _dx / 2, delta.w = -_dx;
|
|
8266
8264
|
break;
|
|
@@ -8974,7 +8972,7 @@ function nopropagation() {
|
|
|
8974
8972
|
function noevent() {
|
|
8975
8973
|
event.preventDefault(), event.stopImmediatePropagation();
|
|
8976
8974
|
}
|
|
8977
|
-
var MODE_DRAG = {
|
|
8975
|
+
var MODE_DRAG = {}, MODE_SPACE = { name: "space" }, MODE_HANDLE = { name: "handle" }, MODE_CENTER = { name: "center" };
|
|
8978
8976
|
function number1(e) {
|
|
8979
8977
|
return [+e[0], +e[1]];
|
|
8980
8978
|
}
|
|
@@ -9529,3 +9527,4 @@ export {
|
|
|
9529
9527
|
transform as zoomTransform
|
|
9530
9528
|
};
|
|
9531
9529
|
//# sourceMappingURL=index.js.map
|
|
9530
|
+
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.common_Widget{font-family:Verdana,Geneva,sans-serif;font-size:12px}#hpcc_js_font_size{display:none}.common_Text{fill:#000;font-size:12px}.common_FAChar .common_Text{font-size:14px}.common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Icon .common_FAChar .common_Text{fill:#fff}.common_Icon .common_FAChar .common_Text,.common_Icon .common_FAChar .common_Text g,.common_Icon .common_FAChar .common_Text text,.common_Icon .common_FAChar .common_Text tspan{pointer-events:none}.common_EntityRectList .entityRectItem{margin:6px;border-width:2px;border-radius:8px;border-color:"black";border-style:solid}.common_EntityRectList .entityRectItem rect{stroke-width:4px;shape-rendering:geometricPrecision}.common_EntityRect .entity_shape>g>rect{shape-rendering:geometricPrecision}.common_TextBox .common_Shape{fill:#dcf1ff;stroke:#1f77b4}.common_List .common_TextBox .common_Shape{fill:#dcf1ff;stroke:#dcf1ff}.common_List .common_TextBox .common_Text{pointer-events:none}.common_List .common_TextBox .common_Shape:hover{fill:#fff;stroke:#fff}.common_Menu .common_FAChar{fill:#fff;cursor:pointer}.common_Menu.disabled .common_FAChar{visibility:hidden;cursor:inherit}.common_Menu .common_List .common_TextBox .common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Menu .common_List .common_TextBox .common_Text{fill:#fff}.common_Menu .common_List .common_TextBox .common_Shape:hover{fill:#ff7f0e;stroke:#ff7f0e}.common_Surface .container .common_Shape{fill:#f9fcff;stroke:#1f77b4;stroke-width:1px}.common_Surface .title{cursor:move}.common_Surface .title .common_Shape{fill:#1f77b4;stroke:#1f77b4;stroke-width:1px}.common_Surface .title text{fill:#fff;stroke:none}.svg-button-container{position:fixed}.svg-button-container .surface-button{position:relative;background:transparent;border:none;opacity:.8;color:#fff}.svg-button-container .surface-button:hover{opacity:1}.svg-button-container .surface-button:active{opacity:.5}.resizeN{cursor:ns-resize;opacity:0}.resizeNE{cursor:ne-resize;opacity:0}.resizeE{cursor:ew-resize;opacity:0}.resizeSE{cursor:se-resize;opacity:0}.resizeS{cursor:ns-resize;opacity:0}.resizeSW{cursor:sw-resize;opacity:0}.resizeW{cursor:ew-resize;opacity:0}.resizeNW{cursor:nw-resize;opacity:0}.common_IconBar{display:flex;flex-flow:row;justify-content:space-between}.common_IconBar .icon-bar{display:flex;opacity:.95;flex-wrap:nowrap;margin:0;white-space:nowrap;line-height:28px;z-index:1}.common_IconBar .icon-bar a{text-align:center;padding:4px 2px;transition:all .3s ease;color:#a9a9a9}.common_IconBar .icon-bar a.disabled{opacity:.3;pointer-events:none;color:#a9a9a9}.common_IconBar .icon-bar a:hover{background-color:#f5f5f5}.common_IconBar .icon-bar a{background-color:#fff}.common_IconBar .icon-bar a.selected{background-color:#efe5e5}.common_IconBar .icon-bar div.spacer{text-align:center;height:28px;border-left-style:solid;border-left-width:1px;border-left-color:transparent;padding-top:0;padding-left:2px;margin-left:2px;padding-bottom:0}.common_IconBar .icon-bar div.spacer.vline{border-left-color:#a9a9a9;padding-left:4px;margin-left:4px}.common_IconBar .icon-bar a.spacer:hover{background-color:transparent}.common_TitleBar>.title-title{margin:4px}.common_TitleBar>.icon-bar{margin:4px}.common_TitleBar .title-icon{padding:4px 0;position:static}.common_TitleBar .data-count{position:absolute;visibility:hidden}.common_TitleBar .title-text{padding:4px 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;font-weight:700}.common_TitleBar .description-text{padding:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:400}.common_SVGZoomWidget .zoomBackground{pointer-events:all;fill:none}.common_SVGZoomWidget rect.marqueeSelection{stroke:gray;stroke-dasharray:4px;stroke-opacity:.75;fill:transparent;pointer-events:none}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|