@hpcc-js/react 2.53.1 → 2.53.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,860 +1,566 @@
1
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"]));
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
5
  })(this, (function (exports, common) { 'use strict';
6
6
 
7
- var PKG_NAME$1 = "@hpcc-js/react";
8
- var PKG_VERSION$1 = "2.53.1";
9
- var BUILD_VERSION$1 = "2.104.11";
10
-
11
- var PKG_NAME = "@hpcc-js/preact-shim";
12
- var PKG_VERSION = "2.16.2";
13
- var BUILD_VERSION = "2.104.11";
14
-
15
- var n,l$1,u$1,t$1,o$1,f$1={},e$1=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$1(l,f,t,o,null)}function v$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function p$1(n){return n.children}function d$1(n,l){this.props=n,this.context=l;}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+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?_(n):null}function k$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 k$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||setTimeout)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$1(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$1(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$1(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=_(i,h+1)),N(x[h],x[h]));if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$1(i,l,u):A(u,i,i,t,i.__e,l));return l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof H){if(g=u.props,m=(a=H.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in H&&H.prototype.render?u.__c=h=new H(g,x):(u.__c=h=new d$1(g,x),h.constructor=H,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==H.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,A=l$1.__r,C=0,"prototype"in H&&H.prototype.render)h.state=h.__s,h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context);else do{h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),$=null!=a&&a.type===p$1&&null==a.key?a.props.children:a,w$1(n,Array.isArray($)?$:[$],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z$1(n,u){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 L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$1(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$1(i,u=(!o&&t||i).__k=h$1(p$1,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}n=e$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,d$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),b$1(this));},d$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d$1.prototype.render=p$1,t$1=[],g$1.__r=0;
16
-
17
- var t,r,u,i,o=0,c=[],f=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:f}),i.__[t]}function p(n){return o=1,y$1(z,n)}function y$1(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):z(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)){r.u=!0;var c=r.shouldComponentUpdate;r.shouldComponentUpdate=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&&(!c||c.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$1.__s&&w(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function F(n,r){var u=d(t++,7);return w(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function b(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(j),t.__H.__h.forEach(k),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__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.__V=f,n.__N=n.i=void 0;})):(i.__h.forEach(j),i.__h.forEach(k),i.__h=[])),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==c.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||function(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));})(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==f&&(n.__=n.__V),n.i=void 0,n.__V=f;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(j),t.__h=t.__h.filter(function(n){return !n.__||k(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{j(n);}catch(n){r=n;}}),r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function k(n){var t=r;n.__c=n.__(),r=t;}function w(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function z(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: d$1,
23
- Fragment: p$1,
24
- PKG_NAME: PKG_NAME,
25
- PKG_VERSION: PKG_VERSION,
26
- createElement: h$1,
27
- h: h$1,
28
- render: P,
29
- useCallback: T,
30
- useEffect: h,
31
- useMemo: F,
32
- useReducer: y$1,
33
- useState: p
34
- });
35
-
36
- var pi = Math.PI,
37
- tau = 2 * pi,
38
- epsilon = 1e-6,
39
- tauEpsilon = tau - epsilon;
40
-
41
- function Path() {
42
- this._x0 = this._y0 = // start of current subpath
43
- this._x1 = this._y1 = null; // end of current subpath
44
- this._ = "";
45
- }
46
-
47
- function path() {
48
- return new Path;
49
- }
50
-
51
- Path.prototype = path.prototype = {
52
- constructor: Path,
53
- moveTo: function(x, y) {
54
- this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y);
55
- },
56
- closePath: function() {
57
- if (this._x1 !== null) {
58
- this._x1 = this._x0, this._y1 = this._y0;
59
- this._ += "Z";
60
- }
61
- },
62
- lineTo: function(x, y) {
63
- this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y);
64
- },
65
- quadraticCurveTo: function(x1, y1, x, y) {
66
- this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
67
- },
68
- bezierCurveTo: function(x1, y1, x2, y2, x, y) {
69
- this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
70
- },
71
- arcTo: function(x1, y1, x2, y2, r) {
72
- x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
73
- var x0 = this._x1,
74
- y0 = this._y1,
75
- x21 = x2 - x1,
76
- y21 = y2 - y1,
77
- x01 = x0 - x1,
78
- y01 = y0 - y1,
79
- l01_2 = x01 * x01 + y01 * y01;
80
-
81
- // Is the radius negative? Error.
82
- if (r < 0) throw new Error("negative radius: " + r);
83
-
84
- // Is this path empty? Move to (x1,y1).
85
- if (this._x1 === null) {
86
- this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1);
87
- }
88
-
89
- // Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
90
- else if (!(l01_2 > epsilon));
91
-
92
- // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
93
- // Equivalently, is (x1,y1) coincident with (x2,y2)?
94
- // Or, is the radius zero? Line to (x1,y1).
95
- else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
96
- this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
97
- }
98
-
99
- // Otherwise, draw an arc!
100
- else {
101
- var x20 = x2 - x0,
102
- y20 = y2 - y0,
103
- l21_2 = x21 * x21 + y21 * y21,
104
- l20_2 = x20 * x20 + y20 * y20,
105
- l21 = Math.sqrt(l21_2),
106
- l01 = Math.sqrt(l01_2),
107
- l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
108
- t01 = l / l01,
109
- t21 = l / l21;
110
-
111
- // If the start tangent is not coincident with (x0,y0), line to.
112
- if (Math.abs(t01 - 1) > epsilon) {
113
- this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
114
- }
115
-
116
- this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21);
117
- }
118
- },
119
- arc: function(x, y, r, a0, a1, ccw) {
120
- x = +x, y = +y, r = +r, ccw = !!ccw;
121
- var dx = r * Math.cos(a0),
122
- dy = r * Math.sin(a0),
123
- x0 = x + dx,
124
- y0 = y + dy,
125
- cw = 1 ^ ccw,
126
- da = ccw ? a0 - a1 : a1 - a0;
127
-
128
- // Is the radius negative? Error.
129
- if (r < 0) throw new Error("negative radius: " + r);
130
-
131
- // Is this path empty? Move to (x0,y0).
132
- if (this._x1 === null) {
133
- this._ += "M" + x0 + "," + y0;
134
- }
135
-
136
- // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
137
- else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
138
- this._ += "L" + x0 + "," + y0;
139
- }
140
-
141
- // Is this arc empty? We’re done.
142
- if (!r) return;
143
-
144
- // Does the angle go the wrong way? Flip the direction.
145
- if (da < 0) da = da % tau + tau;
146
-
147
- // Is this a complete circle? Draw two arcs to complete the circle.
148
- if (da > tauEpsilon) {
149
- this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0);
150
- }
151
-
152
- // Is this arc non-empty? Draw an arc!
153
- else if (da > epsilon) {
154
- this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1));
155
- }
156
- },
157
- rect: function(x, y, w, h) {
158
- this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z";
159
- },
160
- toString: function() {
161
- return this._;
7
+ var PKG_NAME$1 = "@hpcc-js/react";
8
+ var PKG_VERSION$1 = "2.53.3";
9
+ var BUILD_VERSION$1 = "2.104.14";
10
+
11
+ var PKG_NAME = "@hpcc-js/preact-shim";
12
+ var PKG_VERSION = "2.16.3";
13
+ var BUILD_VERSION = "2.104.14";
14
+
15
+ var n,l$1,u$1,t$1,o$1,f$1={},e$1=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v$1(l,f,t,o,null)}function v$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function p$1(n){return n.children}function d$1(n,l){this.props=n,this.context=l;}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+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?_(n):null}function k$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 k$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||setTimeout)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$1(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$1(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$1(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&N(x[h],x[h]);if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m$1(i,l,u):A(u,i,i,t,i.__e,l));return l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&-1==l.indexOf("-")?n.removeAttribute(l):n.setAttribute(l,u));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H,I,T=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof T){if(g=u.props,m=(a=T.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in T&&T.prototype.render?u.__c=h=new T(g,x):(u.__c=h=new d$1(g,x),h.constructor=T,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,T.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==T.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){for(h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,C=l$1.__r,$=0,"prototype"in T&&T.prototype.render){for(h.state=h.__s,h.__d=!1,C&&C(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,C&&C(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),I=null!=a&&a.type===p$1&&null==a.key?a.props.children:a,w$1(n,Array.isArray(I)?I:[I],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z$1(n,u){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 L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$1(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__=n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$1(i,u=(!o&&t||i).__k=h$1(p$1,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}n=e$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,d$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),b$1(this));},d$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d$1.prototype.render=p$1,t$1=[],g$1.__r=0;
16
+
17
+ var t,r,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function p(n){return o=1,y(B,n)}function y(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(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)){r.u=!0;var f=r.shouldComponentUpdate;r.shouldComponentUpdate=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 !f||f.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)&&(!f||f.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){"function"!=typeof n.type||n.__m||null===n.__?n.__m||(n.__m=n.__&&n.__.__m?n.__.__m:""):n.__m=(n.__&&n.__.__m?n.__.__m:"")+(n.__&&n.__.__k?n.__.__k.indexOf(n):0),r=null,e&&e(n);},l$1.__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.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[])),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w(n){var t=r;n.__c=n.__(),r=t;}function z(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(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: d$1,
23
+ Fragment: p$1,
24
+ PKG_NAME: PKG_NAME,
25
+ PKG_VERSION: PKG_VERSION,
26
+ createElement: h$1,
27
+ h: h$1,
28
+ render: P,
29
+ useCallback: T,
30
+ useEffect: h,
31
+ useMemo: F,
32
+ useReducer: y,
33
+ useState: p
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 */
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);
162
87
  }
163
- };
164
88
 
165
- function constant(x) {
166
- return function constant() {
167
- return x;
89
+ var ImageChar = function (_a) {
90
+ 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;
91
+ var renderChar = F(function () {
92
+ return fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char;
93
+ }, [char, fontFamily]);
94
+ return h$1("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);
168
95
  };
169
- }
170
-
171
- function Linear(context) {
172
- this._context = context;
173
- }
174
-
175
- Linear.prototype = {
176
- areaStart: function() {
177
- this._line = 0;
178
- },
179
- areaEnd: function() {
180
- this._line = NaN;
181
- },
182
- lineStart: function() {
183
- this._point = 0;
184
- },
185
- lineEnd: function() {
186
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
187
- this._line = 1 - this._line;
188
- },
189
- point: function(x, y) {
190
- x = +x, y = +y;
191
- switch (this._point) {
192
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
193
- case 1: this._point = 2; // proceed
194
- default: this._context.lineTo(x, y); break;
195
- }
196
- }
197
- };
198
96
 
199
- function curveLinear(context) {
200
- return new Linear(context);
201
- }
202
-
203
- function x(p) {
204
- return p[0];
205
- }
206
-
207
- function y(p) {
208
- return p[1];
209
- }
210
-
211
- function d3Line() {
212
- var x$1 = x,
213
- y$1 = y,
214
- defined = constant(true),
215
- context = null,
216
- curve = curveLinear,
217
- output = null;
218
-
219
- function line(data) {
220
- var i,
221
- n = data.length,
222
- d,
223
- defined0 = false,
224
- buffer;
225
-
226
- if (context == null) output = curve(buffer = path());
227
-
228
- for (i = 0; i <= n; ++i) {
229
- if (!(i < n && defined(d = data[i], i, data)) === defined0) {
230
- if (defined0 = !defined0) output.lineStart();
231
- else output.lineEnd();
97
+ var Circle = function (_a) {
98
+ 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;
99
+ return h$1("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
100
+ };
101
+ var Square = function (_a) {
102
+ 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;
103
+ return h$1("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 });
104
+ };
105
+ var Rectangle = function (_a) {
106
+ 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;
107
+ return h$1("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 });
108
+ };
109
+ var Shape = function (_a) {
110
+ 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;
111
+ switch (shape) {
112
+ case "square":
113
+ return h$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
114
+ case "rectangle":
115
+ return h$1(Rectangle, { width: width !== null && width !== void 0 ? width : height, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
116
+ case "circle":
117
+ default:
118
+ return h$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
232
119
  }
233
- if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
234
- }
235
-
236
- if (buffer) return output = null, buffer + "" || null;
237
- }
238
-
239
- line.x = function(_) {
240
- return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line) : x$1;
241
120
  };
242
121
 
243
- line.y = function(_) {
244
- return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line) : y$1;
122
+ var Icon = function (_a) {
123
+ 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.imageFontFamily, imageFontFamily = _e === void 0 ? "FontAwesome" : _e, _f = _a.imageChar, imageChar = _f === void 0 ? "" : _f, _g = _a.imageCharFill, imageCharFill = _g === void 0 ? common.Palette.textColor(fill) : _g, _h = _a.padding, padding = _h === void 0 ? height / 5 : _h, _j = _a.xOffset, xOffset = _j === void 0 ? 0 : _j, _k = _a.yOffset, yOffset = _k === void 0 ? 0 : _k, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering;
124
+ return h$1(p$1, null,
125
+ h$1(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
126
+ h$1(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
245
127
  };
246
-
247
- line.defined = function(_) {
248
- return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line) : defined;
128
+ var Icons = function (_a) {
129
+ var _b = _a.icons, icons = _b === void 0 ? [] : _b;
130
+ var IconComponents = icons.map(function (cat) {
131
+ return h$1("g", { key: cat.id, id: cat.id },
132
+ h$1(Icon, __assign({}, cat)));
133
+ });
134
+ return h$1(p$1, null, IconComponents);
249
135
  };
250
136
 
251
- line.curve = function(_) {
252
- return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
137
+ var TextLine = function (_a) {
138
+ 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;
139
+ return h$1("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
253
140
  };
254
-
255
- line.context = function(_) {
256
- return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
141
+ var Text = function (_a) {
142
+ 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;
143
+ var _e = p(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1];
144
+ var _f = p(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1];
145
+ h(function () {
146
+ onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
147
+ }, [totalWidth, totalHeight, onSizeUpdate]);
148
+ var parts = F(function () {
149
+ return text.split("\n");
150
+ }, [text]);
151
+ var ts = F(function () {
152
+ return common.Utility.textSize(parts, fontFamily, height);
153
+ }, [fontFamily, height, parts]);
154
+ setTotalWidthUpdate(ts.width);
155
+ setTotalHeightUpdate(parts.length * (height + 2) - 2);
156
+ var yOffset = -(totalHeight / 2) + (height / 2);
157
+ var TextLines = F(function () {
158
+ return parts.map(function (p, i) {
159
+ return h$1("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") },
160
+ h$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
161
+ });
162
+ }, [fill, fontFamily, height, parts, yOffset]);
163
+ return h$1(p$1, null, TextLines);
164
+ };
165
+ var TextBox = function (_a) {
166
+ 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;
167
+ var _k = p(0), textWidth = _k[0], setTextWidthUpdate = _k[1];
168
+ var _l = p(0), textHeight = _l[0], setTextHeightUpdate = _l[1];
169
+ h(function () {
170
+ onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
171
+ }, [textWidth, textHeight, onSizeUpdate]);
172
+ var onTextSizeUpdate = T(function (size) {
173
+ setTextWidthUpdate(size.width);
174
+ setTextHeightUpdate(size.height);
175
+ }, []);
176
+ var w = textWidth + padding * 2 + strokeWidth;
177
+ var h$2 = textHeight + padding * 2 + strokeWidth;
178
+ var textOffsetY = Math.floor(height / 10);
179
+ return h$1(p$1, null,
180
+ h$1(Rectangle, { width: w, height: h$2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
181
+ h$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") },
182
+ h$1(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
183
+ };
184
+ var LabelledRect = function (_a) {
185
+ 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;
186
+ return h$1(p$1, null,
187
+ h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
188
+ h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
189
+ h$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
190
+ };
191
+ var IconLabelledRect = function (_a) {
192
+ 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;
193
+ return h$1(p$1, null,
194
+ h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
195
+ h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
196
+ h$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
197
+ h$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") },
198
+ h$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
257
199
  };
258
200
 
259
- return line;
260
- }
261
-
262
- function point(that, x, y) {
263
- that._context.bezierCurveTo(
264
- (2 * that._x0 + that._x1) / 3,
265
- (2 * that._y0 + that._y1) / 3,
266
- (that._x0 + 2 * that._x1) / 3,
267
- (that._y0 + 2 * that._y1) / 3,
268
- (that._x0 + 4 * that._x1 + x) / 6,
269
- (that._y0 + 4 * that._y1 + y) / 6
270
- );
271
- }
272
-
273
- function Basis(context) {
274
- this._context = context;
275
- }
201
+ var Edge = function (_a) {
202
+ 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;
203
+ return h$1(p$1, null,
204
+ h$1("path", { d: path, stroke: stroke, style: { strokeWidth: strokeWidth, strokeDasharray: strokeDasharray } }),
205
+ label && labelPos && labelPos.length === 2 ?
206
+ h$1("g", { transform: "translate(".concat(labelPos[0], " ").concat(labelPos[1], ")") },
207
+ h$1(Text, { text: label, fill: labelFill, height: labelHeight })) : undefined);
208
+ };
276
209
 
277
- Basis.prototype = {
278
- areaStart: function() {
279
- this._line = 0;
280
- },
281
- areaEnd: function() {
282
- this._line = NaN;
283
- },
284
- lineStart: function() {
285
- this._x0 = this._x1 =
286
- this._y0 = this._y1 = NaN;
287
- this._point = 0;
288
- },
289
- lineEnd: function() {
290
- switch (this._point) {
291
- case 3: point(this, this._x1, this._y1); // proceed
292
- case 2: this._context.lineTo(this._x1, this._y1); break;
293
- }
294
- if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
295
- this._line = 1 - this._line;
296
- },
297
- point: function(x, y) {
298
- x = +x, y = +y;
299
- switch (this._point) {
300
- case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
301
- case 1: this._point = 2; break;
302
- case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed
303
- default: point(this, x, y); break;
304
- }
305
- this._x0 = this._x1, this._x1 = x;
306
- this._y0 = this._y1, this._y1 = y;
210
+ function render(C, props, parent, replaceNode) {
211
+ P(h$1(C, props), parent, replaceNode);
307
212
  }
308
- };
309
-
310
- function d3CurveBasis(context) {
311
- return new Basis(context);
312
- }
313
-
314
- var line = d3Line()
315
- .x(function (d) { return d[0]; })
316
- .y(function (d) { return d[1]; })
317
- .curve(d3CurveBasis);
318
- function calcArc(points, curveDepth) {
319
- if (points.length === 2 && curveDepth) {
320
- var dx = points[0][0] - points[1][0];
321
- var dy = points[0][1] - points[1][1];
322
- var dist = Math.sqrt(dx * dx + dy * dy);
323
- if (dist) {
324
- var midX = (points[0][0] + points[1][0]) / 2 - dy * curveDepth / 100;
325
- var midY = (points[0][1] + points[1][1]) / 2 + dx * curveDepth / 100;
326
- return [points[0], [midX, midY], points[1]];
327
- }
328
- }
329
- return points;
330
- }
331
- var Edge = function (_a) {
332
- var _b = _a.points, points = _b === void 0 ? [] : _b, _c = _a.curveDepth, curveDepth = _c === void 0 ? 16 : _c, _d = _a.stroke, stroke = _d === void 0 ? "black" : _d, strokeDasharray = _a.strokeDasharray;
333
- var d = F(function () {
334
- return line(calcArc(points, curveDepth));
335
- }, [curveDepth, points]);
336
- return h$1("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: d });
337
- };
338
-
339
- var ImageChar = function (_a) {
340
- 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;
341
- var renderChar = F(function () {
342
- return fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char;
343
- }, [char, fontFamily]);
344
- return h$1("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);
345
- };
346
-
347
- /******************************************************************************
348
- Copyright (c) Microsoft Corporation.
349
-
350
- Permission to use, copy, modify, and/or distribute this software for any
351
- purpose with or without fee is hereby granted.
352
-
353
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
354
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
355
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
356
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
357
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
358
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
359
- PERFORMANCE OF THIS SOFTWARE.
360
- ***************************************************************************** */
361
- /* global Reflect, Promise */
362
-
363
- var extendStatics = function(d, b) {
364
- extendStatics = Object.setPrototypeOf ||
365
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
366
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
367
- return extendStatics(d, b);
368
- };
369
-
370
- function __extends(d, b) {
371
- if (typeof b !== "function" && b !== null)
372
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
373
- extendStatics(d, b);
374
- function __() { this.constructor = d; }
375
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
376
- }
377
-
378
- var __assign = function() {
379
- __assign = Object.assign || function __assign(t) {
380
- for (var s, i = 1, n = arguments.length; i < n; i++) {
381
- s = arguments[i];
382
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
383
- }
384
- return t;
385
- };
386
- return __assign.apply(this, arguments);
387
- };
388
-
389
- function __decorate(decorators, target, key, desc) {
390
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
391
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
392
- 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;
393
- return c > 3 && r && Object.defineProperty(target, key, r), r;
394
- }
395
-
396
- function __metadata(metadataKey, metadataValue) {
397
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
398
- }
399
-
400
- var Circle = function (_a) {
401
- 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;
402
- return h$1("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
403
- };
404
- var Square = function (_a) {
405
- 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;
406
- return h$1("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 });
407
- };
408
- var Rectangle = function (_a) {
409
- 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;
410
- return h$1("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 });
411
- };
412
- var Shape = function (_a) {
413
- 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;
414
- switch (shape) {
415
- case "square":
416
- return h$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
417
- case "rectangle":
418
- return h$1(Rectangle, { width: width !== null && width !== void 0 ? width : height, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
419
- case "circle":
420
- default:
421
- return h$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
422
- }
423
- };
424
-
425
- var Icon = function (_a) {
426
- 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.imageFontFamily, imageFontFamily = _e === void 0 ? "FontAwesome" : _e, _f = _a.imageChar, imageChar = _f === void 0 ? "" : _f, _g = _a.imageCharFill, imageCharFill = _g === void 0 ? common.Palette.textColor(fill) : _g, _h = _a.padding, padding = _h === void 0 ? height / 5 : _h, _j = _a.xOffset, xOffset = _j === void 0 ? 0 : _j, _k = _a.yOffset, yOffset = _k === void 0 ? 0 : _k, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering;
427
- return h$1(p$1, null,
428
- h$1(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
429
- h$1(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
430
- };
431
- var Icons = function (_a) {
432
- var _b = _a.icons, icons = _b === void 0 ? [] : _b;
433
- var IconComponents = icons.map(function (cat) {
434
- return h$1("g", { key: cat.id, id: cat.id },
435
- h$1(Icon, __assign({}, cat)));
436
- });
437
- return h$1(p$1, null, IconComponents);
438
- };
439
-
440
- function render(C, props, parent, replaceNode) {
441
- P(h$1(C, props), parent, replaceNode);
442
- }
443
- function svgRender(C, props, parent, replaceNode) {
444
- P(h$1("svg", null, h$1(C, props)), parent, replaceNode);
445
- }
446
- var HTMLAdapter = /** @class */ (function (_super) {
447
- __extends(HTMLAdapter, _super);
448
- function HTMLAdapter(_component) {
449
- var _this = _super.call(this) || this;
450
- _this._component = _component;
451
- _this._props = {};
452
- return _this;
453
- }
454
- HTMLAdapter.prototype.props = function (_) {
455
- if (!arguments.length)
456
- return this._props;
457
- this._props = __assign(__assign({}, this._props), _);
458
- return this;
459
- };
460
- HTMLAdapter.prototype.prop = function (_, value) {
461
- if (arguments.length === 1)
462
- return this._props[_];
463
- this._props[_] = value;
464
- return this;
465
- };
466
- HTMLAdapter.prototype.update = function (domNode, element) {
467
- _super.prototype.update.call(this, domNode, element);
468
- render(this._component, this._props, domNode);
469
- };
470
- __decorate([
471
- common.publish({}, "object", "Properties"),
472
- __metadata("design:type", Object)
473
- ], HTMLAdapter.prototype, "_props", void 0);
474
- return HTMLAdapter;
475
- }(common.HTMLWidget));
476
- var SVGAdapter = /** @class */ (function (_super) {
477
- __extends(SVGAdapter, _super);
478
- function SVGAdapter(_component) {
479
- var _this = _super.call(this) || this;
480
- _this._component = _component;
481
- _this._props = {};
482
- return _this;
483
- }
484
- SVGAdapter.prototype.props = function (_) {
485
- if (!arguments.length)
486
- return this._props;
487
- this._props = __assign(__assign({}, this._props), _);
488
- return this;
489
- };
490
- SVGAdapter.prototype.prop = function (_, value) {
491
- if (arguments.length === 1)
492
- return this._props[_];
493
- this._props[_] = value;
494
- return this;
495
- };
496
- SVGAdapter.prototype.update = function (domNode, element) {
497
- _super.prototype.update.call(this, domNode, element);
498
- render(this._component, this._props, domNode);
499
- };
500
- __decorate([
501
- common.publish({}, "object", "Properties"),
502
- __metadata("design:type", Object)
503
- ], SVGAdapter.prototype, "_props", void 0);
504
- return SVGAdapter;
505
- }(common.SVGWidget));
506
-
507
- var TextLine = function (_a) {
508
- 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;
509
- return h$1("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
510
- };
511
- var Text = function (_a) {
512
- 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;
513
- var _e = p(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1];
514
- var _f = p(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1];
515
- h(function () {
516
- onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
517
- }, [totalWidth, totalHeight, onSizeUpdate]);
518
- var parts = F(function () {
519
- return text.split("\n");
520
- }, [text]);
521
- var ts = F(function () {
522
- return common.Utility.textSize(parts, fontFamily, height);
523
- }, [fontFamily, height, parts]);
524
- setTotalWidthUpdate(ts.width);
525
- setTotalHeightUpdate(parts.length * (height + 2) - 2);
526
- var yOffset = -(totalHeight / 2) + (height / 2);
527
- var TextLines = F(function () {
528
- return parts.map(function (p, i) {
529
- return h$1("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") },
530
- h$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
531
- });
532
- }, [fill, fontFamily, height, parts, yOffset]);
533
- return h$1(p$1, null, TextLines);
534
- };
535
- var TextBox = function (_a) {
536
- 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;
537
- var _k = p(0), textWidth = _k[0], setTextWidthUpdate = _k[1];
538
- var _l = p(0), textHeight = _l[0], setTextHeightUpdate = _l[1];
539
- h(function () {
540
- onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
541
- }, [textWidth, textHeight, onSizeUpdate]);
542
- var onTextSizeUpdate = T(function (size) {
543
- setTextWidthUpdate(size.width);
544
- setTextHeightUpdate(size.height);
545
- }, []);
546
- var w = textWidth + padding * 2 + strokeWidth;
547
- var h$2 = textHeight + padding * 2 + strokeWidth;
548
- var textOffsetY = Math.floor(height / 10);
549
- return h$1(p$1, null,
550
- h$1(Rectangle, { width: w, height: h$2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
551
- h$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") },
552
- h$1(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
553
- };
554
- var LabelledRect = function (_a) {
555
- 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;
556
- return h$1(p$1, null,
557
- h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
558
- h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
559
- h$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
560
- };
561
- var IconLabelledRect = function (_a) {
562
- 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;
563
- return h$1(p$1, null,
564
- h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
565
- h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
566
- h$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
567
- h$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") },
568
- h$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
569
- };
570
-
571
- var Annotations = function (_a) {
572
- var x = _a.x, y = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
573
- var IconComponents = annotationIDs.map(function (id, i) { return h$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") },
574
- h$1("use", { href: "#" + id })); });
575
- return h$1(p$1, null, IconComponents);
576
- };
577
- var Vertex = function (_a) {
578
- 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;
579
- var _l = p(0), textBoxWidth = _l[0], setTextBoxWidthUpdate = _l[1];
580
- var _m = p(0), textBoxHeight = _m[0], setTextBoxHeightUpdate = _m[1];
581
- h(function () {
582
- onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
583
- }, [textBoxWidth, textBoxHeight, onSizeUpdate]);
584
- icon = __assign({ imageChar: "fa-question", height: 32, fill: "transparent" }, icon);
585
- var width = textBoxWidth;
586
- width += 4;
587
- var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
588
- var textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;
589
- var annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;
590
- if (!showLabel) {
591
- offsetY += (textHeight + 8) / 2;
592
- annotationOffsetY -= textBoxHeight + textPadding;
593
- }
594
- var onTextBoxSizeUpdate = T(function (size) {
595
- setTextBoxWidthUpdate(size.width);
596
- setTextBoxHeightUpdate(size.height);
597
- }, []);
598
- var label = showLabel ? h$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") },
599
- h$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
600
- return categoryID ?
601
- h$1("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
602
- h$1("use", { href: "#" + categoryID }),
603
- label,
604
- h$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
605
- h$1("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
606
- h$1(Icon, __assign({}, icon)),
607
- label);
608
- };
609
-
610
- var Vertex2 = function (_a) {
611
- 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;
612
- icon = __assign({ imageChar: "fa-question", imageCharFill: "white", height: 32, fill: "black", shape: "square" }, icon);
613
- var textBoxHeight = textHeight + textPadding * 2;
614
- var width = F(function () {
615
- return common.Utility.textSize(text, textFontFamily, textHeight, false);
616
- }, [text, textFontFamily, textHeight]).width;
617
- var stepSize = annotationsHeight;
618
- var textboxStrokeWidth = 1;
619
- var halfTextboxHeight = textBoxHeight / 2;
620
- var offsetX = 0;
621
- var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
622
- var iconOffsetX = -icon.height / 2;
623
- var iconOffsetY = 0;
624
- var textboxOffsetX = Math.ceil((width / 2) + textPadding);
625
- var textboxOffsetY = halfTextboxHeight - (icon.height / 2);
626
- var annotationOffsetX = stepSize / 2;
627
- var annotationOffsetY = halfTextboxHeight;
628
- return categoryID ?
629
- h$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") },
630
- h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
631
- h$1("use", { href: "#" + categoryID })),
632
- h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") },
633
- h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
634
- h$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
635
- :
636
- h$1(p$1, null,
637
- h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") },
638
- h$1(Icon, __assign({}, icon, { shape: "square" }))),
639
- h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") },
640
- h$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
641
- };
213
+ function svgRender(C, props, parent, replaceNode) {
214
+ P(h$1("svg", null, h$1(C, props)), parent, replaceNode);
215
+ }
216
+ var HTMLAdapter = /** @class */ (function (_super) {
217
+ __extends(HTMLAdapter, _super);
218
+ function HTMLAdapter(_component) {
219
+ var _this = _super.call(this) || this;
220
+ _this._component = _component;
221
+ _this._props = {};
222
+ return _this;
223
+ }
224
+ HTMLAdapter.prototype.props = function (_) {
225
+ if (!arguments.length)
226
+ return this._props;
227
+ this._props = __assign(__assign({}, this._props), _);
228
+ return this;
229
+ };
230
+ HTMLAdapter.prototype.prop = function (_, value) {
231
+ if (arguments.length === 1)
232
+ return this._props[_];
233
+ this._props[_] = value;
234
+ return this;
235
+ };
236
+ HTMLAdapter.prototype.update = function (domNode, element) {
237
+ _super.prototype.update.call(this, domNode, element);
238
+ render(this._component, this._props, domNode);
239
+ };
240
+ __decorate([
241
+ common.publish({}, "object", "Properties"),
242
+ __metadata("design:type", Object)
243
+ ], HTMLAdapter.prototype, "_props", void 0);
244
+ return HTMLAdapter;
245
+ }(common.HTMLWidget));
246
+ var SVGAdapter = /** @class */ (function (_super) {
247
+ __extends(SVGAdapter, _super);
248
+ function SVGAdapter(_component) {
249
+ var _this = _super.call(this) || this;
250
+ _this._component = _component;
251
+ _this._props = {};
252
+ return _this;
253
+ }
254
+ SVGAdapter.prototype.props = function (_) {
255
+ if (!arguments.length)
256
+ return this._props;
257
+ this._props = __assign(__assign({}, this._props), _);
258
+ return this;
259
+ };
260
+ SVGAdapter.prototype.prop = function (_, value) {
261
+ if (arguments.length === 1)
262
+ return this._props[_];
263
+ this._props[_] = value;
264
+ return this;
265
+ };
266
+ SVGAdapter.prototype.update = function (domNode, element) {
267
+ _super.prototype.update.call(this, domNode, element);
268
+ render(this._component, this._props, domNode);
269
+ };
270
+ __decorate([
271
+ common.publish({}, "object", "Properties"),
272
+ __metadata("design:type", Object)
273
+ ], SVGAdapter.prototype, "_props", void 0);
274
+ return SVGAdapter;
275
+ }(common.SVGWidget));
276
+
277
+ var Annotations = function (_a) {
278
+ var x = _a.x, y = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
279
+ var IconComponents = annotationIDs.map(function (id, i) { return h$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") },
280
+ h$1("use", { href: "#" + id })); });
281
+ return h$1(p$1, null, IconComponents);
282
+ };
283
+ var Vertex = function (_a) {
284
+ 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;
285
+ var _l = p(0), textBoxWidth = _l[0], setTextBoxWidthUpdate = _l[1];
286
+ var _m = p(0), textBoxHeight = _m[0], setTextBoxHeightUpdate = _m[1];
287
+ h(function () {
288
+ onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
289
+ }, [textBoxWidth, textBoxHeight, onSizeUpdate]);
290
+ icon = __assign({ imageChar: "fa-question", height: 32, fill: "transparent" }, icon);
291
+ var width = textBoxWidth;
292
+ width += 4;
293
+ var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
294
+ var textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;
295
+ var annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;
296
+ if (!showLabel) {
297
+ offsetY += (textHeight + 8) / 2;
298
+ annotationOffsetY -= textBoxHeight + textPadding;
299
+ }
300
+ var onTextBoxSizeUpdate = T(function (size) {
301
+ setTextBoxWidthUpdate(size.width);
302
+ setTextBoxHeightUpdate(size.height);
303
+ }, []);
304
+ var label = showLabel ? h$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") },
305
+ h$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
306
+ return categoryID ?
307
+ h$1("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
308
+ h$1("use", { href: "#" + categoryID }),
309
+ label,
310
+ h$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
311
+ h$1("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
312
+ h$1(Icon, __assign({}, icon)),
313
+ label);
314
+ };
642
315
 
643
- var Vertex3 = function (_a) {
644
- 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 ? {} : _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;
645
- icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
646
- subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
647
- expansionIcon = expansionIcon ? __assign({ height: 16, shape: "circle", padding: 6, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "black", fill: "whitesmoke", stroke: "whitesmoke", strokeWidth: 0 }, expansionIcon) : undefined;
648
- var fullAnnotationWidth = 0;
649
- var annoOffsetY = 0;
650
- var labelWidth = F(function () {
651
- return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
652
- }, [text, textFontFamily, textHeight]);
653
- var labelShapeWidth = 0;
654
- if (text !== "") {
655
- labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
656
- }
657
- fullAnnotationWidth += labelShapeWidth + annotationGutter;
658
- var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
659
- var textShapeHeight = textHeight + (textPadding * 2) + (textboxStrokeWidth * 2);
660
- var annotationArr = [];
661
- annotations.forEach(function (anno, idx) {
662
- var annoText = anno.imageChar;
663
- var annoShapeWidth = textShapeHeight;
664
- fullAnnotationWidth += annoShapeWidth + annotationGutter;
665
- var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);
666
- annotationArr.push(h$1("g", { key: idx, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
667
- h$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
668
- });
669
- if (annotations.length > 0) {
670
- fullAnnotationWidth += annotationGutter * (annotations.length - 1);
671
- }
672
- var textElement = h$1("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
673
- var iconHeight = icon.height || 20;
674
- var iconStrokeWidth = icon.strokeWidth || 0;
675
- var iconOffsetX = 0;
676
- var iconOffsetY = 0;
677
- var subTextOffsetX = 0;
678
- var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
679
- if (text !== "" || annotationArr.length > 0) {
680
- iconOffsetY = -(iconHeight / 2) - (iconStrokeWidth) - (textShapeHeight / 2) - (annotationGutter * 2);
681
- }
682
- else if (subText.text !== "") {
683
- subTextOffsetY = (iconHeight / 2) + iconStrokeWidth + (annotationGutter * 2);
684
- }
685
- var subtextElement = subText.text === "" ? null : h$1("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
686
- h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
687
- return h$1("g", { transform: "scale(".concat(scale, ")") },
688
- h$1("g", { "data-click": "icon", transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
689
- h$1(Icon, __assign({}, icon)),
690
- expansionIcon &&
691
- h$1("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, ")") },
692
- h$1(Icon, __assign({}, expansionIcon)))),
693
- h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
694
- textElement,
695
- annotationArr),
696
- subtextElement);
697
- };
698
- var CentroidVertex3 = function (_a) {
699
- 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;
700
- icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
701
- subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
702
- var props = {
703
- id: id,
704
- categoryID: categoryID,
705
- text: text,
706
- textHeight: textHeight,
707
- textPadding: textPadding,
708
- textFill: textFill,
709
- textboxFill: textboxFill,
710
- textboxStroke: textboxStroke,
711
- textboxStrokeWidth: textboxStrokeWidth,
712
- textFontFamily: textFontFamily,
713
- annotationGutter: annotationGutter,
714
- annotations: annotations,
715
- cornerRadius: cornerRadius,
716
- icon: icon,
717
- subText: subText,
718
- expansionIcon: expansionIcon,
719
- scale: scale
720
- };
721
- return h$1(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
722
- };
316
+ var Vertex2 = function (_a) {
317
+ 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;
318
+ icon = __assign({ imageChar: "fa-question", imageCharFill: "white", height: 32, fill: "black", shape: "square" }, icon);
319
+ var textBoxHeight = textHeight + textPadding * 2;
320
+ var width = F(function () {
321
+ return common.Utility.textSize(text, textFontFamily, textHeight, false);
322
+ }, [text, textFontFamily, textHeight]).width;
323
+ var stepSize = annotationsHeight;
324
+ var textboxStrokeWidth = 1;
325
+ var halfTextboxHeight = textBoxHeight / 2;
326
+ var offsetX = 0;
327
+ var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
328
+ var iconOffsetX = -icon.height / 2;
329
+ var iconOffsetY = 0;
330
+ var textboxOffsetX = Math.ceil((width / 2) + textPadding);
331
+ var textboxOffsetY = halfTextboxHeight - (icon.height / 2);
332
+ var annotationOffsetX = stepSize / 2;
333
+ var annotationOffsetY = halfTextboxHeight;
334
+ return categoryID ?
335
+ h$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") },
336
+ h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
337
+ h$1("use", { href: "#" + categoryID })),
338
+ h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") },
339
+ h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
340
+ h$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
341
+ :
342
+ h$1(p$1, null,
343
+ h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") },
344
+ h$1(Icon, __assign({}, icon, { shape: "square" }))),
345
+ h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") },
346
+ h$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
347
+ };
723
348
 
724
- var Vertex4 = function (_a) {
725
- _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;
726
- icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
727
- subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
728
- var annoOffsetY = 0;
729
- var labelWidth = F(function () {
730
- return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
731
- }, [text, textFontFamily, textHeight]);
732
- var labelShapeWidth = 0;
733
- if (text !== "") {
734
- labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
735
- }
736
- var fullAnnotationWidth = labelShapeWidth + annotationGutter;
737
- var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
738
- var textShapeHeight = textHeight + (annotationGutter * 2) + (textboxStrokeWidth * 2);
739
- var annoWidthArr = annotations.map(function (anno, i) {
740
- return common.Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
741
- });
742
- var annotationArr = [];
743
- var _labelAnnoOffsetX = fullAnnotationWidth;
744
- annotations.forEach(function (anno, i) {
745
- var _a;
746
- var annoText = anno.imageChar;
747
- var annoTextHeight = (_a = anno.height) !== null && _a !== void 0 ? _a : textShapeHeight;
748
- _labelAnnoOffsetX += annoWidthArr[i] + annotationGutter;
749
- var annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2);
750
- annotationArr.push(h$1("g", { key: i, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
751
- h$1(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
752
- });
753
- if (annotations.length > 0) {
754
- fullAnnotationWidth += annotationGutter * (annotations.length - 1);
755
- }
756
- var iconAnnotationArr = [];
757
- iconAnnotations.forEach(function (anno, i) {
758
- var _a;
759
- var x = anno.shapeOffsetX;
760
- var y = anno.shapeOffsetY;
761
- iconAnnotationArr.push(h$1("g", { key: i, class: "vertex3-iconAnno", "data-click": "icon-annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y, ")") },
762
- h$1(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 }))));
763
- });
764
- var textElement = h$1("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
765
- var subTextOffsetX = 0;
766
- var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
767
- var subtextElement = subText.text === "" ? null : h$1("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
768
- h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
769
- return h$1("g", null,
770
- h$1("g", { "data-click": "icon", transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") },
771
- h$1(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 })),
772
- iconAnnotationArr),
773
- h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
774
- textElement,
775
- annotationArr),
776
- subtextElement);
777
- };
778
- var CentroidVertex4 = function (_a) {
779
- 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;
780
- icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
781
- subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
782
- var props = {
783
- id: id,
784
- categoryID: categoryID,
785
- text: text,
786
- textHeight: textHeight,
787
- textPadding: textPadding,
788
- textFill: textFill,
789
- textboxFill: textboxFill,
790
- textboxStroke: textboxStroke,
791
- textboxStrokeWidth: textboxStrokeWidth,
792
- textFontFamily: textFontFamily,
793
- annotationGutter: annotationGutter,
794
- annotations: annotations,
795
- iconAnnotations: iconAnnotations,
796
- cornerRadius: cornerRadius,
797
- icon: icon,
798
- subText: subText,
799
- showLabel: showLabel,
800
- noLabelRadius: noLabelRadius,
801
- iconBorderWidth: iconBorderWidth,
802
- iconBorderColor: iconBorderColor,
803
- iconBackgroundColor: iconBackgroundColor,
804
- iconFontColor: iconFontColor,
805
- iconFontSize: iconFontSize,
806
- iconFontFamily: iconFontFamily,
807
- shapeOffsetX: shapeOffsetX,
808
- shapeOffsetY: shapeOffsetY,
809
- iconOffsetX: iconOffsetX,
810
- iconOffsetY: iconOffsetY,
811
- iconPadding: iconPadding,
812
- iconText: iconText,
813
- shapeRendering: shapeRendering
814
- };
815
- return h$1(Vertex4, __assign({}, props, { icon: icon, subText: subText }));
816
- };
349
+ var Vertex3 = function (_a) {
350
+ 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 ? {} : _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;
351
+ icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
352
+ subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
353
+ expansionIcon = expansionIcon ? __assign({ height: 16, shape: "circle", padding: 6, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "black", fill: "whitesmoke", stroke: "whitesmoke", strokeWidth: 0 }, expansionIcon) : undefined;
354
+ var fullAnnotationWidth = 0;
355
+ var annoOffsetY = 0;
356
+ var labelWidth = F(function () {
357
+ return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
358
+ }, [text, textFontFamily, textHeight]);
359
+ var labelShapeWidth = 0;
360
+ if (text !== "") {
361
+ labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
362
+ }
363
+ fullAnnotationWidth += labelShapeWidth + annotationGutter;
364
+ var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
365
+ var textShapeHeight = textHeight + (textPadding * 2) + (textboxStrokeWidth * 2);
366
+ var annotationArr = [];
367
+ annotations.forEach(function (anno, idx) {
368
+ var annoText = anno.imageChar;
369
+ var annoShapeWidth = textShapeHeight;
370
+ fullAnnotationWidth += annoShapeWidth + annotationGutter;
371
+ var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);
372
+ annotationArr.push(h$1("g", { key: idx, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
373
+ h$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
374
+ });
375
+ if (annotations.length > 0) {
376
+ fullAnnotationWidth += annotationGutter * (annotations.length - 1);
377
+ }
378
+ var textElement = h$1("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
379
+ var iconHeight = icon.height || 20;
380
+ var iconStrokeWidth = icon.strokeWidth || 0;
381
+ var iconOffsetX = 0;
382
+ var iconOffsetY = 0;
383
+ var subTextOffsetX = 0;
384
+ var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
385
+ if (text !== "" || annotationArr.length > 0) {
386
+ iconOffsetY = -(iconHeight / 2) - (iconStrokeWidth) - (textShapeHeight / 2) - (annotationGutter * 2);
387
+ }
388
+ else if (subText.text !== "") {
389
+ subTextOffsetY = (iconHeight / 2) + iconStrokeWidth + (annotationGutter * 2);
390
+ }
391
+ var subtextElement = subText.text === "" ? null : h$1("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
392
+ h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
393
+ return h$1("g", { transform: "scale(".concat(scale, ")") },
394
+ h$1("g", { "data-click": "icon", transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
395
+ h$1(Icon, __assign({}, icon)),
396
+ expansionIcon &&
397
+ h$1("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, ")") },
398
+ h$1(Icon, __assign({}, expansionIcon)))),
399
+ h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
400
+ textElement,
401
+ annotationArr),
402
+ subtextElement);
403
+ };
404
+ var CentroidVertex3 = function (_a) {
405
+ 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;
406
+ icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
407
+ subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
408
+ var props = {
409
+ id: id,
410
+ categoryID: categoryID,
411
+ text: text,
412
+ textHeight: textHeight,
413
+ textPadding: textPadding,
414
+ textFill: textFill,
415
+ textboxFill: textboxFill,
416
+ textboxStroke: textboxStroke,
417
+ textboxStrokeWidth: textboxStrokeWidth,
418
+ textFontFamily: textFontFamily,
419
+ annotationGutter: annotationGutter,
420
+ annotations: annotations,
421
+ cornerRadius: cornerRadius,
422
+ icon: icon,
423
+ subText: subText,
424
+ expansionIcon: expansionIcon,
425
+ scale: scale
426
+ };
427
+ return h$1(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
428
+ };
817
429
 
818
- var Subgraph = function (_a) {
819
- 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;
820
- var tSize = common.Utility.textSize(text, fontFamily, fontHeight, false);
821
- return h$1(p$1, null,
822
- h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
823
- h$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") },
824
- h$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
825
- };
430
+ var Vertex4 = function (_a) {
431
+ _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;
432
+ icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
433
+ subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
434
+ var annoOffsetY = 0;
435
+ var labelWidth = F(function () {
436
+ return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
437
+ }, [text, textFontFamily, textHeight]);
438
+ var labelShapeWidth = 0;
439
+ if (text !== "") {
440
+ labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
441
+ }
442
+ var fullAnnotationWidth = labelShapeWidth + annotationGutter;
443
+ var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
444
+ var textShapeHeight = textHeight + (annotationGutter * 2) + (textboxStrokeWidth * 2);
445
+ var annoWidthArr = annotations.map(function (anno, i) {
446
+ return common.Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
447
+ });
448
+ var annotationArr = [];
449
+ var _labelAnnoOffsetX = fullAnnotationWidth;
450
+ annotations.forEach(function (anno, i) {
451
+ var _a;
452
+ var annoText = anno.imageChar;
453
+ var annoTextHeight = (_a = anno.height) !== null && _a !== void 0 ? _a : textShapeHeight;
454
+ _labelAnnoOffsetX += annoWidthArr[i] + annotationGutter;
455
+ var annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2);
456
+ annotationArr.push(h$1("g", { key: i, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
457
+ h$1(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
458
+ });
459
+ if (annotations.length > 0) {
460
+ fullAnnotationWidth += annotationGutter * (annotations.length - 1);
461
+ }
462
+ var iconAnnotationArr = [];
463
+ iconAnnotations.forEach(function (anno, i) {
464
+ var _a;
465
+ var x = anno.shapeOffsetX;
466
+ var y = anno.shapeOffsetY;
467
+ iconAnnotationArr.push(h$1("g", { key: i, class: "vertex3-iconAnno", "data-click": "icon-annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y, ")") },
468
+ h$1(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 }))));
469
+ });
470
+ var textElement = h$1("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
471
+ var subTextOffsetX = 0;
472
+ var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
473
+ var subtextElement = subText.text === "" ? null : h$1("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
474
+ h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
475
+ return h$1("g", null,
476
+ h$1("g", { "data-click": "icon", transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") },
477
+ h$1(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 })),
478
+ iconAnnotationArr),
479
+ h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
480
+ textElement,
481
+ annotationArr),
482
+ subtextElement);
483
+ };
484
+ var CentroidVertex4 = function (_a) {
485
+ 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;
486
+ icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
487
+ subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
488
+ var props = {
489
+ id: id,
490
+ categoryID: categoryID,
491
+ text: text,
492
+ textHeight: textHeight,
493
+ textPadding: textPadding,
494
+ textFill: textFill,
495
+ textboxFill: textboxFill,
496
+ textboxStroke: textboxStroke,
497
+ textboxStrokeWidth: textboxStrokeWidth,
498
+ textFontFamily: textFontFamily,
499
+ annotationGutter: annotationGutter,
500
+ annotations: annotations,
501
+ iconAnnotations: iconAnnotations,
502
+ cornerRadius: cornerRadius,
503
+ icon: icon,
504
+ subText: subText,
505
+ showLabel: showLabel,
506
+ noLabelRadius: noLabelRadius,
507
+ iconBorderWidth: iconBorderWidth,
508
+ iconBorderColor: iconBorderColor,
509
+ iconBackgroundColor: iconBackgroundColor,
510
+ iconFontColor: iconFontColor,
511
+ iconFontSize: iconFontSize,
512
+ iconFontFamily: iconFontFamily,
513
+ shapeOffsetX: shapeOffsetX,
514
+ shapeOffsetY: shapeOffsetY,
515
+ iconOffsetX: iconOffsetX,
516
+ iconOffsetY: iconOffsetY,
517
+ iconPadding: iconPadding,
518
+ iconText: iconText,
519
+ shapeRendering: shapeRendering
520
+ };
521
+ return h$1(Vertex4, __assign({}, props, { icon: icon, subText: subText }));
522
+ };
826
523
 
827
- exports.Annotations = Annotations;
828
- exports.BUILD_VERSION = BUILD_VERSION$1;
829
- exports.CentroidVertex3 = CentroidVertex3;
830
- exports.CentroidVertex4 = CentroidVertex4;
831
- exports.Circle = Circle;
832
- exports.Edge = Edge;
833
- exports.HTMLAdapter = HTMLAdapter;
834
- exports.Icon = Icon;
835
- exports.IconLabelledRect = IconLabelledRect;
836
- exports.Icons = Icons;
837
- exports.ImageChar = ImageChar;
838
- exports.LabelledRect = LabelledRect;
839
- exports.PKG_NAME = PKG_NAME$1;
840
- exports.PKG_VERSION = PKG_VERSION$1;
841
- exports.React = index_es6;
842
- exports.Rectangle = Rectangle;
843
- exports.SVGAdapter = SVGAdapter;
844
- exports.Shape = Shape;
845
- exports.Square = Square;
846
- exports.Subgraph = Subgraph;
847
- exports.Text = Text;
848
- exports.TextBox = TextBox;
849
- exports.TextLine = TextLine;
850
- exports.Vertex = Vertex;
851
- exports.Vertex2 = Vertex2;
852
- exports.Vertex3 = Vertex3;
853
- exports.Vertex4 = Vertex4;
854
- exports.render = render;
855
- exports.svgRender = svgRender;
524
+ var Subgraph = function (_a) {
525
+ 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;
526
+ var tSize = common.Utility.textSize(text, fontFamily, fontHeight, false);
527
+ return h$1(p$1, null,
528
+ h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
529
+ h$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") },
530
+ h$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
531
+ };
856
532
 
857
- Object.defineProperty(exports, '__esModule', { value: true });
533
+ exports.Annotations = Annotations;
534
+ exports.BUILD_VERSION = BUILD_VERSION$1;
535
+ exports.CentroidVertex3 = CentroidVertex3;
536
+ exports.CentroidVertex4 = CentroidVertex4;
537
+ exports.Circle = Circle;
538
+ exports.Edge = Edge;
539
+ exports.HTMLAdapter = HTMLAdapter;
540
+ exports.Icon = Icon;
541
+ exports.IconLabelledRect = IconLabelledRect;
542
+ exports.Icons = Icons;
543
+ exports.ImageChar = ImageChar;
544
+ exports.LabelledRect = LabelledRect;
545
+ exports.PKG_NAME = PKG_NAME$1;
546
+ exports.PKG_VERSION = PKG_VERSION$1;
547
+ exports.React = index_es6;
548
+ exports.Rectangle = Rectangle;
549
+ exports.SVGAdapter = SVGAdapter;
550
+ exports.Shape = Shape;
551
+ exports.Square = Square;
552
+ exports.Subgraph = Subgraph;
553
+ exports.Text = Text;
554
+ exports.TextBox = TextBox;
555
+ exports.TextLine = TextLine;
556
+ exports.Vertex = Vertex;
557
+ exports.Vertex2 = Vertex2;
558
+ exports.Vertex3 = Vertex3;
559
+ exports.Vertex4 = Vertex4;
560
+ exports.render = render;
561
+ exports.svgRender = svgRender;
562
+
563
+ Object.defineProperty(exports, '__esModule', { value: true });
858
564
 
859
565
  }));
860
566
  //# sourceMappingURL=index.js.map