@hpcc-js/react 2.55.0 → 3.1.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/dist/index.js +2 -575
- package/dist/index.js.map +7 -1
- package/package.json +29 -33
- package/src/ImageChar.tsx +10 -7
- package/src/__package__.ts +2 -2
- package/src/edge.tsx +2 -2
- package/src/icon.tsx +9 -9
- package/src/image.tsx +2 -2
- package/src/index.ts +14 -12
- package/src/render.ts +13 -5
- package/src/shape.tsx +14 -14
- package/src/span.tsx +9 -0
- package/src/subgraph.tsx +2 -2
- package/src/text.tsx +53 -34
- package/src/vertex.tsx +16 -13
- package/src/vertex2.tsx +4 -4
- package/src/vertex3.tsx +10 -10
- package/src/vertex4.tsx +9 -10
- package/types/ImageChar.d.ts +3 -4
- package/types/__package__.d.ts +2 -3
- package/types/edge.d.ts +1 -2
- package/types/icon.d.ts +5 -6
- package/types/image.d.ts +2 -3
- package/types/index.d.ts +14 -13
- package/types/render.d.ts +6 -3
- package/types/shape.d.ts +8 -9
- package/types/span.d.ts +5 -0
- package/types/subgraph.d.ts +0 -1
- package/types/text.d.ts +10 -12
- package/types/vertex.d.ts +4 -5
- package/types/vertex2.d.ts +1 -2
- package/types/vertex3.d.ts +7 -8
- package/types/vertex4.d.ts +3 -4
- package/dist/index.es6.js +0 -542
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/types/ImageChar.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/edge.d.ts.map +0 -1
- package/types/icon.d.ts.map +0 -1
- package/types/image.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types/render.d.ts.map +0 -1
- package/types/shape.d.ts.map +0 -1
- package/types/subgraph.d.ts.map +0 -1
- package/types/text.d.ts.map +0 -1
- package/types/vertex.d.ts.map +0 -1
- package/types/vertex2.d.ts.map +0 -1
- package/types/vertex3.d.ts.map +0 -1
- package/types/vertex4.d.ts.map +0 -1
- package/types-3.4/ImageChar.d.ts +0 -14
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/edge.d.ts +0 -30
- package/types-3.4/icon.d.ts +0 -27
- package/types-3.4/image.d.ts +0 -11
- package/types-3.4/index.d.ts +0 -15
- package/types-3.4/render.d.ts +0 -27
- package/types-3.4/shape.d.ts +0 -41
- package/types-3.4/subgraph.d.ts +0 -14
- package/types-3.4/text.d.ts +0 -51
- package/types-3.4/vertex.d.ts +0 -33
- package/types-3.4/vertex2.d.ts +0 -4
- package/types-3.4/vertex3.d.ts +0 -34
- package/types-3.4/vertex4.d.ts +0 -32
package/dist/index.js
CHANGED
|
@@ -1,576 +1,3 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/react"] = {}, global["@hpcc-js/common"]));
|
|
5
|
-
})(this, (function (exports, common) { 'use strict';
|
|
6
|
-
|
|
7
|
-
var PKG_NAME$1 = "@hpcc-js/react";
|
|
8
|
-
var PKG_VERSION$1 = "2.55.0";
|
|
9
|
-
var BUILD_VERSION$1 = "2.107.0";
|
|
10
|
-
|
|
11
|
-
var PKG_NAME = "@hpcc-js/preact-shim";
|
|
12
|
-
var PKG_VERSION = "2.18.0";
|
|
13
|
-
var BUILD_VERSION = "2.107.0";
|
|
14
|
-
|
|
15
|
-
var n,l$1,u$1,i$1,o$1,r$1,f$1,e$1,c$1,s$1,h$1={},v$1=[],p$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y$1=Array.isArray;function d$1(n,l){for(var u in l)n[u]=l[u];return n}function w$1(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function b(n){return n.children}function k$1(n,l){this.props=n,this.context=l;}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?x(n):null}function C$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C$1(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!P.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(P);}function P(){var n,u,t,o,r,e,c,s;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j$1(c,o,s),o.__e!=e&&C$1(o)),i$1.length>u&&i$1.sort(f$1));P.__r=0;}function S(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,w,_=t&&t.__k||v$1,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&(p=-1===y.__i?h$1:_[y.__i]||h$1,y.__i=a,O(n,y,p,i,o,r,f,e,c,s),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&N(p.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||p.__k===y.__k?e=I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w;}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=l[t])&&"boolean"!=typeof i&&"function"!=typeof i?(r=t+a,(i=n.__k[t]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y$1(i)?g(b,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,o=null,-1!==(f=i.__i=L(i,u,r,s))&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a--:f==r+1?a++:(f>r?a--:a++,i.__u|=65536))):i=n.__k[t]=null;if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o));}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=x(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function T$1(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||p$1.test(l)?u:u+"px";}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T$1(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T$1(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e$1,n.addEventListener(l,o?s$1:c$1,o)):n.removeEventListener(l,o?s$1:c$1,o);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=e$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,v,p,w,_,g,m,x,C,M,P,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,M):(u.__c=h=new k$1(m,M),h.constructor=T,h.render=q$1),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=M,h.__n=i,v=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d$1({},h.__s)),d$1(h.__s,T.getDerivedStateFromProps(m,h.__s))),p=h.props,w=h.state,h.__v=u,v)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(x&&null==T.getDerivedStateFromProps&&m!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,M)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,M),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,w,_);});}if(h.context=M,h.props=m,h.__P=n,h.__e=!1,$=l$1.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d$1(d$1({},i),h.getChildContext())),x&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(p,w)),S(n,y$1(L=null!=a&&a.type===b&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:32;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e;}else u.__e=t.__e,u.__k=t.__k;l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z$1(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function j$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function z$1(u,t,i,o,r,f,e,c,s){var a,v,p,d,_,g,m,b=i.props,k=t.props,C=t.type;if("svg"===C?r="http://www.w3.org/2000/svg":"math"===C?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((_=f[a])&&"setAttribute"in _==!!C&&(C?_.localName===C:3===_.nodeType)){u=_,f[a]=null;break}if(null==u){if(null===C)return document.createTextNode(k);u=document.createElementNS(r,C,k.is&&k),c&&(l$1.__m&&l$1.__m(t,f),c=!1),f=null;}if(null===C)b===k||c&&u.data===k||(u.data=k);else {if(f=f&&n.call(u.childNodes),b=i.props||h$1,!c&&null!=f)for(b={},a=0;a<u.attributes.length;a++)b[(_=u.attributes[a]).name]=_.value;for(a in b)if(_=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=_;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;A(u,a,null,_,r);}for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?m=_:c&&"function"!=typeof _||b[a]===_||A(u,a,_,b[a],r);if(v)c||p&&(v.__html===p.__html||v.__html===u.innerHTML)||(u.innerHTML=v.__html),t.__k=[];else if(p&&(u.innerHTML=""),S(u,y$1(d)?d:[d],t,i,o,"foreignObject"===C?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:i.__k&&x(i,0),c,s),null!=f)for(a=f.length;a--;)w$1(f[a]);c||(a="value","progress"===C&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===C&&!g||"option"===C&&g!==b[a])&&A(u,a,g,b[a],r),a="checked",void 0!==m&&m!==u[a]&&A(u,a,m,b[a],r));}return u}function N(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$1.__e(n,t);}}function V(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||w$1(n.__e),n.__c=n.__=n.__e=n.__d=void 0;}function q$1(n,l,u){return this.constructor(n,u)}function B$1(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_(b,null,[u]),r||h$1,h$1,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j$1(f,u,e);}n=v$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,k$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d$1({},this.state),"function"==typeof n&&(n=n(d$1({},u),this.props)),n&&d$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},k$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this));},k$1.prototype.render=b,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e$1=0,c$1=F(!1),s$1=F(!0);
|
|
16
|
-
|
|
17
|
-
var t,r,u,i,o=0,f=[],c=l$1,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function d(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return o=1,p(D,n)}function p(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return !!n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function y(n,u){var i=d(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i));}function T(n,r){var u=d(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[];}catch(t){n.__H.__h=[],c.__e(t,n.__v);}}c.__b=function(n){r=null,e&&e(n);},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t);},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0;})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r;},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0;})),u=r=null;},c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return !n.__||B(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],c.__e(r,n.__v);}}),l&&l(n,t);},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n);}catch(n){t=n;}}),r.__H=void 0,t&&c.__e(t,r.__v));};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r));}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function B(n){var t=r;n.__c=n.__(),r=t;}function C(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return "function"==typeof t?t(n):t}
|
|
18
|
-
|
|
19
|
-
var index_es6 = /*#__PURE__*/Object.freeze({
|
|
20
|
-
__proto__: null,
|
|
21
|
-
BUILD_VERSION: BUILD_VERSION,
|
|
22
|
-
Component: k$1,
|
|
23
|
-
Fragment: b,
|
|
24
|
-
PKG_NAME: PKG_NAME,
|
|
25
|
-
PKG_VERSION: PKG_VERSION,
|
|
26
|
-
createElement: _,
|
|
27
|
-
h: _,
|
|
28
|
-
render: B$1,
|
|
29
|
-
useCallback: q,
|
|
30
|
-
useEffect: y,
|
|
31
|
-
useMemo: T,
|
|
32
|
-
useReducer: p,
|
|
33
|
-
useState: h
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
/******************************************************************************
|
|
37
|
-
Copyright (c) Microsoft Corporation.
|
|
38
|
-
|
|
39
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
40
|
-
purpose with or without fee is hereby granted.
|
|
41
|
-
|
|
42
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
43
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
44
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
45
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
46
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
47
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
48
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
49
|
-
***************************************************************************** */
|
|
50
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
51
|
-
|
|
52
|
-
var extendStatics = function(d, b) {
|
|
53
|
-
extendStatics = Object.setPrototypeOf ||
|
|
54
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
55
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
56
|
-
return extendStatics(d, b);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
function __extends(d, b) {
|
|
60
|
-
if (typeof b !== "function" && b !== null)
|
|
61
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
62
|
-
extendStatics(d, b);
|
|
63
|
-
function __() { this.constructor = d; }
|
|
64
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
var __assign = function() {
|
|
68
|
-
__assign = Object.assign || function __assign(t) {
|
|
69
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
70
|
-
s = arguments[i];
|
|
71
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
72
|
-
}
|
|
73
|
-
return t;
|
|
74
|
-
};
|
|
75
|
-
return __assign.apply(this, arguments);
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
function __decorate(decorators, target, key, desc) {
|
|
79
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
80
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
81
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
82
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function __metadata(metadataKey, metadataValue) {
|
|
86
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
90
|
-
var e = new Error(message);
|
|
91
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
var Image = function (_a) {
|
|
95
|
-
var href = _a.href, x = _a.x, _b = _a.y, y = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c;
|
|
96
|
-
return _("image", { href: href, x: x - height / 2, y: y - height / 2, width: height, height: height });
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
var ImageChar = function (_a) {
|
|
100
|
-
var x = _a.x, _b = _a.y, y = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.fontFamily, fontFamily = _d === void 0 ? "FontAwesome" : _d, _e = _a.char, char = _e === void 0 ? "" : _e;
|
|
101
|
-
var renderChar = T(function () {
|
|
102
|
-
return fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char;
|
|
103
|
-
}, [char, fontFamily]);
|
|
104
|
-
return _("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, renderChar);
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
var Circle = function (_a) {
|
|
108
|
-
var _b = _a.radius, radius = _b === void 0 ? 32 : _b, _c = _a.fill, fill = _c === void 0 ? "navy" : _c, _d = _a.stroke, stroke = _d === void 0 ? fill : _d, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
|
|
109
|
-
return _("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
|
|
110
|
-
};
|
|
111
|
-
var Square = function (_a) {
|
|
112
|
-
var _b = _a.radius, radius = _b === void 0 ? 30 : _b, _c = _a.cornerRadius, cornerRadius = _c === void 0 ? 0 : _c, _d = _a.fill, fill = _d === void 0 ? "white" : _d, stroke = _a.stroke, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
|
|
113
|
-
return _("rect", { x: -radius, y: -radius, rx: cornerRadius, ry: cornerRadius, width: radius * 2, height: radius * 2, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
|
|
114
|
-
};
|
|
115
|
-
var Rectangle = function (_a) {
|
|
116
|
-
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, _d = _a.cornerRadius, cornerRadius = _d === void 0 ? 0 : _d, _e = _a.fill, fill = _e === void 0 ? "white" : _e, _f = _a.stroke, stroke = _f === void 0 ? "black" : _f, _g = _a.strokeWidth, strokeWidth = _g === void 0 ? 1 : _g, shapeRendering = _a.shapeRendering;
|
|
117
|
-
return _("rect", { x: -width / 2, y: -height / 2, rx: cornerRadius, ry: cornerRadius, width: width, height: height, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
|
|
118
|
-
};
|
|
119
|
-
var Shape = function (_a) {
|
|
120
|
-
var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, _c = _a.height, height = _c === void 0 ? 128 : _c, width = _a.width, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 1 : _d, shapeRendering = _a.shapeRendering, cornerRadius = _a.cornerRadius;
|
|
121
|
-
switch (shape) {
|
|
122
|
-
case "square":
|
|
123
|
-
return _(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
|
|
124
|
-
case "rectangle":
|
|
125
|
-
return _(Rectangle, { width: width !== null && width !== void 0 ? width : height, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
|
|
126
|
-
case "circle":
|
|
127
|
-
default:
|
|
128
|
-
return _(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
var Icon = function (_a) {
|
|
133
|
-
var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, width = _a.width, _c = _a.height, height = _c === void 0 ? 32 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 0 : _d, _e = _a.imageUrl, imageUrl = _e === void 0 ? "" : _e, _f = _a.imageFontFamily, imageFontFamily = _f === void 0 ? "FontAwesome" : _f, _g = _a.imageChar, imageChar = _g === void 0 ? "" : _g, _h = _a.imageCharFill, imageCharFill = _h === void 0 ? common.Palette.textColor(fill) : _h, _j = _a.padding, padding = _j === void 0 ? height / 5 : _j, _k = _a.xOffset, xOffset = _k === void 0 ? 0 : _k, _l = _a.yOffset, yOffset = _l === void 0 ? 0 : _l, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering;
|
|
134
|
-
return _(b, null,
|
|
135
|
-
_(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
|
|
136
|
-
imageUrl ?
|
|
137
|
-
_(Image, { href: imageUrl, x: xOffset, y: yOffset, height: height - padding }) :
|
|
138
|
-
_(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
|
|
139
|
-
};
|
|
140
|
-
var Icons = function (_a) {
|
|
141
|
-
var _b = _a.icons, icons = _b === void 0 ? [] : _b;
|
|
142
|
-
var IconComponents = icons.map(function (cat) {
|
|
143
|
-
return _("g", { key: cat.id, id: cat.id },
|
|
144
|
-
_(Icon, __assign({}, cat)));
|
|
145
|
-
});
|
|
146
|
-
return _(b, null, IconComponents);
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
var TextLine = function (_a) {
|
|
150
|
-
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.anchor, anchor = _c === void 0 ? "middle" : _c, _d = _a.baseline, baseline = _d === void 0 ? "middle" : _d, _e = _a.fontFamily, fontFamily = _e === void 0 ? "Verdana" : _e, _f = _a.fill, fill = _f === void 0 ? "black" : _f;
|
|
151
|
-
return _("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
|
|
152
|
-
};
|
|
153
|
-
var Text = function (_a) {
|
|
154
|
-
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.fill, fill = _d === void 0 ? "black" : _d, onSizeUpdate = _a.onSizeUpdate;
|
|
155
|
-
var _e = h(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1];
|
|
156
|
-
var _f = h(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1];
|
|
157
|
-
y(function () {
|
|
158
|
-
onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
|
|
159
|
-
}, [totalWidth, totalHeight, onSizeUpdate]);
|
|
160
|
-
var parts = T(function () {
|
|
161
|
-
return text.split("\n");
|
|
162
|
-
}, [text]);
|
|
163
|
-
var ts = T(function () {
|
|
164
|
-
return common.Utility.textSize(parts, fontFamily, height);
|
|
165
|
-
}, [fontFamily, height, parts]);
|
|
166
|
-
setTotalWidthUpdate(ts.width);
|
|
167
|
-
setTotalHeightUpdate(parts.length * (height + 2) - 2);
|
|
168
|
-
var yOffset = -(totalHeight / 2) + (height / 2);
|
|
169
|
-
var TextLines = T(function () {
|
|
170
|
-
return parts.map(function (p, i) {
|
|
171
|
-
return _("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") },
|
|
172
|
-
_(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
|
|
173
|
-
});
|
|
174
|
-
}, [fill, fontFamily, height, parts, yOffset]);
|
|
175
|
-
return _(b, null, TextLines);
|
|
176
|
-
};
|
|
177
|
-
var TextBox = function (_a) {
|
|
178
|
-
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.padding, padding = _d === void 0 ? 4 : _d, _e = _a.fill, fill = _e === void 0 ? "whitesmoke" : _e, _f = _a.stroke, stroke = _f === void 0 ? "lightgray" : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.strokeWidth, strokeWidth = _h === void 0 ? 1 : _h, _j = _a.cornerRadius, cornerRadius = _j === void 0 ? 0 : _j, onSizeUpdate = _a.onSizeUpdate;
|
|
179
|
-
var _k = h(0), textWidth = _k[0], setTextWidthUpdate = _k[1];
|
|
180
|
-
var _l = h(0), textHeight = _l[0], setTextHeightUpdate = _l[1];
|
|
181
|
-
y(function () {
|
|
182
|
-
onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
|
|
183
|
-
}, [textWidth, textHeight, onSizeUpdate]);
|
|
184
|
-
var onTextSizeUpdate = q(function (size) {
|
|
185
|
-
setTextWidthUpdate(size.width);
|
|
186
|
-
setTextHeightUpdate(size.height);
|
|
187
|
-
}, []);
|
|
188
|
-
var w = textWidth + padding * 2 + strokeWidth;
|
|
189
|
-
var h$1 = textHeight + padding * 2 + strokeWidth;
|
|
190
|
-
var textOffsetY = Math.floor(height / 10);
|
|
191
|
-
return _(b, null,
|
|
192
|
-
_(Rectangle, { width: w, height: h$1, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
|
|
193
|
-
_("g", { transform: "translate(0 ".concat(textOffsetY, ")") },
|
|
194
|
-
_(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
|
|
195
|
-
};
|
|
196
|
-
var LabelledRect = function (_a) {
|
|
197
|
-
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
|
|
198
|
-
return _(b, null,
|
|
199
|
-
_(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
|
|
200
|
-
_("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
|
|
201
|
-
_(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
|
|
202
|
-
};
|
|
203
|
-
var IconLabelledRect = function (_a) {
|
|
204
|
-
var icon = _a.icon, iconFontFamily = _a.iconFontFamily, text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
|
|
205
|
-
return _(b, null,
|
|
206
|
-
_(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
|
|
207
|
-
_("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
|
|
208
|
-
_(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
|
|
209
|
-
_("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") },
|
|
210
|
-
_(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
var Edge = function (_a) {
|
|
214
|
-
var label = _a.label, labelPos = _a.labelPos, _b = _a.labelFill, labelFill = _b === void 0 ? "black" : _b, _c = _a.labelHeight, labelHeight = _c === void 0 ? 12 : _c, path = _a.path, stroke = _a.stroke, strokeWidth = _a.strokeWidth, strokeDasharray = _a.strokeDasharray;
|
|
215
|
-
return _(b, null,
|
|
216
|
-
_("path", { d: path, stroke: stroke, style: { strokeWidth: strokeWidth, strokeDasharray: strokeDasharray } }),
|
|
217
|
-
label && labelPos && labelPos.length === 2 ?
|
|
218
|
-
_("g", { transform: "translate(".concat(labelPos[0], " ").concat(labelPos[1], ")") },
|
|
219
|
-
_(Text, { text: label, fill: labelFill, height: labelHeight })) : undefined);
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
function render(C, props, parent, replaceNode) {
|
|
223
|
-
B$1(_(C, props), parent, replaceNode);
|
|
224
|
-
}
|
|
225
|
-
function svgRender(C, props, parent, replaceNode) {
|
|
226
|
-
B$1(_("svg", null, _(C, props)), parent, replaceNode);
|
|
227
|
-
}
|
|
228
|
-
var HTMLAdapter = /** @class */ (function (_super) {
|
|
229
|
-
__extends(HTMLAdapter, _super);
|
|
230
|
-
function HTMLAdapter(_component) {
|
|
231
|
-
var _this = _super.call(this) || this;
|
|
232
|
-
_this._component = _component;
|
|
233
|
-
_this._props = {};
|
|
234
|
-
return _this;
|
|
235
|
-
}
|
|
236
|
-
HTMLAdapter.prototype.props = function (_) {
|
|
237
|
-
if (!arguments.length)
|
|
238
|
-
return this._props;
|
|
239
|
-
this._props = __assign(__assign({}, this._props), _);
|
|
240
|
-
return this;
|
|
241
|
-
};
|
|
242
|
-
HTMLAdapter.prototype.prop = function (_, value) {
|
|
243
|
-
if (arguments.length === 1)
|
|
244
|
-
return this._props[_];
|
|
245
|
-
this._props[_] = value;
|
|
246
|
-
return this;
|
|
247
|
-
};
|
|
248
|
-
HTMLAdapter.prototype.update = function (domNode, element) {
|
|
249
|
-
_super.prototype.update.call(this, domNode, element);
|
|
250
|
-
render(this._component, this._props, domNode);
|
|
251
|
-
};
|
|
252
|
-
__decorate([
|
|
253
|
-
common.publish({}, "object", "Properties"),
|
|
254
|
-
__metadata("design:type", Object)
|
|
255
|
-
], HTMLAdapter.prototype, "_props", void 0);
|
|
256
|
-
return HTMLAdapter;
|
|
257
|
-
}(common.HTMLWidget));
|
|
258
|
-
var SVGAdapter = /** @class */ (function (_super) {
|
|
259
|
-
__extends(SVGAdapter, _super);
|
|
260
|
-
function SVGAdapter(_component) {
|
|
261
|
-
var _this = _super.call(this) || this;
|
|
262
|
-
_this._component = _component;
|
|
263
|
-
_this._props = {};
|
|
264
|
-
return _this;
|
|
265
|
-
}
|
|
266
|
-
SVGAdapter.prototype.props = function (_) {
|
|
267
|
-
if (!arguments.length)
|
|
268
|
-
return this._props;
|
|
269
|
-
this._props = __assign(__assign({}, this._props), _);
|
|
270
|
-
return this;
|
|
271
|
-
};
|
|
272
|
-
SVGAdapter.prototype.prop = function (_, value) {
|
|
273
|
-
if (arguments.length === 1)
|
|
274
|
-
return this._props[_];
|
|
275
|
-
this._props[_] = value;
|
|
276
|
-
return this;
|
|
277
|
-
};
|
|
278
|
-
SVGAdapter.prototype.update = function (domNode, element) {
|
|
279
|
-
_super.prototype.update.call(this, domNode, element);
|
|
280
|
-
render(this._component, this._props, domNode);
|
|
281
|
-
};
|
|
282
|
-
__decorate([
|
|
283
|
-
common.publish({}, "object", "Properties"),
|
|
284
|
-
__metadata("design:type", Object)
|
|
285
|
-
], SVGAdapter.prototype, "_props", void 0);
|
|
286
|
-
return SVGAdapter;
|
|
287
|
-
}(common.SVGWidget));
|
|
288
|
-
|
|
289
|
-
var Annotations = function (_a) {
|
|
290
|
-
var x = _a.x, y = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
|
|
291
|
-
var IconComponents = annotationIDs.map(function (id, i) { return _("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") },
|
|
292
|
-
_("use", { href: "#" + id })); });
|
|
293
|
-
return _(b, null, IconComponents);
|
|
294
|
-
};
|
|
295
|
-
var Vertex = function (_a) {
|
|
296
|
-
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.annotationsHeight, annotationsHeight = _g === void 0 ? 12 : _g, _h = _a.annotationIDs, annotationIDs = _h === void 0 ? [] : _h, textFill = _a.textFill, textboxFill = _a.textboxFill, textboxStroke = _a.textboxStroke, textFontFamily = _a.textFontFamily, onSizeUpdate = _a.onSizeUpdate, _j = _a.showLabel, showLabel = _j === void 0 ? true : _j, _k = _a.scale, scale = _k === void 0 ? 1 : _k;
|
|
297
|
-
var _l = h(0), textBoxWidth = _l[0], setTextBoxWidthUpdate = _l[1];
|
|
298
|
-
var _m = h(0), textBoxHeight = _m[0], setTextBoxHeightUpdate = _m[1];
|
|
299
|
-
y(function () {
|
|
300
|
-
onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
|
|
301
|
-
}, [textBoxWidth, textBoxHeight, onSizeUpdate]);
|
|
302
|
-
icon = __assign({ imageChar: "fa-question", height: 32, fill: "transparent" }, icon);
|
|
303
|
-
var width = textBoxWidth;
|
|
304
|
-
width += 4;
|
|
305
|
-
var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
|
|
306
|
-
var textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;
|
|
307
|
-
var annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;
|
|
308
|
-
if (!showLabel) {
|
|
309
|
-
offsetY += (textHeight + 8) / 2;
|
|
310
|
-
annotationOffsetY -= textBoxHeight + textPadding;
|
|
311
|
-
}
|
|
312
|
-
var onTextBoxSizeUpdate = q(function (size) {
|
|
313
|
-
setTextBoxWidthUpdate(size.width);
|
|
314
|
-
setTextBoxHeightUpdate(size.height);
|
|
315
|
-
}, []);
|
|
316
|
-
var label = showLabel ? _("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") },
|
|
317
|
-
_(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
|
|
318
|
-
return categoryID ?
|
|
319
|
-
_("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
|
|
320
|
-
_("use", { href: "#" + categoryID }),
|
|
321
|
-
label,
|
|
322
|
-
_(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
|
|
323
|
-
_("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
|
|
324
|
-
_(Icon, __assign({}, icon)),
|
|
325
|
-
label);
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
var Vertex2 = function (_a) {
|
|
329
|
-
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.textboxFill, textboxFill = _h === void 0 ? "white" : _h, _j = _a.textboxStroke, textboxStroke = _j === void 0 ? "black" : _j, textFontFamily = _a.textFontFamily, _k = _a.annotationsHeight, annotationsHeight = _k === void 0 ? 12 : _k, _l = _a.annotationIDs, annotationIDs = _l === void 0 ? [] : _l;
|
|
330
|
-
icon = __assign({ imageChar: "fa-question", imageCharFill: "white", height: 32, fill: "black", shape: "square" }, icon);
|
|
331
|
-
var textBoxHeight = textHeight + textPadding * 2;
|
|
332
|
-
var width = T(function () {
|
|
333
|
-
return common.Utility.textSize(text, textFontFamily, textHeight, false);
|
|
334
|
-
}, [text, textFontFamily, textHeight]).width;
|
|
335
|
-
var stepSize = annotationsHeight;
|
|
336
|
-
var textboxStrokeWidth = 1;
|
|
337
|
-
var halfTextboxHeight = textBoxHeight / 2;
|
|
338
|
-
var offsetX = 0;
|
|
339
|
-
var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
|
|
340
|
-
var iconOffsetX = -icon.height / 2;
|
|
341
|
-
var iconOffsetY = 0;
|
|
342
|
-
var textboxOffsetX = Math.ceil((width / 2) + textPadding);
|
|
343
|
-
var textboxOffsetY = halfTextboxHeight - (icon.height / 2);
|
|
344
|
-
var annotationOffsetX = stepSize / 2;
|
|
345
|
-
var annotationOffsetY = halfTextboxHeight;
|
|
346
|
-
return categoryID ?
|
|
347
|
-
_("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") },
|
|
348
|
-
_("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
|
|
349
|
-
_("use", { href: "#" + categoryID })),
|
|
350
|
-
_("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") },
|
|
351
|
-
_(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
|
|
352
|
-
_(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
|
|
353
|
-
:
|
|
354
|
-
_(b, null,
|
|
355
|
-
_("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") },
|
|
356
|
-
_(Icon, __assign({}, icon, { shape: "square" }))),
|
|
357
|
-
_("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") },
|
|
358
|
-
_(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
var Vertex3 = function (_a) {
|
|
362
|
-
var _b = _a.text, text = _b === void 0 ? "" : _b, _c = _a.textHeight, textHeight = _c === void 0 ? 10 : _c, _d = _a.textPadding, textPadding = _d === void 0 ? 4 : _d, _e = _a.textFill, textFill = _e === void 0 ? "#287EC4" : _e, _f = _a.textboxFill, textboxFill = _f === void 0 ? "white" : _f, _g = _a.textboxStroke, textboxStroke = _g === void 0 ? "#CCCCCC" : _g, _h = _a.textboxStrokeWidth, textboxStrokeWidth = _h === void 0 ? 1 : _h, _j = _a.textFontFamily, textFontFamily = _j === void 0 ? "Verdana" : _j, _k = _a.annotationGutter, annotationGutter = _k === void 0 ? 2 : _k, _l = _a.annotations, annotations = _l === void 0 ? [] : _l, _m = _a.cornerRadius, cornerRadius = _m === void 0 ? 3 : _m, _o = _a.icon, icon = _o === void 0 ? {} : _o, _p = _a.subText, subText = _p === void 0 ? { text: "" } : _p, _q = _a.showLabel, showLabel = _q === void 0 ? true : _q, _r = _a.noLabelRadius, noLabelRadius = _r === void 0 ? 5 : _r, expansionIcon = _a.expansionIcon, _s = _a.scale, scale = _s === void 0 ? 1 : _s;
|
|
363
|
-
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
|
|
364
|
-
subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
|
|
365
|
-
expansionIcon = expansionIcon ? __assign({ height: 16, shape: "circle", padding: 6, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "black", fill: "whitesmoke", stroke: "whitesmoke", strokeWidth: 0 }, expansionIcon) : undefined;
|
|
366
|
-
var fullAnnotationWidth = 0;
|
|
367
|
-
var annoOffsetY = 0;
|
|
368
|
-
var labelWidth = T(function () {
|
|
369
|
-
return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
|
|
370
|
-
}, [text, textFontFamily, textHeight]);
|
|
371
|
-
var labelShapeWidth = 0;
|
|
372
|
-
if (text !== "") {
|
|
373
|
-
labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
|
|
374
|
-
}
|
|
375
|
-
fullAnnotationWidth += labelShapeWidth + annotationGutter;
|
|
376
|
-
var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
|
|
377
|
-
var textShapeHeight = textHeight + (textPadding * 2) + (textboxStrokeWidth * 2);
|
|
378
|
-
var annotationArr = [];
|
|
379
|
-
annotations.forEach(function (anno, idx) {
|
|
380
|
-
var annoText = anno.imageChar;
|
|
381
|
-
var annoShapeWidth = textShapeHeight;
|
|
382
|
-
fullAnnotationWidth += annoShapeWidth + annotationGutter;
|
|
383
|
-
var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);
|
|
384
|
-
annotationArr.push(_("g", { key: idx, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
|
|
385
|
-
_(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
|
|
386
|
-
});
|
|
387
|
-
if (annotations.length > 0) {
|
|
388
|
-
fullAnnotationWidth += annotationGutter * (annotations.length - 1);
|
|
389
|
-
}
|
|
390
|
-
var textElement = _("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? _("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : _(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
|
|
391
|
-
var iconHeight = icon.height || 20;
|
|
392
|
-
var iconStrokeWidth = icon.strokeWidth || 0;
|
|
393
|
-
var iconOffsetX = 0;
|
|
394
|
-
var iconOffsetY = 0;
|
|
395
|
-
var subTextOffsetX = 0;
|
|
396
|
-
var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
|
|
397
|
-
if (text !== "" || annotationArr.length > 0) {
|
|
398
|
-
iconOffsetY = -(iconHeight / 2) - (iconStrokeWidth) - (textShapeHeight / 2) - (annotationGutter * 2);
|
|
399
|
-
}
|
|
400
|
-
else if (subText.text !== "") {
|
|
401
|
-
subTextOffsetY = (iconHeight / 2) + iconStrokeWidth + (annotationGutter * 2);
|
|
402
|
-
}
|
|
403
|
-
var subtextElement = subText.text === "" ? null : _("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
|
|
404
|
-
_(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
|
|
405
|
-
return _("g", { transform: "scale(".concat(scale, ")") },
|
|
406
|
-
_("g", { "data-click": "icon", transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
|
|
407
|
-
_(Icon, __assign({}, icon)),
|
|
408
|
-
expansionIcon &&
|
|
409
|
-
_("g", { "data-click": "expanded-icon", "data-click-data": JSON.stringify(expansionIcon), transform: "translate(".concat((icon.height + iconStrokeWidth) / 2 - expansionIcon.height / 2, " ").concat(-(icon.height + iconStrokeWidth) / 2 + expansionIcon.height / 2, ")") },
|
|
410
|
-
_(Icon, __assign({}, expansionIcon)))),
|
|
411
|
-
_("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
|
|
412
|
-
textElement,
|
|
413
|
-
annotationArr),
|
|
414
|
-
subtextElement);
|
|
415
|
-
};
|
|
416
|
-
var CentroidVertex3 = function (_a) {
|
|
417
|
-
var id = _a.id, _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 10 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, cornerRadius = _a.cornerRadius, _o = _a.icon, icon = _o === void 0 ? {} : _o, _p = _a.subText, subText = _p === void 0 ? {} : _p, expansionIcon = _a.expansionIcon, _q = _a.scale, scale = _q === void 0 ? 1 : _q;
|
|
418
|
-
icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
|
|
419
|
-
subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
|
|
420
|
-
var props = {
|
|
421
|
-
id: id,
|
|
422
|
-
categoryID: categoryID,
|
|
423
|
-
text: text,
|
|
424
|
-
textHeight: textHeight,
|
|
425
|
-
textPadding: textPadding,
|
|
426
|
-
textFill: textFill,
|
|
427
|
-
textboxFill: textboxFill,
|
|
428
|
-
textboxStroke: textboxStroke,
|
|
429
|
-
textboxStrokeWidth: textboxStrokeWidth,
|
|
430
|
-
textFontFamily: textFontFamily,
|
|
431
|
-
annotationGutter: annotationGutter,
|
|
432
|
-
annotations: annotations,
|
|
433
|
-
cornerRadius: cornerRadius,
|
|
434
|
-
icon: icon,
|
|
435
|
-
subText: subText,
|
|
436
|
-
expansionIcon: expansionIcon,
|
|
437
|
-
scale: scale
|
|
438
|
-
};
|
|
439
|
-
return _(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
var Vertex4 = function (_a) {
|
|
443
|
-
_a.categoryID; var _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 10 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.iconAnnotations, iconAnnotations = _o === void 0 ? [] : _o, _p = _a.cornerRadius, cornerRadius = _p === void 0 ? 3 : _p, _q = _a.icon, icon = _q === void 0 ? {} : _q, _r = _a.subText, subText = _r === void 0 ? {} : _r, _s = _a.showLabel, showLabel = _s === void 0 ? true : _s, _t = _a.noLabelRadius, noLabelRadius = _t === void 0 ? 5 : _t, _u = _a.iconBorderWidth, iconBorderWidth = _u === void 0 ? 1 : _u, _v = _a.iconBorderColor, iconBorderColor = _v === void 0 ? "#333" : _v, _w = _a.iconBackgroundColor, iconBackgroundColor = _w === void 0 ? "#fff" : _w, _x = _a.iconFontColor, iconFontColor = _x === void 0 ? "#000" : _x, _y = _a.iconFontSize, iconFontSize = _y === void 0 ? 20 : _y, _z = _a.iconFontFamily, iconFontFamily = _z === void 0 ? "FontAwesome" : _z, _0 = _a.shapeOffsetX, shapeOffsetX = _0 === void 0 ? 0 : _0, _1 = _a.shapeOffsetY, shapeOffsetY = _1 === void 0 ? 0 : _1, _2 = _a.iconOffsetX, iconOffsetX = _2 === void 0 ? 0 : _2, _3 = _a.iconOffsetY, iconOffsetY = _3 === void 0 ? 0 : _3, _4 = _a.iconPadding, iconPadding = _4 === void 0 ? 4 : _4, _5 = _a.iconText, iconText = _5 === void 0 ? "?" : _5, _6 = _a.shapeRendering, shapeRendering = _6 === void 0 ? "auto" : _6;
|
|
444
|
-
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
|
|
445
|
-
subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
|
|
446
|
-
var annoOffsetY = 0;
|
|
447
|
-
var labelWidth = T(function () {
|
|
448
|
-
return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
|
|
449
|
-
}, [text, textFontFamily, textHeight]);
|
|
450
|
-
var labelShapeWidth = 0;
|
|
451
|
-
if (text !== "") {
|
|
452
|
-
labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
|
|
453
|
-
}
|
|
454
|
-
var fullAnnotationWidth = labelShapeWidth + annotationGutter;
|
|
455
|
-
var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
|
|
456
|
-
var textShapeHeight = textHeight + (annotationGutter * 2) + (textboxStrokeWidth * 2);
|
|
457
|
-
var annoWidthArr = annotations.map(function (anno, i) {
|
|
458
|
-
return common.Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
|
|
459
|
-
});
|
|
460
|
-
var annotationArr = [];
|
|
461
|
-
var _labelAnnoOffsetX = fullAnnotationWidth;
|
|
462
|
-
annotations.forEach(function (anno, i) {
|
|
463
|
-
var _a;
|
|
464
|
-
var annoText = anno.imageChar;
|
|
465
|
-
var annoTextHeight = (_a = anno.height) !== null && _a !== void 0 ? _a : textShapeHeight;
|
|
466
|
-
_labelAnnoOffsetX += annoWidthArr[i] + annotationGutter;
|
|
467
|
-
var annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2);
|
|
468
|
-
annotationArr.push(_("g", { key: i, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
|
|
469
|
-
_(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
|
|
470
|
-
});
|
|
471
|
-
if (annotations.length > 0) {
|
|
472
|
-
fullAnnotationWidth += annotationGutter * (annotations.length - 1);
|
|
473
|
-
}
|
|
474
|
-
var iconAnnotationArr = [];
|
|
475
|
-
iconAnnotations.forEach(function (anno, i) {
|
|
476
|
-
var _a;
|
|
477
|
-
var x = anno.shapeOffsetX;
|
|
478
|
-
var y = anno.shapeOffsetY;
|
|
479
|
-
iconAnnotationArr.push(_("g", { key: i, class: "vertex3-iconAnno", "data-click": "icon-annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y, ")") },
|
|
480
|
-
_(Icon, __assign({}, anno, { shape: (_a = anno.shape) !== null && _a !== void 0 ? _a : "square", imageChar: anno.imageChar, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, stroke: anno.stroke, strokeWidth: anno.strokeWidth }))));
|
|
481
|
-
});
|
|
482
|
-
var textElement = _("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? _("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : _(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
|
|
483
|
-
var subTextOffsetX = 0;
|
|
484
|
-
var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
|
|
485
|
-
var subtextElement = subText.text === "" ? null : _("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
|
|
486
|
-
_(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
|
|
487
|
-
return _("g", null,
|
|
488
|
-
_("g", { "data-click": "icon", transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") },
|
|
489
|
-
_(Icon, __assign({}, icon, { strokeWidth: iconBorderWidth, shape: "circle", height: iconFontSize, fill: iconBackgroundColor, stroke: iconBorderColor, imageFontFamily: iconFontFamily, imageChar: iconText, imageCharFill: iconFontColor, padding: iconPadding, xOffset: iconOffsetX, yOffset: iconOffsetY, cornerRadius: cornerRadius, shapeRendering: shapeRendering })),
|
|
490
|
-
iconAnnotationArr),
|
|
491
|
-
_("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
|
|
492
|
-
textElement,
|
|
493
|
-
annotationArr),
|
|
494
|
-
subtextElement);
|
|
495
|
-
};
|
|
496
|
-
var CentroidVertex4 = function (_a) {
|
|
497
|
-
var id = _a.id, _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 10 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.iconAnnotations, iconAnnotations = _o === void 0 ? [] : _o, cornerRadius = _a.cornerRadius, _p = _a.icon, icon = _p === void 0 ? {} : _p, _q = _a.subText, subText = _q === void 0 ? {} : _q, _r = _a.showLabel, showLabel = _r === void 0 ? true : _r, _s = _a.noLabelRadius, noLabelRadius = _s === void 0 ? 5 : _s, _t = _a.iconBorderWidth, iconBorderWidth = _t === void 0 ? 1 : _t, _u = _a.iconBorderColor, iconBorderColor = _u === void 0 ? "#333" : _u, _v = _a.iconBackgroundColor, iconBackgroundColor = _v === void 0 ? "#fff" : _v, _w = _a.iconFontColor, iconFontColor = _w === void 0 ? "#000" : _w, _x = _a.iconFontSize, iconFontSize = _x === void 0 ? 20 : _x, _y = _a.iconFontFamily, iconFontFamily = _y === void 0 ? "FontAwesome" : _y, _z = _a.shapeOffsetX, shapeOffsetX = _z === void 0 ? 0 : _z, _0 = _a.shapeOffsetY, shapeOffsetY = _0 === void 0 ? 0 : _0, _1 = _a.iconOffsetX, iconOffsetX = _1 === void 0 ? 0 : _1, _2 = _a.iconOffsetY, iconOffsetY = _2 === void 0 ? 0 : _2, _3 = _a.iconPadding, iconPadding = _3 === void 0 ? 4 : _3, _4 = _a.iconText, iconText = _4 === void 0 ? "?" : _4, _5 = _a.shapeRendering, shapeRendering = _5 === void 0 ? "auto" : _5;
|
|
498
|
-
icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
|
|
499
|
-
subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
|
|
500
|
-
var props = {
|
|
501
|
-
id: id,
|
|
502
|
-
categoryID: categoryID,
|
|
503
|
-
text: text,
|
|
504
|
-
textHeight: textHeight,
|
|
505
|
-
textPadding: textPadding,
|
|
506
|
-
textFill: textFill,
|
|
507
|
-
textboxFill: textboxFill,
|
|
508
|
-
textboxStroke: textboxStroke,
|
|
509
|
-
textboxStrokeWidth: textboxStrokeWidth,
|
|
510
|
-
textFontFamily: textFontFamily,
|
|
511
|
-
annotationGutter: annotationGutter,
|
|
512
|
-
annotations: annotations,
|
|
513
|
-
iconAnnotations: iconAnnotations,
|
|
514
|
-
cornerRadius: cornerRadius,
|
|
515
|
-
icon: icon,
|
|
516
|
-
subText: subText,
|
|
517
|
-
showLabel: showLabel,
|
|
518
|
-
noLabelRadius: noLabelRadius,
|
|
519
|
-
iconBorderWidth: iconBorderWidth,
|
|
520
|
-
iconBorderColor: iconBorderColor,
|
|
521
|
-
iconBackgroundColor: iconBackgroundColor,
|
|
522
|
-
iconFontColor: iconFontColor,
|
|
523
|
-
iconFontSize: iconFontSize,
|
|
524
|
-
iconFontFamily: iconFontFamily,
|
|
525
|
-
shapeOffsetX: shapeOffsetX,
|
|
526
|
-
shapeOffsetY: shapeOffsetY,
|
|
527
|
-
iconOffsetX: iconOffsetX,
|
|
528
|
-
iconOffsetY: iconOffsetY,
|
|
529
|
-
iconPadding: iconPadding,
|
|
530
|
-
iconText: iconText,
|
|
531
|
-
shapeRendering: shapeRendering
|
|
532
|
-
};
|
|
533
|
-
return _(Vertex4, __assign({}, props, { icon: icon, subText: subText }));
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
var Subgraph = function (_a) {
|
|
537
|
-
var text = _a.text, _b = _a.width, width = _b === void 0 ? 100 : _b, _c = _a.height, height = _c === void 0 ? 100 : _c, _d = _a.fill, fill = _d === void 0 ? "transparent" : _d, _e = _a.stroke, stroke = _e === void 0 ? "black" : _e, _f = _a.fontHeight, fontHeight = _f === void 0 ? 12 : _f, fontFamily = _a.fontFamily;
|
|
538
|
-
var tSize = common.Utility.textSize(text, fontFamily, fontHeight, false);
|
|
539
|
-
return _(b, null,
|
|
540
|
-
_(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
|
|
541
|
-
_("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") },
|
|
542
|
-
_(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
exports.Annotations = Annotations;
|
|
546
|
-
exports.BUILD_VERSION = BUILD_VERSION$1;
|
|
547
|
-
exports.CentroidVertex3 = CentroidVertex3;
|
|
548
|
-
exports.CentroidVertex4 = CentroidVertex4;
|
|
549
|
-
exports.Circle = Circle;
|
|
550
|
-
exports.Edge = Edge;
|
|
551
|
-
exports.HTMLAdapter = HTMLAdapter;
|
|
552
|
-
exports.Icon = Icon;
|
|
553
|
-
exports.IconLabelledRect = IconLabelledRect;
|
|
554
|
-
exports.Icons = Icons;
|
|
555
|
-
exports.ImageChar = ImageChar;
|
|
556
|
-
exports.LabelledRect = LabelledRect;
|
|
557
|
-
exports.PKG_NAME = PKG_NAME$1;
|
|
558
|
-
exports.PKG_VERSION = PKG_VERSION$1;
|
|
559
|
-
exports.React = index_es6;
|
|
560
|
-
exports.Rectangle = Rectangle;
|
|
561
|
-
exports.SVGAdapter = SVGAdapter;
|
|
562
|
-
exports.Shape = Shape;
|
|
563
|
-
exports.Square = Square;
|
|
564
|
-
exports.Subgraph = Subgraph;
|
|
565
|
-
exports.Text = Text;
|
|
566
|
-
exports.TextBox = TextBox;
|
|
567
|
-
exports.TextLine = TextLine;
|
|
568
|
-
exports.Vertex = Vertex;
|
|
569
|
-
exports.Vertex2 = Vertex2;
|
|
570
|
-
exports.Vertex3 = Vertex3;
|
|
571
|
-
exports.Vertex4 = Vertex4;
|
|
572
|
-
exports.render = render;
|
|
573
|
-
exports.svgRender = svgRender;
|
|
574
|
-
|
|
575
|
-
}));
|
|
1
|
+
var gt=Object.defineProperty;var f=(e,t)=>gt(e,"name",{value:t,configurable:!0});var xn=(e,t)=>{for(var n in t)gt(e,n,{get:t[n],enumerable:!0})};var or="@hpcc-js/react",ir="3.1.1",_r="3.2.1";import{Utility as pn}from"@hpcc-js/common";var z={};xn(z,{BUILD_VERSION:()=>Fn,Component:()=>N,Fragment:()=>Y,PKG_NAME:()=>Cn,PKG_VERSION:()=>Pn,createElement:()=>B,h:()=>B,render:()=>oe,unmountComponentAtNode:()=>Xt,useCallback:()=>_e,useEffect:()=>Z,useLayoutEffect:()=>ie,useMemo:()=>D,useReducer:()=>Ge,useState:()=>L});var kn=Object.defineProperty,y=f((e,t)=>kn(e,"name",{value:t,configurable:!0}),"l"),Cn="@hpcc-js/preact-shim",Pn="3.0.0",Fn="3.2.1",Pe,k,At,wn,j,vt,Ot,De,qe,Le,Ne,Rn,me={},Ut=[],Sn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Fe=Array.isArray;function M(e,t){for(var n in t)e[n]=t[n];return e}f(M,"w");y(M,"d");function Ye(e){e&&e.parentNode&&e.parentNode.removeChild(e)}f(Ye,"ve");y(Ye,"w");function B(e,t,n){var r,o,_,a={};for(_ in t)_=="key"?r=t[_]:_=="ref"?o=t[_]:a[_]=t[_];if(arguments.length>2&&(a.children=arguments.length>3?Pe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(_ in e.defaultProps)a[_]===void 0&&(a[_]=e.defaultProps[_]);return pe(e,a,r,o,null)}f(B,"R");y(B,"_");function pe(e,t,n,r,o){var _={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++At,__i:-1,__u:0};return o==null&&k.vnode!=null&&k.vnode(_),_}f(pe,"W");y(pe,"g");function Y(e){return e.children}f(Y,"S");y(Y,"b");function N(e,t){this.props=e,this.context=t}f(N,"k");y(N,"k");function J(e,t){if(t==null)return e.__?J(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?J(e):null}f(J,"U");y(J,"x");function Xe(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Xe(e)}}f(Xe,"me");y(Xe,"C");function He(e){(!e.__d&&(e.__d=!0)&&j.push(e)&&!de.__r++||vt!==k.debounceRendering)&&((vt=k.debounceRendering)||Ot)(de)}f(He,"se");y(He,"S");function de(){var e,t,n,r,o,_,a,s;for(j.sort(De);e=j.shift();)e.__d&&(t=j.length,r=void 0,_=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=M({},o)).__v=o.__v+1,k.vnode&&k.vnode(r),we(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[_]:null,a,_??J(o),!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,Ze(a,r,s),r.__e!=_&&Xe(r)),j.length>t&&j.sort(De));de.__r=0}f(de,"V");y(de,"M");function je(e,t,n,r,o,_,a,s,c,l,h){var i,m,u,d,x,b=r&&r.__k||Ut,g=t.length;for(n.__d=c,Vt(n,t,b),c=n.__d,i=0;i<g;i++)(u=n.__k[i])!=null&&(m=u.__i===-1?me:b[u.__i]||me,u.__i=i,we(e,u,m,o,_,a,s,c,l,h),d=u.__e,u.ref&&m.ref!=u.ref&&(m.ref&&Re(m.ref,null,u),h.push(u.ref,u.__c||d,u)),x==null&&d!=null&&(x=d),65536&u.__u||m.__k===u.__k?c=Je(u,c,e):typeof u.type=="function"&&u.__d!==void 0?c=u.__d:d&&(c=d.nextSibling),u.__d=void 0,u.__u&=-196609);n.__d=c,n.__e=x}f(je,"ye");y(je,"P");function Vt(e,t,n){var r,o,_,a,s,c=t.length,l=n.length,h=l,i=0;for(e.__k=[],r=0;r<c;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(a=r+i,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?pe(null,o,null,null,null):Fe(o)?pe(Y,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?pe(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,_=null,(s=o.__i=Dt(o,n,a,h))!==-1&&(h--,(_=n[s])&&(_.__u|=131072)),_==null||_.__v===null?(s==-1&&i--,typeof o.type!="function"&&(o.__u|=65536)):s!==a&&(s==a-1?i--:s==a+1?i++:(s>a?i--:i++,o.__u|=65536))):o=e.__k[r]=null;if(h)for(r=0;r<l;r++)(_=n[r])!=null&&!(131072&_.__u)&&(_.__e==e.__d&&(e.__d=J(_)),Qe(_,_))}f(Vt,"Xe");y(Vt,"$");function Je(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Je(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=J(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}f(Je,"ge");y(Je,"I");function ge(e,t){return t=t||[],e==null||typeof e=="boolean"||(Fe(e)?e.some(function(n){ge(n,t)}):t.push(e)),t}f(ge,"I");y(ge,"H");function Dt(e,t,n,r){var o=e.key,_=e.type,a=n-1,s=n+1,c=t[n];if(c===null||c&&o==c.key&&_===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&_===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&_===c.type)return s;s++}}return-1}f(Dt,"et");y(Dt,"L");function Me(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Sn.test(t)?n:n+"px"}f(Me,"ce");y(Me,"T");function ue(e,t,n,r,o){var _;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Me(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Me(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")_=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+_]=n,n?r?n.u=r.u:(n.u=qe,e.addEventListener(t,_?Ne:Le,_)):e.removeEventListener(t,_?Ne:Le,_);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}f(ue,"A");y(ue,"A");function Be(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=qe++;else if(t.t<n.u)return;return n(k.event?k.event(t):t)}}}f(Be,"fe");y(Be,"F");function we(e,t,n,r,o,_,a,s,c,l){var h,i,m,u,d,x,b,g,v,w,C,E,R,I,A,V,P=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),_=[s=t.__e=n.__e]),(h=k.__b)&&h(t);e:if(typeof P=="function")try{if(g=t.props,v="prototype"in P&&P.prototype.render,w=(h=P.contextType)&&r[h.__c],C=h?w?w.props.value:h.__:r,n.__c?b=(i=t.__c=n.__c).__=i.__E:(v?t.__c=i=new P(g,C):(t.__c=i=new N(g,C),i.constructor=P,i.render=Nt),w&&w.sub(i),i.props=g,i.state||(i.state={}),i.context=C,i.__n=r,m=i.__d=!0,i.__h=[],i._sb=[]),v&&i.__s==null&&(i.__s=i.state),v&&P.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=M({},i.__s)),M(i.__s,P.getDerivedStateFromProps(g,i.__s))),u=i.props,d=i.state,i.__v=t,m)v&&P.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),v&&i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(v&&P.getDerivedStateFromProps==null&&g!==u&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,C),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(i.props=g,i.state=i.__s,i.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(O){O&&(O.__=t)}),E=0;E<i._sb.length;E++)i.__h.push(i._sb[E]);i._sb=[],i.__h.length&&a.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,C),v&&i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(u,d,x)})}if(i.context=C,i.props=g,i.__P=e,i.__e=!1,R=k.__r,I=0,v){for(i.state=i.__s,i.__d=!1,R&&R(t),h=i.render(i.props,i.state,i.context),A=0;A<i._sb.length;A++)i.__h.push(i._sb[A]);i._sb=[]}else do i.__d=!1,R&&R(t),h=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++I<25);i.state=i.__s,i.getChildContext!=null&&(r=M(M({},r),i.getChildContext())),v&&!m&&i.getSnapshotBeforeUpdate!=null&&(x=i.getSnapshotBeforeUpdate(u,d)),je(e,Fe(V=h!=null&&h.type===Y&&h.key==null?h.props.children:h)?V:[V],t,n,r,o,_,a,s,c,l),i.base=t.__e,t.__u&=-161,i.__h.length&&a.push(i),b&&(i.__E=i.__=null)}catch(O){if(t.__v=null,c||_!=null){for(t.__u|=c?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;_[_.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;k.__e(O,t,n)}else _==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Lt(n.__e,t,n,r,o,_,a,c,l);(h=k.diffed)&&h(t)}f(we,"X");y(we,"O");function Ze(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Re(n[r],n[++r],n[++r]);k.__c&&k.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(_){_.call(o)})}catch(_){k.__e(_,o.__v)}})}f(Ze,"be");y(Ze,"j");function Lt(e,t,n,r,o,_,a,s,c){var l,h,i,m,u,d,x,b=n.props,g=t.props,v=t.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),_!=null){for(l=0;l<_.length;l++)if((u=_[l])&&"setAttribute"in u==!!v&&(v?u.localName===v:u.nodeType===3)){e=u,_[l]=null;break}}if(e==null){if(v===null)return document.createTextNode(g);e=document.createElementNS(o,v,g.is&&g),s&&(k.__m&&k.__m(t,_),s=!1),_=null}if(v===null)b===g||s&&e.data===g||(e.data=g);else{if(_=_&&Pe.call(e.childNodes),b=n.props||me,!s&&_!=null)for(b={},l=0;l<e.attributes.length;l++)b[(u=e.attributes[l]).name]=u.value;for(l in b)if(u=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")i=u;else if(!(l in g)){if(l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g)continue;ue(e,l,null,u,o)}}for(l in g)u=g[l],l=="children"?m=u:l=="dangerouslySetInnerHTML"?h=u:l=="value"?d=u:l=="checked"?x=u:s&&typeof u!="function"||b[l]===u||ue(e,l,u,b[l],o);if(h)s||i&&(h.__html===i.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(i&&(e.innerHTML=""),je(e,Fe(m)?m:[m],t,n,r,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,_,a,_?_[0]:n.__k&&J(n,0),s,c),_!=null)for(l=_.length;l--;)Ye(_[l]);s||(l="value",v==="progress"&&d==null?e.removeAttribute("value"):d!==void 0&&(d!==e[l]||v==="progress"&&!d||v==="option"&&d!==b[l])&&ue(e,l,d,b[l],o),l="checked",x!==void 0&&x!==e[l]&&ue(e,l,x,b[l],o))}return e}f(Lt,"tt");y(Lt,"z");function Re(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){k.__e(o,n)}}f(Re,"ee");y(Re,"N");function Qe(e,t,n){var r,o;if(k.unmount&&k.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Re(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(_){k.__e(_,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Qe(r[o],t,n||typeof e.type!="function");n||Ye(e.__e),e.__c=e.__=e.__e=e.__d=void 0}f(Qe,"Ce");y(Qe,"V");function Nt(e,t,n){return this.constructor(e,n)}f(Nt,"nt");y(Nt,"q");function oe(e,t,n){var r,o,_,a;k.__&&k.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,_=[],a=[],we(t,e=(!r&&n||t).__k=B(Y,null,[e]),o||me,me,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Pe.call(t.childNodes):null,_,!r&&n?n:o?o.__e:t.firstChild,r,a),Ze(_,e,a)}f(oe,"te");y(oe,"B");Pe=Ut.slice,k={__e:y(function(e,t,n,r){for(var o,_,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((_=o.constructor)&&_.getDerivedStateFromError!=null&&(o.setState(_.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e},"__e")},At=0,wn=y(function(e){return e!=null&&e.constructor==null},"t"),N.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=M({},this.state),typeof e=="function"&&(e=e(M({},n),this.props)),e&&M(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),He(this))},N.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),He(this))},N.prototype.render=Y,j=[],Ot=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,De=y(function(e,t){return e.__v.__b-t.__v.__b},"f"),de.__r=0,qe=0,Le=Be(!1),Ne=Be(!0),Rn=0;var re,S,Ve,yt,ke=0,Ht=[],W=k,bt=W.__b,xt=W.__r,kt=W.diffed,Ct=W.__c,Pt=W.unmount,Ft=W.__;function ve(e,t){W.__h&&W.__h(S,e,ke||t),ke=0;var n=S.__H||(S.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}f(ve,"q");y(ve,"d");function L(e){return ke=1,Ge(et,e)}f(L,"He");y(L,"h");function Ge(e,t,n){var r=ve(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):et(void 0,t),function(s){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,s);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=S,!S.u)){var o=y(function(s,c,l){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(m){return!!m.__c});if(h.every(function(m){return!m.__N}))return!_||_.call(this,s,c,l);var i=!1;return h.forEach(function(m){if(m.__N){var u=m.__[0];m.__=m.__N,m.__N=void 0,u!==m.__[0]&&(i=!0)}}),!(!i&&r.__c.props===s)&&(!_||_.call(this,s,c,l))},"f");S.u=!0;var _=S.shouldComponentUpdate,a=S.componentWillUpdate;S.componentWillUpdate=function(s,c,l){if(this.__e){var h=_;_=void 0,o(s,c,l),_=h}a&&a.call(this,s,c,l)},S.shouldComponentUpdate=o}return r.__N||r.__}f(Ge,"oe");y(Ge,"p");function Z(e,t){var n=ve(re++,3);!W.__s&&Se(n.__H,t)&&(n.__=e,n.i=t,S.__H.__h.push(n))}f(Z,"De");y(Z,"y");function ie(e,t){var n=ve(re++,4);!W.__s&&Se(n.__H,t)&&(n.__=e,n.i=t,S.__h.push(n))}f(ie,"Te");y(ie,"_");function D(e,t){var n=ve(re++,7);return Se(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}f(D,"re");y(D,"T");function _e(e,t){return ke=8,D(function(){return e},t)}f(_e,"Me");y(_e,"q");function Mt(){for(var e;e=Ht.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(he),e.__H.__h.forEach(Ce),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}f(Mt,"_t");y(Mt,"j");W.__b=function(e){S=null,bt&&bt(e)},W.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ft&&Ft(e,t)},W.__r=function(e){xt&&xt(e),re=0;var t=(S=e.__c).__H;t&&(Ve===S?(t.__h=[],S.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(he),t.__h.forEach(Ce),t.__h=[],re=0)),Ve=S},W.diffed=function(e){kt&&kt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ht.push(t)!==1&&yt===W.requestAnimationFrame||((yt=W.requestAnimationFrame)||Bt)(Mt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Ve=S=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(he),n.__h=n.__h.filter(function(r){return!r.__||Ce(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],W.__e(r,n.__v)}}),Ct&&Ct(e,t)},W.unmount=function(e){Pt&&Pt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{he(r)}catch(o){t=o}}),n.__H=void 0,t&&W.__e(t,n.__v))};var wt=typeof requestAnimationFrame=="function";function Bt(e){var t,n=y(function(){clearTimeout(r),wt&&cancelAnimationFrame(t),setTimeout(e)},"r"),r=setTimeout(n,100);wt&&(t=requestAnimationFrame(n))}f(Bt,"ot");y(Bt,"w");function he(e){var t=S,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),S=t}f(he,"z");y(he,"z");function Ce(e){var t=S;e.__c=e.__(),S=t}f(Ce,"_e");y(Ce,"B");function Se(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}f(Se,"ue");y(Se,"C");function et(e,t){return typeof t=="function"?t(e):t}f(et,"Ie");y(et,"D");function ze(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}f(ze,"Le");y(ze,"g");function Ke(e,t){this.props=e,this.context=t}f(Ke,"Oe");y(Ke,"E");(Ke.prototype=new N).isPureReactComponent=!0,Ke.prototype.shouldComponentUpdate=function(e,t){return ze(this.props,e)||ze(this.state,t)};var Rt=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Rt&&Rt(e)};var ar=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,En=k.__e;k.__e=function(e,t,n,r){if(e.then){for(var o,_=t;_=_.__;)if((o=_.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}En(e,t,n,r)};var St=k.unmount;function tt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,o){for(var _ in o)r[_]=o[_];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return tt(r,t,n)})),e}f(tt,"je");y(tt,"T");function nt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return nt(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}f(nt,"qe");y(nt,"A");function xe(){this.__u=0,this.t=null,this.__b=null}f(xe,"ie");y(xe,"D");function rt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}f(rt,"Ge");y(rt,"L");function fe(){this.u=null,this.o=null}f(fe,"G");y(fe,"F");k.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),St&&St(e)},(xe.prototype=new N).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=rt(r.__v),_=!1,a=y(function(){_||(_=!0,n.__R=null,o?o(s):s())},"i");n.__R=a;var s=y(function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=nt(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}},"c");r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},xe.prototype.componentWillUnmount=function(){this.t=[]},xe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=tt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&B(Y,null,e.fallback);return o&&(o.__u&=-33),[B(Y,null,t.__a?null:e.children),o]};var Et=y(function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}},"U");(fe.prototype=new N).__a=function(e){var t=this,n=rt(t.__v),r=t.o.get(e);return r[0]++,function(o){var _=y(function(){t.props.revealOrder?(r.push(o),Et(t,e,r)):o()},"o");n?n(_):_()}},fe.prototype.render=function(e){this.u=null,this.o=new Map;var t=ge(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},fe.prototype.componentDidUpdate=fe.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Et(e,n,t)})};var Wn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,$n=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,In=/[A-Z0-9]/g,An=typeof document<"u",On=y(function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)},"Y");N.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(N.prototype,e,{configurable:!0,get:y(function(){return this["UNSAFE_"+e]},"get"),set:y(function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})},"set")})});var Wt=k.event;function zt(){}f(zt,"dt");y(zt,"J");function Kt(){return this.cancelBubble}f(Kt,"ht");y(Kt,"K");function qt(){return this.defaultPrevented}f(qt,"vt");y(qt,"Q");k.event=function(e){return Wt&&(e=Wt(e)),e.persist=zt,e.isPropagationStopped=Kt,e.isDefaultPrevented=qt,e.nativeEvent=e};var Yt,Un={enumerable:!1,configurable:!0,get:y(function(){return this.class},"get")},$t=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},_=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||An&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||On(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":Tn.test(a)&&(a=c):c=a="oninput":_&&$n.test(a)?a=a.replace(In,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ge(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ge(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Un)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Wn,$t&&$t(e)};var Tt=k.__r;k.__r=function(e){Tt&&Tt(e),Yt=e.__c};var It=k.diffed;k.diffed=function(e){It&&It(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Yt=null};function Xt(e){return!!e.__k&&(oe(null,e),!0)}f(Xt,"yt");y(Xt,"hn");import{Palette as jn}from"@hpcc-js/common";var Gt,F,en,Vn,Q,jt,tn,it,lt,_t,st,Dn,at={},nn=[],Ln=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ct=Array.isArray;function X(e,t){for(var n in t)e[n]=t[n];return e}f(X,"d");function rn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}f(rn,"w");function ot(e,t,n,r,o){var _={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++en,__i:-1,__u:0};return o==null&&F.vnode!=null&&F.vnode(_),_}f(ot,"g");function $(e){return e.children}f($,"b");function We(e,t){this.props=e,this.context=t}f(We,"k");function se(e,t){if(t==null)return e.__?se(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?se(e):null}f(se,"x");function on(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return on(e)}}f(on,"C");function Jt(e){(!e.__d&&(e.__d=!0)&&Q.push(e)&&!$e.__r++||jt!==F.debounceRendering)&&((jt=F.debounceRendering)||tn)($e)}f(Jt,"S");function $e(){var e,t,n,r,o,_,a,s;for(Q.sort(it);e=Q.shift();)e.__d&&(t=Q.length,r=void 0,_=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=X({},o)).__v=o.__v+1,F.vnode&&F.vnode(r),an(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[_]:null,a,_??se(o),!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,Mn(a,r,s),r.__e!=_&&on(r)),Q.length>t&&Q.sort(it));$e.__r=0}f($e,"M");function _n(e,t,n,r,o,_,a,s,c,l,h){var i,m,u,d,x,b=r&&r.__k||nn,g=t.length;for(n.__d=c,Nn(n,t,b),c=n.__d,i=0;i<g;i++)(u=n.__k[i])!=null&&(m=u.__i===-1?at:b[u.__i]||at,u.__i=i,an(e,u,m,o,_,a,s,c,l,h),d=u.__e,u.ref&&m.ref!=u.ref&&(m.ref&&ut(m.ref,null,u),h.push(u.ref,u.__c||d,u)),x==null&&d!=null&&(x=d),65536&u.__u||m.__k===u.__k?c=sn(u,c,e):typeof u.type=="function"&&u.__d!==void 0?c=u.__d:d&&(c=d.nextSibling),u.__d=void 0,u.__u&=-196609);n.__d=c,n.__e=x}f(_n,"P");function Nn(e,t,n){var r,o,_,a,s,c=t.length,l=n.length,h=l,i=0;for(e.__k=[],r=0;r<c;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(a=r+i,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?ot(null,o,null,null,null):ct(o)?ot($,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?ot(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,_=null,(s=o.__i=Hn(o,n,a,h))!==-1&&(h--,(_=n[s])&&(_.__u|=131072)),_==null||_.__v===null?(s==-1&&i--,typeof o.type!="function"&&(o.__u|=65536)):s!==a&&(s==a-1?i--:s==a+1?i++:(s>a?i--:i++,o.__u|=65536))):o=e.__k[r]=null;if(h)for(r=0;r<l;r++)(_=n[r])!=null&&!(131072&_.__u)&&(_.__e==e.__d&&(e.__d=se(_)),ln(_,_))}f(Nn,"$");function sn(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=sn(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=se(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}f(sn,"I");function Hn(e,t,n,r){var o=e.key,_=e.type,a=n-1,s=n+1,c=t[n];if(c===null||c&&o==c.key&&_===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&_===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&_===c.type)return s;s++}}return-1}f(Hn,"L");function Zt(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ln.test(t)?n:n+"px"}f(Zt,"T");function Ee(e,t,n,r,o){var _;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Zt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Zt(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")_=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+_]=n,n?r?n.u=r.u:(n.u=lt,e.addEventListener(t,_?st:_t,_)):e.removeEventListener(t,_?st:_t,_);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}f(Ee,"A");function Qt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=lt++;else if(t.t<n.u)return;return n(F.event?F.event(t):t)}}}f(Qt,"F");function an(e,t,n,r,o,_,a,s,c,l){var h,i,m,u,d,x,b,g,v,w,C,E,R,I,A,V,P=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),_=[s=t.__e=n.__e]),(h=F.__b)&&h(t);e:if(typeof P=="function")try{if(g=t.props,v="prototype"in P&&P.prototype.render,w=(h=P.contextType)&&r[h.__c],C=h?w?w.props.value:h.__:r,n.__c?b=(i=t.__c=n.__c).__=i.__E:(v?t.__c=i=new P(g,C):(t.__c=i=new We(g,C),i.constructor=P,i.render=zn),w&&w.sub(i),i.props=g,i.state||(i.state={}),i.context=C,i.__n=r,m=i.__d=!0,i.__h=[],i._sb=[]),v&&i.__s==null&&(i.__s=i.state),v&&P.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=X({},i.__s)),X(i.__s,P.getDerivedStateFromProps(g,i.__s))),u=i.props,d=i.state,i.__v=t,m)v&&P.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),v&&i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(v&&P.getDerivedStateFromProps==null&&g!==u&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(g,C),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(g,i.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(i.props=g,i.state=i.__s,i.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(O){O&&(O.__=t)}),E=0;E<i._sb.length;E++)i.__h.push(i._sb[E]);i._sb=[],i.__h.length&&a.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(g,i.__s,C),v&&i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(u,d,x)})}if(i.context=C,i.props=g,i.__P=e,i.__e=!1,R=F.__r,I=0,v){for(i.state=i.__s,i.__d=!1,R&&R(t),h=i.render(i.props,i.state,i.context),A=0;A<i._sb.length;A++)i.__h.push(i._sb[A]);i._sb=[]}else do i.__d=!1,R&&R(t),h=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++I<25);i.state=i.__s,i.getChildContext!=null&&(r=X(X({},r),i.getChildContext())),v&&!m&&i.getSnapshotBeforeUpdate!=null&&(x=i.getSnapshotBeforeUpdate(u,d)),_n(e,ct(V=h!=null&&h.type===$&&h.key==null?h.props.children:h)?V:[V],t,n,r,o,_,a,s,c,l),i.base=t.__e,t.__u&=-161,i.__h.length&&a.push(i),b&&(i.__E=i.__=null)}catch(O){if(t.__v=null,c||_!=null){for(t.__u|=c?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;_[_.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;F.__e(O,t,n)}else _==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Bn(n.__e,t,n,r,o,_,a,c,l);(h=F.diffed)&&h(t)}f(an,"O");function Mn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ut(n[r],n[++r],n[++r]);F.__c&&F.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(_){_.call(o)})}catch(_){F.__e(_,o.__v)}})}f(Mn,"j");function Bn(e,t,n,r,o,_,a,s,c){var l,h,i,m,u,d,x,b=n.props,g=t.props,v=t.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),_!=null){for(l=0;l<_.length;l++)if((u=_[l])&&"setAttribute"in u==!!v&&(v?u.localName===v:u.nodeType===3)){e=u,_[l]=null;break}}if(e==null){if(v===null)return document.createTextNode(g);e=document.createElementNS(o,v,g.is&&g),s&&(F.__m&&F.__m(t,_),s=!1),_=null}if(v===null)b===g||s&&e.data===g||(e.data=g);else{if(_=_&&Gt.call(e.childNodes),b=n.props||at,!s&&_!=null)for(b={},l=0;l<e.attributes.length;l++)b[(u=e.attributes[l]).name]=u.value;for(l in b)if(u=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")i=u;else if(!(l in g)){if(l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g)continue;Ee(e,l,null,u,o)}}for(l in g)u=g[l],l=="children"?m=u:l=="dangerouslySetInnerHTML"?h=u:l=="value"?d=u:l=="checked"?x=u:s&&typeof u!="function"||b[l]===u||Ee(e,l,u,b[l],o);if(h)s||i&&(h.__html===i.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(i&&(e.innerHTML=""),_n(e,ct(m)?m:[m],t,n,r,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,_,a,_?_[0]:n.__k&&se(n,0),s,c),_!=null)for(l=_.length;l--;)rn(_[l]);s||(l="value",v==="progress"&&d==null?e.removeAttribute("value"):d!==void 0&&(d!==e[l]||v==="progress"&&!d||v==="option"&&d!==b[l])&&Ee(e,l,d,b[l],o),l="checked",x!==void 0&&x!==e[l]&&Ee(e,l,x,b[l],o))}return e}f(Bn,"z");function ut(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){F.__e(o,n)}}f(ut,"N");function ln(e,t,n){var r,o;if(F.unmount&&F.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ut(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(_){F.__e(_,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ln(r[o],t,n||typeof e.type!="function");n||rn(e.__e),e.__c=e.__=e.__e=e.__d=void 0}f(ln,"V");function zn(e,t,n){return this.constructor(e,n)}f(zn,"q");Gt=nn.slice,F={__e:f(function(e,t,n,r){for(var o,_,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((_=o.constructor)&&_.getDerivedStateFromError!=null&&(o.setState(_.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e},"__e")},en=0,Vn=f(function(e){return e!=null&&e.constructor==null},"t"),We.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=X({},this.state),typeof e=="function"&&(e=e(X({},n),this.props)),e&&X(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Jt(this))},We.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Jt(this))},We.prototype.render=$,Q=[],tn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,it=f(function(e,t){return e.__v.__b-t.__v.__b},"f"),$e.__r=0,lt=0,_t=Qt(!1),st=Qt(!0),Dn=0;var Kn=0,pr=Array.isArray;function p(e,t,n,r,o,_){t||(t={});var a,s,c=t;"ref"in t&&(a=t.ref,delete t.ref);var l={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Kn,__i:-1,__u:0,__source:o,__self:_};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return F.vnode&&F.vnode(l),l}f(p,"u");var cn=f(({href:e,x:t,y:n=0,height:r=12})=>p("image",{href:e,x:t-r/2,y:n-r/2,width:r,height:r}),"Image");import{Utility as qn}from"@hpcc-js/common";var un=f(({x:e,y:t=0,height:n=12,fill:r,stroke:o,fontFamily:_="FontAwesome",char:a="\uF128",fontWeight:s})=>{let c=D(()=>_==="FontAwesome"?qn.faChar(a):a,[a,_]);return p("text",{x:e,y:t,fill:r,stroke:o,fontFamily:_,fontSize:`${n}px`,fontWeight:s,dominantBaseline:"middle",style:{textAnchor:"middle",alignmentBaseline:"middle"},children:c})},"ImageChar");var Yn=f(({radius:e=32,fill:t="navy",stroke:n=t,strokeWidth:r=1,shapeRendering:o})=>p("circle",{r:e,fill:t,stroke:n,strokeWidth:r,shapeRendering:o}),"Circle"),Xn=f(({radius:e=30,cornerRadius:t=0,fill:n="white",stroke:r,strokeWidth:o=1,shapeRendering:_})=>p("rect",{x:-e,y:-e,rx:t,ry:t,width:e*2,height:e*2,fill:n,stroke:r||n,strokeWidth:o,shapeRendering:_}),"Square"),G=f(({width:e=30,height:t=30,cornerRadius:n=0,fill:r="white",stroke:o="black",strokeWidth:_=1,shapeRendering:a})=>p("rect",{x:-e/2,y:-t/2,rx:n,ry:n,width:e,height:t,fill:r,stroke:o||r,strokeWidth:_,shapeRendering:a}),"Rectangle"),fn=f(({shape:e="circle",height:t=128,width:n,fill:r,stroke:o,strokeWidth:_=1,shapeRendering:a,cornerRadius:s})=>{switch(e){case"square":return p(Xn,{radius:t/2,fill:r,stroke:o,strokeWidth:_,shapeRendering:a,cornerRadius:s});case"rectangle":return p(G,{width:n??t,height:t,fill:r,stroke:o,strokeWidth:_,shapeRendering:a,cornerRadius:s});case"circle":default:return p(Yn,{radius:t/2,fill:r,stroke:o,strokeWidth:_,shapeRendering:a})}},"Shape");var U=f(({shape:e="circle",width:t,height:n=32,fill:r,stroke:o,strokeWidth:_=0,imageUrl:a="",imageFontFamily:s="FontAwesome",imageChar:c="\uF128",imageCharFill:l=jn.textColor(r),padding:h=n/5,xOffset:i=0,yOffset:m=0,cornerRadius:u,shapeRendering:d})=>p($,{children:[p(fn,{shape:e,width:t,height:n,fill:r,stroke:o,strokeWidth:_,shapeRendering:d,cornerRadius:u}),a?p(cn,{href:a,x:i,y:m,height:n-h}):p(un,{x:i,y:m,height:n-h,fontFamily:s,char:c,fill:l,fontWeight:400})]}),"Icon"),$r=f(({icons:e=[]})=>{let t=e.map(n=>p("g",{id:n.id,children:p(U,{...n})},n.id));return p($,{children:t})},"Icons");var ft=f(({text:e,height:t=12,anchor:n="middle",baseline:r="middle",fontFamily:o="Verdana",fill:_="black"})=>p("text",{"font-family":o,"font-size":`${t}px`,"text-anchor":n,"dominant-baseline":r,fill:_,children:e}),"TextLine"),ye=f(({text:e,height:t=12,fontFamily:n="Verdana",fill:r="black",onSizeUpdate:o})=>{let[_,a]=L(0),[s,c]=L(0);Z(()=>{o&&o({width:_,height:s})},[_,s,o]);let l=D(()=>e.split(`
|
|
2
|
+
`),[e]);ie(()=>{let i=pn.textSize(l,n,t);a(i.width),c(i.height)},[n,t,l]);let h=D(()=>{let i=-(s/2)+t/2;return l.map((m,u)=>p("g",{transform:`translate(0 ${i+u*(t+2)})`,children:p(ft,{text:m,height:t,fontFamily:n,fill:r})},`key-${u}`))},[l,s,t,n,r]);return p("g",{children:h})},"Text"),H=f(({text:e,height:t=12,fontFamily:n="Verdana",padding:r=4,fill:o="whitesmoke",stroke:_="lightgray",textFill:a="black",strokeWidth:s=1,cornerRadius:c=0,onSizeUpdate:l})=>{let[h,i]=L(0),[m,u]=L(0);Z(()=>{l&&l({width:h,height:m})},[h,m,l]);let d=_e(v=>{i(v.width),u(v.height)},[]),x=h+r*2+s,b=m+r*2+s,g=Math.floor(t/10);return p($,{children:[p(G,{width:x,height:b,fill:o,stroke:_,strokeWidth:s,cornerRadius:c}),p("g",{transform:`translate(0 ${g})`,children:p(ye,{text:e,fontFamily:n,height:t,fill:a,onSizeUpdate:d})})]})},"TextBox"),Dr=f(({text:e,height:t=12,width:n=12,fontFamily:r="Verdana",fontSize:o=10,padding:_=3,fill:a="whitesmoke",stroke:s="lightgray",textFill:c="black",strokeWidth:l=1,cornerRadius:h=0,onSizeUpdate:i})=>{let[m,u]=L(n),[d,x]=L(t);return ie(()=>{let b=pn.textSize(e,r,o);u(b.width+_*2),x(b.height+_*2)},[e,r,o,_]),ie(()=>{i&&i({width:m,height:d})},[m,d,_,i]),p($,{children:[p(G,{width:m,height:d,fill:a,stroke:s,strokeWidth:l,cornerRadius:h}),p("g",{transform:`translate(${-(m/2)+_} ${-(d/2)+_+o*.15})`,children:p(ft,{text:e,fontFamily:r,height:o,fill:c,anchor:"start",baseline:"hanging"})})]})},"LabelledRect"),Lr=f(({icon:e,iconFontFamily:t,text:n,height:r=12,width:o=12,fontFamily:_="Verdana",fontSize:a=10,padding:s=3,fill:c="whitesmoke",stroke:l="lightgray",textFill:h="black",strokeWidth:i=1,cornerRadius:m=0})=>p($,{children:[p(G,{width:o,height:r,fill:c,stroke:l,strokeWidth:i,cornerRadius:m}),p("g",{transform:`translate(${-(o/2)+s} ${-(r/2)+s})`,children:p(U,{shape:"square",imageFontFamily:t,imageChar:e,height:r,fill:c,imageCharFill:h})}),p("g",{transform:`translate(${-(o/2)+s*2+r} ${-(r/2)+s})`,children:p(ft,{text:n,fontFamily:_,height:a,fill:h,anchor:"start",baseline:"hanging"})})]}),"IconLabelledRect");var zr=f(({label:e,labelPos:t,labelFill:n="black",labelHeight:r=12,path:o,stroke:_,strokeWidth:a,strokeDasharray:s})=>p($,{children:[p("path",{d:o,stroke:_,style:{strokeWidth:a,strokeDasharray:s}}),e&&t&&t.length===2?p("g",{transform:`translate(${t[0]} ${t[1]})`,children:p(ye,{text:e,fill:n,height:r})}):void 0]}),"Edge");import{HTMLWidget as Jn,SVGWidget as Zn}from"@hpcc-js/common";function hn(e,t,n,r){oe(B(e,t),n,r)}f(hn,"render");function jr(e,t,n,r){oe(B("svg",null,B(e,t)),n,r)}f(jr,"svgRender");var Te=class extends Jn{constructor(n){super();this._component=n}static{f(this,"HTMLAdapter")}props(n){return arguments.length?(this._props={...this._props,...n},this):this._props}prop(n,r){return arguments.length===1?this._props[n]:(this._props[n]=r,this)}update(n,r){super.update(n,r),hn(this._component,this._props,n)}};Te.prototype._class+=" react_HTMLAdapter";Te.prototype.publish("props",{},"object","Properties");var Ie=class extends Zn{constructor(n){super();this._component=n}static{f(this,"SVGAdapter")}props(n){return arguments.length?(this._props={...this._props,...n},this):this._props}prop(n,r){return arguments.length===1?this._props[n]:(this._props[n]=r,this)}update(n,r){super.update(n,r),hn(this._component,this._props,n)}};Ie.prototype._class+=" react_SVGAdapter";Ie.prototype.publish("props",{},"object","Properties");var Qr=f(({text:e})=>p("span",{children:e}),"Span");var pt=f(({x:e,y:t,annotationIDs:n=[],stepSize:r=-16})=>{let o=n.map((_,a)=>p("g",{transform:`translate(${e+a*r} ${t})`,children:p("use",{href:"#"+_})},_));return p($,{children:o})},"Annotations"),io=f(({categoryID:e="",text:t="",textHeight:n=12,textPadding:r=4,icon:o={},annotationsHeight:_=12,annotationIDs:a=[],textFill:s,textboxFill:c,textboxStroke:l,textFontFamily:h,onSizeUpdate:i,showLabel:m=!0,scale:u=1})=>{o={imageChar:"fa-question",height:32,fill:"transparent",...o};let[d,x]=L(0),[b,g]=L(0);Z(()=>{i&&i({width:0,height:0})},[d,b,i]);let v=d;v+=4;let w=-(o.height*2/6+n+8)/2,C=o.height/3+b/2+r,E=o.height/3+b+r+_/3;m||(w+=(n+8)/2,E-=b+r);let R=_e(A=>{x(A.width),g(A.height)},[]),I=m?p("g",{transform:`translate(0 ${C})`,children:p(H,{text:t,height:n,padding:r,onSizeUpdate:R,textFill:s,fill:c,stroke:l,fontFamily:h})}):void 0;return e?p("g",{transform:`translate(0 ${w}) scale(${u})`,children:[p("use",{href:"#"+e}),I,p(pt,{x:v/2,y:E,annotationIDs:a})]}):p("g",{transform:`translate(0 ${w}) scale(${u})`,children:[p(U,{...o}),I]})},"Vertex");import{Utility as Qn}from"@hpcc-js/common";var mo=f(({categoryID:e="",text:t="",textHeight:n=12,textPadding:r=4,icon:o={},textFill:_="black",textboxFill:a="white",textboxStroke:s="black",textFontFamily:c,annotationsHeight:l=12,annotationIDs:h=[]})=>{o={imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square",...o};let i=n+r*2,{width:m}=D(()=>Qn.textSize(t,c,n,!1),[t,c,n]),u=l,d=1,x=i/2,b=0,g=-(o.height*2/6+n+8)/2,v=-o.height/2,w=0,C=Math.ceil(m/2+r),E=x-o.height/2,R=u/2,I=x;return e?p("g",{transform:`translate(${b} ${g})`,children:[p("g",{transform:`translate(${v} ${w})`,children:p("use",{href:"#"+e})}),p("g",{transform:`translate(${C} ${E})`,children:p(H,{text:t,height:n,padding:r,strokeWidth:d,stroke:s,fill:a,textFill:_,fontFamily:c})}),p(pt,{x:R,y:I,annotationIDs:h,stepSize:u})]}):p($,{children:[p("g",{transform:`translate(${v} ${w})scale(1.0002)`,children:p(U,{...o,shape:"square"})}),p("g",{transform:`translate(${C} ${E})scale(1.0002)`,children:p(H,{text:t,height:n,padding:r,stroke:s,fill:a})})]})},"Vertex2");import{Utility as Gn}from"@hpcc-js/common";var er=f(({text:e="",textHeight:t=10,textPadding:n=4,textFill:r="#287EC4",textboxFill:o="white",textboxStroke:_="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:l=[],cornerRadius:h=3,icon:i={},subText:m={text:""},showLabel:u=!0,noLabelRadius:d=5,expansionIcon:x,scale:b=1})=>{i={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...i},m={text:"",fill:"white",textFill:"#555555",...m},x=x?{height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0,...x}:void 0;let g=0,v=0,w=D(()=>Gn.textSize(e,s,t,!1).width,[e,s,t]),C=0;e!==""&&(C=w+n*2+a*2),g+=C+c;let E=g-C/2,R=t+n*2+a*2,I=[];l.forEach((q,te)=>{let Ae=q.imageChar,le=R;g+=le+c;let ce=g-le/2;I.push(p("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(q),transform:`translate(${ce} ${v})`,children:p(U,{...q,shape:"square",height:R,imageChar:Ae,imageFontFamily:q.imageFontFamily,cornerRadius:h,strokeWidth:0})},te))}),l.length>0&&(g+=c*(l.length-1));let A=p("g",{"data-click":"text",transform:`translate(${E} ${v})`,children:!u||e===""?p("circle",{r:d,stroke:_,fill:r}):p(H,{text:e,height:t,padding:n,strokeWidth:a,stroke:_,fill:o,textFill:r,fontFamily:s,cornerRadius:h})}),V=i.height||20,P=i.strokeWidth||0,O=0,ee=0,ae=0,K=R+c*2;e!==""||I.length>0?ee=-(V/2)-P-R/2-c*2:m.text!==""&&(K=V/2+P+c*2);let be=m.text===""?null:p("g",{"data-click":"subtext",transform:`translate(${ae} ${K})`,children:p(H,{fill:m.fill||"#FFFFFF",textFill:m.textFill||r,...m,height:t,padding:n,strokeWidth:0,stroke:_,fontFamily:s,cornerRadius:h})});return p("g",{transform:`scale(${b})`,children:[p("g",{"data-click":"icon",transform:`translate(${O} ${ee})`,children:[p(U,{...i}),x&&p("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(x),transform:`translate(${(i.height+P)/2-x.height/2} ${-(i.height+P)/2+x.height/2})`,children:p(U,{...x})})]}),p("g",{transform:`translate(${-g/2} ${v})`,children:[A,I]}),be]})},"Vertex3"),Fo=f(function({id:e,categoryID:t="",text:n="",textHeight:r=12,textPadding:o=10,textFill:_="#287EC4",textboxFill:a="white",textboxStroke:s="#CCCCCC",textboxStrokeWidth:c=1,textFontFamily:l="Verdana",annotationGutter:h=2,annotations:i=[],cornerRadius:m,icon:u={},subText:d={},expansionIcon:x,scale:b=1}){return u={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...u},d={text:"",fill:"transparent",textFill:"#555555",...d},p(er,{...{id:e,categoryID:t,text:n,textHeight:r,textPadding:o,textFill:_,textboxFill:a,textboxStroke:s,textboxStrokeWidth:c,textFontFamily:l,annotationGutter:h,annotations:i,cornerRadius:m,icon:u,subText:d,expansionIcon:x,scale:b},icon:u,subText:d})},"CentroidVertex3");import{Utility as mn}from"@hpcc-js/common";var tr=f(({categoryID:e="",text:t="",textHeight:n=10,textPadding:r=4,textFill:o="#287EC4",textboxFill:_="white",textboxStroke:a="#CCCCCC",textboxStrokeWidth:s=1,textFontFamily:c="Verdana",annotationGutter:l=2,annotations:h=[],iconAnnotations:i=[],cornerRadius:m=3,icon:u={},subText:d={},showLabel:x=!0,noLabelRadius:b=5,iconBorderWidth:g=1,iconBorderColor:v="#333",iconBackgroundColor:w="#fff",iconFontColor:C="#000",iconFontSize:E=20,iconFontFamily:R="FontAwesome",shapeOffsetX:I=0,shapeOffsetY:A=0,iconOffsetX:V=0,iconOffsetY:P=0,iconPadding:O=4,iconText:ee="?",shapeRendering:ae="auto"})=>{u={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...u},d={text:"",fill:"white",textFill:"#555555",...d};let K=0,be=D(()=>mn.textSize(t,c,n,!1).width,[t,c,n]),q=0;t!==""&&(q=be+r*2+s*2);let te=q+l,Ae=te-q/2,le=n+l*2+s*2,ce=h.map(T=>mn.textSize(T.imageChar,T.imageFontFamily,T.height,!1).width),ht=[],mt=te;h.forEach((T,ne)=>{let Oe=T.imageChar,Ue=T.height??le;mt+=ce[ne]+l;let bn=mt-ce[ne]/2;ht.push(p("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(T),transform:`translate(${bn} ${K})`,children:p(U,{...T,shape:"rectangle",width:ce[ne],height:Ue,imageChar:Oe,imageFontFamily:T.imageFontFamily,cornerRadius:m,strokeWidth:0})},ne))}),h.length>0&&(te+=l*(h.length-1));let dt=[];i.forEach((T,ne)=>{let Oe=T.shapeOffsetX,Ue=T.shapeOffsetY;dt.push(p("g",{className:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(T),transform:`translate(${Oe} ${Ue})`,children:p(U,{...T,shape:T.shape??"square",imageChar:T.imageChar,imageFontFamily:T.imageFontFamily,cornerRadius:m,stroke:T.stroke,strokeWidth:T.strokeWidth})},ne))});let dn=p("g",{"data-click":"text",transform:`translate(${Ae} ${K})`,children:!x||t===""?p("circle",{r:b,stroke:a,fill:o}):p(H,{text:t,height:n,padding:r,strokeWidth:s,stroke:a,fill:_,textFill:o,fontFamily:c,cornerRadius:m})}),gn=0,vn=le+l*2,yn=d.text===""?null:p("g",{"data-click":"subtext",transform:`translate(${gn} ${vn})`,children:p(H,{fill:d.fill||"#FFFFFF",textFill:d.textFill||o,...d,height:n,padding:r,strokeWidth:0,stroke:a,fontFamily:c,cornerRadius:m})});return p("g",{children:[p("g",{"data-click":"icon",transform:`translate(${I} ${A})`,children:[p(U,{...u,strokeWidth:g,shape:"circle",height:E,fill:w,stroke:v,imageFontFamily:R,imageChar:ee,imageCharFill:C,padding:O,xOffset:V,yOffset:P,cornerRadius:m,shapeRendering:ae}),dt]}),p("g",{transform:`translate(${-te/2} ${K})`,children:[dn,ht]}),yn]})},"Vertex4"),Ao=f(function({id:e,categoryID:t="",text:n="",textHeight:r=12,textPadding:o=10,textFill:_="#287EC4",textboxFill:a="white",textboxStroke:s="#CCCCCC",textboxStrokeWidth:c=1,textFontFamily:l="Verdana",annotationGutter:h=2,annotations:i=[],iconAnnotations:m=[],cornerRadius:u,icon:d={},subText:x={},showLabel:b=!0,noLabelRadius:g=5,iconBorderWidth:v=1,iconBorderColor:w="#333",iconBackgroundColor:C="#fff",iconFontColor:E="#000",iconFontSize:R=20,iconFontFamily:I="FontAwesome",shapeOffsetX:A=0,shapeOffsetY:V=0,iconOffsetX:P=0,iconOffsetY:O=0,iconPadding:ee=4,iconText:ae="?",shapeRendering:K="auto"}){return d={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...d},x={text:"",fill:"transparent",textFill:"#555555",...x},p(tr,{...{id:e,categoryID:t,text:n,textHeight:r,textPadding:o,textFill:_,textboxFill:a,textboxStroke:s,textboxStrokeWidth:c,textFontFamily:l,annotationGutter:h,annotations:i,iconAnnotations:m,cornerRadius:u,icon:d,subText:x,showLabel:b,noLabelRadius:g,iconBorderWidth:v,iconBorderColor:w,iconBackgroundColor:C,iconFontColor:E,iconFontSize:R,iconFontFamily:I,shapeOffsetX:A,shapeOffsetY:V,iconOffsetX:P,iconOffsetY:O,iconPadding:ee,iconText:ae,shapeRendering:K},icon:d,subText:x})},"CentroidVertex4");import{Utility as nr}from"@hpcc-js/common";var Ho=f(({text:e,width:t=100,height:n=100,fill:r="transparent",stroke:o="black",fontHeight:_=12,fontFamily:a})=>{let s=nr.textSize(e,a,_,!1);return p($,{children:[p(G,{width:t,height:n,fill:r,stroke:o}),p("g",{transform:`translate(${(-t+s.width)/2+4} ${(-n+s.height)/2+4})`,children:p(ye,{height:_,text:e,fontFamily:a})})]})},"Subgraph");export{pt as Annotations,_r as BUILD_VERSION,Fo as CentroidVertex3,Ao as CentroidVertex4,Yn as Circle,zr as Edge,Te as HTMLAdapter,U as Icon,Lr as IconLabelledRect,$r as Icons,cn as Image,un as ImageChar,Dr as LabelledRect,or as PKG_NAME,ir as PKG_VERSION,z as React,G as Rectangle,Ie as SVGAdapter,fn as Shape,Qr as Span,Xn as Square,Ho as Subgraph,ye as Text,H as TextBox,ft as TextLine,io as Vertex,mo as Vertex2,er as Vertex3,tr as Vertex4,hn as render,jr as svgRender};
|
|
576
3
|
//# sourceMappingURL=index.js.map
|