@hpcc-js/chart 2.72.0 → 2.74.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/dist/index.es6.js +423 -401
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +426 -404
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +22 -21
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.es6.js
CHANGED
|
@@ -3,8 +3,8 @@ import { select, scaleTime, timeParse, timeFormat, scaleLog, format, scalePow, s
|
|
|
3
3
|
import { normalizeRadians, degreesToRadians } from '@hpcc-js/util';
|
|
4
4
|
|
|
5
5
|
var PKG_NAME = "@hpcc-js/chart";
|
|
6
|
-
var PKG_VERSION = "2.
|
|
7
|
-
var BUILD_VERSION = "2.
|
|
6
|
+
var PKG_VERSION = "2.74.0";
|
|
7
|
+
var BUILD_VERSION = "2.99.0";
|
|
8
8
|
|
|
9
9
|
/*! *****************************************************************************
|
|
10
10
|
Copyright (c) Microsoft Corporation.
|
|
@@ -55,13 +55,13 @@ function __spreadArray(to, from, pack) {
|
|
|
55
55
|
ar[i] = from[i];
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
return to.concat(ar ||
|
|
58
|
+
return to.concat(ar || from);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
var pi
|
|
62
|
-
tau
|
|
63
|
-
epsilon
|
|
64
|
-
tauEpsilon = tau
|
|
61
|
+
var pi = Math.PI,
|
|
62
|
+
tau = 2 * pi,
|
|
63
|
+
epsilon = 1e-6,
|
|
64
|
+
tauEpsilon = tau - epsilon;
|
|
65
65
|
|
|
66
66
|
function Path() {
|
|
67
67
|
this._x0 = this._y0 = // start of current subpath
|
|
@@ -112,12 +112,12 @@ Path.prototype = path.prototype = {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
// Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
|
|
115
|
-
else if (!(l01_2 > epsilon
|
|
115
|
+
else if (!(l01_2 > epsilon));
|
|
116
116
|
|
|
117
117
|
// Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
|
|
118
118
|
// Equivalently, is (x1,y1) coincident with (x2,y2)?
|
|
119
119
|
// Or, is the radius zero? Line to (x1,y1).
|
|
120
|
-
else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon
|
|
120
|
+
else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
|
|
121
121
|
this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -129,12 +129,12 @@ Path.prototype = path.prototype = {
|
|
|
129
129
|
l20_2 = x20 * x20 + y20 * y20,
|
|
130
130
|
l21 = Math.sqrt(l21_2),
|
|
131
131
|
l01 = Math.sqrt(l01_2),
|
|
132
|
-
l = r * Math.tan((pi
|
|
132
|
+
l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
|
|
133
133
|
t01 = l / l01,
|
|
134
134
|
t21 = l / l21;
|
|
135
135
|
|
|
136
136
|
// If the start tangent is not coincident with (x0,y0), line to.
|
|
137
|
-
if (Math.abs(t01 - 1) > epsilon
|
|
137
|
+
if (Math.abs(t01 - 1) > epsilon) {
|
|
138
138
|
this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -159,7 +159,7 @@ Path.prototype = path.prototype = {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
// Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
|
|
162
|
-
else if (Math.abs(this._x1 - x0) > epsilon
|
|
162
|
+
else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
|
|
163
163
|
this._ += "L" + x0 + "," + y0;
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -167,7 +167,7 @@ Path.prototype = path.prototype = {
|
|
|
167
167
|
if (!r) return;
|
|
168
168
|
|
|
169
169
|
// Does the angle go the wrong way? Flip the direction.
|
|
170
|
-
if (da < 0) da = da % tau
|
|
170
|
+
if (da < 0) da = da % tau + tau;
|
|
171
171
|
|
|
172
172
|
// Is this a complete circle? Draw two arcs to complete the circle.
|
|
173
173
|
if (da > tauEpsilon) {
|
|
@@ -175,8 +175,8 @@ Path.prototype = path.prototype = {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
// Is this arc non-empty? Draw an arc!
|
|
178
|
-
else if (da > epsilon
|
|
179
|
-
this._ += "A" + r + "," + r + ",0," + (+(da >= pi
|
|
178
|
+
else if (da > epsilon) {
|
|
179
|
+
this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1));
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
rect: function(x, y, w, h) {
|
|
@@ -187,68 +187,68 @@ Path.prototype = path.prototype = {
|
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
|
|
190
|
-
function constant
|
|
190
|
+
function constant(x) {
|
|
191
191
|
return function constant() {
|
|
192
192
|
return x;
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
var abs
|
|
196
|
+
var abs = Math.abs;
|
|
197
197
|
var atan2 = Math.atan2;
|
|
198
198
|
var cos = Math.cos;
|
|
199
199
|
var max = Math.max;
|
|
200
200
|
var min = Math.min;
|
|
201
201
|
var sin = Math.sin;
|
|
202
|
-
var sqrt
|
|
202
|
+
var sqrt = Math.sqrt;
|
|
203
203
|
|
|
204
|
-
var epsilon$
|
|
205
|
-
var pi$
|
|
206
|
-
var halfPi
|
|
207
|
-
var tau$
|
|
204
|
+
var epsilon$1 = 1e-12;
|
|
205
|
+
var pi$1 = Math.PI;
|
|
206
|
+
var halfPi = pi$1 / 2;
|
|
207
|
+
var tau$1 = 2 * pi$1;
|
|
208
208
|
|
|
209
209
|
function acos(x) {
|
|
210
|
-
return x > 1 ? 0 : x < -1 ? pi$
|
|
210
|
+
return x > 1 ? 0 : x < -1 ? pi$1 : Math.acos(x);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
function asin
|
|
214
|
-
return x >= 1 ? halfPi
|
|
213
|
+
function asin(x) {
|
|
214
|
+
return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
function arcInnerRadius
|
|
217
|
+
function arcInnerRadius(d) {
|
|
218
218
|
return d.innerRadius;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
function arcOuterRadius
|
|
221
|
+
function arcOuterRadius(d) {
|
|
222
222
|
return d.outerRadius;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
function arcStartAngle
|
|
225
|
+
function arcStartAngle(d) {
|
|
226
226
|
return d.startAngle;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
function arcEndAngle
|
|
229
|
+
function arcEndAngle(d) {
|
|
230
230
|
return d.endAngle;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
function arcPadAngle
|
|
233
|
+
function arcPadAngle(d) {
|
|
234
234
|
return d && d.padAngle; // Note: optional!
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
function intersect
|
|
237
|
+
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
238
238
|
var x10 = x1 - x0, y10 = y1 - y0,
|
|
239
239
|
x32 = x3 - x2, y32 = y3 - y2,
|
|
240
240
|
t = y32 * x10 - x32 * y10;
|
|
241
|
-
if (t * t < epsilon$
|
|
241
|
+
if (t * t < epsilon$1) return;
|
|
242
242
|
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
|
|
243
243
|
return [x0 + t * x10, y0 + t * y10];
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
// Compute perpendicular offset line of length rc.
|
|
247
247
|
// http://mathworld.wolfram.com/Circle-LineIntersection.html
|
|
248
|
-
function cornerTangents
|
|
248
|
+
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
249
249
|
var x01 = x0 - x1,
|
|
250
250
|
y01 = y0 - y1,
|
|
251
|
-
lo = (cw ? rc : -rc) / sqrt
|
|
251
|
+
lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),
|
|
252
252
|
ox = lo * y01,
|
|
253
253
|
oy = -lo * x01,
|
|
254
254
|
x11 = x0 + ox,
|
|
@@ -262,7 +262,7 @@ function cornerTangents$1(x0, y0, x1, y1, r1, rc, cw) {
|
|
|
262
262
|
d2 = dx * dx + dy * dy,
|
|
263
263
|
r = r1 - rc,
|
|
264
264
|
D = x11 * y10 - x10 * y11,
|
|
265
|
-
d = (dy < 0 ? -1 : 1) * sqrt
|
|
265
|
+
d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),
|
|
266
266
|
cx0 = (D * dy - dx * d) / d2,
|
|
267
267
|
cy0 = (-D * dx - dy * d) / d2,
|
|
268
268
|
cx1 = (D * dy + dx * d) / d2,
|
|
@@ -287,13 +287,13 @@ function cornerTangents$1(x0, y0, x1, y1, r1, rc, cw) {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
function d3Arc() {
|
|
290
|
-
var innerRadius = arcInnerRadius
|
|
291
|
-
outerRadius = arcOuterRadius
|
|
292
|
-
cornerRadius = constant
|
|
290
|
+
var innerRadius = arcInnerRadius,
|
|
291
|
+
outerRadius = arcOuterRadius,
|
|
292
|
+
cornerRadius = constant(0),
|
|
293
293
|
padRadius = null,
|
|
294
|
-
startAngle = arcStartAngle
|
|
295
|
-
endAngle = arcEndAngle
|
|
296
|
-
padAngle = arcPadAngle
|
|
294
|
+
startAngle = arcStartAngle,
|
|
295
|
+
endAngle = arcEndAngle,
|
|
296
|
+
padAngle = arcPadAngle,
|
|
297
297
|
context = null;
|
|
298
298
|
|
|
299
299
|
function arc() {
|
|
@@ -301,9 +301,9 @@ function d3Arc() {
|
|
|
301
301
|
r,
|
|
302
302
|
r0 = +innerRadius.apply(this, arguments),
|
|
303
303
|
r1 = +outerRadius.apply(this, arguments),
|
|
304
|
-
a0 = startAngle.apply(this, arguments) - halfPi
|
|
305
|
-
a1 = endAngle.apply(this, arguments) - halfPi
|
|
306
|
-
da = abs
|
|
304
|
+
a0 = startAngle.apply(this, arguments) - halfPi,
|
|
305
|
+
a1 = endAngle.apply(this, arguments) - halfPi,
|
|
306
|
+
da = abs(a1 - a0),
|
|
307
307
|
cw = a1 > a0;
|
|
308
308
|
|
|
309
309
|
if (!context) context = buffer = path();
|
|
@@ -312,13 +312,13 @@ function d3Arc() {
|
|
|
312
312
|
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
|
313
313
|
|
|
314
314
|
// Is it a point?
|
|
315
|
-
if (!(r1 > epsilon$
|
|
315
|
+
if (!(r1 > epsilon$1)) context.moveTo(0, 0);
|
|
316
316
|
|
|
317
317
|
// Or is it a circle or annulus?
|
|
318
|
-
else if (da > tau$
|
|
318
|
+
else if (da > tau$1 - epsilon$1) {
|
|
319
319
|
context.moveTo(r1 * cos(a0), r1 * sin(a0));
|
|
320
320
|
context.arc(0, 0, r1, a0, a1, !cw);
|
|
321
|
-
if (r0 > epsilon$
|
|
321
|
+
if (r0 > epsilon$1) {
|
|
322
322
|
context.moveTo(r0 * cos(a1), r0 * sin(a1));
|
|
323
323
|
context.arc(0, 0, r0, a1, a0, cw);
|
|
324
324
|
}
|
|
@@ -333,20 +333,20 @@ function d3Arc() {
|
|
|
333
333
|
da0 = da,
|
|
334
334
|
da1 = da,
|
|
335
335
|
ap = padAngle.apply(this, arguments) / 2,
|
|
336
|
-
rp = (ap > epsilon$
|
|
337
|
-
rc = min(abs
|
|
336
|
+
rp = (ap > epsilon$1) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),
|
|
337
|
+
rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
|
|
338
338
|
rc0 = rc,
|
|
339
339
|
rc1 = rc,
|
|
340
340
|
t0,
|
|
341
341
|
t1;
|
|
342
342
|
|
|
343
343
|
// Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
|
|
344
|
-
if (rp > epsilon$
|
|
345
|
-
var p0 = asin
|
|
346
|
-
p1 = asin
|
|
347
|
-
if ((da0 -= p0 * 2) > epsilon$
|
|
344
|
+
if (rp > epsilon$1) {
|
|
345
|
+
var p0 = asin(rp / r0 * sin(ap)),
|
|
346
|
+
p1 = asin(rp / r1 * sin(ap));
|
|
347
|
+
if ((da0 -= p0 * 2) > epsilon$1) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
|
|
348
348
|
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
|
349
|
-
if ((da1 -= p1 * 2) > epsilon$
|
|
349
|
+
if ((da1 -= p1 * 2) > epsilon$1) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
|
|
350
350
|
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
|
351
351
|
}
|
|
352
352
|
|
|
@@ -356,7 +356,7 @@ function d3Arc() {
|
|
|
356
356
|
y10 = r0 * sin(a10);
|
|
357
357
|
|
|
358
358
|
// Apply rounded corners?
|
|
359
|
-
if (rc > epsilon$
|
|
359
|
+
if (rc > epsilon$1) {
|
|
360
360
|
var x11 = r1 * cos(a11),
|
|
361
361
|
y11 = r1 * sin(a11),
|
|
362
362
|
x00 = r0 * cos(a00),
|
|
@@ -364,25 +364,25 @@ function d3Arc() {
|
|
|
364
364
|
oc;
|
|
365
365
|
|
|
366
366
|
// Restrict the corner radius according to the sector angle.
|
|
367
|
-
if (da < pi$
|
|
367
|
+
if (da < pi$1 && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {
|
|
368
368
|
var ax = x01 - oc[0],
|
|
369
369
|
ay = y01 - oc[1],
|
|
370
370
|
bx = x11 - oc[0],
|
|
371
371
|
by = y11 - oc[1],
|
|
372
|
-
kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt
|
|
373
|
-
lc = sqrt
|
|
372
|
+
kc = 1 / sin(acos((ax * bx + ay * by) / (sqrt(ax * ax + ay * ay) * sqrt(bx * bx + by * by))) / 2),
|
|
373
|
+
lc = sqrt(oc[0] * oc[0] + oc[1] * oc[1]);
|
|
374
374
|
rc0 = min(rc, (r0 - lc) / (kc - 1));
|
|
375
375
|
rc1 = min(rc, (r1 - lc) / (kc + 1));
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
// Is the sector collapsed to a line?
|
|
380
|
-
if (!(da1 > epsilon$
|
|
380
|
+
if (!(da1 > epsilon$1)) context.moveTo(x01, y01);
|
|
381
381
|
|
|
382
382
|
// Does the sector’s outer ring have rounded corners?
|
|
383
|
-
else if (rc1 > epsilon$
|
|
384
|
-
t0 = cornerTangents
|
|
385
|
-
t1 = cornerTangents
|
|
383
|
+
else if (rc1 > epsilon$1) {
|
|
384
|
+
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
|
|
385
|
+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
|
386
386
|
|
|
387
387
|
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
388
388
|
|
|
@@ -402,12 +402,12 @@ function d3Arc() {
|
|
|
402
402
|
|
|
403
403
|
// Is there no inner ring, and it’s a circular sector?
|
|
404
404
|
// Or perhaps it’s an annular sector collapsed due to padding?
|
|
405
|
-
if (!(r0 > epsilon$
|
|
405
|
+
if (!(r0 > epsilon$1) || !(da0 > epsilon$1)) context.lineTo(x10, y10);
|
|
406
406
|
|
|
407
407
|
// Does the sector’s inner ring (or point) have rounded corners?
|
|
408
|
-
else if (rc0 > epsilon$
|
|
409
|
-
t0 = cornerTangents
|
|
410
|
-
t1 = cornerTangents
|
|
408
|
+
else if (rc0 > epsilon$1) {
|
|
409
|
+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
|
410
|
+
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
|
|
411
411
|
|
|
412
412
|
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
413
413
|
|
|
@@ -433,36 +433,36 @@ function d3Arc() {
|
|
|
433
433
|
|
|
434
434
|
arc.centroid = function() {
|
|
435
435
|
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
|
|
436
|
-
a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi$
|
|
436
|
+
a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi$1 / 2;
|
|
437
437
|
return [cos(a) * r, sin(a) * r];
|
|
438
438
|
};
|
|
439
439
|
|
|
440
440
|
arc.innerRadius = function(_) {
|
|
441
|
-
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant
|
|
441
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant(+_), arc) : innerRadius;
|
|
442
442
|
};
|
|
443
443
|
|
|
444
444
|
arc.outerRadius = function(_) {
|
|
445
|
-
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant
|
|
445
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant(+_), arc) : outerRadius;
|
|
446
446
|
};
|
|
447
447
|
|
|
448
448
|
arc.cornerRadius = function(_) {
|
|
449
|
-
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant
|
|
449
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant(+_), arc) : cornerRadius;
|
|
450
450
|
};
|
|
451
451
|
|
|
452
452
|
arc.padRadius = function(_) {
|
|
453
|
-
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant
|
|
453
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant(+_), arc) : padRadius;
|
|
454
454
|
};
|
|
455
455
|
|
|
456
456
|
arc.startAngle = function(_) {
|
|
457
|
-
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant
|
|
457
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), arc) : startAngle;
|
|
458
458
|
};
|
|
459
459
|
|
|
460
460
|
arc.endAngle = function(_) {
|
|
461
|
-
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant
|
|
461
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), arc) : endAngle;
|
|
462
462
|
};
|
|
463
463
|
|
|
464
464
|
arc.padAngle = function(_) {
|
|
465
|
-
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant
|
|
465
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), arc) : padAngle;
|
|
466
466
|
};
|
|
467
467
|
|
|
468
468
|
arc.context = function(_) {
|
|
@@ -472,11 +472,11 @@ function d3Arc() {
|
|
|
472
472
|
return arc;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
function Linear
|
|
475
|
+
function Linear(context) {
|
|
476
476
|
this._context = context;
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
Linear
|
|
479
|
+
Linear.prototype = {
|
|
480
480
|
areaStart: function() {
|
|
481
481
|
this._line = 0;
|
|
482
482
|
},
|
|
@@ -501,21 +501,21 @@ Linear$1.prototype = {
|
|
|
501
501
|
};
|
|
502
502
|
|
|
503
503
|
function d3CurveLinear(context) {
|
|
504
|
-
return new Linear
|
|
504
|
+
return new Linear(context);
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
-
function x
|
|
507
|
+
function x(p) {
|
|
508
508
|
return p[0];
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
function y
|
|
511
|
+
function y(p) {
|
|
512
512
|
return p[1];
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
function d3Line() {
|
|
516
|
-
var x = x
|
|
517
|
-
y = y
|
|
518
|
-
defined = constant
|
|
516
|
+
var x$1 = x,
|
|
517
|
+
y$1 = y,
|
|
518
|
+
defined = constant(true),
|
|
519
519
|
context = null,
|
|
520
520
|
curve = d3CurveLinear,
|
|
521
521
|
output = null;
|
|
@@ -534,22 +534,22 @@ function d3Line() {
|
|
|
534
534
|
if (defined0 = !defined0) output.lineStart();
|
|
535
535
|
else output.lineEnd();
|
|
536
536
|
}
|
|
537
|
-
if (defined0) output.point(+x(d, i, data), +y(d, i, data));
|
|
537
|
+
if (defined0) output.point(+x$1(d, i, data), +y$1(d, i, data));
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
if (buffer) return output = null, buffer + "" || null;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
line.x = function(_) {
|
|
544
|
-
return arguments.length ? (x = typeof _ === "function" ? _ : constant
|
|
544
|
+
return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line) : x$1;
|
|
545
545
|
};
|
|
546
546
|
|
|
547
547
|
line.y = function(_) {
|
|
548
|
-
return arguments.length ? (y = typeof _ === "function" ? _ : constant
|
|
548
|
+
return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line) : y$1;
|
|
549
549
|
};
|
|
550
550
|
|
|
551
551
|
line.defined = function(_) {
|
|
552
|
-
return arguments.length ? (defined = typeof _ === "function" ? _ : constant
|
|
552
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line) : defined;
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
line.curve = function(_) {
|
|
@@ -564,11 +564,11 @@ function d3Line() {
|
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
function d3Area() {
|
|
567
|
-
var x0 = x
|
|
567
|
+
var x0 = x,
|
|
568
568
|
x1 = null,
|
|
569
|
-
y0 = constant
|
|
570
|
-
y1 = y
|
|
571
|
-
defined = constant
|
|
569
|
+
y0 = constant(0),
|
|
570
|
+
y1 = y,
|
|
571
|
+
defined = constant(true),
|
|
572
572
|
context = null,
|
|
573
573
|
curve = d3CurveLinear,
|
|
574
574
|
output = null;
|
|
@@ -616,27 +616,27 @@ function d3Area() {
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
area.x = function(_) {
|
|
619
|
-
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant
|
|
619
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant(+_), x1 = null, area) : x0;
|
|
620
620
|
};
|
|
621
621
|
|
|
622
622
|
area.x0 = function(_) {
|
|
623
|
-
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant
|
|
623
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : constant(+_), area) : x0;
|
|
624
624
|
};
|
|
625
625
|
|
|
626
626
|
area.x1 = function(_) {
|
|
627
|
-
return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant
|
|
627
|
+
return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : constant(+_), area) : x1;
|
|
628
628
|
};
|
|
629
629
|
|
|
630
630
|
area.y = function(_) {
|
|
631
|
-
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant
|
|
631
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant(+_), y1 = null, area) : y0;
|
|
632
632
|
};
|
|
633
633
|
|
|
634
634
|
area.y0 = function(_) {
|
|
635
|
-
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant
|
|
635
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : constant(+_), area) : y0;
|
|
636
636
|
};
|
|
637
637
|
|
|
638
638
|
area.y1 = function(_) {
|
|
639
|
-
return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant
|
|
639
|
+
return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : constant(+_), area) : y1;
|
|
640
640
|
};
|
|
641
641
|
|
|
642
642
|
area.lineX0 =
|
|
@@ -653,7 +653,7 @@ function d3Area() {
|
|
|
653
653
|
};
|
|
654
654
|
|
|
655
655
|
area.defined = function(_) {
|
|
656
|
-
return arguments.length ? (defined = typeof _ === "function" ? _ : constant
|
|
656
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), area) : defined;
|
|
657
657
|
};
|
|
658
658
|
|
|
659
659
|
area.curve = function(_) {
|
|
@@ -671,17 +671,17 @@ function descending(a, b) {
|
|
|
671
671
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
|
-
function identity
|
|
674
|
+
function identity(d) {
|
|
675
675
|
return d;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
function d3Pie() {
|
|
679
|
-
var value = identity
|
|
679
|
+
var value = identity,
|
|
680
680
|
sortValues = descending,
|
|
681
681
|
sort = null,
|
|
682
|
-
startAngle = constant
|
|
683
|
-
endAngle = constant
|
|
684
|
-
padAngle = constant
|
|
682
|
+
startAngle = constant(0),
|
|
683
|
+
endAngle = constant(tau$1),
|
|
684
|
+
padAngle = constant(0);
|
|
685
685
|
|
|
686
686
|
function pie(data) {
|
|
687
687
|
var i,
|
|
@@ -692,7 +692,7 @@ function d3Pie() {
|
|
|
692
692
|
index = new Array(n),
|
|
693
693
|
arcs = new Array(n),
|
|
694
694
|
a0 = +startAngle.apply(this, arguments),
|
|
695
|
-
da = Math.min(tau$
|
|
695
|
+
da = Math.min(tau$1, Math.max(-tau$1, endAngle.apply(this, arguments) - a0)),
|
|
696
696
|
a1,
|
|
697
697
|
p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
|
|
698
698
|
pa = p * (da < 0 ? -1 : 1),
|
|
@@ -724,7 +724,7 @@ function d3Pie() {
|
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
pie.value = function(_) {
|
|
727
|
-
return arguments.length ? (value = typeof _ === "function" ? _ : constant
|
|
727
|
+
return arguments.length ? (value = typeof _ === "function" ? _ : constant(+_), pie) : value;
|
|
728
728
|
};
|
|
729
729
|
|
|
730
730
|
pie.sortValues = function(_) {
|
|
@@ -736,21 +736,21 @@ function d3Pie() {
|
|
|
736
736
|
};
|
|
737
737
|
|
|
738
738
|
pie.startAngle = function(_) {
|
|
739
|
-
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant
|
|
739
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), pie) : startAngle;
|
|
740
740
|
};
|
|
741
741
|
|
|
742
742
|
pie.endAngle = function(_) {
|
|
743
|
-
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant
|
|
743
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), pie) : endAngle;
|
|
744
744
|
};
|
|
745
745
|
|
|
746
746
|
pie.padAngle = function(_) {
|
|
747
|
-
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant
|
|
747
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), pie) : padAngle;
|
|
748
748
|
};
|
|
749
749
|
|
|
750
750
|
return pie;
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
-
function point
|
|
753
|
+
function point(that, x, y) {
|
|
754
754
|
that._context.bezierCurveTo(
|
|
755
755
|
(2 * that._x0 + that._x1) / 3,
|
|
756
756
|
(2 * that._y0 + that._y1) / 3,
|
|
@@ -779,7 +779,7 @@ Basis.prototype = {
|
|
|
779
779
|
},
|
|
780
780
|
lineEnd: function() {
|
|
781
781
|
switch (this._point) {
|
|
782
|
-
case 3: point
|
|
782
|
+
case 3: point(this, this._x1, this._y1); // proceed
|
|
783
783
|
case 2: this._context.lineTo(this._x1, this._y1); break;
|
|
784
784
|
}
|
|
785
785
|
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
@@ -791,7 +791,7 @@ Basis.prototype = {
|
|
|
791
791
|
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
792
792
|
case 1: this._point = 2; break;
|
|
793
793
|
case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed
|
|
794
|
-
default: point
|
|
794
|
+
default: point(this, x, y); break;
|
|
795
795
|
}
|
|
796
796
|
this._x0 = this._x1, this._x1 = x;
|
|
797
797
|
this._y0 = this._y1, this._y1 = y;
|
|
@@ -857,7 +857,7 @@ var d3CurveBundle = (function custom(beta) {
|
|
|
857
857
|
return bundle;
|
|
858
858
|
})(0.85);
|
|
859
859
|
|
|
860
|
-
function point$
|
|
860
|
+
function point$1(that, x, y) {
|
|
861
861
|
that._context.bezierCurveTo(
|
|
862
862
|
that._x1 + that._k * (that._x2 - that._x0),
|
|
863
863
|
that._y1 + that._k * (that._y2 - that._y0),
|
|
@@ -868,12 +868,12 @@ function point$5(that, x, y) {
|
|
|
868
868
|
);
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
function Cardinal
|
|
871
|
+
function Cardinal(context, tension) {
|
|
872
872
|
this._context = context;
|
|
873
873
|
this._k = (1 - tension) / 6;
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
Cardinal
|
|
876
|
+
Cardinal.prototype = {
|
|
877
877
|
areaStart: function() {
|
|
878
878
|
this._line = 0;
|
|
879
879
|
},
|
|
@@ -888,7 +888,7 @@ Cardinal$1.prototype = {
|
|
|
888
888
|
lineEnd: function() {
|
|
889
889
|
switch (this._point) {
|
|
890
890
|
case 2: this._context.lineTo(this._x2, this._y2); break;
|
|
891
|
-
case 3: point$
|
|
891
|
+
case 3: point$1(this, this._x1, this._y1); break;
|
|
892
892
|
}
|
|
893
893
|
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
894
894
|
this._line = 1 - this._line;
|
|
@@ -899,7 +899,7 @@ Cardinal$1.prototype = {
|
|
|
899
899
|
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
900
900
|
case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
|
|
901
901
|
case 2: this._point = 3; // proceed
|
|
902
|
-
default: point$
|
|
902
|
+
default: point$1(this, x, y); break;
|
|
903
903
|
}
|
|
904
904
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
905
905
|
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
@@ -909,7 +909,7 @@ Cardinal$1.prototype = {
|
|
|
909
909
|
var d3CurveCardinal = (function custom(tension) {
|
|
910
910
|
|
|
911
911
|
function cardinal(context) {
|
|
912
|
-
return new Cardinal
|
|
912
|
+
return new Cardinal(context, tension);
|
|
913
913
|
}
|
|
914
914
|
|
|
915
915
|
cardinal.tension = function(tension) {
|
|
@@ -919,20 +919,20 @@ var d3CurveCardinal = (function custom(tension) {
|
|
|
919
919
|
return cardinal;
|
|
920
920
|
})(0);
|
|
921
921
|
|
|
922
|
-
function point$
|
|
922
|
+
function point$2(that, x, y) {
|
|
923
923
|
var x1 = that._x1,
|
|
924
924
|
y1 = that._y1,
|
|
925
925
|
x2 = that._x2,
|
|
926
926
|
y2 = that._y2;
|
|
927
927
|
|
|
928
|
-
if (that._l01_a > epsilon$
|
|
928
|
+
if (that._l01_a > epsilon$1) {
|
|
929
929
|
var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
|
|
930
930
|
n = 3 * that._l01_a * (that._l01_a + that._l12_a);
|
|
931
931
|
x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
|
|
932
932
|
y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
|
|
933
933
|
}
|
|
934
934
|
|
|
935
|
-
if (that._l23_a > epsilon$
|
|
935
|
+
if (that._l23_a > epsilon$1) {
|
|
936
936
|
var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
|
|
937
937
|
m = 3 * that._l23_a * (that._l23_a + that._l12_a);
|
|
938
938
|
x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
|
|
@@ -942,12 +942,12 @@ function point$4(that, x, y) {
|
|
|
942
942
|
that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
-
function CatmullRom
|
|
945
|
+
function CatmullRom(context, alpha) {
|
|
946
946
|
this._context = context;
|
|
947
947
|
this._alpha = alpha;
|
|
948
948
|
}
|
|
949
949
|
|
|
950
|
-
CatmullRom
|
|
950
|
+
CatmullRom.prototype = {
|
|
951
951
|
areaStart: function() {
|
|
952
952
|
this._line = 0;
|
|
953
953
|
},
|
|
@@ -982,7 +982,7 @@ CatmullRom$1.prototype = {
|
|
|
982
982
|
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
983
983
|
case 1: this._point = 2; break;
|
|
984
984
|
case 2: this._point = 3; // proceed
|
|
985
|
-
default: point$
|
|
985
|
+
default: point$2(this, x, y); break;
|
|
986
986
|
}
|
|
987
987
|
|
|
988
988
|
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
@@ -995,7 +995,7 @@ CatmullRom$1.prototype = {
|
|
|
995
995
|
var d3curveCatmullRom = (function custom(alpha) {
|
|
996
996
|
|
|
997
997
|
function catmullRom(context) {
|
|
998
|
-
return alpha ? new CatmullRom
|
|
998
|
+
return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
catmullRom.alpha = function(alpha) {
|
|
@@ -1005,7 +1005,7 @@ var d3curveCatmullRom = (function custom(alpha) {
|
|
|
1005
1005
|
return catmullRom;
|
|
1006
1006
|
})(0.5);
|
|
1007
1007
|
|
|
1008
|
-
function sign
|
|
1008
|
+
function sign(x) {
|
|
1009
1009
|
return x < 0 ? -1 : 1;
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
@@ -1013,17 +1013,17 @@ function sign$1(x) {
|
|
|
1013
1013
|
// the following paper: Steffen, M. 1990. A Simple Method for Monotonic
|
|
1014
1014
|
// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
|
|
1015
1015
|
// NOV(II), P. 443, 1990.
|
|
1016
|
-
function slope3
|
|
1016
|
+
function slope3(that, x2, y2) {
|
|
1017
1017
|
var h0 = that._x1 - that._x0,
|
|
1018
1018
|
h1 = x2 - that._x1,
|
|
1019
1019
|
s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
|
|
1020
1020
|
s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
|
|
1021
1021
|
p = (s0 * h1 + s1 * h0) / (h0 + h1);
|
|
1022
|
-
return (sign
|
|
1022
|
+
return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
// Calculate a one-sided slope.
|
|
1026
|
-
function slope2
|
|
1026
|
+
function slope2(that, t) {
|
|
1027
1027
|
var h = that._x1 - that._x0;
|
|
1028
1028
|
return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
|
|
1029
1029
|
}
|
|
@@ -1040,11 +1040,11 @@ function point$3(that, t0, t1) {
|
|
|
1040
1040
|
that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
|
-
function MonotoneX
|
|
1043
|
+
function MonotoneX(context) {
|
|
1044
1044
|
this._context = context;
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
|
-
MonotoneX
|
|
1047
|
+
MonotoneX.prototype = {
|
|
1048
1048
|
areaStart: function() {
|
|
1049
1049
|
this._line = 0;
|
|
1050
1050
|
},
|
|
@@ -1060,7 +1060,7 @@ MonotoneX$1.prototype = {
|
|
|
1060
1060
|
lineEnd: function() {
|
|
1061
1061
|
switch (this._point) {
|
|
1062
1062
|
case 2: this._context.lineTo(this._x1, this._y1); break;
|
|
1063
|
-
case 3: point$3(this, this._t0, slope2
|
|
1063
|
+
case 3: point$3(this, this._t0, slope2(this, this._t0)); break;
|
|
1064
1064
|
}
|
|
1065
1065
|
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
1066
1066
|
this._line = 1 - this._line;
|
|
@@ -1073,8 +1073,8 @@ MonotoneX$1.prototype = {
|
|
|
1073
1073
|
switch (this._point) {
|
|
1074
1074
|
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
1075
1075
|
case 1: this._point = 2; break;
|
|
1076
|
-
case 2: this._point = 3; point$3(this, slope2
|
|
1077
|
-
default: point$3(this, this._t0, t1 = slope3
|
|
1076
|
+
case 2: this._point = 3; point$3(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
|
|
1077
|
+
default: point$3(this, this._t0, t1 = slope3(this, x, y)); break;
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
1080
|
this._x0 = this._x1, this._x1 = x;
|
|
@@ -1083,12 +1083,27 @@ MonotoneX$1.prototype = {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
};
|
|
1085
1085
|
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
function MonotoneY(context) {
|
|
1087
|
+
this._context = new ReflectContext(context);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
|
|
1091
|
+
MonotoneX.prototype.point.call(this, y, x);
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
function ReflectContext(context) {
|
|
1095
|
+
this._context = context;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
ReflectContext.prototype = {
|
|
1099
|
+
moveTo: function(x, y) { this._context.moveTo(y, x); },
|
|
1100
|
+
closePath: function() { this._context.closePath(); },
|
|
1101
|
+
lineTo: function(x, y) { this._context.lineTo(y, x); },
|
|
1102
|
+
bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
|
|
1088
1103
|
};
|
|
1089
1104
|
|
|
1090
1105
|
function monotoneX(context) {
|
|
1091
|
-
return new MonotoneX
|
|
1106
|
+
return new MonotoneX(context);
|
|
1092
1107
|
}
|
|
1093
1108
|
|
|
1094
1109
|
function Natural(context) {
|
|
@@ -1157,12 +1172,12 @@ function d3CurveNatural(context) {
|
|
|
1157
1172
|
return new Natural(context);
|
|
1158
1173
|
}
|
|
1159
1174
|
|
|
1160
|
-
function Step
|
|
1175
|
+
function Step(context, t) {
|
|
1161
1176
|
this._context = context;
|
|
1162
1177
|
this._t = t;
|
|
1163
1178
|
}
|
|
1164
1179
|
|
|
1165
|
-
Step
|
|
1180
|
+
Step.prototype = {
|
|
1166
1181
|
areaStart: function() {
|
|
1167
1182
|
this._line = 0;
|
|
1168
1183
|
},
|
|
@@ -1200,18 +1215,18 @@ Step$1.prototype = {
|
|
|
1200
1215
|
};
|
|
1201
1216
|
|
|
1202
1217
|
function d3CurveStep(context) {
|
|
1203
|
-
return new Step
|
|
1218
|
+
return new Step(context, 0.5);
|
|
1204
1219
|
}
|
|
1205
1220
|
|
|
1206
1221
|
function stepBefore(context) {
|
|
1207
|
-
return new Step
|
|
1222
|
+
return new Step(context, 0);
|
|
1208
1223
|
}
|
|
1209
1224
|
|
|
1210
1225
|
function stepAfter(context) {
|
|
1211
|
-
return new Step
|
|
1226
|
+
return new Step(context, 1);
|
|
1212
1227
|
}
|
|
1213
1228
|
|
|
1214
|
-
var slice
|
|
1229
|
+
var slice = Array.prototype.slice;
|
|
1215
1230
|
|
|
1216
1231
|
function identity$1(x) {
|
|
1217
1232
|
return x;
|
|
@@ -1221,7 +1236,7 @@ var top = 1,
|
|
|
1221
1236
|
right = 2,
|
|
1222
1237
|
bottom = 3,
|
|
1223
1238
|
left = 4,
|
|
1224
|
-
epsilon$
|
|
1239
|
+
epsilon$2 = 1e-6;
|
|
1225
1240
|
|
|
1226
1241
|
function translateX(x) {
|
|
1227
1242
|
return "translate(" + (x + 0.5) + ",0)";
|
|
@@ -1298,11 +1313,11 @@ function axis(orient, scale) {
|
|
|
1298
1313
|
text = text.transition(context);
|
|
1299
1314
|
|
|
1300
1315
|
tickExit = tickExit.transition(context)
|
|
1301
|
-
.attr("opacity", epsilon$
|
|
1316
|
+
.attr("opacity", epsilon$2)
|
|
1302
1317
|
.attr("transform", function(d) { return isFinite(d = position(d)) ? transform(d) : this.getAttribute("transform"); });
|
|
1303
1318
|
|
|
1304
1319
|
tickEnter
|
|
1305
|
-
.attr("opacity", epsilon$
|
|
1320
|
+
.attr("opacity", epsilon$2)
|
|
1306
1321
|
.attr("transform", function(d) { var p = this.parentNode.__axis; return transform(p && isFinite(p = p(d)) ? p : position(d)); });
|
|
1307
1322
|
}
|
|
1308
1323
|
|
|
@@ -1339,15 +1354,15 @@ function axis(orient, scale) {
|
|
|
1339
1354
|
};
|
|
1340
1355
|
|
|
1341
1356
|
axis.ticks = function() {
|
|
1342
|
-
return tickArguments = slice
|
|
1357
|
+
return tickArguments = slice.call(arguments), axis;
|
|
1343
1358
|
};
|
|
1344
1359
|
|
|
1345
1360
|
axis.tickArguments = function(_) {
|
|
1346
|
-
return arguments.length ? (tickArguments = _ == null ? [] : slice
|
|
1361
|
+
return arguments.length ? (tickArguments = _ == null ? [] : slice.call(_), axis) : tickArguments.slice();
|
|
1347
1362
|
};
|
|
1348
1363
|
|
|
1349
1364
|
axis.tickValues = function(_) {
|
|
1350
|
-
return arguments.length ? (tickValues = _ == null ? null : slice
|
|
1365
|
+
return arguments.length ? (tickValues = _ == null ? null : slice.call(_), axis) : tickValues && tickValues.slice();
|
|
1351
1366
|
};
|
|
1352
1367
|
|
|
1353
1368
|
axis.tickFormat = function(_) {
|
|
@@ -1416,8 +1431,8 @@ function styleInject(css, ref) {
|
|
|
1416
1431
|
}
|
|
1417
1432
|
}
|
|
1418
1433
|
|
|
1419
|
-
var css_248z
|
|
1420
|
-
styleInject(css_248z
|
|
1434
|
+
var css_248z = ".chart_Axis{fill:#000}.chart_Axis,.chart_Axis .axis .tick>text{font:10px sans-serif}.chart_Axis .axis .tick line,.chart_Axis .axis path.domain{fill:none;stroke:#000}.chart_Axis .guide path.domain{fill:none;stroke:none}.chart_Axis .guide .tick line{fill:none;stroke:#d3d3d3;opacity:.7}.chart_Axis .guide .tick.guide-0 line{stroke:#000;stroke-width:1;stroke-dasharray:3 5}.chart_Axis line,.chart_Axis path{shape-rendering:crispEdges}";
|
|
1435
|
+
styleInject(css_248z);
|
|
1421
1436
|
|
|
1422
1437
|
var Axis = /** @class */ (function (_super) {
|
|
1423
1438
|
__extends(Axis, _super);
|
|
@@ -2016,8 +2031,8 @@ Axis.prototype.publish("ordinalPaddingInner", 0.1, "number", "Determines the rat
|
|
|
2016
2031
|
Axis.prototype.publish("ordinalPaddingOuter", 0.1, "number", "Determines the ratio of the range that is reserved for blank space before the first band and after the last band (0->1)", null, { disable: function (w) { return w.type() !== "ordinal"; } });
|
|
2017
2032
|
Axis.prototype.publish("ordinalMappings", null, "object", "Alternative label mappings (icons)", null, { optional: true });
|
|
2018
2033
|
|
|
2019
|
-
var css_248z$
|
|
2020
|
-
styleInject(css_248z$
|
|
2034
|
+
var css_248z$1 = ".chart_XYAxis .axis{fill:#000}.chart_XYAxis .axis,.chart_XYAxis .tick>text{font:10px sans-serif}.chart_XYAxis .focus .chart_Axis.value .tick{visibility:hidden}.chart_XYAxis .axis line,.chart_XYAxis .axis path{fill:none;stroke:#000;shape-rendering:crispEdges}.chart_XYAxis .region{opacity:.33}.chart_XYAxis .brush rect.background{z-index:-999}.chart_XYAxis .brush .selection{stroke:#4682b4;stroke-opacity:1;stroke-width:1px;fill:#4682b4;fill-opacity:.125;shape-rendering:crispEdges}.chart_XYAxis .brush path.handle--custom{fill:#eee;stroke:#666}";
|
|
2035
|
+
styleInject(css_248z$1);
|
|
2021
2036
|
|
|
2022
2037
|
var XYAxis = /** @class */ (function (_super) {
|
|
2023
2038
|
__extends(XYAxis, _super);
|
|
@@ -2482,7 +2497,7 @@ var XYAxis = /** @class */ (function (_super) {
|
|
|
2482
2497
|
if (!retVal.length) {
|
|
2483
2498
|
return masterColumns;
|
|
2484
2499
|
}
|
|
2485
|
-
return __spreadArray([masterColumns[0]], retVal
|
|
2500
|
+
return __spreadArray([masterColumns[0]], retVal);
|
|
2486
2501
|
};
|
|
2487
2502
|
XYAxis.prototype.layerColumnIndices = function (host) {
|
|
2488
2503
|
var masterColumns = host.columns();
|
|
@@ -2545,7 +2560,7 @@ var XYAxis = /** @class */ (function (_super) {
|
|
|
2545
2560
|
select(this)
|
|
2546
2561
|
.classed("selected", selected)
|
|
2547
2562
|
.classed("deselected", !selected)
|
|
2548
|
-
.attr("filter", context._selection.svgGlowID() && selected ? "url(#"
|
|
2563
|
+
.attr("filter", context._selection.svgGlowID() && selected ? "url(#" + context._selection.svgGlowID() + ")" : null);
|
|
2549
2564
|
});
|
|
2550
2565
|
var selRows = _selected.map(function (d) {
|
|
2551
2566
|
return _this.rowToObj(d);
|
|
@@ -2610,8 +2625,8 @@ XYAxis.prototype.publishProxy("yAxisHidden", "valueAxis", "hidden");
|
|
|
2610
2625
|
XYAxis.prototype.publish("regions", [], "array", "Regions");
|
|
2611
2626
|
XYAxis.prototype.publish("layers", [], "widgetArray", "Layers", null, { render: false });
|
|
2612
2627
|
|
|
2613
|
-
var css_248z$
|
|
2614
|
-
styleInject(css_248z$
|
|
2628
|
+
var css_248z$2 = ".chart_Scatter .area,.chart_Scatter .line,.chart_Scatter .pointShape{pointer-events:none}.chart_Scatter .point .pointSelection{fill:none;stroke:none;pointer-events:all}.chart_Scatter .point .pointSelection.selected{fill:none;stroke:red}";
|
|
2629
|
+
styleInject(css_248z$2);
|
|
2615
2630
|
|
|
2616
2631
|
var Scatter = /** @class */ (function (_super) {
|
|
2617
2632
|
__extends(Scatter, _super);
|
|
@@ -2920,8 +2935,8 @@ var Area = /** @class */ (function (_super) {
|
|
|
2920
2935
|
}(Scatter));
|
|
2921
2936
|
Area.prototype._class += " chart_Area";
|
|
2922
2937
|
|
|
2923
|
-
var css_248z$
|
|
2924
|
-
styleInject(css_248z$
|
|
2938
|
+
var css_248z$3 = ".chart_Column .columnRect{fill:#4682b4;cursor:pointer}.chart_Column .data.axis path{display:none}.chart_Column .columnRect{stroke:transparent;border-width:1.5px}.chart_Column .columnRect.selected{stroke:red}";
|
|
2939
|
+
styleInject(css_248z$3);
|
|
2925
2940
|
|
|
2926
2941
|
var Column = /** @class */ (function (_super) {
|
|
2927
2942
|
__extends(Column, _super);
|
|
@@ -3149,7 +3164,7 @@ var Column = /** @class */ (function (_super) {
|
|
|
3149
3164
|
_texts
|
|
3150
3165
|
.attr("x", domainPos + (domainLength / 2))
|
|
3151
3166
|
.attr("y", y + textHeightOffset)
|
|
3152
|
-
.attr("transform", "rotate(-90, "
|
|
3167
|
+
.attr("transform", "rotate(-90, " + (domainPos + (domainLength / 2)) + ", " + y + ")");
|
|
3153
3168
|
}
|
|
3154
3169
|
else { // Bar
|
|
3155
3170
|
_texts
|
|
@@ -3172,7 +3187,7 @@ var Column = /** @class */ (function (_super) {
|
|
|
3172
3187
|
return "";
|
|
3173
3188
|
});
|
|
3174
3189
|
}
|
|
3175
|
-
var dataText = element.selectAll(".dataText").data(context.showValue() ? [""
|
|
3190
|
+
var dataText = element.selectAll(".dataText").data(context.showValue() ? ["" + upperValue] : []);
|
|
3176
3191
|
var dataTextEnter = dataText.enter().append("g")
|
|
3177
3192
|
.attr("class", "dataText")
|
|
3178
3193
|
.each(function (d) {
|
|
@@ -3313,7 +3328,7 @@ var Column = /** @class */ (function (_super) {
|
|
|
3313
3328
|
.anchor(valueAnchor)
|
|
3314
3329
|
.fontFamily(valueFontFamily)
|
|
3315
3330
|
.fontSize(valueFontSize)
|
|
3316
|
-
.text(""
|
|
3331
|
+
.text("" + valueText)
|
|
3317
3332
|
.colorFill(textColor)
|
|
3318
3333
|
.visible(context.showValue())
|
|
3319
3334
|
.render();
|
|
@@ -3577,7 +3592,7 @@ function node_links() {
|
|
|
3577
3592
|
}
|
|
3578
3593
|
|
|
3579
3594
|
function hierarchy(data, children) {
|
|
3580
|
-
var root = new Node
|
|
3595
|
+
var root = new Node(data),
|
|
3581
3596
|
valued = +data.value && (root.value = data.value),
|
|
3582
3597
|
node,
|
|
3583
3598
|
nodes = [root],
|
|
@@ -3593,7 +3608,7 @@ function hierarchy(data, children) {
|
|
|
3593
3608
|
if ((childs = children(node.data)) && (n = childs.length)) {
|
|
3594
3609
|
node.children = new Array(n);
|
|
3595
3610
|
for (i = n - 1; i >= 0; --i) {
|
|
3596
|
-
nodes.push(child = node.children[i] = new Node
|
|
3611
|
+
nodes.push(child = node.children[i] = new Node(childs[i]));
|
|
3597
3612
|
child.parent = node;
|
|
3598
3613
|
child.depth = node.depth + 1;
|
|
3599
3614
|
}
|
|
@@ -3621,15 +3636,15 @@ function computeHeight(node) {
|
|
|
3621
3636
|
while ((node = node.parent) && (node.height < ++height));
|
|
3622
3637
|
}
|
|
3623
3638
|
|
|
3624
|
-
function Node
|
|
3639
|
+
function Node(data) {
|
|
3625
3640
|
this.data = data;
|
|
3626
3641
|
this.depth =
|
|
3627
3642
|
this.height = 0;
|
|
3628
3643
|
this.parent = null;
|
|
3629
3644
|
}
|
|
3630
3645
|
|
|
3631
|
-
Node
|
|
3632
|
-
constructor: Node
|
|
3646
|
+
Node.prototype = hierarchy.prototype = {
|
|
3647
|
+
constructor: Node,
|
|
3633
3648
|
count: node_count,
|
|
3634
3649
|
each: node_each,
|
|
3635
3650
|
eachAfter: node_eachAfter,
|
|
@@ -3816,7 +3831,7 @@ function score(node) {
|
|
|
3816
3831
|
return dx * dx + dy * dy;
|
|
3817
3832
|
}
|
|
3818
3833
|
|
|
3819
|
-
function Node(circle) {
|
|
3834
|
+
function Node$1(circle) {
|
|
3820
3835
|
this._ = circle;
|
|
3821
3836
|
this.next = null;
|
|
3822
3837
|
this.previous = null;
|
|
@@ -3839,14 +3854,14 @@ function packEnclose(circles) {
|
|
|
3839
3854
|
place(b, a, c = circles[2]);
|
|
3840
3855
|
|
|
3841
3856
|
// Initialize the front-chain using the first three circles a, b and c.
|
|
3842
|
-
a = new Node(a), b = new Node(b), c = new Node(c);
|
|
3857
|
+
a = new Node$1(a), b = new Node$1(b), c = new Node$1(c);
|
|
3843
3858
|
a.next = c.previous = b;
|
|
3844
3859
|
b.next = a.previous = c;
|
|
3845
3860
|
c.next = b.previous = a;
|
|
3846
3861
|
|
|
3847
3862
|
// Attempt to place each remaining circle…
|
|
3848
3863
|
pack: for (i = 3; i < n; ++i) {
|
|
3849
|
-
place(a._, b._, c = circles[i]), c = new Node(c);
|
|
3864
|
+
place(a._, b._, c = circles[i]), c = new Node$1(c);
|
|
3850
3865
|
|
|
3851
3866
|
// Find the closest intersecting circle on the front-chain, if any.
|
|
3852
3867
|
// “Closeness” is determined by linear distance along the front-chain.
|
|
@@ -3903,7 +3918,7 @@ function constantZero() {
|
|
|
3903
3918
|
return 0;
|
|
3904
3919
|
}
|
|
3905
3920
|
|
|
3906
|
-
function constant$
|
|
3921
|
+
function constant$1(x) {
|
|
3907
3922
|
return function() {
|
|
3908
3923
|
return x;
|
|
3909
3924
|
};
|
|
@@ -3943,7 +3958,7 @@ function d3Pack() {
|
|
|
3943
3958
|
};
|
|
3944
3959
|
|
|
3945
3960
|
pack.padding = function(x) {
|
|
3946
|
-
return arguments.length ? (padding = typeof x === "function" ? x : constant$
|
|
3961
|
+
return arguments.length ? (padding = typeof x === "function" ? x : constant$1(+x), pack) : padding;
|
|
3947
3962
|
};
|
|
3948
3963
|
|
|
3949
3964
|
return pack;
|
|
@@ -3985,8 +4000,8 @@ function translateChild(k) {
|
|
|
3985
4000
|
};
|
|
3986
4001
|
}
|
|
3987
4002
|
|
|
3988
|
-
var css_248z$
|
|
3989
|
-
styleInject(css_248z$
|
|
4003
|
+
var css_248z$4 = ".chart_Bubble circle{cursor:pointer}.chart_Bubble .selected circle{stroke:red;stroke-width:1.5px}.chart_Bubble .common_FAChar{fill:#fff;pointer-events:none}.chart_Bubble .common_Text{pointer-events:none}";
|
|
4004
|
+
styleInject(css_248z$4);
|
|
3990
4005
|
|
|
3991
4006
|
var Bubble = /** @class */ (function (_super) {
|
|
3992
4007
|
__extends(Bubble, _super);
|
|
@@ -4343,8 +4358,8 @@ function bulvarWidth(x) {
|
|
|
4343
4358
|
};
|
|
4344
4359
|
}
|
|
4345
4360
|
|
|
4346
|
-
var css_248z$
|
|
4347
|
-
styleInject(css_248z$
|
|
4361
|
+
var css_248z$5 = ".chart_Bullet .domain{opacity:0}.chart_Bullet .bullet{border:1px solid transparent;font:10px sans-serif}.chart_Bullet .bullet.selected{border-color:red}.chart_Bullet .bullet.over{border-color:orange}.chart_Bullet .bullet.selected.over{border-color:red}.chart_Bullet .bullet .marker{stroke:#000;stroke-width:2px}.chart_Bullet .bullet .tick line{stroke:#666;stroke-width:.5px}.chart_Bullet .bullet .range.s0{fill:#eee}.chart_Bullet .bullet .range.s1{fill:#ddd}.chart_Bullet .bullet .range.s2{fill:#ccc}.chart_Bullet .bullet .measure.s0{fill:#b0c4de}.chart_Bullet .bullet .measure.s1{fill:#4682b4}.chart_Bullet .bullet .title{font-size:14px;font-weight:700}.chart_Bullet .bullet .subtitle{fill:#999}";
|
|
4362
|
+
styleInject(css_248z$5);
|
|
4348
4363
|
|
|
4349
4364
|
var Bullet = /** @class */ (function (_super) {
|
|
4350
4365
|
__extends(Bullet, _super);
|
|
@@ -4442,13 +4457,13 @@ var Bullet = /** @class */ (function (_super) {
|
|
|
4442
4457
|
svgUpdate
|
|
4443
4458
|
.attr("width", width)
|
|
4444
4459
|
.attr("height", height + margin.top + margin.bottom)
|
|
4445
|
-
.style("margin-left",
|
|
4460
|
+
.style("margin-left", margin.left + "px");
|
|
4446
4461
|
svgUpdate.select(".bulletBar")
|
|
4447
4462
|
.attr("transform", "translate(" + (titleWidth + 6) + "," + margin.top + ")")
|
|
4448
4463
|
.call(chart);
|
|
4449
4464
|
svg.exit().remove();
|
|
4450
4465
|
if (Object.keys(this._hiddenColumns).length > 0) {
|
|
4451
|
-
element.selectAll("."
|
|
4466
|
+
element.selectAll("." + Object.keys(this._hiddenColumns).join(",."))
|
|
4452
4467
|
.style("display", "none");
|
|
4453
4468
|
}
|
|
4454
4469
|
};
|
|
@@ -4488,7 +4503,7 @@ Bullet.prototype._class += " chart_Bullet";
|
|
|
4488
4503
|
|
|
4489
4504
|
var array = Array.prototype;
|
|
4490
4505
|
|
|
4491
|
-
var slice = array.slice;
|
|
4506
|
+
var slice$2 = array.slice;
|
|
4492
4507
|
|
|
4493
4508
|
function ascending(a, b) {
|
|
4494
4509
|
return a - b;
|
|
@@ -4500,7 +4515,7 @@ function area(ring) {
|
|
|
4500
4515
|
return area;
|
|
4501
4516
|
}
|
|
4502
4517
|
|
|
4503
|
-
function constant$
|
|
4518
|
+
function constant$2(x) {
|
|
4504
4519
|
return function() {
|
|
4505
4520
|
return x;
|
|
4506
4521
|
};
|
|
@@ -4534,7 +4549,7 @@ function within(p, q, r) {
|
|
|
4534
4549
|
return p <= q && q <= r || r <= q && q <= p;
|
|
4535
4550
|
}
|
|
4536
4551
|
|
|
4537
|
-
function noop
|
|
4552
|
+
function noop() {}
|
|
4538
4553
|
|
|
4539
4554
|
var cases = [
|
|
4540
4555
|
[],
|
|
@@ -4722,11 +4737,11 @@ function contours() {
|
|
|
4722
4737
|
};
|
|
4723
4738
|
|
|
4724
4739
|
contours.thresholds = function(_) {
|
|
4725
|
-
return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant$
|
|
4740
|
+
return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant$2(slice$2.call(_)) : constant$2(_), contours) : threshold;
|
|
4726
4741
|
};
|
|
4727
4742
|
|
|
4728
4743
|
contours.smooth = function(_) {
|
|
4729
|
-
return arguments.length ? (smooth = _ ? smoothLinear : noop
|
|
4744
|
+
return arguments.length ? (smooth = _ ? smoothLinear : noop, contours) : smooth === smoothLinear;
|
|
4730
4745
|
};
|
|
4731
4746
|
|
|
4732
4747
|
return contours;
|
|
@@ -4799,7 +4814,7 @@ function d3ContourDensity() {
|
|
|
4799
4814
|
o = r * 3, // grid offset, to pad for blur
|
|
4800
4815
|
n = (dx + o * 2) >> k, // grid width
|
|
4801
4816
|
m = (dy + o * 2) >> k, // grid height
|
|
4802
|
-
threshold = constant$
|
|
4817
|
+
threshold = constant$2(20);
|
|
4803
4818
|
|
|
4804
4819
|
function density(data) {
|
|
4805
4820
|
var values0 = new Float32Array(n * m),
|
|
@@ -4867,15 +4882,15 @@ function d3ContourDensity() {
|
|
|
4867
4882
|
}
|
|
4868
4883
|
|
|
4869
4884
|
density.x = function(_) {
|
|
4870
|
-
return arguments.length ? (x = typeof _ === "function" ? _ : constant$
|
|
4885
|
+
return arguments.length ? (x = typeof _ === "function" ? _ : constant$2(+_), density) : x;
|
|
4871
4886
|
};
|
|
4872
4887
|
|
|
4873
4888
|
density.y = function(_) {
|
|
4874
|
-
return arguments.length ? (y = typeof _ === "function" ? _ : constant$
|
|
4889
|
+
return arguments.length ? (y = typeof _ === "function" ? _ : constant$2(+_), density) : y;
|
|
4875
4890
|
};
|
|
4876
4891
|
|
|
4877
4892
|
density.weight = function(_) {
|
|
4878
|
-
return arguments.length ? (weight = typeof _ === "function" ? _ : constant$
|
|
4893
|
+
return arguments.length ? (weight = typeof _ === "function" ? _ : constant$2(+_), density) : weight;
|
|
4879
4894
|
};
|
|
4880
4895
|
|
|
4881
4896
|
density.size = function(_) {
|
|
@@ -4892,7 +4907,7 @@ function d3ContourDensity() {
|
|
|
4892
4907
|
};
|
|
4893
4908
|
|
|
4894
4909
|
density.thresholds = function(_) {
|
|
4895
|
-
return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant$
|
|
4910
|
+
return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant$2(slice$2.call(_)) : constant$2(_), density) : threshold;
|
|
4896
4911
|
};
|
|
4897
4912
|
|
|
4898
4913
|
density.bandwidth = function(_) {
|
|
@@ -4945,13 +4960,13 @@ function add(adder, a, b) {
|
|
|
4945
4960
|
adder.t = (a - av) + (b - bv);
|
|
4946
4961
|
}
|
|
4947
4962
|
|
|
4948
|
-
var pi$
|
|
4949
|
-
var tau$
|
|
4963
|
+
var pi$2 = Math.PI;
|
|
4964
|
+
var tau$2 = pi$2 * 2;
|
|
4950
4965
|
|
|
4951
|
-
var abs = Math.abs;
|
|
4952
|
-
var sqrt = Math.sqrt;
|
|
4966
|
+
var abs$1 = Math.abs;
|
|
4967
|
+
var sqrt$1 = Math.sqrt;
|
|
4953
4968
|
|
|
4954
|
-
function noop() {}
|
|
4969
|
+
function noop$1() {}
|
|
4955
4970
|
|
|
4956
4971
|
function streamGeometry(geometry, stream) {
|
|
4957
4972
|
if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {
|
|
@@ -5023,28 +5038,28 @@ function geoStream(object, stream) {
|
|
|
5023
5038
|
}
|
|
5024
5039
|
}
|
|
5025
5040
|
|
|
5026
|
-
function identity(x) {
|
|
5041
|
+
function identity$2(x) {
|
|
5027
5042
|
return x;
|
|
5028
5043
|
}
|
|
5029
5044
|
|
|
5030
5045
|
var areaSum = adder(),
|
|
5031
5046
|
areaRingSum = adder(),
|
|
5032
|
-
x00
|
|
5033
|
-
y00
|
|
5034
|
-
x0
|
|
5035
|
-
y0
|
|
5047
|
+
x00,
|
|
5048
|
+
y00,
|
|
5049
|
+
x0,
|
|
5050
|
+
y0;
|
|
5036
5051
|
|
|
5037
5052
|
var areaStream = {
|
|
5038
|
-
point: noop,
|
|
5039
|
-
lineStart: noop,
|
|
5040
|
-
lineEnd: noop,
|
|
5053
|
+
point: noop$1,
|
|
5054
|
+
lineStart: noop$1,
|
|
5055
|
+
lineEnd: noop$1,
|
|
5041
5056
|
polygonStart: function() {
|
|
5042
5057
|
areaStream.lineStart = areaRingStart;
|
|
5043
5058
|
areaStream.lineEnd = areaRingEnd;
|
|
5044
5059
|
},
|
|
5045
5060
|
polygonEnd: function() {
|
|
5046
|
-
areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;
|
|
5047
|
-
areaSum.add(abs(areaRingSum));
|
|
5061
|
+
areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop$1;
|
|
5062
|
+
areaSum.add(abs$1(areaRingSum));
|
|
5048
5063
|
areaRingSum.reset();
|
|
5049
5064
|
},
|
|
5050
5065
|
result: function() {
|
|
@@ -5060,47 +5075,43 @@ function areaRingStart() {
|
|
|
5060
5075
|
|
|
5061
5076
|
function areaPointFirst(x, y) {
|
|
5062
5077
|
areaStream.point = areaPoint;
|
|
5063
|
-
x00
|
|
5078
|
+
x00 = x0 = x, y00 = y0 = y;
|
|
5064
5079
|
}
|
|
5065
5080
|
|
|
5066
5081
|
function areaPoint(x, y) {
|
|
5067
|
-
areaRingSum.add(y0
|
|
5068
|
-
x0
|
|
5082
|
+
areaRingSum.add(y0 * x - x0 * y);
|
|
5083
|
+
x0 = x, y0 = y;
|
|
5069
5084
|
}
|
|
5070
5085
|
|
|
5071
5086
|
function areaRingEnd() {
|
|
5072
|
-
areaPoint(x00
|
|
5087
|
+
areaPoint(x00, y00);
|
|
5073
5088
|
}
|
|
5074
5089
|
|
|
5075
|
-
var
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
y0$2 = x0$2,
|
|
5079
|
-
x1 = -x0$2,
|
|
5090
|
+
var x0$1 = Infinity,
|
|
5091
|
+
y0$1 = x0$1,
|
|
5092
|
+
x1 = -x0$1,
|
|
5080
5093
|
y1 = x1;
|
|
5081
5094
|
|
|
5082
5095
|
var boundsStream = {
|
|
5083
5096
|
point: boundsPoint,
|
|
5084
|
-
lineStart: noop,
|
|
5085
|
-
lineEnd: noop,
|
|
5086
|
-
polygonStart: noop,
|
|
5087
|
-
polygonEnd: noop,
|
|
5097
|
+
lineStart: noop$1,
|
|
5098
|
+
lineEnd: noop$1,
|
|
5099
|
+
polygonStart: noop$1,
|
|
5100
|
+
polygonEnd: noop$1,
|
|
5088
5101
|
result: function() {
|
|
5089
|
-
var bounds = [[x0$
|
|
5090
|
-
x1 = y1 = -(y0$
|
|
5102
|
+
var bounds = [[x0$1, y0$1], [x1, y1]];
|
|
5103
|
+
x1 = y1 = -(y0$1 = x0$1 = Infinity);
|
|
5091
5104
|
return bounds;
|
|
5092
5105
|
}
|
|
5093
5106
|
};
|
|
5094
5107
|
|
|
5095
5108
|
function boundsPoint(x, y) {
|
|
5096
|
-
if (x < x0$
|
|
5109
|
+
if (x < x0$1) x0$1 = x;
|
|
5097
5110
|
if (x > x1) x1 = x;
|
|
5098
|
-
if (y < y0$
|
|
5111
|
+
if (y < y0$1) y0$1 = y;
|
|
5099
5112
|
if (y > y1) y1 = y;
|
|
5100
5113
|
}
|
|
5101
5114
|
|
|
5102
|
-
var boundsStream$1 = boundsStream;
|
|
5103
|
-
|
|
5104
5115
|
// TODO Enforce positive area for exterior, negative area for interior?
|
|
5105
5116
|
|
|
5106
5117
|
var X0 = 0,
|
|
@@ -5114,8 +5125,8 @@ var X0 = 0,
|
|
|
5114
5125
|
Z2 = 0,
|
|
5115
5126
|
x00$1,
|
|
5116
5127
|
y00$1,
|
|
5117
|
-
x0$
|
|
5118
|
-
y0$
|
|
5128
|
+
x0$2,
|
|
5129
|
+
y0$2;
|
|
5119
5130
|
|
|
5120
5131
|
var centroidStream = {
|
|
5121
5132
|
point: centroidPoint,
|
|
@@ -5154,15 +5165,15 @@ function centroidLineStart() {
|
|
|
5154
5165
|
|
|
5155
5166
|
function centroidPointFirstLine(x, y) {
|
|
5156
5167
|
centroidStream.point = centroidPointLine;
|
|
5157
|
-
centroidPoint(x0$
|
|
5168
|
+
centroidPoint(x0$2 = x, y0$2 = y);
|
|
5158
5169
|
}
|
|
5159
5170
|
|
|
5160
5171
|
function centroidPointLine(x, y) {
|
|
5161
|
-
var dx = x - x0$
|
|
5162
|
-
X1 += z * (x0$
|
|
5163
|
-
Y1 += z * (y0$
|
|
5172
|
+
var dx = x - x0$2, dy = y - y0$2, z = sqrt$1(dx * dx + dy * dy);
|
|
5173
|
+
X1 += z * (x0$2 + x) / 2;
|
|
5174
|
+
Y1 += z * (y0$2 + y) / 2;
|
|
5164
5175
|
Z1 += z;
|
|
5165
|
-
centroidPoint(x0$
|
|
5176
|
+
centroidPoint(x0$2 = x, y0$2 = y);
|
|
5166
5177
|
}
|
|
5167
5178
|
|
|
5168
5179
|
function centroidLineEnd() {
|
|
@@ -5179,27 +5190,25 @@ function centroidRingEnd() {
|
|
|
5179
5190
|
|
|
5180
5191
|
function centroidPointFirstRing(x, y) {
|
|
5181
5192
|
centroidStream.point = centroidPointRing;
|
|
5182
|
-
centroidPoint(x00$1 = x0$
|
|
5193
|
+
centroidPoint(x00$1 = x0$2 = x, y00$1 = y0$2 = y);
|
|
5183
5194
|
}
|
|
5184
5195
|
|
|
5185
5196
|
function centroidPointRing(x, y) {
|
|
5186
|
-
var dx = x - x0$
|
|
5187
|
-
dy = y - y0$
|
|
5188
|
-
z = sqrt(dx * dx + dy * dy);
|
|
5197
|
+
var dx = x - x0$2,
|
|
5198
|
+
dy = y - y0$2,
|
|
5199
|
+
z = sqrt$1(dx * dx + dy * dy);
|
|
5189
5200
|
|
|
5190
|
-
X1 += z * (x0$
|
|
5191
|
-
Y1 += z * (y0$
|
|
5201
|
+
X1 += z * (x0$2 + x) / 2;
|
|
5202
|
+
Y1 += z * (y0$2 + y) / 2;
|
|
5192
5203
|
Z1 += z;
|
|
5193
5204
|
|
|
5194
|
-
z = y0$
|
|
5195
|
-
X2 += z * (x0$
|
|
5196
|
-
Y2 += z * (y0$
|
|
5205
|
+
z = y0$2 * x - x0$2 * y;
|
|
5206
|
+
X2 += z * (x0$2 + x);
|
|
5207
|
+
Y2 += z * (y0$2 + y);
|
|
5197
5208
|
Z2 += z * 3;
|
|
5198
|
-
centroidPoint(x0$
|
|
5209
|
+
centroidPoint(x0$2 = x, y0$2 = y);
|
|
5199
5210
|
}
|
|
5200
5211
|
|
|
5201
|
-
var pathCentroid = centroidStream;
|
|
5202
|
-
|
|
5203
5212
|
function PathContext(context) {
|
|
5204
5213
|
this._context = context;
|
|
5205
5214
|
}
|
|
@@ -5235,29 +5244,29 @@ PathContext.prototype = {
|
|
|
5235
5244
|
}
|
|
5236
5245
|
default: {
|
|
5237
5246
|
this._context.moveTo(x + this._radius, y);
|
|
5238
|
-
this._context.arc(x, y, this._radius, 0, tau$
|
|
5247
|
+
this._context.arc(x, y, this._radius, 0, tau$2);
|
|
5239
5248
|
break;
|
|
5240
5249
|
}
|
|
5241
5250
|
}
|
|
5242
5251
|
},
|
|
5243
|
-
result: noop
|
|
5252
|
+
result: noop$1
|
|
5244
5253
|
};
|
|
5245
5254
|
|
|
5246
5255
|
var lengthSum = adder(),
|
|
5247
5256
|
lengthRing,
|
|
5248
|
-
x00,
|
|
5249
|
-
y00,
|
|
5250
|
-
x0,
|
|
5251
|
-
y0;
|
|
5257
|
+
x00$2,
|
|
5258
|
+
y00$2,
|
|
5259
|
+
x0$3,
|
|
5260
|
+
y0$3;
|
|
5252
5261
|
|
|
5253
5262
|
var lengthStream = {
|
|
5254
|
-
point: noop,
|
|
5263
|
+
point: noop$1,
|
|
5255
5264
|
lineStart: function() {
|
|
5256
5265
|
lengthStream.point = lengthPointFirst;
|
|
5257
5266
|
},
|
|
5258
5267
|
lineEnd: function() {
|
|
5259
|
-
if (lengthRing) lengthPoint(x00, y00);
|
|
5260
|
-
lengthStream.point = noop;
|
|
5268
|
+
if (lengthRing) lengthPoint(x00$2, y00$2);
|
|
5269
|
+
lengthStream.point = noop$1;
|
|
5261
5270
|
},
|
|
5262
5271
|
polygonStart: function() {
|
|
5263
5272
|
lengthRing = true;
|
|
@@ -5274,17 +5283,15 @@ var lengthStream = {
|
|
|
5274
5283
|
|
|
5275
5284
|
function lengthPointFirst(x, y) {
|
|
5276
5285
|
lengthStream.point = lengthPoint;
|
|
5277
|
-
x00 = x0 = x, y00 = y0 = y;
|
|
5286
|
+
x00$2 = x0$3 = x, y00$2 = y0$3 = y;
|
|
5278
5287
|
}
|
|
5279
5288
|
|
|
5280
5289
|
function lengthPoint(x, y) {
|
|
5281
|
-
x0 -= x, y0 -= y;
|
|
5282
|
-
lengthSum.add(sqrt(x0 * x0 + y0 * y0));
|
|
5283
|
-
x0 = x, y0 = y;
|
|
5290
|
+
x0$3 -= x, y0$3 -= y;
|
|
5291
|
+
lengthSum.add(sqrt$1(x0$3 * x0$3 + y0$3 * y0$3));
|
|
5292
|
+
x0$3 = x, y0$3 = y;
|
|
5284
5293
|
}
|
|
5285
5294
|
|
|
5286
|
-
var pathMeasure = lengthStream;
|
|
5287
|
-
|
|
5288
5295
|
function PathString() {
|
|
5289
5296
|
this._string = [];
|
|
5290
5297
|
}
|
|
@@ -5359,27 +5366,27 @@ function geoPath(projection, context) {
|
|
|
5359
5366
|
}
|
|
5360
5367
|
|
|
5361
5368
|
path.area = function(object) {
|
|
5362
|
-
geoStream(object, projectionStream(
|
|
5363
|
-
return
|
|
5369
|
+
geoStream(object, projectionStream(areaStream));
|
|
5370
|
+
return areaStream.result();
|
|
5364
5371
|
};
|
|
5365
5372
|
|
|
5366
5373
|
path.measure = function(object) {
|
|
5367
|
-
geoStream(object, projectionStream(
|
|
5368
|
-
return
|
|
5374
|
+
geoStream(object, projectionStream(lengthStream));
|
|
5375
|
+
return lengthStream.result();
|
|
5369
5376
|
};
|
|
5370
5377
|
|
|
5371
5378
|
path.bounds = function(object) {
|
|
5372
|
-
geoStream(object, projectionStream(boundsStream
|
|
5373
|
-
return boundsStream
|
|
5379
|
+
geoStream(object, projectionStream(boundsStream));
|
|
5380
|
+
return boundsStream.result();
|
|
5374
5381
|
};
|
|
5375
5382
|
|
|
5376
5383
|
path.centroid = function(object) {
|
|
5377
|
-
geoStream(object, projectionStream(
|
|
5378
|
-
return
|
|
5384
|
+
geoStream(object, projectionStream(centroidStream));
|
|
5385
|
+
return centroidStream.result();
|
|
5379
5386
|
};
|
|
5380
5387
|
|
|
5381
5388
|
path.projection = function(_) {
|
|
5382
|
-
return arguments.length ? (projectionStream = _ == null ? (projection = null, identity) : (projection = _).stream, path) : projection;
|
|
5389
|
+
return arguments.length ? (projectionStream = _ == null ? (projection = null, identity$2) : (projection = _).stream, path) : projection;
|
|
5383
5390
|
};
|
|
5384
5391
|
|
|
5385
5392
|
path.context = function(_) {
|
|
@@ -5480,42 +5487,42 @@ var Gantt = /** @class */ (function (_super) {
|
|
|
5480
5487
|
}(Bar));
|
|
5481
5488
|
Gantt.prototype._class += " chart_Gantt";
|
|
5482
5489
|
|
|
5483
|
-
function constant(x) {
|
|
5490
|
+
function constant$3(x) {
|
|
5484
5491
|
return function constant() {
|
|
5485
5492
|
return x;
|
|
5486
5493
|
};
|
|
5487
5494
|
}
|
|
5488
5495
|
|
|
5489
|
-
var epsilon = 1e-12;
|
|
5490
|
-
var pi = Math.PI;
|
|
5491
|
-
var halfPi = pi / 2;
|
|
5492
|
-
var tau = 2 * pi;
|
|
5496
|
+
var epsilon$3 = 1e-12;
|
|
5497
|
+
var pi$3 = Math.PI;
|
|
5498
|
+
var halfPi$1 = pi$3 / 2;
|
|
5499
|
+
var tau$3 = 2 * pi$3;
|
|
5493
5500
|
|
|
5494
|
-
function arcInnerRadius(d) {
|
|
5501
|
+
function arcInnerRadius$1(d) {
|
|
5495
5502
|
return d.innerRadius;
|
|
5496
5503
|
}
|
|
5497
5504
|
|
|
5498
|
-
function arcOuterRadius(d) {
|
|
5505
|
+
function arcOuterRadius$1(d) {
|
|
5499
5506
|
return d.outerRadius;
|
|
5500
5507
|
}
|
|
5501
5508
|
|
|
5502
|
-
function arcStartAngle(d) {
|
|
5509
|
+
function arcStartAngle$1(d) {
|
|
5503
5510
|
return d.startAngle;
|
|
5504
5511
|
}
|
|
5505
5512
|
|
|
5506
|
-
function arcEndAngle(d) {
|
|
5513
|
+
function arcEndAngle$1(d) {
|
|
5507
5514
|
return d.endAngle;
|
|
5508
5515
|
}
|
|
5509
5516
|
|
|
5510
|
-
function arcPadAngle(d) {
|
|
5517
|
+
function arcPadAngle$1(d) {
|
|
5511
5518
|
return d && d.padAngle; // Note: optional!
|
|
5512
5519
|
}
|
|
5513
5520
|
|
|
5514
|
-
function asin(x) {
|
|
5515
|
-
return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
|
5521
|
+
function asin$1(x) {
|
|
5522
|
+
return x >= 1 ? halfPi$1 : x <= -1 ? -halfPi$1 : Math.asin(x);
|
|
5516
5523
|
}
|
|
5517
5524
|
|
|
5518
|
-
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
5525
|
+
function intersect$1(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
5519
5526
|
var x10 = x1 - x0, y10 = y1 - y0,
|
|
5520
5527
|
x32 = x3 - x2, y32 = y3 - y2,
|
|
5521
5528
|
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / (y32 * x10 - x32 * y10);
|
|
@@ -5524,7 +5531,7 @@ function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
|
5524
5531
|
|
|
5525
5532
|
// Compute perpendicular offset line of length rc.
|
|
5526
5533
|
// http://mathworld.wolfram.com/Circle-LineIntersection.html
|
|
5527
|
-
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
5534
|
+
function cornerTangents$1(x0, y0, x1, y1, r1, rc, cw) {
|
|
5528
5535
|
var x01 = x0 - x1,
|
|
5529
5536
|
y01 = y0 - y1,
|
|
5530
5537
|
lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),
|
|
@@ -5566,13 +5573,13 @@ function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
|
5566
5573
|
}
|
|
5567
5574
|
|
|
5568
5575
|
function arc() {
|
|
5569
|
-
var innerRadius = arcInnerRadius,
|
|
5570
|
-
outerRadius = arcOuterRadius,
|
|
5571
|
-
cornerRadius = constant(0),
|
|
5576
|
+
var innerRadius = arcInnerRadius$1,
|
|
5577
|
+
outerRadius = arcOuterRadius$1,
|
|
5578
|
+
cornerRadius = constant$3(0),
|
|
5572
5579
|
padRadius = null,
|
|
5573
|
-
startAngle = arcStartAngle,
|
|
5574
|
-
endAngle = arcEndAngle,
|
|
5575
|
-
padAngle = arcPadAngle,
|
|
5580
|
+
startAngle = arcStartAngle$1,
|
|
5581
|
+
endAngle = arcEndAngle$1,
|
|
5582
|
+
padAngle = arcPadAngle$1,
|
|
5576
5583
|
context = null;
|
|
5577
5584
|
|
|
5578
5585
|
function arc() {
|
|
@@ -5580,8 +5587,8 @@ function arc() {
|
|
|
5580
5587
|
r,
|
|
5581
5588
|
r0 = +innerRadius.apply(this, arguments),
|
|
5582
5589
|
r1 = +outerRadius.apply(this, arguments),
|
|
5583
|
-
a0 = startAngle.apply(this, arguments) - halfPi,
|
|
5584
|
-
a1 = endAngle.apply(this, arguments) - halfPi,
|
|
5590
|
+
a0 = startAngle.apply(this, arguments) - halfPi$1,
|
|
5591
|
+
a1 = endAngle.apply(this, arguments) - halfPi$1,
|
|
5585
5592
|
da = Math.abs(a1 - a0),
|
|
5586
5593
|
cw = a1 > a0;
|
|
5587
5594
|
|
|
@@ -5591,13 +5598,13 @@ function arc() {
|
|
|
5591
5598
|
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
|
5592
5599
|
|
|
5593
5600
|
// Is it a point?
|
|
5594
|
-
if (!(r1 > epsilon)) context.moveTo(0, 0);
|
|
5601
|
+
if (!(r1 > epsilon$3)) context.moveTo(0, 0);
|
|
5595
5602
|
|
|
5596
5603
|
// Or is it a circle or annulus?
|
|
5597
|
-
else if (da > tau - epsilon) {
|
|
5604
|
+
else if (da > tau$3 - epsilon$3) {
|
|
5598
5605
|
context.moveTo(r1 * Math.cos(a0), r1 * Math.sin(a0));
|
|
5599
5606
|
context.arc(0, 0, r1, a0, a1, !cw);
|
|
5600
|
-
if (r0 > epsilon) {
|
|
5607
|
+
if (r0 > epsilon$3) {
|
|
5601
5608
|
context.moveTo(r0 * Math.cos(a1), r0 * Math.sin(a1));
|
|
5602
5609
|
context.arc(0, 0, r0, a1, a0, cw);
|
|
5603
5610
|
}
|
|
@@ -5612,7 +5619,7 @@ function arc() {
|
|
|
5612
5619
|
da0 = da,
|
|
5613
5620
|
da1 = da,
|
|
5614
5621
|
ap = padAngle.apply(this, arguments) / 2,
|
|
5615
|
-
rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : Math.sqrt(r0 * r0 + r1 * r1)),
|
|
5622
|
+
rp = (ap > epsilon$3) && (padRadius ? +padRadius.apply(this, arguments) : Math.sqrt(r0 * r0 + r1 * r1)),
|
|
5616
5623
|
rc = Math.min(Math.abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
|
|
5617
5624
|
rc0 = rc,
|
|
5618
5625
|
rc1 = rc,
|
|
@@ -5620,12 +5627,12 @@ function arc() {
|
|
|
5620
5627
|
t1;
|
|
5621
5628
|
|
|
5622
5629
|
// Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
|
|
5623
|
-
if (rp > epsilon) {
|
|
5624
|
-
var p0 = asin(rp / r0 * Math.sin(ap)),
|
|
5625
|
-
p1 = asin(rp / r1 * Math.sin(ap));
|
|
5626
|
-
if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
|
|
5630
|
+
if (rp > epsilon$3) {
|
|
5631
|
+
var p0 = asin$1(rp / r0 * Math.sin(ap)),
|
|
5632
|
+
p1 = asin$1(rp / r1 * Math.sin(ap));
|
|
5633
|
+
if ((da0 -= p0 * 2) > epsilon$3) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
|
|
5627
5634
|
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
|
5628
|
-
if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
|
|
5635
|
+
if ((da1 -= p1 * 2) > epsilon$3) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
|
|
5629
5636
|
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
|
5630
5637
|
}
|
|
5631
5638
|
|
|
@@ -5635,15 +5642,15 @@ function arc() {
|
|
|
5635
5642
|
y10 = r0 * Math.sin(a10);
|
|
5636
5643
|
|
|
5637
5644
|
// Apply rounded corners?
|
|
5638
|
-
if (rc > epsilon) {
|
|
5645
|
+
if (rc > epsilon$3) {
|
|
5639
5646
|
var x11 = r1 * Math.cos(a11),
|
|
5640
5647
|
y11 = r1 * Math.sin(a11),
|
|
5641
5648
|
x00 = r0 * Math.cos(a00),
|
|
5642
5649
|
y00 = r0 * Math.sin(a00);
|
|
5643
5650
|
|
|
5644
5651
|
// Restrict the corner radius according to the sector angle.
|
|
5645
|
-
if (da < pi) {
|
|
5646
|
-
var oc = da0 > epsilon ? intersect(x01, y01, x00, y00, x11, y11, x10, y10) : [x10, y10],
|
|
5652
|
+
if (da < pi$3) {
|
|
5653
|
+
var oc = da0 > epsilon$3 ? intersect$1(x01, y01, x00, y00, x11, y11, x10, y10) : [x10, y10],
|
|
5647
5654
|
ax = x01 - oc[0],
|
|
5648
5655
|
ay = y01 - oc[1],
|
|
5649
5656
|
bx = x11 - oc[0],
|
|
@@ -5656,12 +5663,12 @@ function arc() {
|
|
|
5656
5663
|
}
|
|
5657
5664
|
|
|
5658
5665
|
// Is the sector collapsed to a line?
|
|
5659
|
-
if (!(da1 > epsilon)) context.moveTo(x01, y01);
|
|
5666
|
+
if (!(da1 > epsilon$3)) context.moveTo(x01, y01);
|
|
5660
5667
|
|
|
5661
5668
|
// Does the sector’s outer ring have rounded corners?
|
|
5662
|
-
else if (rc1 > epsilon) {
|
|
5663
|
-
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
|
|
5664
|
-
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
|
5669
|
+
else if (rc1 > epsilon$3) {
|
|
5670
|
+
t0 = cornerTangents$1(x00, y00, x01, y01, r1, rc1, cw);
|
|
5671
|
+
t1 = cornerTangents$1(x11, y11, x10, y10, r1, rc1, cw);
|
|
5665
5672
|
|
|
5666
5673
|
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
5667
5674
|
|
|
@@ -5681,12 +5688,12 @@ function arc() {
|
|
|
5681
5688
|
|
|
5682
5689
|
// Is there no inner ring, and it’s a circular sector?
|
|
5683
5690
|
// Or perhaps it’s an annular sector collapsed due to padding?
|
|
5684
|
-
if (!(r0 > epsilon) || !(da0 > epsilon)) context.lineTo(x10, y10);
|
|
5691
|
+
if (!(r0 > epsilon$3) || !(da0 > epsilon$3)) context.lineTo(x10, y10);
|
|
5685
5692
|
|
|
5686
5693
|
// Does the sector’s inner ring (or point) have rounded corners?
|
|
5687
|
-
else if (rc0 > epsilon) {
|
|
5688
|
-
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
|
5689
|
-
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
|
|
5694
|
+
else if (rc0 > epsilon$3) {
|
|
5695
|
+
t0 = cornerTangents$1(x10, y10, x11, y11, r0, -rc0, cw);
|
|
5696
|
+
t1 = cornerTangents$1(x01, y01, x00, y00, r0, -rc0, cw);
|
|
5690
5697
|
|
|
5691
5698
|
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
5692
5699
|
|
|
@@ -5712,36 +5719,36 @@ function arc() {
|
|
|
5712
5719
|
|
|
5713
5720
|
arc.centroid = function() {
|
|
5714
5721
|
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
|
|
5715
|
-
a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi / 2;
|
|
5722
|
+
a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi$3 / 2;
|
|
5716
5723
|
return [Math.cos(a) * r, Math.sin(a) * r];
|
|
5717
5724
|
};
|
|
5718
5725
|
|
|
5719
5726
|
arc.innerRadius = function(_) {
|
|
5720
|
-
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant(+_), arc) : innerRadius;
|
|
5727
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant$3(+_), arc) : innerRadius;
|
|
5721
5728
|
};
|
|
5722
5729
|
|
|
5723
5730
|
arc.outerRadius = function(_) {
|
|
5724
|
-
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant(+_), arc) : outerRadius;
|
|
5731
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant$3(+_), arc) : outerRadius;
|
|
5725
5732
|
};
|
|
5726
5733
|
|
|
5727
5734
|
arc.cornerRadius = function(_) {
|
|
5728
|
-
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant(+_), arc) : cornerRadius;
|
|
5735
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant$3(+_), arc) : cornerRadius;
|
|
5729
5736
|
};
|
|
5730
5737
|
|
|
5731
5738
|
arc.padRadius = function(_) {
|
|
5732
|
-
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant(+_), arc) : padRadius;
|
|
5739
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant$3(+_), arc) : padRadius;
|
|
5733
5740
|
};
|
|
5734
5741
|
|
|
5735
5742
|
arc.startAngle = function(_) {
|
|
5736
|
-
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant(+_), arc) : startAngle;
|
|
5743
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$3(+_), arc) : startAngle;
|
|
5737
5744
|
};
|
|
5738
5745
|
|
|
5739
5746
|
arc.endAngle = function(_) {
|
|
5740
|
-
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant(+_), arc) : endAngle;
|
|
5747
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$3(+_), arc) : endAngle;
|
|
5741
5748
|
};
|
|
5742
5749
|
|
|
5743
5750
|
arc.padAngle = function(_) {
|
|
5744
|
-
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant(+_), arc) : padAngle;
|
|
5751
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$3(+_), arc) : padAngle;
|
|
5745
5752
|
};
|
|
5746
5753
|
|
|
5747
5754
|
arc.context = function(_) {
|
|
@@ -5751,11 +5758,11 @@ function arc() {
|
|
|
5751
5758
|
return arc;
|
|
5752
5759
|
}
|
|
5753
5760
|
|
|
5754
|
-
function Linear(context) {
|
|
5761
|
+
function Linear$1(context) {
|
|
5755
5762
|
this._context = context;
|
|
5756
5763
|
}
|
|
5757
5764
|
|
|
5758
|
-
Linear.prototype = {
|
|
5765
|
+
Linear$1.prototype = {
|
|
5759
5766
|
areaStart: function() {
|
|
5760
5767
|
this._line = 0;
|
|
5761
5768
|
},
|
|
@@ -5780,21 +5787,21 @@ Linear.prototype = {
|
|
|
5780
5787
|
};
|
|
5781
5788
|
|
|
5782
5789
|
function curveLinear(context) {
|
|
5783
|
-
return new Linear(context);
|
|
5790
|
+
return new Linear$1(context);
|
|
5784
5791
|
}
|
|
5785
5792
|
|
|
5786
|
-
function x(p) {
|
|
5793
|
+
function x$1(p) {
|
|
5787
5794
|
return p[0];
|
|
5788
5795
|
}
|
|
5789
5796
|
|
|
5790
|
-
function y(p) {
|
|
5797
|
+
function y$1(p) {
|
|
5791
5798
|
return p[1];
|
|
5792
5799
|
}
|
|
5793
5800
|
|
|
5794
5801
|
function line() {
|
|
5795
|
-
var x
|
|
5796
|
-
y
|
|
5797
|
-
defined = constant(true),
|
|
5802
|
+
var x = x$1,
|
|
5803
|
+
y = y$1,
|
|
5804
|
+
defined = constant$3(true),
|
|
5798
5805
|
context = null,
|
|
5799
5806
|
curve = curveLinear,
|
|
5800
5807
|
output = null;
|
|
@@ -5813,22 +5820,22 @@ function line() {
|
|
|
5813
5820
|
if (defined0 = !defined0) output.lineStart();
|
|
5814
5821
|
else output.lineEnd();
|
|
5815
5822
|
}
|
|
5816
|
-
if (defined0) output.point(+x
|
|
5823
|
+
if (defined0) output.point(+x(d, i, data), +y(d, i, data));
|
|
5817
5824
|
}
|
|
5818
5825
|
|
|
5819
5826
|
if (buffer) return output = null, buffer + "" || null;
|
|
5820
5827
|
}
|
|
5821
5828
|
|
|
5822
5829
|
line.x = function(_) {
|
|
5823
|
-
return arguments.length ? (x
|
|
5830
|
+
return arguments.length ? (x = typeof _ === "function" ? _ : constant$3(+_), line) : x;
|
|
5824
5831
|
};
|
|
5825
5832
|
|
|
5826
5833
|
line.y = function(_) {
|
|
5827
|
-
return arguments.length ? (y
|
|
5834
|
+
return arguments.length ? (y = typeof _ === "function" ? _ : constant$3(+_), line) : y;
|
|
5828
5835
|
};
|
|
5829
5836
|
|
|
5830
5837
|
line.defined = function(_) {
|
|
5831
|
-
return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line) : defined;
|
|
5838
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant$3(!!_), line) : defined;
|
|
5832
5839
|
};
|
|
5833
5840
|
|
|
5834
5841
|
line.curve = function(_) {
|
|
@@ -5842,7 +5849,7 @@ function line() {
|
|
|
5842
5849
|
return line;
|
|
5843
5850
|
}
|
|
5844
5851
|
|
|
5845
|
-
function point$
|
|
5852
|
+
function point$4(that, x, y) {
|
|
5846
5853
|
that._context.bezierCurveTo(
|
|
5847
5854
|
that._x1 + that._k * (that._x2 - that._x0),
|
|
5848
5855
|
that._y1 + that._k * (that._y2 - that._y0),
|
|
@@ -5853,12 +5860,12 @@ function point$2(that, x, y) {
|
|
|
5853
5860
|
);
|
|
5854
5861
|
}
|
|
5855
5862
|
|
|
5856
|
-
function Cardinal(context, tension) {
|
|
5863
|
+
function Cardinal$1(context, tension) {
|
|
5857
5864
|
this._context = context;
|
|
5858
5865
|
this._k = (1 - tension) / 6;
|
|
5859
5866
|
}
|
|
5860
5867
|
|
|
5861
|
-
Cardinal.prototype = {
|
|
5868
|
+
Cardinal$1.prototype = {
|
|
5862
5869
|
areaStart: function() {
|
|
5863
5870
|
this._line = 0;
|
|
5864
5871
|
},
|
|
@@ -5873,7 +5880,7 @@ Cardinal.prototype = {
|
|
|
5873
5880
|
lineEnd: function() {
|
|
5874
5881
|
switch (this._point) {
|
|
5875
5882
|
case 2: this._context.lineTo(this._x2, this._y2); break;
|
|
5876
|
-
case 3: point$
|
|
5883
|
+
case 3: point$4(this, this._x1, this._y1); break;
|
|
5877
5884
|
}
|
|
5878
5885
|
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
5879
5886
|
this._line = 1 - this._line;
|
|
@@ -5884,27 +5891,27 @@ Cardinal.prototype = {
|
|
|
5884
5891
|
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
5885
5892
|
case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
|
|
5886
5893
|
case 2: this._point = 3; // proceed
|
|
5887
|
-
default: point$
|
|
5894
|
+
default: point$4(this, x, y); break;
|
|
5888
5895
|
}
|
|
5889
5896
|
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
5890
5897
|
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
5891
5898
|
}
|
|
5892
5899
|
};
|
|
5893
5900
|
|
|
5894
|
-
function point$
|
|
5901
|
+
function point$5(that, x, y) {
|
|
5895
5902
|
var x1 = that._x1,
|
|
5896
5903
|
y1 = that._y1,
|
|
5897
5904
|
x2 = that._x2,
|
|
5898
5905
|
y2 = that._y2;
|
|
5899
5906
|
|
|
5900
|
-
if (that._l01_a > epsilon) {
|
|
5907
|
+
if (that._l01_a > epsilon$3) {
|
|
5901
5908
|
var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
|
|
5902
5909
|
n = 3 * that._l01_a * (that._l01_a + that._l12_a);
|
|
5903
5910
|
x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
|
|
5904
5911
|
y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
|
|
5905
5912
|
}
|
|
5906
5913
|
|
|
5907
|
-
if (that._l23_a > epsilon) {
|
|
5914
|
+
if (that._l23_a > epsilon$3) {
|
|
5908
5915
|
var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
|
|
5909
5916
|
m = 3 * that._l23_a * (that._l23_a + that._l12_a);
|
|
5910
5917
|
x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
|
|
@@ -5914,12 +5921,12 @@ function point$1(that, x, y) {
|
|
|
5914
5921
|
that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
|
|
5915
5922
|
}
|
|
5916
5923
|
|
|
5917
|
-
function CatmullRom(context, alpha) {
|
|
5924
|
+
function CatmullRom$1(context, alpha) {
|
|
5918
5925
|
this._context = context;
|
|
5919
5926
|
this._alpha = alpha;
|
|
5920
5927
|
}
|
|
5921
5928
|
|
|
5922
|
-
CatmullRom.prototype = {
|
|
5929
|
+
CatmullRom$1.prototype = {
|
|
5923
5930
|
areaStart: function() {
|
|
5924
5931
|
this._line = 0;
|
|
5925
5932
|
},
|
|
@@ -5954,7 +5961,7 @@ CatmullRom.prototype = {
|
|
|
5954
5961
|
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
5955
5962
|
case 1: this._point = 2; break;
|
|
5956
5963
|
case 2: this._point = 3; // proceed
|
|
5957
|
-
default: point$
|
|
5964
|
+
default: point$5(this, x, y); break;
|
|
5958
5965
|
}
|
|
5959
5966
|
|
|
5960
5967
|
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
@@ -5967,7 +5974,7 @@ CatmullRom.prototype = {
|
|
|
5967
5974
|
var curveCatmullRom = (function custom(alpha) {
|
|
5968
5975
|
|
|
5969
5976
|
function catmullRom(context) {
|
|
5970
|
-
return alpha ? new CatmullRom(context, alpha) : new Cardinal(context, 0);
|
|
5977
|
+
return alpha ? new CatmullRom$1(context, alpha) : new Cardinal$1(context, 0);
|
|
5971
5978
|
}
|
|
5972
5979
|
|
|
5973
5980
|
catmullRom.alpha = function(alpha) {
|
|
@@ -5977,7 +5984,7 @@ var curveCatmullRom = (function custom(alpha) {
|
|
|
5977
5984
|
return catmullRom;
|
|
5978
5985
|
})(0.5);
|
|
5979
5986
|
|
|
5980
|
-
function sign(x) {
|
|
5987
|
+
function sign$1(x) {
|
|
5981
5988
|
return x < 0 ? -1 : 1;
|
|
5982
5989
|
}
|
|
5983
5990
|
|
|
@@ -5985,17 +5992,17 @@ function sign(x) {
|
|
|
5985
5992
|
// the following paper: Steffen, M. 1990. A Simple Method for Monotonic
|
|
5986
5993
|
// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
|
|
5987
5994
|
// NOV(II), P. 443, 1990.
|
|
5988
|
-
function slope3(that, x2, y2) {
|
|
5995
|
+
function slope3$1(that, x2, y2) {
|
|
5989
5996
|
var h0 = that._x1 - that._x0,
|
|
5990
5997
|
h1 = x2 - that._x1,
|
|
5991
5998
|
s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
|
|
5992
5999
|
s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
|
|
5993
6000
|
p = (s0 * h1 + s1 * h0) / (h0 + h1);
|
|
5994
|
-
return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
|
|
6001
|
+
return (sign$1(s0) + sign$1(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
|
|
5995
6002
|
}
|
|
5996
6003
|
|
|
5997
6004
|
// Calculate a one-sided slope.
|
|
5998
|
-
function slope2(that, t) {
|
|
6005
|
+
function slope2$1(that, t) {
|
|
5999
6006
|
var h = that._x1 - that._x0;
|
|
6000
6007
|
return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
|
|
6001
6008
|
}
|
|
@@ -6003,7 +6010,7 @@ function slope2(that, t) {
|
|
|
6003
6010
|
// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
|
|
6004
6011
|
// "you can express cubic Hermite interpolation in terms of cubic Bézier curves
|
|
6005
6012
|
// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
|
|
6006
|
-
function point(that, t0, t1) {
|
|
6013
|
+
function point$6(that, t0, t1) {
|
|
6007
6014
|
var x0 = that._x0,
|
|
6008
6015
|
y0 = that._y0,
|
|
6009
6016
|
x1 = that._x1,
|
|
@@ -6012,11 +6019,11 @@ function point(that, t0, t1) {
|
|
|
6012
6019
|
that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
|
|
6013
6020
|
}
|
|
6014
6021
|
|
|
6015
|
-
function MonotoneX(context) {
|
|
6022
|
+
function MonotoneX$1(context) {
|
|
6016
6023
|
this._context = context;
|
|
6017
6024
|
}
|
|
6018
6025
|
|
|
6019
|
-
MonotoneX.prototype = {
|
|
6026
|
+
MonotoneX$1.prototype = {
|
|
6020
6027
|
areaStart: function() {
|
|
6021
6028
|
this._line = 0;
|
|
6022
6029
|
},
|
|
@@ -6032,7 +6039,7 @@ MonotoneX.prototype = {
|
|
|
6032
6039
|
lineEnd: function() {
|
|
6033
6040
|
switch (this._point) {
|
|
6034
6041
|
case 2: this._context.lineTo(this._x1, this._y1); break;
|
|
6035
|
-
case 3: point(this, this._t0, slope2(this, this._t0)); break;
|
|
6042
|
+
case 3: point$6(this, this._t0, slope2$1(this, this._t0)); break;
|
|
6036
6043
|
}
|
|
6037
6044
|
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
6038
6045
|
this._line = 1 - this._line;
|
|
@@ -6045,8 +6052,8 @@ MonotoneX.prototype = {
|
|
|
6045
6052
|
switch (this._point) {
|
|
6046
6053
|
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
6047
6054
|
case 1: this._point = 2; break;
|
|
6048
|
-
case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
|
|
6049
|
-
default: point(this, this._t0, t1 = slope3(this, x, y)); break;
|
|
6055
|
+
case 2: this._point = 3; point$6(this, slope2$1(this, t1 = slope3$1(this, x, y)), t1); break;
|
|
6056
|
+
default: point$6(this, this._t0, t1 = slope3$1(this, x, y)); break;
|
|
6050
6057
|
}
|
|
6051
6058
|
|
|
6052
6059
|
this._x0 = this._x1, this._x1 = x;
|
|
@@ -6055,8 +6062,23 @@ MonotoneX.prototype = {
|
|
|
6055
6062
|
}
|
|
6056
6063
|
};
|
|
6057
6064
|
|
|
6058
|
-
|
|
6059
|
-
|
|
6065
|
+
function MonotoneY$1(context) {
|
|
6066
|
+
this._context = new ReflectContext$1(context);
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6069
|
+
(MonotoneY$1.prototype = Object.create(MonotoneX$1.prototype)).point = function(x, y) {
|
|
6070
|
+
MonotoneX$1.prototype.point.call(this, y, x);
|
|
6071
|
+
};
|
|
6072
|
+
|
|
6073
|
+
function ReflectContext$1(context) {
|
|
6074
|
+
this._context = context;
|
|
6075
|
+
}
|
|
6076
|
+
|
|
6077
|
+
ReflectContext$1.prototype = {
|
|
6078
|
+
moveTo: function(x, y) { this._context.moveTo(y, x); },
|
|
6079
|
+
closePath: function() { this._context.closePath(); },
|
|
6080
|
+
lineTo: function(x, y) { this._context.lineTo(y, x); },
|
|
6081
|
+
bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
|
|
6060
6082
|
};
|
|
6061
6083
|
|
|
6062
6084
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
@@ -7810,7 +7832,7 @@ var d3NoteText = function (_Type) {
|
|
|
7810
7832
|
return d3NoteText;
|
|
7811
7833
|
}(Type);
|
|
7812
7834
|
|
|
7813
|
-
customType(d3NoteText, {
|
|
7835
|
+
var d3Label = customType(d3NoteText, {
|
|
7814
7836
|
className: "label",
|
|
7815
7837
|
note: { align: "middle" }
|
|
7816
7838
|
});
|
|
@@ -7825,25 +7847,25 @@ var d3CalloutElbow = customType(d3Callout, {
|
|
|
7825
7847
|
connector: { type: "elbow" }
|
|
7826
7848
|
});
|
|
7827
7849
|
|
|
7828
|
-
customType(d3Callout, {
|
|
7850
|
+
var d3CalloutCurve = customType(d3Callout, {
|
|
7829
7851
|
className: "callout curve",
|
|
7830
7852
|
connector: { type: "curve" }
|
|
7831
7853
|
});
|
|
7832
7854
|
|
|
7833
|
-
customType(Type, {
|
|
7855
|
+
var d3Badge = customType(Type, {
|
|
7834
7856
|
className: "badge",
|
|
7835
7857
|
subject: { type: "badge" },
|
|
7836
7858
|
disable: ["connector", "note"]
|
|
7837
7859
|
});
|
|
7838
7860
|
|
|
7839
|
-
customType(d3NoteText, {
|
|
7861
|
+
var d3CalloutCircle = customType(d3NoteText, {
|
|
7840
7862
|
className: "callout circle",
|
|
7841
7863
|
subject: { type: "circle" },
|
|
7842
7864
|
note: { lineType: "horizontal" },
|
|
7843
7865
|
connector: { type: "elbow" }
|
|
7844
7866
|
});
|
|
7845
7867
|
|
|
7846
|
-
customType(d3NoteText, {
|
|
7868
|
+
var d3CalloutRect = customType(d3NoteText, {
|
|
7847
7869
|
className: "callout rect",
|
|
7848
7870
|
subject: { type: "rect" },
|
|
7849
7871
|
note: { lineType: "horizontal" },
|
|
@@ -7886,7 +7908,7 @@ var ThresholdMap = function (_d3Callout) {
|
|
|
7886
7908
|
return ThresholdMap;
|
|
7887
7909
|
}(d3Callout);
|
|
7888
7910
|
|
|
7889
|
-
customType(ThresholdMap, {
|
|
7911
|
+
var d3XYThreshold = customType(ThresholdMap, {
|
|
7890
7912
|
className: "callout xythreshold",
|
|
7891
7913
|
subject: { type: "threshold" }
|
|
7892
7914
|
});
|
|
@@ -8202,7 +8224,7 @@ function indicatorTranslate(angle, radius, inner) {
|
|
|
8202
8224
|
if (inner === void 0) { inner = false; }
|
|
8203
8225
|
var point = pointOnArc(angle, radius);
|
|
8204
8226
|
var rotation = angle * 180 / Math.PI + (inner === true ? 180 : 0);
|
|
8205
|
-
return "translate("
|
|
8227
|
+
return "translate(" + point.x + ", " + point.y + ") rotate(" + rotation + ")";
|
|
8206
8228
|
}
|
|
8207
8229
|
function indicatorTween(newAngle, radius, inner) {
|
|
8208
8230
|
if (inner === void 0) { inner = false; }
|
|
@@ -8303,7 +8325,7 @@ var Gauge = /** @class */ (function (_super) {
|
|
|
8303
8325
|
var size = this.calcSize(textElement, w, h);
|
|
8304
8326
|
var x2 = x + w / 2 - size.width / 2 * size.scale;
|
|
8305
8327
|
var y2 = y + h / 2 - size.height / 2 * size.scale;
|
|
8306
|
-
textElement.attr("transform", "translate("
|
|
8328
|
+
textElement.attr("transform", "translate(" + x2 + ", " + y2 + ") scale(" + size.scale + ")");
|
|
8307
8329
|
};
|
|
8308
8330
|
Gauge.prototype.calcWidth = function () {
|
|
8309
8331
|
return Math.min(this.width(), this.height(), this.maxDiameter());
|
|
@@ -8480,7 +8502,7 @@ Gauge.prototype.publish("colorDomain", [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.
|
|
|
8480
8502
|
Gauge.prototype.publish("emptyColor", "lightgrey", "html-color", "Color of the empty portion of the gauge");
|
|
8481
8503
|
Gauge.prototype.publish("tickColor", "black", "html-color", "Color of the tick");
|
|
8482
8504
|
|
|
8483
|
-
var css_248z$6 = ".chart_Pie
|
|
8505
|
+
var css_248z$6 = ".chart_Pie>g>text,.chart_Pie path{cursor:pointer}.chart_Pie .arc path{stroke:#fff;stroke-width:.75px}.chart_Pie .arc.selected path{stroke:red;stroke-width:1.5px}.chart_Pie polyline{opacity:.3;stroke:#000;stroke-width:2px;fill:none}";
|
|
8484
8506
|
styleInject(css_248z$6);
|
|
8485
8507
|
|
|
8486
8508
|
var Pie = /** @class */ (function (_super) {
|
|
@@ -8550,7 +8572,7 @@ var Pie = /** @class */ (function (_super) {
|
|
|
8550
8572
|
}
|
|
8551
8573
|
}
|
|
8552
8574
|
if (this.showSeriesValue()) {
|
|
8553
|
-
label += " : "
|
|
8575
|
+
label += " : " + this._seriesValueFormatter(d.data[1]);
|
|
8554
8576
|
}
|
|
8555
8577
|
if (this.showSeriesPercentage()) {
|
|
8556
8578
|
var sum = this._totalValue;
|
|
@@ -8559,7 +8581,7 @@ var Pie = /** @class */ (function (_super) {
|
|
|
8559
8581
|
sum = dm.sum;
|
|
8560
8582
|
}
|
|
8561
8583
|
var perc = (d.data[1] / sum) * 100;
|
|
8562
|
-
label += " : "
|
|
8584
|
+
label += " : " + this._seriesPercentageFormatter(perc) + "%";
|
|
8563
8585
|
}
|
|
8564
8586
|
return label;
|
|
8565
8587
|
};
|
|
@@ -8609,7 +8631,7 @@ var Pie = /** @class */ (function (_super) {
|
|
|
8609
8631
|
.padRadius(outerRadius)
|
|
8610
8632
|
.outerRadius(outerRadius);
|
|
8611
8633
|
this._quadIdxArr = [[], [], [], []];
|
|
8612
|
-
var data = __spreadArray([], this.data()
|
|
8634
|
+
var data = __spreadArray([], this.data()).sort(function (a, b) {
|
|
8613
8635
|
return a[1] - b[1] > 0 ? -1 : 1;
|
|
8614
8636
|
});
|
|
8615
8637
|
var arc = this._slices.selectAll(".arc").data(this.d3Pie(data), function (d) { return d.data[0]; });
|
|
@@ -8703,7 +8725,7 @@ var Pie = /** @class */ (function (_super) {
|
|
|
8703
8725
|
.attr("points", function (d, i) {
|
|
8704
8726
|
var pos = context.d3LabelArc.centroid(d);
|
|
8705
8727
|
var pos1 = context.d3Arc.centroid(d);
|
|
8706
|
-
var pos2 = __spreadArray([], pos
|
|
8728
|
+
var pos2 = __spreadArray([], pos);
|
|
8707
8729
|
pos[0] = labelRadius * (context.isLeftSide(midAngle(d)) ? 1 : -1);
|
|
8708
8730
|
pos[1] = context._labelPositions[i].top;
|
|
8709
8731
|
return [pos1, pos2, pos];
|
|
@@ -8892,7 +8914,7 @@ var Heat = /** @class */ (function (_super) {
|
|
|
8892
8914
|
Heat.prototype.layerEnter = function (host, element, duration) {
|
|
8893
8915
|
if (duration === void 0) { duration = 250; }
|
|
8894
8916
|
_super.prototype.layerEnter.call(this, host, element, duration);
|
|
8895
|
-
this._domForeignObject = this.svg.insert("foreignObject", "#"
|
|
8917
|
+
this._domForeignObject = this.svg.insert("foreignObject", "#" + (this.id() + "_clippath"));
|
|
8896
8918
|
this._domCanvas = this._domForeignObject.append("xhtml:body")
|
|
8897
8919
|
.style("margin", "0px")
|
|
8898
8920
|
.style("padding", "0px")
|
|
@@ -9186,8 +9208,8 @@ function d3HexBin() {
|
|
|
9186
9208
|
return hexbin.radius(1);
|
|
9187
9209
|
}
|
|
9188
9210
|
|
|
9189
|
-
var css_248z$
|
|
9190
|
-
styleInject(css_248z$
|
|
9211
|
+
var css_248z$7 = ".chart_HexBin .hexagon{fill:none;stroke:#000;stroke-width:.5px}.chart_HexBin .hexagon.selected{stroke:red}";
|
|
9212
|
+
styleInject(css_248z$7);
|
|
9191
9213
|
|
|
9192
9214
|
var HexBin = /** @class */ (function (_super) {
|
|
9193
9215
|
__extends(HexBin, _super);
|
|
@@ -9200,8 +9222,8 @@ var HexBin = /** @class */ (function (_super) {
|
|
|
9200
9222
|
var seriesExtent = extent(d, function (d) { return d.label; });
|
|
9201
9223
|
var labelExtent = extent(d, function (d) { return d.value; });
|
|
9202
9224
|
return _this.tooltipFormat({
|
|
9203
|
-
series: seriesExtent[0] === seriesExtent[1] ? seriesExtent[0] :
|
|
9204
|
-
label: labelExtent[0] === labelExtent[1] ? labelExtent[0] :
|
|
9225
|
+
series: seriesExtent[0] === seriesExtent[1] ? seriesExtent[0] : seriesExtent[0] + " -> " + seriesExtent[1],
|
|
9226
|
+
label: labelExtent[0] === labelExtent[1] ? labelExtent[0] : labelExtent[0] + " -> " + labelExtent[1],
|
|
9205
9227
|
value: d.length
|
|
9206
9228
|
});
|
|
9207
9229
|
});
|
|
@@ -9295,8 +9317,8 @@ HexBin.prototype.publish("paletteID", "Blues", "set", "Color palette for this wi
|
|
|
9295
9317
|
HexBin.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
|
|
9296
9318
|
HexBin.prototype.publish("binSize", 20, "number", "Bin radius", null, { range: { min: 1, max: 300, step: 1 } });
|
|
9297
9319
|
|
|
9298
|
-
var css_248z$
|
|
9299
|
-
styleInject(css_248z$
|
|
9320
|
+
var css_248z$8 = ".chart_Line .dataLine{fill:none;stroke:#4682b4;stroke-width:1.5px}";
|
|
9321
|
+
styleInject(css_248z$8);
|
|
9300
9322
|
|
|
9301
9323
|
var Line = /** @class */ (function (_super) {
|
|
9302
9324
|
__extends(Line, _super);
|
|
@@ -9433,7 +9455,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9433
9455
|
}
|
|
9434
9456
|
this._g
|
|
9435
9457
|
.style("shape-rendering", "crispEdges")
|
|
9436
|
-
.attr("transform", "translate("
|
|
9458
|
+
.attr("transform", "translate(" + transX + "," + transY + ")rotate(" + rotate + ")scale(" + s + ")");
|
|
9437
9459
|
this._leftLine
|
|
9438
9460
|
.attr("fill", lineColor)
|
|
9439
9461
|
.attr("height", candleWidth)
|
|
@@ -9488,7 +9510,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9488
9510
|
.attr("fill", this.textColor())
|
|
9489
9511
|
.attr("x", 0)
|
|
9490
9512
|
.attr("y", 0)
|
|
9491
|
-
.attr("transform", "translate("
|
|
9513
|
+
.attr("transform", "translate(" + q0x + ", " + (dataTop - padding) + ")rotate(" + upperTextRotation + ")scale(" + textScale + ")")
|
|
9492
9514
|
.attr("font-size", labelFontSize)
|
|
9493
9515
|
.attr("text-anchor", labelAnchor)
|
|
9494
9516
|
.attr("alignment-baseline", "hanging")
|
|
@@ -9500,7 +9522,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9500
9522
|
.attr("fill", this.textColor())
|
|
9501
9523
|
.attr("x", 0)
|
|
9502
9524
|
.attr("y", 0)
|
|
9503
|
-
.attr("transform", "translate("
|
|
9525
|
+
.attr("transform", "translate(" + q1x + ", " + (dataTop - padding) + ")rotate(" + upperTextRotation + ")scale(" + textScale + ")")
|
|
9504
9526
|
.attr("font-size", labelFontSize)
|
|
9505
9527
|
.attr("text-anchor", labelAnchor)
|
|
9506
9528
|
.attr("alignment-baseline", "middle")
|
|
@@ -9512,7 +9534,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9512
9534
|
.attr("fill", this.textColor())
|
|
9513
9535
|
.attr("x", 0)
|
|
9514
9536
|
.attr("y", 0)
|
|
9515
|
-
.attr("transform", "translate("
|
|
9537
|
+
.attr("transform", "translate(" + q2x + ", " + (dataTop - padding) + ")rotate(" + upperTextRotation + ")scale(" + textScale + ")")
|
|
9516
9538
|
.attr("font-size", labelFontSize)
|
|
9517
9539
|
.attr("text-anchor", labelAnchor)
|
|
9518
9540
|
.attr("alignment-baseline", "middle")
|
|
@@ -9524,7 +9546,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9524
9546
|
.attr("fill", this.textColor())
|
|
9525
9547
|
.attr("x", 0)
|
|
9526
9548
|
.attr("y", 0)
|
|
9527
|
-
.attr("transform", "translate("
|
|
9549
|
+
.attr("transform", "translate(" + q3x + ", " + (dataTop - padding) + ")rotate(" + upperTextRotation + ")scale(" + textScale + ")")
|
|
9528
9550
|
.attr("font-size", labelFontSize)
|
|
9529
9551
|
.attr("text-anchor", labelAnchor)
|
|
9530
9552
|
.attr("alignment-baseline", "middle")
|
|
@@ -9536,7 +9558,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9536
9558
|
.attr("fill", this.textColor())
|
|
9537
9559
|
.attr("x", 0)
|
|
9538
9560
|
.attr("y", 0)
|
|
9539
|
-
.attr("transform", "translate("
|
|
9561
|
+
.attr("transform", "translate(" + (q4x + lineWidth) + ", " + (dataTop - padding) + ")rotate(" + upperTextRotation + ")scale(" + textScale + ")")
|
|
9540
9562
|
.attr("font-size", labelFontSize)
|
|
9541
9563
|
.attr("text-anchor", labelAnchor)
|
|
9542
9564
|
.attr("alignment-baseline", "baseline")
|
|
@@ -9548,7 +9570,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9548
9570
|
.attr("fill", this.textColor())
|
|
9549
9571
|
.attr("x", 0)
|
|
9550
9572
|
.attr("y", 0)
|
|
9551
|
-
.attr("transform", "translate("
|
|
9573
|
+
.attr("transform", "translate(" + q0x + ", " + (dataBottom + padding) + ")rotate(" + lowerTextRotation + ")scale(" + textScale + ")")
|
|
9552
9574
|
.attr("font-size", valueFontSize)
|
|
9553
9575
|
.attr("text-anchor", valueAnchor)
|
|
9554
9576
|
.attr("alignment-baseline", "hanging")
|
|
@@ -9560,7 +9582,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9560
9582
|
.attr("fill", this.textColor())
|
|
9561
9583
|
.attr("x", 0)
|
|
9562
9584
|
.attr("y", 0)
|
|
9563
|
-
.attr("transform", "translate("
|
|
9585
|
+
.attr("transform", "translate(" + q1x + ", " + (dataBottom + padding) + ")rotate(" + lowerTextRotation + ")scale(" + textScale + ")")
|
|
9564
9586
|
.attr("font-size", valueFontSize)
|
|
9565
9587
|
.attr("text-anchor", valueAnchor)
|
|
9566
9588
|
.attr("alignment-baseline", "middle")
|
|
@@ -9572,7 +9594,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9572
9594
|
.attr("fill", this.textColor())
|
|
9573
9595
|
.attr("x", 0)
|
|
9574
9596
|
.attr("y", 0)
|
|
9575
|
-
.attr("transform", "translate("
|
|
9597
|
+
.attr("transform", "translate(" + q2x + ", " + (dataBottom + padding) + ")rotate(" + lowerTextRotation + ")scale(" + textScale + ")")
|
|
9576
9598
|
.attr("font-size", valueFontSize)
|
|
9577
9599
|
.attr("text-anchor", valueAnchor)
|
|
9578
9600
|
.attr("alignment-baseline", "middle")
|
|
@@ -9584,7 +9606,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9584
9606
|
.attr("fill", this.textColor())
|
|
9585
9607
|
.attr("x", 0)
|
|
9586
9608
|
.attr("y", 0)
|
|
9587
|
-
.attr("transform", "translate("
|
|
9609
|
+
.attr("transform", "translate(" + q3x + ", " + (dataBottom + padding) + ")rotate(" + lowerTextRotation + ")scale(" + textScale + ")")
|
|
9588
9610
|
.attr("font-size", valueFontSize)
|
|
9589
9611
|
.attr("text-anchor", valueAnchor)
|
|
9590
9612
|
.attr("alignment-baseline", "middle")
|
|
@@ -9596,7 +9618,7 @@ var QuartileCandlestick = /** @class */ (function (_super) {
|
|
|
9596
9618
|
.attr("fill", this.textColor())
|
|
9597
9619
|
.attr("x", 0)
|
|
9598
9620
|
.attr("y", 0)
|
|
9599
|
-
.attr("transform", "translate("
|
|
9621
|
+
.attr("transform", "translate(" + (q4x + lineWidth) + ", " + (dataBottom + padding) + ")rotate(" + lowerTextRotation + ")scale(" + textScale + ")")
|
|
9600
9622
|
.attr("font-size", valueFontSize)
|
|
9601
9623
|
.attr("text-anchor", valueAnchor)
|
|
9602
9624
|
.attr("alignment-baseline", "baseline")
|
|
@@ -9621,8 +9643,8 @@ QuartileCandlestick.prototype.publish("innerRectColor", "white", "html-color", "
|
|
|
9621
9643
|
QuartileCandlestick.prototype.publish("upperTextRotation", -60, "number", "Rotation of label text (degrees)");
|
|
9622
9644
|
QuartileCandlestick.prototype.publish("lowerTextRotation", -60, "number", "Rotation of value text (degrees)");
|
|
9623
9645
|
|
|
9624
|
-
var css_248z$
|
|
9625
|
-
styleInject(css_248z$
|
|
9646
|
+
var css_248z$9 = ".chart_Radar .area,.chart_Radar .pointShape{pointer-events:none}.chart_Radar .point .pointSelection{fill:none;stroke:none;pointer-events:all}.chart_Radar .point .pointSelection.selected{fill:none;stroke:red}";
|
|
9647
|
+
styleInject(css_248z$9);
|
|
9626
9648
|
|
|
9627
9649
|
var Radar = /** @class */ (function (_super) {
|
|
9628
9650
|
__extends(Radar, _super);
|
|
@@ -9705,7 +9727,7 @@ var Radar = /** @class */ (function (_super) {
|
|
|
9705
9727
|
var max_label_h = this.fontSize();
|
|
9706
9728
|
var max_label_w = 0;
|
|
9707
9729
|
flatData.filter(function (n) { return n.colIdx === 1; }).forEach(function (n) {
|
|
9708
|
-
var isize = _super.prototype.textSize.call(_this, n.label, ""
|
|
9730
|
+
var isize = _super.prototype.textSize.call(_this, n.label, "" + _this.fontFamily(), _this.fontSize());
|
|
9709
9731
|
if (max_label_w < isize.width)
|
|
9710
9732
|
max_label_w = isize.width;
|
|
9711
9733
|
});
|
|
@@ -9897,8 +9919,8 @@ Radar.prototype.publish("fontFamily", "", "string", "fontFamily");
|
|
|
9897
9919
|
Radar.prototype.publish("fontSize", 16, "number", "fontSize");
|
|
9898
9920
|
Radar.prototype.publish("labelPaddingRatio", 0.9, "number", "labelPaddingRatio");
|
|
9899
9921
|
|
|
9900
|
-
var css_248z$
|
|
9901
|
-
styleInject(css_248z$
|
|
9922
|
+
var css_248z$a = ".chart_RadialBar path.arc{opacity:.9;transition:opacity .5s}.chart_RadialBar path.arc.selected{stroke:red}.chart_RadialBar path.arc:hover{opacity:.7}.chart_RadialBar .axis circle,.chart_RadialBar .axis line{stroke:#ccc;stroke-width:1px}.chart_RadialBar .axis circle{fill:none}.chart_RadialBar .r.axis text{text-anchor:end}";
|
|
9923
|
+
styleInject(css_248z$a);
|
|
9902
9924
|
|
|
9903
9925
|
var RadialBar = /** @class */ (function (_super) {
|
|
9904
9926
|
__extends(RadialBar, _super);
|
|
@@ -9932,7 +9954,7 @@ var RadialBar = /** @class */ (function (_super) {
|
|
|
9932
9954
|
var _this = this;
|
|
9933
9955
|
_super.prototype.update.call(this, domNode, element);
|
|
9934
9956
|
var context = this;
|
|
9935
|
-
var maxValue = Math.max.apply(Math, __spreadArray([this.valueDomainHigh_exists() ? this.valueDomainHigh() : 0], this.data().map(function (d) { return d[1]; })
|
|
9957
|
+
var maxValue = Math.max.apply(Math, __spreadArray([this.valueDomainHigh_exists() ? this.valueDomainHigh() : 0], this.data().map(function (d) { return d[1]; })));
|
|
9936
9958
|
this._valueScale
|
|
9937
9959
|
.domain([0, maxValue])
|
|
9938
9960
|
.range([0, this.radians(this.valueMaxAngle())]);
|
|
@@ -10246,7 +10268,7 @@ StatChart.prototype.publish("tickFormat", ".2e", "string", "X-Axis Tick Format")
|
|
|
10246
10268
|
StatChart.prototype.publish("candleHeight", 20, "number", "Height of candle widget (pixels)");
|
|
10247
10269
|
StatChart.prototype.publish("domainPadding", 10, "number", "Domain value padding");
|
|
10248
10270
|
|
|
10249
|
-
var Step = /** @class */ (function (_super) {
|
|
10271
|
+
var Step$1 = /** @class */ (function (_super) {
|
|
10250
10272
|
__extends(Step, _super);
|
|
10251
10273
|
function Step() {
|
|
10252
10274
|
var _this = _super.call(this) || this;
|
|
@@ -10256,10 +10278,10 @@ var Step = /** @class */ (function (_super) {
|
|
|
10256
10278
|
}
|
|
10257
10279
|
return Step;
|
|
10258
10280
|
}(Scatter));
|
|
10259
|
-
Step.prototype._class += " chart_Step";
|
|
10281
|
+
Step$1.prototype._class += " chart_Step";
|
|
10260
10282
|
|
|
10261
|
-
var css_248z$
|
|
10262
|
-
styleInject(css_248z$
|
|
10283
|
+
var css_248z$b = ".chart_Summary{width:225px;height:150px;font-size:14px}.chart_Summary .content h2{font-weight:700;font-size:3em;margin-left:10px;margin-top:10px;margin-bottom:10px}.chart_Summary .bgIcon:before{position:absolute;font-family:FontAwesome;font-size:5.5em;opacity:.4;top:.5em;right:15px}.chart_Summary .bgIcon{position:relative}.chart_Summary .content{float:left;width:100%;height:100%;background-color:#efd752}.chart_Summary .content div{margin-top:-1.1em;font-size:1.1em;opacity:.8}.chart_Summary .content .text{padding-left:10px}.chart_Summary .content .more{position:absolute;bottom:0;width:100%;height:3em;line-height:3em}.chart_Summary .content .more i{padding-left:10px;padding-right:.5em}";
|
|
10284
|
+
styleInject(css_248z$b);
|
|
10263
10285
|
|
|
10264
10286
|
var TEXT = "text";
|
|
10265
10287
|
var HTML = "html";
|
|
@@ -10437,9 +10459,9 @@ Summary.prototype.publish("fixedSize", true, "boolean", "Fix Size to Min Width/H
|
|
|
10437
10459
|
Summary.prototype.publish("minWidth", 225, "number", "Minimum Width");
|
|
10438
10460
|
Summary.prototype.publish("minHeight", 150, "number", "Minimum Height");
|
|
10439
10461
|
Summary.prototype.publish("playInterval", null, "number", "Play Interval", null, { optional: true });
|
|
10440
|
-
var playInterval
|
|
10462
|
+
var playInterval = Summary.prototype.playInterval;
|
|
10441
10463
|
Summary.prototype.playInterval = function (_) {
|
|
10442
|
-
var retVal = playInterval
|
|
10464
|
+
var retVal = playInterval.apply(this, arguments);
|
|
10443
10465
|
if (arguments.length) {
|
|
10444
10466
|
if (this._playIntervalHandle) {
|
|
10445
10467
|
clearInterval(this._playIntervalHandle);
|
|
@@ -10511,13 +10533,13 @@ var SummaryC = /** @class */ (function (_super) {
|
|
|
10511
10533
|
drawText(label, mainFontSize + p, subFontSize, context.labelAnchor());
|
|
10512
10534
|
function drawText(text, y, fontSize, anchorMode) {
|
|
10513
10535
|
ctx.textBaseline = "top";
|
|
10514
|
-
ctx.font =
|
|
10536
|
+
ctx.font = fontSize + "px " + fontFamily;
|
|
10515
10537
|
ctx.fillStyle = fontColor;
|
|
10516
10538
|
var measurement = ctx.measureText(text);
|
|
10517
10539
|
if (measurement.width > (size.width - (p * 2))) {
|
|
10518
10540
|
var fontSizeMult = (size.width - (p * 2)) / measurement.width;
|
|
10519
10541
|
fontSize = fontSize * fontSizeMult;
|
|
10520
|
-
ctx.font =
|
|
10542
|
+
ctx.font = fontSize + "px " + fontFamily;
|
|
10521
10543
|
measurement = ctx.measureText(text);
|
|
10522
10544
|
}
|
|
10523
10545
|
var x = getTextOffsetX(measurement.width, anchorMode);
|
|
@@ -10528,12 +10550,12 @@ var SummaryC = /** @class */ (function (_super) {
|
|
|
10528
10550
|
if (typeof text === "undefined")
|
|
10529
10551
|
return;
|
|
10530
10552
|
ctx.textBaseline = context.iconBaseline();
|
|
10531
|
-
ctx.font =
|
|
10553
|
+
ctx.font = fontSize + "px FontAwesome";
|
|
10532
10554
|
ctx.fillStyle = fontColor;
|
|
10533
10555
|
var measurement = ctx.measureText(text);
|
|
10534
10556
|
if (measurement.width > (size.width - (p * 2))) {
|
|
10535
10557
|
var fontSizeMult = (size.width - (p * 2)) / measurement.width;
|
|
10536
|
-
ctx.font =
|
|
10558
|
+
ctx.font = fontSize * fontSizeMult + "px FontAwesome";
|
|
10537
10559
|
measurement = ctx.measureText(text);
|
|
10538
10560
|
}
|
|
10539
10561
|
var x = getTextOffsetX(measurement.width, anchorMode);
|
|
@@ -10588,9 +10610,9 @@ SummaryC.prototype.publish("labelOpacity", 0.9, "number", "Opacity of label text
|
|
|
10588
10610
|
SummaryC.prototype.publish("iconOpacity", 0.3, "number", "Opacity of icon text (0..1)");
|
|
10589
10611
|
SummaryC.prototype.publish("paddingSizeRatio", 0.1, "number", "Ratio of the smallest dimension for edge padding (0..1)");
|
|
10590
10612
|
SummaryC.prototype.publish("iconSizeRatio", 0.9, "number", "Ratio of the height for icon size (0..1)");
|
|
10591
|
-
var playInterval = SummaryC.prototype.playInterval;
|
|
10613
|
+
var playInterval$1 = SummaryC.prototype.playInterval;
|
|
10592
10614
|
SummaryC.prototype.playInterval = function (_) {
|
|
10593
|
-
var retVal = playInterval.apply(this, arguments);
|
|
10615
|
+
var retVal = playInterval$1.apply(this, arguments);
|
|
10594
10616
|
if (arguments.length) {
|
|
10595
10617
|
if (this._playIntervalHandle) {
|
|
10596
10618
|
clearInterval(this._playIntervalHandle);
|
|
@@ -10987,8 +11009,8 @@ var spirals = {
|
|
|
10987
11009
|
rectangular: rectangularSpiral
|
|
10988
11010
|
};
|
|
10989
11011
|
|
|
10990
|
-
var css_248z = ".other_Wordcloud text{cursor:pointer}";
|
|
10991
|
-
styleInject(css_248z);
|
|
11012
|
+
var css_248z$c = ".other_Wordcloud text{cursor:pointer}";
|
|
11013
|
+
styleInject(css_248z$c);
|
|
10992
11014
|
|
|
10993
11015
|
var WordCloud = /** @class */ (function (_super) {
|
|
10994
11016
|
__extends(WordCloud, _super);
|
|
@@ -11161,5 +11183,5 @@ WordCloud.prototype.publish("offsetX", 0, "number", "X offset", null, { tags: ["
|
|
|
11161
11183
|
WordCloud.prototype.publish("offsetY", 0, "number", "Y offset", null, { tags: ["Advanced"] });
|
|
11162
11184
|
WordCloud.prototype.publish("zoom", 1, "number", "Zoom", null, { tags: ["Advanced"] });
|
|
11163
11185
|
|
|
11164
|
-
export { Area, Axis, BUILD_VERSION, Bar, Bubble, BubbleXY, Bullet, Column, Contour, Gantt, Gauge, HalfPie, Heat, HexBin, Line, PKG_NAME, PKG_VERSION, Pie, QuarterPie, QuartileCandlestick, Radar, RadialBar, Scatter, StatChart, Step, Summary, SummaryC, WordCloud, XYAxis };
|
|
11186
|
+
export { Area, Axis, BUILD_VERSION, Bar, Bubble, BubbleXY, Bullet, Column, Contour, Gantt, Gauge, HalfPie, Heat, HexBin, Line, PKG_NAME, PKG_VERSION, Pie, QuarterPie, QuartileCandlestick, Radar, RadialBar, Scatter, StatChart, Step$1 as Step, Summary, SummaryC, WordCloud, XYAxis };
|
|
11165
11187
|
//# sourceMappingURL=index.es6.js.map
|