@pie-lib/charting 6.1.0-next.4 → 6.1.1-next.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/NEXT.CHANGELOG.json +16 -1
- package/lib/actions-button.js +150 -0
- package/lib/actions-button.js.map +1 -0
- package/lib/axes.js +609 -0
- package/lib/axes.js.map +1 -0
- package/lib/bars/bar.js +60 -0
- package/lib/bars/bar.js.map +1 -0
- package/lib/bars/common/bars.js +290 -0
- package/lib/bars/common/bars.js.map +1 -0
- package/lib/bars/common/correct-check-icon.js +55 -0
- package/lib/bars/common/correct-check-icon.js.map +1 -0
- package/lib/bars/histogram.js +61 -0
- package/lib/bars/histogram.js.map +1 -0
- package/lib/chart-setup.js +401 -0
- package/lib/chart-setup.js.map +1 -0
- package/lib/chart-type.js +81 -0
- package/lib/chart-type.js.map +1 -0
- package/lib/chart-types.js +23 -0
- package/lib/chart-types.js.map +1 -0
- package/lib/chart.js +400 -0
- package/lib/chart.js.map +1 -0
- package/lib/common/correctness-indicators.js +160 -0
- package/lib/common/correctness-indicators.js.map +1 -0
- package/lib/common/drag-handle.js +161 -0
- package/lib/common/drag-handle.js.map +1 -0
- package/lib/common/drag-icon.js +54 -0
- package/lib/common/drag-icon.js.map +1 -0
- package/lib/common/styles.js +23 -0
- package/lib/common/styles.js.map +1 -0
- package/lib/grid.js +105 -0
- package/lib/grid.js.map +1 -0
- package/lib/index.js +43 -0
- package/lib/index.js.map +1 -0
- package/lib/key-legend.js +88 -0
- package/lib/key-legend.js.map +1 -0
- package/lib/line/common/drag-handle.js +148 -0
- package/lib/line/common/drag-handle.js.map +1 -0
- package/lib/line/common/line.js +231 -0
- package/lib/line/common/line.js.map +1 -0
- package/lib/line/line-cross.js +230 -0
- package/lib/line/line-cross.js.map +1 -0
- package/lib/line/line-dot.js +160 -0
- package/lib/line/line-dot.js.map +1 -0
- package/lib/mark-label.js +257 -0
- package/lib/mark-label.js.map +1 -0
- package/lib/plot/common/plot.js +361 -0
- package/lib/plot/common/plot.js.map +1 -0
- package/lib/plot/dot.js +113 -0
- package/lib/plot/dot.js.map +1 -0
- package/lib/plot/line.js +143 -0
- package/lib/plot/line.js.map +1 -0
- package/lib/tool-menu.js +117 -0
- package/lib/tool-menu.js.map +1 -0
- package/lib/utils.js +201 -0
- package/lib/utils.js.map +1 -0
- package/package.json +12 -12
package/lib/utils.js
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.array.for-each.js");
|
|
6
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
7
|
+
require("core-js/modules/es.object.define-property.js");
|
|
8
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
9
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
10
|
+
require("core-js/modules/es.object.keys.js");
|
|
11
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
12
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
13
|
+
Object.defineProperty(exports, "__esModule", {
|
|
14
|
+
value: true
|
|
15
|
+
});
|
|
16
|
+
exports.tickCount = exports.point = exports.getTopPadding = exports.getTickValues = exports.getScale = exports.getRotateAngle = exports.getGridLinesAndAxisByChartType = exports.getDomainAndRangeByChartType = exports.getAdjustedX = exports.dataToXBand = exports.bounds = exports.bandKey = void 0;
|
|
17
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
|
+
require("core-js/modules/es.array.concat.js");
|
|
19
|
+
require("core-js/modules/es.array.map.js");
|
|
20
|
+
require("core-js/modules/es.object.to-string.js");
|
|
21
|
+
var _scale = require("@visx/scale");
|
|
22
|
+
var _plot = require("@pie-lib/plot");
|
|
23
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
+
var tickCount = exports.tickCount = _plot.utils.tickCount;
|
|
26
|
+
var bounds = exports.bounds = _plot.utils.bounds;
|
|
27
|
+
var point = exports.point = _plot.utils.point;
|
|
28
|
+
var bandKey = exports.bandKey = function bandKey(d, index) {
|
|
29
|
+
return "".concat(index, "-").concat(d.label || '-');
|
|
30
|
+
};
|
|
31
|
+
var dataToXBand = exports.dataToXBand = function dataToXBand(scaleX, data, width, type) {
|
|
32
|
+
var chartWidth = width || 400; // fallback
|
|
33
|
+
var domain = data && data.length ? data.map(bandKey) : ['default'];
|
|
34
|
+
switch (type) {
|
|
35
|
+
case 'bar':
|
|
36
|
+
case 'dotPlot':
|
|
37
|
+
case 'linePlot':
|
|
38
|
+
return (0, _scale.scaleBand)({
|
|
39
|
+
range: [0, chartWidth],
|
|
40
|
+
domain: domain,
|
|
41
|
+
padding: 0.2
|
|
42
|
+
});
|
|
43
|
+
case 'histogram':
|
|
44
|
+
return (0, _scale.scaleBand)({
|
|
45
|
+
range: [0, chartWidth],
|
|
46
|
+
domain: domain,
|
|
47
|
+
padding: 0
|
|
48
|
+
});
|
|
49
|
+
case 'lineCross':
|
|
50
|
+
case 'lineDot':
|
|
51
|
+
return (0, _scale.scalePoint)({
|
|
52
|
+
domain: domain,
|
|
53
|
+
range: [0, chartWidth]
|
|
54
|
+
});
|
|
55
|
+
default:
|
|
56
|
+
return (0, _scale.scaleBand)({
|
|
57
|
+
range: [0, chartWidth],
|
|
58
|
+
domain: domain,
|
|
59
|
+
padding: 0
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var getTickValues = exports.getTickValues = function getTickValues() {
|
|
64
|
+
var prop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
65
|
+
var tickValues = [];
|
|
66
|
+
var tickVal = prop.min;
|
|
67
|
+
while (tickVal <= prop.max) {
|
|
68
|
+
tickValues.push(tickVal);
|
|
69
|
+
tickVal = Math.round((tickVal + prop.step) * 10000) / 10000;
|
|
70
|
+
}
|
|
71
|
+
return tickValues;
|
|
72
|
+
};
|
|
73
|
+
var getDomainAndRangeByChartType = exports.getDomainAndRangeByChartType = function getDomainAndRangeByChartType(domain, range, chartType) {
|
|
74
|
+
var _ref = range || {},
|
|
75
|
+
step = _ref.step,
|
|
76
|
+
labelStep = _ref.labelStep,
|
|
77
|
+
min = _ref.min,
|
|
78
|
+
max = _ref.max;
|
|
79
|
+
if (!min) {
|
|
80
|
+
min = 0;
|
|
81
|
+
}
|
|
82
|
+
if (!max || max < 0) {
|
|
83
|
+
max = range.min + 1;
|
|
84
|
+
}
|
|
85
|
+
if (!step) {
|
|
86
|
+
step = labelStep || 1;
|
|
87
|
+
}
|
|
88
|
+
if (!labelStep || isNaN(labelStep) && step) {
|
|
89
|
+
labelStep = step || 1;
|
|
90
|
+
}
|
|
91
|
+
range.max = max;
|
|
92
|
+
switch (chartType) {
|
|
93
|
+
// if chart is dot plot or line plot, we should ignore step and make sure that min & max are integer values
|
|
94
|
+
case 'dotPlot':
|
|
95
|
+
case 'linePlot':
|
|
96
|
+
{
|
|
97
|
+
var intMin = Math.round(min);
|
|
98
|
+
var intMax = Math.round(max);
|
|
99
|
+
return {
|
|
100
|
+
domain: _objectSpread(_objectSpread({}, domain), {}, {
|
|
101
|
+
step: 1,
|
|
102
|
+
labelStep: 1,
|
|
103
|
+
min: 0,
|
|
104
|
+
max: 1
|
|
105
|
+
}),
|
|
106
|
+
range: _objectSpread(_objectSpread({}, range), {}, {
|
|
107
|
+
min: intMin,
|
|
108
|
+
max: intMin === intMax ? intMin + 1 : intMax,
|
|
109
|
+
labelStep: labelStep,
|
|
110
|
+
step: 1
|
|
111
|
+
})
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
default:
|
|
115
|
+
return {
|
|
116
|
+
domain: _objectSpread(_objectSpread({}, domain), {}, {
|
|
117
|
+
step: 1,
|
|
118
|
+
labelStep: 1,
|
|
119
|
+
min: 0,
|
|
120
|
+
max: 1
|
|
121
|
+
}),
|
|
122
|
+
range: _objectSpread(_objectSpread({}, range), {}, {
|
|
123
|
+
labelStep: labelStep,
|
|
124
|
+
step: step
|
|
125
|
+
})
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
var getGridLinesAndAxisByChartType = exports.getGridLinesAndAxisByChartType = function getGridLinesAndAxisByChartType(range, chartType) {
|
|
130
|
+
switch (chartType) {
|
|
131
|
+
case 'lineDot':
|
|
132
|
+
case 'lineCross':
|
|
133
|
+
return {
|
|
134
|
+
verticalLines: undefined,
|
|
135
|
+
horizontalLines: getTickValues(range),
|
|
136
|
+
leftAxis: true
|
|
137
|
+
};
|
|
138
|
+
case 'dotPlot':
|
|
139
|
+
case 'linePlot':
|
|
140
|
+
return {
|
|
141
|
+
verticalLines: [],
|
|
142
|
+
horizontalLines: [],
|
|
143
|
+
leftAxis: false
|
|
144
|
+
};
|
|
145
|
+
default:
|
|
146
|
+
return {
|
|
147
|
+
verticalLines: [],
|
|
148
|
+
horizontalLines: getTickValues(range),
|
|
149
|
+
leftAxis: true
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
var getRotateAngle = exports.getRotateAngle = function getRotateAngle(fontSize, height) {
|
|
154
|
+
if (height >= fontSize * 2) {
|
|
155
|
+
return 25;
|
|
156
|
+
}
|
|
157
|
+
return 0;
|
|
158
|
+
};
|
|
159
|
+
var getTopPadding = exports.getTopPadding = function getTopPadding(barWidth) {
|
|
160
|
+
if (barWidth < 30) {
|
|
161
|
+
return 50;
|
|
162
|
+
}
|
|
163
|
+
if (barWidth < 40) {
|
|
164
|
+
return 30;
|
|
165
|
+
}
|
|
166
|
+
if (barWidth < 60) {
|
|
167
|
+
return 15;
|
|
168
|
+
}
|
|
169
|
+
return 0;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
// This function calculates the transformation scale for SVG and the icon's vertical distance from its category
|
|
173
|
+
var getScale = exports.getScale = function getScale(width) {
|
|
174
|
+
var scale, deltay;
|
|
175
|
+
if (width > 91) {
|
|
176
|
+
scale = 1.3;
|
|
177
|
+
deltay = -55;
|
|
178
|
+
} else if (width > 45) {
|
|
179
|
+
scale = 1.1;
|
|
180
|
+
deltay = -45;
|
|
181
|
+
} else if (width > 40) {
|
|
182
|
+
scale = 0.5 + (width - 34) * 0.02;
|
|
183
|
+
deltay = -25;
|
|
184
|
+
} else if (width > 30) {
|
|
185
|
+
scale = 0.5 + (width - 34) * 0.02;
|
|
186
|
+
deltay = -20;
|
|
187
|
+
} else {
|
|
188
|
+
scale = 0.5 * Math.pow(0.98, 34 - width); // 0.98 is the reduction factor. Adjust to control scaling.
|
|
189
|
+
deltay = -15;
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
scale: scale,
|
|
193
|
+
deltay: deltay
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
var getAdjustedX = exports.getAdjustedX = function getAdjustedX(width, scaleValue) {
|
|
197
|
+
var innerWidthOriginal = 57;
|
|
198
|
+
var effectiveInnerWidth = innerWidthOriginal * scaleValue;
|
|
199
|
+
return (width - effectiveInnerWidth) / 2;
|
|
200
|
+
};
|
|
201
|
+
//# sourceMappingURL=utils.js.map
|
package/lib/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_scale","require","_plot","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","tickCount","exports","utils","bounds","point","bandKey","d","index","concat","label","dataToXBand","scaleX","data","width","type","chartWidth","domain","map","scaleBand","range","padding","scalePoint","getTickValues","prop","undefined","tickValues","tickVal","min","max","Math","round","step","getDomainAndRangeByChartType","chartType","_ref","labelStep","isNaN","intMin","intMax","getGridLinesAndAxisByChartType","verticalLines","horizontalLines","leftAxis","getRotateAngle","fontSize","height","getTopPadding","barWidth","getScale","scale","deltay","pow","getAdjustedX","scaleValue","innerWidthOriginal","effectiveInnerWidth"],"sources":["../src/utils.js"],"sourcesContent":["import { scaleBand, scalePoint } from '@visx/scale';\nimport { utils } from '@pie-lib/plot';\n\nexport const tickCount = utils.tickCount;\nexport const bounds = utils.bounds;\nexport const point = utils.point;\n\nexport const bandKey = (d, index) => `${index}-${d.label || '-'}`;\n\nexport const dataToXBand = (scaleX, data, width, type) => {\n const chartWidth = width || 400; // fallback\n const domain = data && data.length ? data.map(bandKey) : ['default'];\n\n switch (type) {\n case 'bar':\n case 'dotPlot':\n case 'linePlot':\n return scaleBand({\n range: [0, chartWidth],\n domain,\n padding: 0.2,\n });\n\n case 'histogram':\n return scaleBand({\n range: [0, chartWidth],\n domain,\n padding: 0,\n });\n\n case 'lineCross':\n case 'lineDot':\n return scalePoint({\n domain,\n range: [0, chartWidth],\n });\n\n default:\n return scaleBand({\n range: [0, chartWidth],\n domain,\n padding: 0,\n });\n }\n};\n\n\nexport const getTickValues = (prop = {}) => {\n const tickValues = [];\n let tickVal = prop.min;\n\n while (tickVal <= prop.max) {\n tickValues.push(tickVal);\n tickVal = Math.round((tickVal + prop.step) * 10000) / 10000;\n }\n\n return tickValues;\n};\n\nexport const getDomainAndRangeByChartType = (domain, range, chartType) => {\n let { step, labelStep, min, max } = range || {};\n\n if (!min) {\n min = 0;\n }\n\n if (!max || max < 0) {\n max = range.min + 1;\n }\n\n if (!step) {\n step = labelStep || 1;\n }\n if (!labelStep || (isNaN(labelStep) && step)) {\n labelStep = step || 1;\n }\n\n range.max = max;\n\n switch (chartType) {\n // if chart is dot plot or line plot, we should ignore step and make sure that min & max are integer values\n case 'dotPlot':\n case 'linePlot': {\n const intMin = Math.round(min);\n const intMax = Math.round(max);\n\n return {\n domain: {\n ...domain,\n step: 1,\n labelStep: 1,\n min: 0,\n max: 1,\n },\n range: {\n ...range,\n min: intMin,\n max: intMin === intMax ? intMin + 1 : intMax,\n labelStep,\n step: 1,\n },\n };\n }\n\n default:\n return {\n domain: {\n ...domain,\n step: 1,\n labelStep: 1,\n min: 0,\n max: 1,\n },\n range: {\n ...range,\n labelStep,\n step,\n },\n };\n }\n};\n\nexport const getGridLinesAndAxisByChartType = (range, chartType) => {\n switch (chartType) {\n case 'lineDot':\n case 'lineCross':\n return {\n verticalLines: undefined,\n horizontalLines: getTickValues(range),\n leftAxis: true,\n };\n\n case 'dotPlot':\n case 'linePlot':\n return {\n verticalLines: [],\n horizontalLines: [],\n leftAxis: false,\n };\n\n default:\n return {\n verticalLines: [],\n horizontalLines: getTickValues(range),\n leftAxis: true,\n };\n }\n};\n\nexport const getRotateAngle = (fontSize, height) => {\n if (height >= fontSize * 2) {\n return 25;\n }\n\n return 0;\n};\n\nexport const getTopPadding = (barWidth) => {\n if (barWidth < 30) {\n return 50;\n }\n\n if (barWidth < 40) {\n return 30;\n }\n\n if (barWidth < 60) {\n return 15;\n }\n\n return 0;\n};\n\n// This function calculates the transformation scale for SVG and the icon's vertical distance from its category\nexport const getScale = (width) => {\n let scale, deltay;\n\n if (width > 91) {\n scale = 1.3;\n deltay = -55;\n } else if (width > 45) {\n scale = 1.1;\n deltay = -45;\n } else if (width > 40) {\n scale = 0.5 + (width - 34) * 0.02;\n deltay = -25;\n } else if (width > 30) {\n scale = 0.5 + (width - 34) * 0.02;\n deltay = -20;\n } else {\n scale = 0.5 * Math.pow(0.98, 34 - width); // 0.98 is the reduction factor. Adjust to control scaling.\n deltay = -15;\n }\n\n return { scale, deltay };\n};\n\nexport const getAdjustedX = (width, scaleValue) => {\n const innerWidthOriginal = 57;\n const effectiveInnerWidth = innerWidthOriginal * scaleValue;\n return (width - effectiveInnerWidth) / 2;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAsC,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAA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AAG,EAAE,EAAE;IACrBoC,KAAK,GAAG,GAAG;IACXC,MAAM,GAAG,CAAC,EAAE;EACd,CAAC,MAAM,IAAIrC,KAAK,GAAG,EAAE,EAAE;IACrBoC,KAAK,GAAG,GAAG,GAAG,CAACpC,KAAK,GAAG,EAAE,IAAI,IAAI;IACjCqC,MAAM,GAAG,CAAC,EAAE;EACd,CAAC,MAAM,IAAIrC,KAAK,GAAG,EAAE,EAAE;IACrBoC,KAAK,GAAG,GAAG,GAAG,CAACpC,KAAK,GAAG,EAAE,IAAI,IAAI;IACjCqC,MAAM,GAAG,CAAC,EAAE;EACd,CAAC,MAAM;IACLD,KAAK,GAAG,GAAG,GAAGpB,IAAI,CAACsB,GAAG,CAAC,IAAI,EAAE,EAAE,GAAGtC,KAAK,CAAC,CAAC,CAAC;IAC1CqC,MAAM,GAAG,CAAC,EAAE;EACd;EAEA,OAAO;IAAED,KAAK,EAALA,KAAK;IAAEC,MAAM,EAANA;EAAO,CAAC;AAC1B,CAAC;AAEM,IAAME,YAAY,GAAAnD,OAAA,CAAAmD,YAAA,GAAG,SAAfA,YAAYA,CAAIvC,KAAK,EAAEwC,UAAU,EAAK;EACjD,IAAMC,kBAAkB,GAAG,EAAE;EAC7B,IAAMC,mBAAmB,GAAGD,kBAAkB,GAAGD,UAAU;EAC3D,OAAO,CAACxC,KAAK,GAAG0C,mBAAmB,IAAI,CAAC;AAC1C,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "6.1.
|
|
6
|
+
"version": "6.1.1-next.0",
|
|
7
7
|
"description": "charting",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@emotion/react": "^11.14.0",
|
|
21
21
|
"@emotion/style": "^0.8.0",
|
|
22
|
-
"@mapbox/point-geometry": "^
|
|
22
|
+
"@mapbox/point-geometry": "^1.1.0",
|
|
23
23
|
"@mui/icons-material": "^7.3.4",
|
|
24
24
|
"@mui/material": "^7.3.4",
|
|
25
|
-
"@pie-lib/math-rendering": "4.1.
|
|
26
|
-
"@pie-lib/plot": "3.1.
|
|
27
|
-
"@pie-lib/render-ui": "5.1.
|
|
28
|
-
"@pie-lib/translator": "3.1.
|
|
25
|
+
"@pie-lib/math-rendering": "^4.1.1-next.0",
|
|
26
|
+
"@pie-lib/plot": "^3.1.1-next.0",
|
|
27
|
+
"@pie-lib/render-ui": "^5.1.1-next.0",
|
|
28
|
+
"@pie-lib/translator": "^3.1.1-next.0",
|
|
29
29
|
"@visx/axis": "^3.0.0",
|
|
30
30
|
"@visx/event": "^3.0.0",
|
|
31
31
|
"@visx/grid": "^3.0.0",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"@visx/scale": "^3.0.0",
|
|
35
35
|
"@visx/shape": "^3.0.0",
|
|
36
36
|
"classnames": "^2.2.6",
|
|
37
|
-
"d3-scale": "^
|
|
38
|
-
"d3-selection": "^
|
|
37
|
+
"d3-scale": "^4.0.2",
|
|
38
|
+
"d3-selection": "^3.0.0",
|
|
39
39
|
"debug": "^4.1.1",
|
|
40
40
|
"invariant": "^2.2.4",
|
|
41
|
-
"lodash": "^4.17.
|
|
41
|
+
"lodash": "^4.17.23",
|
|
42
42
|
"react": "^18.2.0",
|
|
43
|
-
"react-draggable": "^3.
|
|
43
|
+
"react-draggable": "^3.3.0",
|
|
44
44
|
"react-input-autosize": "^2.2.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "^18.2.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@pie-lib/test-utils": "1.1.
|
|
50
|
+
"@pie-lib/test-utils": "^1.1.1-next.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "7bb08145106e65c83a8f4a51902cf669d1be19ac"
|
|
53
53
|
}
|