@plotdb/chart 3.4.0 → 3.6.0
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/CHANGELOG.md +30 -0
- package/bundle.css +59 -0
- package/bundle.js +4545 -0
- package/bundle.min.css +1 -0
- package/bundle.min.js +1 -0
- package/index.js +32 -10
- package/index.min.js +1 -1
- package/package.json +1 -1
- package/utils/anim.js +428 -0
- package/utils/anim.min.js +1 -0
- package/utils/brush.js +304 -0
- package/utils/brush.min.js +1 -0
- package/utils/debounce.js +86 -0
- package/utils/debounce.min.js +1 -0
- package/utils/format.js +266 -5
- package/utils/format.min.js +1 -1
- package/utils/legend.js +71 -3
- package/utils/legend.min.js +1 -1
- package/utils/scale.js +228 -0
- package/utils/scale.min.js +1 -0
package/utils/format.js
CHANGED
|
@@ -1,10 +1,270 @@
|
|
|
1
1
|
(function(){
|
|
2
|
-
var format;
|
|
2
|
+
var d3f, format;
|
|
3
|
+
d3f = {
|
|
4
|
+
re: /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,
|
|
5
|
+
prefixes: ['y', 'z', 'a', 'f', 'p', 'n', 'µ', 'm'].concat([''], ['k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']),
|
|
6
|
+
locale: {
|
|
7
|
+
decimal: '.',
|
|
8
|
+
thousands: ',',
|
|
9
|
+
grouping: [3],
|
|
10
|
+
currency: ['$', ''],
|
|
11
|
+
minus: '−',
|
|
12
|
+
percent: '%',
|
|
13
|
+
nan: 'NaN'
|
|
14
|
+
},
|
|
15
|
+
parts: function(x, p){
|
|
16
|
+
var i, c;
|
|
17
|
+
if (!isFinite(x) || x === 0) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
x = p
|
|
21
|
+
? x.toExponential(p - 1)
|
|
22
|
+
: x.toExponential();
|
|
23
|
+
if ((i = x.indexOf('e')) < 0) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
c = x.slice(0, i);
|
|
27
|
+
return [c.length > 1 ? c[0] + c.slice(2) : c, +x.slice(i + 1)];
|
|
28
|
+
},
|
|
29
|
+
rounded: function(x, p){
|
|
30
|
+
var d, c, e;
|
|
31
|
+
if (!(d = d3f.parts(x, p))) {
|
|
32
|
+
return x + "";
|
|
33
|
+
}
|
|
34
|
+
c = d[0], e = d[1];
|
|
35
|
+
if (e < 0) {
|
|
36
|
+
return "0." + new Array(-e).join('0') + c;
|
|
37
|
+
} else if (c.length > e + 1) {
|
|
38
|
+
return c.slice(0, e + 1) + '.' + c.slice(e + 1);
|
|
39
|
+
} else {
|
|
40
|
+
return c + new Array(e - c.length + 2).join('0');
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
prefixAuto: function(x, p){
|
|
44
|
+
var d, c, e, i, n;
|
|
45
|
+
if (!(d = d3f.parts(x, p))) {
|
|
46
|
+
d3f._pe = undefined;
|
|
47
|
+
return x.toPrecision(p);
|
|
48
|
+
}
|
|
49
|
+
c = d[0], e = d[1];
|
|
50
|
+
d3f._pe = Math.max(-8, Math.min(8, Math.floor(e / 3))) * 3;
|
|
51
|
+
i = e - d3f._pe + 1;
|
|
52
|
+
n = c.length;
|
|
53
|
+
if (i === n) {
|
|
54
|
+
return c;
|
|
55
|
+
} else if (i > n) {
|
|
56
|
+
return c + new Array(i - n + 1).join('0');
|
|
57
|
+
} else if (i > 0) {
|
|
58
|
+
return c.slice(0, i) + '.' + c.slice(i);
|
|
59
|
+
} else {
|
|
60
|
+
return "0." + new Array(1 - i).join('0') + d3f.parts(x, Math.max(0, p + i - 1))[0];
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
decimal: function(x){
|
|
64
|
+
if (Math.abs(x = Math.round(x)) >= 1e21) {
|
|
65
|
+
return x.toLocaleString('en').replace(/,/g, '');
|
|
66
|
+
} else {
|
|
67
|
+
return x.toString(10);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
types: {
|
|
71
|
+
"%": function(x, p){
|
|
72
|
+
return (x * 100).toFixed(p);
|
|
73
|
+
},
|
|
74
|
+
b: function(x){
|
|
75
|
+
return Math.round(x).toString(2);
|
|
76
|
+
},
|
|
77
|
+
c: function(x){
|
|
78
|
+
return x + "";
|
|
79
|
+
},
|
|
80
|
+
d: function(x){
|
|
81
|
+
return d3f.decimal(x);
|
|
82
|
+
},
|
|
83
|
+
e: function(x, p){
|
|
84
|
+
return x.toExponential(p);
|
|
85
|
+
},
|
|
86
|
+
f: function(x, p){
|
|
87
|
+
return x.toFixed(p);
|
|
88
|
+
},
|
|
89
|
+
g: function(x, p){
|
|
90
|
+
return x.toPrecision(p);
|
|
91
|
+
},
|
|
92
|
+
o: function(x){
|
|
93
|
+
return Math.round(x).toString(8);
|
|
94
|
+
},
|
|
95
|
+
p: function(x, p){
|
|
96
|
+
return d3f.rounded(x * 100, p);
|
|
97
|
+
},
|
|
98
|
+
r: function(x, p){
|
|
99
|
+
return d3f.rounded(x, p);
|
|
100
|
+
},
|
|
101
|
+
s: function(x, p){
|
|
102
|
+
return d3f.prefixAuto(x, p);
|
|
103
|
+
},
|
|
104
|
+
X: function(x){
|
|
105
|
+
return Math.round(x).toString(16).toUpperCase();
|
|
106
|
+
},
|
|
107
|
+
x: function(x){
|
|
108
|
+
return Math.round(x).toString(16);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
trim: function(s){
|
|
112
|
+
var ref$, i0, i1, i$, to$, i, c;
|
|
113
|
+
ref$ = [-1, -1], i0 = ref$[0], i1 = ref$[1];
|
|
114
|
+
for (i$ = 1, to$ = s.length; i$ < to$; ++i$) {
|
|
115
|
+
i = i$;
|
|
116
|
+
c = s[i];
|
|
117
|
+
if (c === '.') {
|
|
118
|
+
i0 = i1 = i;
|
|
119
|
+
} else if (c === '0') {
|
|
120
|
+
if (i0 === 0) {
|
|
121
|
+
i0 = i;
|
|
122
|
+
}
|
|
123
|
+
i1 = i;
|
|
124
|
+
} else {
|
|
125
|
+
if (!+c) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
if (i0 > 0) {
|
|
129
|
+
i0 = 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
if (i0 > 0) {
|
|
134
|
+
return s.slice(0, i0) + s.slice(i1 + 1);
|
|
135
|
+
} else {
|
|
136
|
+
return s;
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
group: function(value, width){
|
|
140
|
+
var ref$, grouping, thousands, i, t, j, g, len;
|
|
141
|
+
ref$ = d3f.locale, grouping = ref$.grouping, thousands = ref$.thousands;
|
|
142
|
+
ref$ = [value.length, [], 0, grouping[0], 0], i = ref$[0], t = ref$[1], j = ref$[2], g = ref$[3], len = ref$[4];
|
|
143
|
+
while (i > 0 && g > 0) {
|
|
144
|
+
if (len + g + 1 > width) {
|
|
145
|
+
g = Math.max(1, width - len);
|
|
146
|
+
}
|
|
147
|
+
t.push(value.substring(i -= g, i + g));
|
|
148
|
+
if ((len += g + 1) > width) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
g = grouping[j = (j + 1) % grouping.length];
|
|
152
|
+
}
|
|
153
|
+
return t.reverse().join(thousands);
|
|
154
|
+
},
|
|
155
|
+
format: function(spec){
|
|
156
|
+
var m, L, fill, align, sign, symbol, zero, width, comma, precision, trim, type, ref$, prefix, suffix, ft, maybeSuffix;
|
|
157
|
+
if (!(m = d3f.re.exec(spec))) {
|
|
158
|
+
throw new Error("invalid format: " + spec);
|
|
159
|
+
}
|
|
160
|
+
L = d3f.locale;
|
|
161
|
+
fill = m[1] != null ? m[1] : ' ';
|
|
162
|
+
align = m[2] || '>';
|
|
163
|
+
sign = m[3] || '-';
|
|
164
|
+
symbol = m[4] || '';
|
|
165
|
+
zero = !!m[5];
|
|
166
|
+
width = m[6] != null ? +m[6] : undefined;
|
|
167
|
+
comma = !!m[7];
|
|
168
|
+
precision = m[8] ? +m[8].slice(1) : undefined;
|
|
169
|
+
trim = !!m[9];
|
|
170
|
+
type = m[10] || '';
|
|
171
|
+
if (type === 'n') {
|
|
172
|
+
ref$ = [true, 'g'], comma = ref$[0], type = ref$[1];
|
|
173
|
+
} else if (!d3f.types[type]) {
|
|
174
|
+
if (!(precision != null)) {
|
|
175
|
+
precision = 12;
|
|
176
|
+
}
|
|
177
|
+
ref$ = [true, 'g'], trim = ref$[0], type = ref$[1];
|
|
178
|
+
}
|
|
179
|
+
if (zero || (fill === '0' && align === '=')) {
|
|
180
|
+
ref$ = [true, '0', '='], zero = ref$[0], fill = ref$[1], align = ref$[2];
|
|
181
|
+
}
|
|
182
|
+
prefix = symbol === '$'
|
|
183
|
+
? L.currency[0]
|
|
184
|
+
: symbol === '#' && /[boxX]/.test(type) ? '0' + type.toLowerCase() : '';
|
|
185
|
+
suffix = symbol === '$'
|
|
186
|
+
? L.currency[1]
|
|
187
|
+
: /[%p]/.test(type) ? L.percent : '';
|
|
188
|
+
ft = d3f.types[type];
|
|
189
|
+
maybeSuffix = /[defgprs%]/.test(type);
|
|
190
|
+
precision = !(precision != null)
|
|
191
|
+
? 6
|
|
192
|
+
: /[gprs]/.test(type)
|
|
193
|
+
? Math.max(1, Math.min(21, precision))
|
|
194
|
+
: Math.max(0, Math.min(20, precision));
|
|
195
|
+
return function(value){
|
|
196
|
+
var ref$, vp, vs, neg, i$, to$, i, c, len, padding, h;
|
|
197
|
+
ref$ = [prefix, suffix], vp = ref$[0], vs = ref$[1];
|
|
198
|
+
if (type === 'c') {
|
|
199
|
+
vs = ft(value) + vs;
|
|
200
|
+
value = '';
|
|
201
|
+
} else {
|
|
202
|
+
value = +value;
|
|
203
|
+
neg = value < 0 || 1 / value < 0;
|
|
204
|
+
value = isNaN(value)
|
|
205
|
+
? L.nan
|
|
206
|
+
: ft(Math.abs(value), precision);
|
|
207
|
+
if (trim) {
|
|
208
|
+
value = d3f.trim(value);
|
|
209
|
+
}
|
|
210
|
+
if (neg && +value === 0 && sign !== '+') {
|
|
211
|
+
neg = false;
|
|
212
|
+
}
|
|
213
|
+
vp = (neg
|
|
214
|
+
? sign === '('
|
|
215
|
+
? sign
|
|
216
|
+
: L.minus
|
|
217
|
+
: sign === '-' || sign === '(' ? '' : sign) + vp;
|
|
218
|
+
vs = (type === 's' && !isNaN(value) && d3f._pe != null ? d3f.prefixes[8 + d3f._pe / 3] : '') + vs + (neg && sign === '(' ? ')' : '');
|
|
219
|
+
if (maybeSuffix) {
|
|
220
|
+
for (i$ = 0, to$ = value.length; i$ < to$; ++i$) {
|
|
221
|
+
i = i$;
|
|
222
|
+
c = value.charCodeAt(i);
|
|
223
|
+
if (48 > c || c > 57) {
|
|
224
|
+
vs = (c === 46
|
|
225
|
+
? L.decimal + value.slice(i + 1)
|
|
226
|
+
: value.slice(i)) + vs;
|
|
227
|
+
value = value.slice(0, i);
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
if (comma && !zero) {
|
|
234
|
+
value = d3f.group(value, Infinity);
|
|
235
|
+
}
|
|
236
|
+
len = vp.length + value.length + vs.length;
|
|
237
|
+
padding = len < width ? new Array(width - len + 1).join(fill) : '';
|
|
238
|
+
if (comma && zero) {
|
|
239
|
+
value = d3f.group(padding + value, padding.length ? width - vs.length : Infinity);
|
|
240
|
+
padding = '';
|
|
241
|
+
}
|
|
242
|
+
switch (align) {
|
|
243
|
+
case '<':
|
|
244
|
+
return vp + value + vs + padding;
|
|
245
|
+
case '=':
|
|
246
|
+
return vp + padding + value + vs;
|
|
247
|
+
case '^':
|
|
248
|
+
h = padding.length >> 1;
|
|
249
|
+
return padding.slice(0, h) + vp + value + vs + padding.slice(h);
|
|
250
|
+
default:
|
|
251
|
+
return padding + vp + value + vs;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
};
|
|
3
256
|
format = {
|
|
257
|
+
d3: function(s){
|
|
258
|
+
if ((typeof d3 != 'undefined' && d3 !== null) && d3.format) {
|
|
259
|
+
return d3.format(s);
|
|
260
|
+
} else {
|
|
261
|
+
return d3f.format(s);
|
|
262
|
+
}
|
|
263
|
+
},
|
|
4
264
|
from: function(s){
|
|
5
265
|
var e;
|
|
6
266
|
try {
|
|
7
|
-
return d3
|
|
267
|
+
return format.d3(s);
|
|
8
268
|
} catch (e$) {
|
|
9
269
|
e = e$;
|
|
10
270
|
return function(it){
|
|
@@ -15,14 +275,14 @@
|
|
|
15
275
|
auto: function(list){
|
|
16
276
|
var s, intRate, diffs, i, diffAvg, type, size;
|
|
17
277
|
list == null && (list = []);
|
|
18
|
-
return d3
|
|
278
|
+
return format.d3(".3s");
|
|
19
279
|
list = list.map(function(it){
|
|
20
280
|
return +it;
|
|
21
281
|
}).filter(function(it){
|
|
22
282
|
return !isNaN(it);
|
|
23
283
|
});
|
|
24
284
|
if (!list.length) {
|
|
25
|
-
return d3
|
|
285
|
+
return format.d3("d");
|
|
26
286
|
}
|
|
27
287
|
list.sort(function(a, b){
|
|
28
288
|
return a - b;
|
|
@@ -59,7 +319,7 @@
|
|
|
59
319
|
size = diffAvg >= 0
|
|
60
320
|
? s > 0 ? s : 0
|
|
61
321
|
: Math.ceil(Math.abs(diffAvg));
|
|
62
|
-
return d3
|
|
322
|
+
return format.d3("." + size + type);
|
|
63
323
|
},
|
|
64
324
|
simple: function(v){
|
|
65
325
|
if (isNaN(v = +v)) {
|
|
@@ -76,6 +336,7 @@
|
|
|
76
336
|
: v.toFixed(2);
|
|
77
337
|
}
|
|
78
338
|
};
|
|
339
|
+
format._d3f = d3f;
|
|
79
340
|
if (typeof chart != 'undefined' && chart !== null) {
|
|
80
341
|
(chart.utils || (chart.utils = {})).format = format;
|
|
81
342
|
}
|
package/utils/format.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){var t={
|
|
1
|
+
!function(){var N={re:/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,prefixes:["y","z","a","f","p","n","µ","m"].concat([""],["k","M","G","T","P","E","Z","Y"]),locale:{decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"−",percent:"%",nan:"NaN"},parts:function(n,t){var e;return!isFinite(n)||0===n||(t=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0?null:[1<(e=n.slice(0,t)).length?e[0]+e.slice(2):e,+n.slice(t+1)]},rounded:function(n,t){var e;return(t=N.parts(n,t))?(e=t[0],(t=t[1])<0?"0."+new Array(-t).join("0")+e:e.length>t+1?e.slice(0,t+1)+"."+e.slice(t+1):e+new Array(t-e.length+2).join("0")):n+""},prefixAuto:function(n,t){var e,r,i;return(r=N.parts(n,t))?(e=r[0],r=r[1],N._pe=3*Math.max(-8,Math.min(8,Math.floor(r/3))),(r=r-N._pe+1)===(i=e.length)?e:i<r?e+new Array(r-i+1).join("0"):0<r?e.slice(0,r)+"."+e.slice(r):"0."+new Array(1-r).join("0")+N.parts(n,Math.max(0,t+r-1))[0]):(N._pe=void 0,n.toPrecision(t))},decimal:function(n){return 1e21<=Math.abs(n=Math.round(n))?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},types:{"%":function(n,t){return(100*n).toFixed(t)},b:function(n){return Math.round(n).toString(2)},c:function(n){return n+""},d:function(n){return N.decimal(n)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},g:function(n,t){return n.toPrecision(t)},o:function(n){return Math.round(n).toString(8)},p:function(n,t){return N.rounded(100*n,t)},r:function(n,t){return N.rounded(n,t)},s:function(n,t){return N.prefixAuto(n,t)},X:function(n){return Math.round(n).toString(16).toUpperCase()},x:function(n){return Math.round(n).toString(16)}},trim:function(n){for(var t,e,r=[-1,-1],i=r[0],o=r[1],u=1,a=n.length;u<a;++u)if("."===(e=n[t=u]))i=o=t;else if("0"===e)0===i&&(i=t),o=t;else{if(!+e)break;0<i&&(i=0)}return 0<i?n.slice(0,i)+n.slice(o+1):n},group:function(n,t){for(var e=N.locale,r=e.grouping,i=e.thousands,o=(e=[n.length,[],0,r[0],0])[0],u=e[1],a=e[2],c=e[3],l=e[4];0<o&&0<c&&(t<l+c+1&&(c=Math.max(1,t-l)),u.push(n.substring(o-=c,o+c)),!((l+=c+1)>t));)c=r[a=(a+1)%r.length];return u.reverse().join(i)},format:function(n){var t,s,f,d,h,e,p,g,m,x,M,y,r,v,w,A,F;if(t=N.re.exec(n))return s=N.locale,f=null!=t[1]?t[1]:" ",d=t[2]||">",h=t[3]||"-",e=t[4]||"",p=!!t[5],g=null!=t[6]?+t[6]:void 0,m=!!t[7],x=t[8]?+t[8].slice(1):void 0,M=!!t[9],"n"===(y=t[10]||"")?(m=(r=[!0,"g"])[0],y=r[1]):N.types[y]||(null==x&&(x=12),M=(r=[!0,"g"])[0],y=r[1]),(p||"0"===f&&"="===d)&&(p=(r=[!0,"0","="])[0],f=r[1],d=r[2]),v="$"===e?s.currency[0]:"#"===e&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===e?s.currency[1]:/[%p]/.test(y)?s.percent:"",A=N.types[y],F=/[defgprs%]/.test(y),x=null==x?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),function(n){var t,e,r,i,o,u,a=[v,w],c=a[0],l=a[1];if("c"===y)l=A(n)+l,n="";else if(a=(n=+n)<0||1/n<0,n=isNaN(n)?s.nan:A(Math.abs(n),x),M&&(n=N.trim(n)),c=((a=a&&0==+n&&"+"!==h?!1:a)?"("===h?h:s.minus:"-"===h||"("===h?"":h)+c,l=("s"!==y||isNaN(n)||null==N._pe?"":N.prefixes[8+N._pe/3])+l+(a&&"("===h?")":""),F)for(t=0,e=n.length;t<e;++t)if(r=t,(i=n.charCodeAt(r))<48||57<i){l=(46===i?s.decimal+n.slice(r+1):n.slice(r))+l,n=n.slice(0,r);break}switch(m&&!p&&(n=N.group(n,1/0)),o=(a=c.length+n.length+l.length)<g?new Array(g-a+1).join(f):"",m&&p&&(n=N.group(o+n,o.length?g-l.length:1/0),o=""),d){case"<":return c+n+l+o;case"=":return c+o+n+l;case"^":return u=o.length>>1,o.slice(0,u)+c+n+l+o.slice(u);default:return o+c+n+l}};throw new Error("invalid format: "+n)}},t={d3:function(n){return("undefined"!=typeof d3&&null!==d3&&d3.format?d3:N).format(n)},from:function(n){try{return t.d3(n)}catch(n){return function(n){return n}}},auto:function(n){return null==n&&(n=[]),t.d3(".3s")},simple:function(n){return isNaN(n=+n)?n:1e9<=n?(n/1e9).toFixed(0)+"G":1e6<=n?(n/1e6).toFixed(0)+"M":1e3<=n?(n/1e3).toFixed(0)+"K":Math.floor(n)===n?n.toFixed(0):n.toFixed(2)}};t._d3f=N,"undefined"!=typeof chart&&null!==chart&&((chart.utils||(chart.utils={})).format=t)}.call(this);
|
package/utils/legend.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var svgns, legend;
|
|
3
3
|
svgns = "http://www.w3.org/2000/svg";
|
|
4
4
|
legend = function(opt){
|
|
5
|
-
var x$, nodeLayout, nodeRender, gl, gs, gt, this$ = this;
|
|
5
|
+
var x$, nodeLayout, nodeRender, gl, gs, gt, add, lng, ref$, res, this$ = this;
|
|
6
6
|
opt == null && (opt = {});
|
|
7
7
|
this._data = opt.data || [];
|
|
8
8
|
this.name = opt.name || 'legend';
|
|
@@ -43,15 +43,32 @@
|
|
|
43
43
|
gl.appendChild(gt);
|
|
44
44
|
nodeRender.appendChild(gl);
|
|
45
45
|
}
|
|
46
|
+
this._i18n = opt.i18n || ((typeof block != 'undefined' && block !== null) && block.i18n && block.i18n.module ? block.i18n.module : null);
|
|
47
|
+
this._t = opt.t || null;
|
|
48
|
+
if (this._i18n) {
|
|
49
|
+
if (add = this._i18n.addResourceBundle) {
|
|
50
|
+
for (lng in ref$ = legend.i18n) {
|
|
51
|
+
res = ref$[lng];
|
|
52
|
+
try {
|
|
53
|
+
add.call(this._i18n, lng, legend.i18nNs, res, true, false);
|
|
54
|
+
} catch (e$) {}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (this._i18n.on) {
|
|
58
|
+
this._i18n.on('languageChanged', this._lngHandler = function(){
|
|
59
|
+
return this$._relocalize();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
46
63
|
this._func = [
|
|
47
64
|
{
|
|
48
65
|
key: "all",
|
|
49
66
|
type: "func",
|
|
50
|
-
text:
|
|
67
|
+
text: this._text('all')
|
|
51
68
|
}, {
|
|
52
69
|
key: "none",
|
|
53
70
|
type: "func",
|
|
54
|
-
text:
|
|
71
|
+
text: this._text('none')
|
|
55
72
|
}
|
|
56
73
|
];
|
|
57
74
|
this.view = {
|
|
@@ -187,7 +204,58 @@
|
|
|
187
204
|
this.update();
|
|
188
205
|
return this;
|
|
189
206
|
};
|
|
207
|
+
legend.i18nNs = "@plotdb/chart.legend";
|
|
208
|
+
legend.i18n = {
|
|
209
|
+
en: {
|
|
210
|
+
all: "Select All",
|
|
211
|
+
none: "Select None"
|
|
212
|
+
},
|
|
213
|
+
"zh-TW": {
|
|
214
|
+
all: "全選",
|
|
215
|
+
none: "全不選"
|
|
216
|
+
},
|
|
217
|
+
"zh-CN": {
|
|
218
|
+
all: "全选",
|
|
219
|
+
none: "全不选"
|
|
220
|
+
},
|
|
221
|
+
ja: {
|
|
222
|
+
all: "すべて選択",
|
|
223
|
+
none: "すべて解除"
|
|
224
|
+
}
|
|
225
|
+
};
|
|
190
226
|
legend.prototype = import$(Object.create(Object.prototype), {
|
|
227
|
+
_text: function(key){
|
|
228
|
+
var r, k, lng, res;
|
|
229
|
+
if (this._t && (r = this._t("legend." + key)) && r !== "legend." + key) {
|
|
230
|
+
return r;
|
|
231
|
+
}
|
|
232
|
+
k = legend.i18nNs + ":" + key;
|
|
233
|
+
if (this._i18n && this._i18n.t && (r = this._i18n.t(k)) && r !== k && r !== key) {
|
|
234
|
+
return r;
|
|
235
|
+
}
|
|
236
|
+
lng = this._i18n ? this._i18n.language || this._i18n.lng : null;
|
|
237
|
+
lng = lng || (typeof document != 'undefined' && document !== null ? document.documentElement.lang : '') || 'en';
|
|
238
|
+
res = legend.i18n[lng] || legend.i18n[lng.split('-')[0]] || (/^zh/i.exec(lng) ? legend.i18n[/cn|hans|sg/i.exec(lng) ? 'zh-CN' : 'zh-TW'] : void 8) || legend.i18n.en;
|
|
239
|
+
return res[key];
|
|
240
|
+
},
|
|
241
|
+
_relocalize: function(){
|
|
242
|
+
var this$ = this;
|
|
243
|
+
this._func.map(function(f){
|
|
244
|
+
return f.text = this$._text(f.key);
|
|
245
|
+
});
|
|
246
|
+
if (!this.cfg.selectable) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
this.view.layout.render('legend');
|
|
250
|
+
this.layout.update(false);
|
|
251
|
+
return this.view.render.render();
|
|
252
|
+
},
|
|
253
|
+
destroy: function(){
|
|
254
|
+
if (this._i18n && this._lngHandler && this._i18n.off) {
|
|
255
|
+
this._i18n.off('languageChanged', this._lngHandler);
|
|
256
|
+
}
|
|
257
|
+
return this._lngHandler = null;
|
|
258
|
+
},
|
|
191
259
|
_name: function(ctx, type){
|
|
192
260
|
type == null && (type = "s");
|
|
193
261
|
return "pdlg-" + type + "-" + this.id + "-" + (ctx.type || '') + "-" + ctx.key;
|
package/utils/legend.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){var
|
|
1
|
+
!function(){var c,d;c="http://www.w3.org/2000/svg",(d=function(a){var t,e,n,i,r,l,s,o,u=this;if(null==a&&(a={}),this._data=a.data||[],this.name=a.name||"legend",this.cfg=a.cfg||{},this.root="string"==typeof a.root?document.querySelector(a.root):a.root,this.dir=a.direction||"vertical",this.evtHandler={},this._picked=Object.fromEntries(this._data.map(function(t){return[t.key,!0]})),this.layout=a.layout||new layout({root:this.root}),(e=this.layout).on("update",function(){return u.update()}),e.on("render",function(){return u.render()}),this.id=Math.random().toString(36).substring(2),e=this.layout.getNode(this.name),t=this.layout.getGroup(this.name),e.querySelector("[ld-each=legend]")||(e.innerHTML='<div class="pdlg '+this.dir+'">\n <div ld-each="legend">\n <div class="pdl-cell" ld="shape" data-only></div>\n <div class="pdl-cell" ld="text" data-only></div>\n </div>\n</div>'),t.querySelector("[ld-each=legend]")||(e=document.createElementNS(c,"g"),n=document.createElementNS(c,"g"),i=document.createElementNS(c,"g"),e.classList.add("pdlg-g"),e.setAttribute("ld-each","legend"),n.setAttribute("ld","shape"),i.setAttribute("ld","text"),e.appendChild(n),e.appendChild(i),t.appendChild(e)),this._i18n=a.i18n||("undefined"!=typeof block&&null!==block&&block.i18n&&block.i18n.module?block.i18n.module:null),this._t=a.t||null,this._i18n){if(r=this._i18n.addResourceBundle)for(l in s=d.i18n){o=s[l];try{r.call(this._i18n,l,d.i18nNs,o,!0,!1)}catch(t){}}this._i18n.on&&this._i18n.on("languageChanged",this._lngHandler=function(){return u._relocalize()})}return this._func=[{key:"all",type:"func",text:this._text("all")},{key:"none",type:"func",text:this._text("none")}],this.view={layout:new ldview({root:this.layout.getNode(this.name),initRender:!1,handler:{legend:{list:function(){var n,t=u._data.map(function(t){return t}),i=u.cfg.sort||{};return"none"!==i.mode&&(n="desc"===i.direction?1:-1,t.sort(function(t,e){return"value"===i.mode?n*(e.value-t.value):n*(t.text<e.text?1:t.text>e.text?-1:0)})),t.concat(u.cfg.selectable?u._func:[])},key:function(t){return t.key},view:{handler:{shape:function(t){return t.node.setAttribute("data-name",u._name(t.ctx,"shape"))},text:function(t){var e=t.node,t=t.ctx;return e.setAttribute("data-name",u._name(t,"text")),e.innerText=t.text}}}}}}),render:new ldview({root:this.layout.getGroup(this.name),initRender:!1,handler:{legend:{list:function(){return u._data.concat(u.cfg.selectable?u._func:[])},key:function(t){return t.key},view:{action:{click:{"@":function(t){t.node;var e,n=t.ctx;if(u.cfg.selectable){if("func"===n.type)for(e in u._picked)u._picked[e]="all"===n.key;else u._picked[n.key]=!u._picked[n.key];return u.view.render.render("legend"),u.fire("select",u._picked)}}}},handler:{"@":function(t){var e=t.node,t=t.ctx;return e.style.opacity=!u.cfg.selectable||"func"===t.type||u._picked[t.key]?1:.3},shape:function(t){var e,n,i,r=t.node,t=t.ctx;if("func"!==t.type)return r.querySelector("circle")||r.appendChild(document.createElementNS(c,"circle")),e=r.querySelector("circle"),n=u.layout.getBox(u._name(t,"shape")),i=u.layout.getBox(u.name),e.setAttribute("cx",".5em"),e.setAttribute("cy",".5em"),e.setAttribute("r",".5em"),e.setAttribute("transform","translate("+(n.x-i.x)+", "+(n.y-i.y)+")"),"function"==typeof a.shape?a.shape.call(e,t):void 0;r.style.display="none"},text:function(t){var e=t.node,t=t.ctx,n=u.layout.getNode(u._name(t,"text")),t=u.layout.getBox(u._name(t,"text")),i=u.layout.getBox(u.name);return e.setAttribute("transform","translate("+(t.x-i.x)+", "+(t.y-i.y)+")"),e.textContent="",t=wrapSvgText({node:n,useRange:!0}),e.appendChild(t)}}}}}})},this.update(),this}).i18nNs="@plotdb/chart.legend",d.i18n={en:{all:"Select All",none:"Select None"},"zh-TW":{all:"全選",none:"全不選"},"zh-CN":{all:"全选",none:"全不选"},ja:{all:"すべて選択",none:"すべて解除"}},d.prototype=((t,e)=>{var n,i={}.hasOwnProperty;for(n in e)i.call(e,n)&&(t[n]=e[n]);return t})(Object.create(Object.prototype),{_text:function(t){var e,n;return this._t&&(e=this._t("legend."+t))&&e!=="legend."+t||(n=d.i18nNs+":"+t,this._i18n&&this._i18n.t&&(e=this._i18n.t(n))&&e!==n&&e!==t)?e:(n=(n=this._i18n?this._i18n.language||this._i18n.lng:null)||("undefined"!=typeof document&&null!==document?document.documentElement.lang:"")||"en",(d.i18n[n]||d.i18n[n.split("-")[0]]||(/^zh/i.exec(n)?d.i18n[/cn|hans|sg/i.exec(n)?"zh-CN":"zh-TW"]:void 0)||d.i18n.en)[t])},_relocalize:function(){var e=this;if(this._func.map(function(t){return t.text=e._text(t.key)}),this.cfg.selectable)return this.view.layout.render("legend"),this.layout.update(!1),this.view.render.render()},destroy:function(){return this._i18n&&this._lngHandler&&this._i18n.off&&this._i18n.off("languageChanged",this._lngHandler),this._lngHandler=null},_name:function(t,e){return"pdlg-"+(e=null==e?"s":e)+"-"+this.id+"-"+(t.type||"")+"-"+t.key},enabled:function(){return this._data&&this._data.length&&(!(null!=this.cfg.enabled)||this.cfg.enabled)},update:function(){var t=this.enabled()?"":"0px",e=this.layout.getNode(this.name).style;return e.width=t,e.height=t,e.padding=t,e.margin=t,(e=this.layout.getNode(this.name).querySelector(".pdlg"))&&("vertical"===this.dir?(e.style.height="fit-content",e.style.height=getComputedStyle(e.parentNode).height):e.style.height=""),this.view.layout.render()},render:function(){var t=this.enabled();if(this.layout.getGroup(this.name).style.display=t?"":"none",t)return this.view.render.render()},config:function(t){var e,n=this;return null==t?this.cfg:(this.cfg.selectable!==t.selectable&&(this._picked=null,this._updatePicked()),this.cfg=t,this.dir="bottom"===this.cfg.position?"horizontal":"vertical",e=this.layout.getNode(this.name).querySelector(".pdlg"),["horizontal","vertical"].map(function(t){return e.classList.toggle(t,n.dir===t)}))},_updatePicked:function(){var e=this;return null==this._picked&&(this._picked=Object.fromEntries(this._data.map(function(t){return[t.key,!0]}))),this._data.map(function(t){if(null==e._picked[t.key])return e._picked[t.key]=!0})},data:function(t){var n;return arguments.length?(n={},t.map(function(t,e){return n[t.key]=e}),this._data=t.filter(function(t,e){return n[t.key]===e}),this._range=this._data.filter(function(t){return t.ext}),this._updatePicked(),this.update(),this.layout.update(!1),this.view.render.render()):this._data},on:function(t,n){var i=this;return(Array.isArray(t)?t:[t]).map(function(t){var e;return((e=i.evtHandler)[t]||(e[t]=[])).push(n)})},fire:function(t){for(var e,n,i,r,a=[],l=[],s=1,o=arguments.length;s<o;++s)l.push(arguments[s]);for(e=l,s=0,i=(n=this.evtHandler[t]||[]).length;s<i;++s)r=n[s],a.push(r.apply(this,e));return a},isSelected:function(e){var n=this;return this._range&&this._range.length?!!this._range.filter(function(t){return e>=t.ext[0]&&e<t.ext[1]&&n._picked[t.key]}).length:!!this._picked[e]},mode:function(){return"shrink"===((this.cfg.subset||{}).mode||"shrink")?"shrink":"dim"},opacity:function(){var t;return null!=(t=(this.cfg.subset||{}).opacity)?t:.2},isVisible:function(t){return"shrink"!==this.mode()||this.isSelected(t)},select:function(t){var e;return null==t?this._picked=Object.fromEntries(this._data.map(function(t){return[t.key,!0]})):(e=Object.fromEntries(t.map(function(t){return[t,!0]})),this._picked=Object.fromEntries(this._data.map(function(t){return[t.key,!!e[t.key]]}))),this.view.render.render("legend"),this},selected:function(){var e=this,t=this._data.filter(function(t){return!!e._picked[t.key]}).map(function(t){return t.key});return t.length===this._data.length?null:t}}),"undefined"!=typeof chart&&null!==chart&&((chart.utils||(chart.utils={})).legend=d)}.call(this);
|
package/utils/scale.js
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
(function(){
|
|
2
|
+
var e10, e5, e2, tickSpec, ticks, linear, band, scale;
|
|
3
|
+
e10 = Math.sqrt(50);
|
|
4
|
+
e5 = Math.sqrt(10);
|
|
5
|
+
e2 = Math.sqrt(2);
|
|
6
|
+
tickSpec = function(start, stop, count){
|
|
7
|
+
var step, power, error, factor, inc, i1, i2;
|
|
8
|
+
step = (stop - start) / Math.max(0, count);
|
|
9
|
+
power = Math.floor(Math.log10(step));
|
|
10
|
+
error = step / Math.pow(10, power);
|
|
11
|
+
factor = error >= e10
|
|
12
|
+
? 10
|
|
13
|
+
: error >= e5
|
|
14
|
+
? 5
|
|
15
|
+
: error >= e2 ? 2 : 1;
|
|
16
|
+
if (power < 0) {
|
|
17
|
+
inc = Math.pow(10, -power) / factor;
|
|
18
|
+
i1 = Math.round(start * inc);
|
|
19
|
+
i2 = Math.round(stop * inc);
|
|
20
|
+
if (i1 / inc < start) {
|
|
21
|
+
i1++;
|
|
22
|
+
}
|
|
23
|
+
if (i2 / inc > stop) {
|
|
24
|
+
i2--;
|
|
25
|
+
}
|
|
26
|
+
inc = -inc;
|
|
27
|
+
} else {
|
|
28
|
+
inc = Math.pow(10, power) * factor;
|
|
29
|
+
i1 = Math.round(start / inc);
|
|
30
|
+
i2 = Math.round(stop / inc);
|
|
31
|
+
if (i1 * inc < start) {
|
|
32
|
+
i1++;
|
|
33
|
+
}
|
|
34
|
+
if (i2 * inc > stop) {
|
|
35
|
+
i2--;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (i2 < i1 && 0.5 <= count && count < 2) {
|
|
39
|
+
return tickSpec(start, stop, count * 2);
|
|
40
|
+
}
|
|
41
|
+
return [i1, i2, inc];
|
|
42
|
+
};
|
|
43
|
+
ticks = function(start, stop, count){
|
|
44
|
+
var ref$, reverse, i1, i2, inc, n, i$, i, k, results$ = [];
|
|
45
|
+
ref$ = [+start, +stop, +count], start = ref$[0], stop = ref$[1], count = ref$[2];
|
|
46
|
+
if (!(count > 0)) {
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
if (start === stop) {
|
|
50
|
+
return [start];
|
|
51
|
+
}
|
|
52
|
+
reverse = stop < start;
|
|
53
|
+
ref$ = reverse
|
|
54
|
+
? tickSpec(stop, start, count)
|
|
55
|
+
: tickSpec(start, stop, count), i1 = ref$[0], i2 = ref$[1], inc = ref$[2];
|
|
56
|
+
if (!(i2 >= i1)) {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
n = i2 - i1 + 1;
|
|
60
|
+
for (i$ = 0; i$ < n; ++i$) {
|
|
61
|
+
i = i$;
|
|
62
|
+
k = reverse
|
|
63
|
+
? i2 - i
|
|
64
|
+
: i1 + i;
|
|
65
|
+
if (inc < 0) {
|
|
66
|
+
results$.push(k / -inc);
|
|
67
|
+
} else {
|
|
68
|
+
results$.push(k * inc);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return results$;
|
|
72
|
+
};
|
|
73
|
+
linear = function(){
|
|
74
|
+
var ref$, d, r, s;
|
|
75
|
+
ref$ = [[0, 1], [0, 1]], d = ref$[0], r = ref$[1];
|
|
76
|
+
s = function(x){
|
|
77
|
+
var d0, d1, r0, r1, ref$, t, b;
|
|
78
|
+
if (!(x != null) || isNaN(x = +x)) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
d0 = d[0], d1 = d[1];
|
|
82
|
+
r0 = r[0], r1 = r[1];
|
|
83
|
+
if (d1 < d0) {
|
|
84
|
+
ref$ = [d1, d0, r1, r0], d0 = ref$[0], d1 = ref$[1], r0 = ref$[2], r1 = ref$[3];
|
|
85
|
+
}
|
|
86
|
+
t = (b = d1 - d0)
|
|
87
|
+
? (x - d0) / b
|
|
88
|
+
: isNaN(b) ? NaN : 0.5;
|
|
89
|
+
return r0 * (1 - t) + r1 * t;
|
|
90
|
+
};
|
|
91
|
+
s.domain = function(it){
|
|
92
|
+
if (!arguments.length) {
|
|
93
|
+
return d.slice();
|
|
94
|
+
}
|
|
95
|
+
d = Array.from(it, function(v){
|
|
96
|
+
return +v;
|
|
97
|
+
});
|
|
98
|
+
return s;
|
|
99
|
+
};
|
|
100
|
+
s.range = function(it){
|
|
101
|
+
if (!arguments.length) {
|
|
102
|
+
return r.slice();
|
|
103
|
+
}
|
|
104
|
+
r = Array.from(it, function(v){
|
|
105
|
+
return +v;
|
|
106
|
+
});
|
|
107
|
+
return s;
|
|
108
|
+
};
|
|
109
|
+
s.invert = function(y){
|
|
110
|
+
var d0, d1, r0, r1, t, b;
|
|
111
|
+
d0 = d[0], d1 = d[1];
|
|
112
|
+
r0 = r[0], r1 = r[1];
|
|
113
|
+
t = (b = r1 - r0) ? (y - r0) / b : 0.5;
|
|
114
|
+
return d0 * (1 - t) + d1 * t;
|
|
115
|
+
};
|
|
116
|
+
s.ticks = function(count){
|
|
117
|
+
count == null && (count = 10);
|
|
118
|
+
return ticks(d[0], d[d.length - 1], count);
|
|
119
|
+
};
|
|
120
|
+
s.copy = function(){
|
|
121
|
+
return linear().domain(d).range(r);
|
|
122
|
+
};
|
|
123
|
+
return s;
|
|
124
|
+
};
|
|
125
|
+
band = function(){
|
|
126
|
+
var ref$, dm, idx, r, pi, po, al, step, bw, vals, rescale, s;
|
|
127
|
+
ref$ = [[], new Map(), [0, 1], 0, 0, 0.5], dm = ref$[0], idx = ref$[1], r = ref$[2], pi = ref$[3], po = ref$[4], al = ref$[5];
|
|
128
|
+
ref$ = [0, 0, []], step = ref$[0], bw = ref$[1], vals = ref$[2];
|
|
129
|
+
rescale = function(){
|
|
130
|
+
var n, r0, r1, reverse, ref$, start, stop, res$, i$, i;
|
|
131
|
+
n = dm.length;
|
|
132
|
+
r0 = r[0], r1 = r[1];
|
|
133
|
+
reverse = r1 < r0;
|
|
134
|
+
ref$ = reverse
|
|
135
|
+
? [r1, r0]
|
|
136
|
+
: [r0, r1], start = ref$[0], stop = ref$[1];
|
|
137
|
+
step = (stop - start) / Math.max(1, n - pi + po * 2);
|
|
138
|
+
start = start + (stop - start - step * (n - pi)) * al;
|
|
139
|
+
bw = step * (1 - pi);
|
|
140
|
+
res$ = [];
|
|
141
|
+
for (i$ = 0; i$ < n; ++i$) {
|
|
142
|
+
i = i$;
|
|
143
|
+
res$.push(start + step * i);
|
|
144
|
+
}
|
|
145
|
+
vals = res$;
|
|
146
|
+
if (reverse) {
|
|
147
|
+
vals.reverse();
|
|
148
|
+
}
|
|
149
|
+
return s;
|
|
150
|
+
};
|
|
151
|
+
s = function(x){
|
|
152
|
+
if (idx.has(x)) {
|
|
153
|
+
return vals[idx.get(x)];
|
|
154
|
+
} else {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
s.domain = function(it){
|
|
159
|
+
var ref$, i$, len$, v;
|
|
160
|
+
if (!arguments.length) {
|
|
161
|
+
return dm.slice();
|
|
162
|
+
}
|
|
163
|
+
ref$ = [[], new Map()], dm = ref$[0], idx = ref$[1];
|
|
164
|
+
for (i$ = 0, len$ = it.length; i$ < len$; ++i$) {
|
|
165
|
+
v = it[i$];
|
|
166
|
+
if (!idx.has(v)) {
|
|
167
|
+
idx.set(v, dm.push(v) - 1);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return rescale();
|
|
171
|
+
};
|
|
172
|
+
s.range = function(it){
|
|
173
|
+
if (!arguments.length) {
|
|
174
|
+
return r.slice();
|
|
175
|
+
}
|
|
176
|
+
r = Array.from(it, function(v){
|
|
177
|
+
return +v;
|
|
178
|
+
});
|
|
179
|
+
return rescale();
|
|
180
|
+
};
|
|
181
|
+
s.bandwidth = function(){
|
|
182
|
+
return bw;
|
|
183
|
+
};
|
|
184
|
+
s.step = function(){
|
|
185
|
+
return step;
|
|
186
|
+
};
|
|
187
|
+
s.paddingInner = function(it){
|
|
188
|
+
if (!arguments.length) {
|
|
189
|
+
return pi;
|
|
190
|
+
}
|
|
191
|
+
pi = Math.min(1, it);
|
|
192
|
+
return rescale();
|
|
193
|
+
};
|
|
194
|
+
s.paddingOuter = function(it){
|
|
195
|
+
if (!arguments.length) {
|
|
196
|
+
return po;
|
|
197
|
+
}
|
|
198
|
+
po = it;
|
|
199
|
+
return rescale();
|
|
200
|
+
};
|
|
201
|
+
s.padding = function(it){
|
|
202
|
+
if (!arguments.length) {
|
|
203
|
+
return pi;
|
|
204
|
+
}
|
|
205
|
+
pi = Math.min(1, po = it);
|
|
206
|
+
return rescale();
|
|
207
|
+
};
|
|
208
|
+
s.align = function(it){
|
|
209
|
+
if (!arguments.length) {
|
|
210
|
+
return al;
|
|
211
|
+
}
|
|
212
|
+
al = Math.max(0, Math.min(1, it));
|
|
213
|
+
return rescale();
|
|
214
|
+
};
|
|
215
|
+
s.copy = function(){
|
|
216
|
+
return band().domain(dm).range(r).paddingInner(pi).paddingOuter(po).align(al);
|
|
217
|
+
};
|
|
218
|
+
return rescale();
|
|
219
|
+
};
|
|
220
|
+
scale = {
|
|
221
|
+
linear: linear,
|
|
222
|
+
band: band,
|
|
223
|
+
ticks: ticks
|
|
224
|
+
};
|
|
225
|
+
if (typeof chart != 'undefined' && chart !== null) {
|
|
226
|
+
(chart.utils || (chart.utils = {})).scale = scale;
|
|
227
|
+
}
|
|
228
|
+
}).call(this);
|