@dpuse/dpuse-tool-d3 0.0.10 → 0.0.12
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/README.md +244 -208
- package/dist/axis-DbjL_93j.js +1621 -0
- package/dist/axis-DbjL_93j.js.map +1 -0
- package/dist/billboardJs-DHDJ97w1.js +7313 -0
- package/dist/billboardJs-DHDJ97w1.js.map +1 -0
- package/dist/bump-znhpCF6A.js +75 -0
- package/dist/bump-znhpCF6A.js.map +1 -0
- package/dist/dpuse-tool-d3.es.js +31 -18816
- package/dist/dpuse-tool-d3.es.js.map +1 -1
- package/dist/drag-B46QGUMq.js +173 -0
- package/dist/drag-B46QGUMq.js.map +1 -0
- package/dist/{erdDiagram-DNEvMuIA.js → erdDiagram-b-qDkEhY.js} +22 -20
- package/dist/erdDiagram-b-qDkEhY.js.map +1 -0
- package/dist/linear-J4iYa1Bf.js +34 -0
- package/dist/linear-J4iYa1Bf.js.map +1 -0
- package/dist/link-Dti9fi9g.js +33 -0
- package/dist/link-Dti9fi9g.js.map +1 -0
- package/dist/networkDiagram-QWVy8iRy.js +493 -0
- package/dist/networkDiagram-QWVy8iRy.js.map +1 -0
- package/dist/observablePlot-CNlbR_T4.js +7008 -0
- package/dist/observablePlot-CNlbR_T4.js.map +1 -0
- package/dist/path-Bt1sPr2f.js +65 -0
- package/dist/path-Bt1sPr2f.js.map +1 -0
- package/dist/sankeyDiagram-Dgf87Zt4.js +360 -0
- package/dist/sankeyDiagram-Dgf87Zt4.js.map +1 -0
- package/dist/{bump-S1d-3Q8P.js → select-BIuoFcZG.js} +161 -325
- package/dist/select-BIuoFcZG.js.map +1 -0
- package/dist/src-B7SGbtRQ.js +332 -0
- package/dist/src-B7SGbtRQ.js.map +1 -0
- package/dist/src-DnMaAyIP.js +1194 -0
- package/dist/src-DnMaAyIP.js.map +1 -0
- package/dist/sum-BAZU479z.js +36 -0
- package/dist/sum-BAZU479z.js.map +1 -0
- package/dist/treeDiagram-BJ_QF4os.js +277 -0
- package/dist/treeDiagram-BJ_QF4os.js.map +1 -0
- package/dist/types/src/{barChart.d.ts → billboardJs.d.ts} +2 -2
- package/dist/types/src/index.d.ts +9 -7
- package/dist/types/src/observablePlot.d.ts +8 -0
- package/package.json +1 -1
- package/dist/bump-S1d-3Q8P.js.map +0 -1
- package/dist/erdDiagram-DNEvMuIA.js.map +0 -1
- package/dist/types/src/plotBarChart.d.ts +0 -7
- /package/dist/types/tests/{barChart.test.d.ts → billboardJs.test.d.ts} +0 -0
- /package/dist/types/tests/{plotBarChart.test.d.ts → observablePlot.test.d.ts} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { t as e } from "./path-Bt1sPr2f.js";
|
|
2
|
+
//#region node_modules/d3-shape/src/constant.js
|
|
3
|
+
function t(e) {
|
|
4
|
+
return function() {
|
|
5
|
+
return e;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region node_modules/d3-shape/src/path.js
|
|
10
|
+
function n(t) {
|
|
11
|
+
let n = 3;
|
|
12
|
+
return t.digits = function(e) {
|
|
13
|
+
if (!arguments.length) return n;
|
|
14
|
+
if (e == null) n = null;
|
|
15
|
+
else {
|
|
16
|
+
let t = Math.floor(e);
|
|
17
|
+
if (!(t >= 0)) throw RangeError(`invalid digits: ${e}`);
|
|
18
|
+
n = t;
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
}, () => new e(n);
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region node_modules/d3-shape/src/array.js
|
|
25
|
+
var r = Array.prototype.slice;
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region node_modules/d3-shape/src/point.js
|
|
31
|
+
function a(e) {
|
|
32
|
+
return e[0];
|
|
33
|
+
}
|
|
34
|
+
function o(e) {
|
|
35
|
+
return e[1];
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region node_modules/d3-shape/src/curve/bump.js
|
|
39
|
+
var s = class {
|
|
40
|
+
constructor(e, t) {
|
|
41
|
+
this._context = e, this._x = t;
|
|
42
|
+
}
|
|
43
|
+
areaStart() {
|
|
44
|
+
this._line = 0;
|
|
45
|
+
}
|
|
46
|
+
areaEnd() {
|
|
47
|
+
this._line = NaN;
|
|
48
|
+
}
|
|
49
|
+
lineStart() {
|
|
50
|
+
this._point = 0;
|
|
51
|
+
}
|
|
52
|
+
lineEnd() {
|
|
53
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
54
|
+
}
|
|
55
|
+
point(e, t) {
|
|
56
|
+
switch (e = +e, t = +t, this._point) {
|
|
57
|
+
case 0:
|
|
58
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
59
|
+
break;
|
|
60
|
+
case 1: this._point = 2;
|
|
61
|
+
default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
|
|
62
|
+
}
|
|
63
|
+
this._x0 = e, this._y0 = t;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function c(e) {
|
|
67
|
+
return new s(e, !0);
|
|
68
|
+
}
|
|
69
|
+
function l(e) {
|
|
70
|
+
return new s(e, !1);
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { i as a, t as c, o as i, l as n, r as o, a as r, n as s, c as t };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=bump-znhpCF6A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bump-znhpCF6A.js","names":[],"sources":["../node_modules/d3-shape/src/constant.js","../node_modules/d3-shape/src/path.js","../node_modules/d3-shape/src/array.js","../node_modules/d3-shape/src/point.js","../node_modules/d3-shape/src/curve/bump.js"],"sourcesContent":["export default function(x) {\n return function constant() {\n return x;\n };\n}\n","import {Path} from \"d3-path\";\n\nexport function withPath(shape) {\n let digits = 3;\n\n shape.digits = function(_) {\n if (!arguments.length) return digits;\n if (_ == null) {\n digits = null;\n } else {\n const d = Math.floor(_);\n if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);\n digits = d;\n }\n return shape;\n };\n\n return () => new Path(digits);\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n","export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","import pointRadial from \"../pointRadial.js\";\n\nclass Bump {\n constructor(context, x) {\n this._context = context;\n this._x = x;\n }\n areaStart() {\n this._line = 0;\n }\n areaEnd() {\n this._line = NaN;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n }\n point(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: {\n this._point = 1;\n if (this._line) this._context.lineTo(x, y);\n else this._context.moveTo(x, y);\n break;\n }\n case 1: this._point = 2; // falls through\n default: {\n if (this._x) this._context.bezierCurveTo(this._x0 = (this._x0 + x) / 2, this._y0, this._x0, y, x, y);\n else this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + y) / 2, x, this._y0, x, y);\n break;\n }\n }\n this._x0 = x, this._y0 = y;\n }\n}\n\nclass BumpRadial {\n constructor(context) {\n this._context = context;\n }\n lineStart() {\n this._point = 0;\n }\n lineEnd() {}\n point(x, y) {\n x = +x, y = +y;\n if (this._point === 0) {\n this._point = 1;\n } else {\n const p0 = pointRadial(this._x0, this._y0);\n const p1 = pointRadial(this._x0, this._y0 = (this._y0 + y) / 2);\n const p2 = pointRadial(x, this._y0);\n const p3 = pointRadial(x, y);\n this._context.moveTo(...p0);\n this._context.bezierCurveTo(...p1, ...p2, ...p3);\n }\n this._x0 = x, this._y0 = y;\n }\n}\n\nexport function bumpX(context) {\n return new Bump(context, true);\n}\n\nexport function bumpY(context) {\n return new Bump(context, false);\n}\n\nexport function bumpRadial(context) {\n return new BumpRadial(context);\n}\n"],"x_google_ignoreList":[0,1,2,3,4],"mappings":";;AAAA,SAAA,EAAwB,GAAG;CACzB,OAAO,WAAoB;EACzB,OAAO;CACT;AACF;;;ACFA,SAAgB,EAAS,GAAO;CAC9B,IAAI,IAAS;CAcb,OAZA,EAAM,SAAS,SAAS,GAAG;EACzB,IAAI,CAAC,UAAU,QAAQ,OAAO;EAC9B,IAAI,KAAK,MACP,IAAS;OACJ;GACL,IAAM,IAAI,KAAK,MAAM,CAAC;GACtB,IAAI,EAAE,KAAK,IAAI,MAAU,WAAW,mBAAmB,GAAG;GAC1D,IAAS;EACX;EACA,OAAO;CACT,SAEa,IAAI,EAAK,CAAM;AAC9B;;;AClBA,IAAW,IAAQ,MAAM,UAAU;AAEnC,SAAA,EAAwB,GAAG;CACzB,OAAO,OAAO,KAAM,YAAY,YAAY,IACxC,IACA,MAAM,KAAK,CAAC;AAClB;;;ACNA,SAAgB,EAAE,GAAG;CACnB,OAAO,EAAE;AACX;AAEA,SAAgB,EAAE,GAAG;CACnB,OAAO,EAAE;AACX;;;ACJA,IAAM,IAAN,MAAW;CACT,YAAY,GAAS,GAAG;EAEtB,AADA,KAAK,WAAW,GAChB,KAAK,KAAK;CACZ;CACA,YAAY;EACV,KAAK,QAAQ;CACf;CACA,UAAU;EACR,KAAK,QAAQ;CACf;CACA,YAAY;EACV,KAAK,SAAS;CAChB;CACA,UAAU;EAER,CADI,KAAK,SAAU,KAAK,UAAU,KAAK,KAAK,WAAW,MAAI,KAAK,SAAS,UAAU,GACnF,KAAK,QAAQ,IAAI,KAAK;CACxB;CACA,MAAM,GAAG,GAAG;EAEV,QADA,IAAI,CAAC,GAAG,IAAI,CAAC,GACL,KAAK,QAAb;GACE,KAAK;IAEH,AADA,KAAK,SAAS,GACV,KAAK,QAAO,KAAK,SAAS,OAAO,GAAG,CAAC,IACpC,KAAK,SAAS,OAAO,GAAG,CAAC;IAC9B;GAEF,KAAK,GAAG,KAAK,SAAS;GACtB,SACE,AAAI,KAAK,KAAI,KAAK,SAAS,cAAc,KAAK,OAAO,KAAK,MAAM,KAAK,GAAG,KAAK,KAAK,KAAK,KAAK,GAAG,GAAG,CAAC,IAC9F,KAAK,SAAS,cAAc,KAAK,KAAK,KAAK,OAAO,KAAK,MAAM,KAAK,GAAG,GAAG,KAAK,KAAK,GAAG,CAAC;EAG/F;EACA,KAAK,MAAM,GAAG,KAAK,MAAM;CAC3B;AACF;AA0BA,SAAgB,EAAM,GAAS;CAC7B,OAAO,IAAI,EAAK,GAAS,EAAI;AAC/B;AAEA,SAAgB,EAAM,GAAS;CAC7B,OAAO,IAAI,EAAK,GAAS,EAAK;AAChC"}
|