mario-education 2.4.231-plp → 2.4.232-plp
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31805,12 +31805,6 @@ var wrapTextToWidth = function wrapTextToWidth(text, maxWidth) {
|
|
|
31805
31805
|
return wrappedLines;
|
|
31806
31806
|
};
|
|
31807
31807
|
|
|
31808
|
-
var convertKeyTranslate = function convertKeyTranslate(text) {
|
|
31809
|
-
var _text$toString;
|
|
31810
|
-
|
|
31811
|
-
return text === null || text === void 0 ? void 0 : (_text$toString = text.toString()) === null || _text$toString === void 0 ? void 0 : _text$toString.trim().toLowerCase().replace(/[ ’'-]/g, "_").replace(/\//g, "_").replaceAll("? ", "").replaceAll("’", "_").replace(/[?.,():]/g, "").replace("__", "_").replace("&", "and");
|
|
31812
|
-
};
|
|
31813
|
-
|
|
31814
31808
|
var CustomArcLabel = function CustomArcLabel(_ref) {
|
|
31815
31809
|
var datum = _ref.datum;
|
|
31816
31810
|
var arc = datum.arc,
|
|
@@ -31857,7 +31851,7 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
|
|
|
31857
31851
|
t = _useTranslation.t;
|
|
31858
31852
|
|
|
31859
31853
|
var labelNames = learningStrategies === null || learningStrategies === void 0 ? void 0 : learningStrategies.map(function (i) {
|
|
31860
|
-
return
|
|
31854
|
+
return i.learningStrategyName;
|
|
31861
31855
|
});
|
|
31862
31856
|
var usageCount = learningStrategies === null || learningStrategies === void 0 ? void 0 : learningStrategies.map(function (i) {
|
|
31863
31857
|
return i.usageCount;
|
|
@@ -31920,7 +31914,7 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
|
|
|
31920
31914
|
var yDirection = alpha < 0 ? 1 : -1;
|
|
31921
31915
|
var x = onOyAxis != 0 ? 0 : radius / Math.sqrt(1 + Math.pow(Math.tan(alpha), 2)) * xDirection;
|
|
31922
31916
|
var y = onOyAxis != 0 ? -onOyAxis * radius : Math.abs(Math.tan(alpha) * x) * yDirection;
|
|
31923
|
-
var labelLines = wrapTextToWidth(
|
|
31917
|
+
var labelLines = wrapTextToWidth(label, !isMobileScreen ? 120 : 100) || [];
|
|
31924
31918
|
return React__default.createElement("g", {
|
|
31925
31919
|
transform: "translate(" + x + "," + y + ")"
|
|
31926
31920
|
}, labelLines.map(function (line, index) {
|
|
@@ -48527,6 +48521,12 @@ var AreaChart$1 = function AreaChart(_ref) {
|
|
|
48527
48521
|
})));
|
|
48528
48522
|
};
|
|
48529
48523
|
|
|
48524
|
+
var convertKeyTranslate = function convertKeyTranslate(text) {
|
|
48525
|
+
var _text$toString;
|
|
48526
|
+
|
|
48527
|
+
return text === null || text === void 0 ? void 0 : (_text$toString = text.toString()) === null || _text$toString === void 0 ? void 0 : _text$toString.trim().toLowerCase().replace(/[ ’'-]/g, "_").replace(/\//g, "_").replaceAll("? ", "").replaceAll("’", "_").replace(/[?.,():]/g, "").replace("__", "_").replace("&", "and");
|
|
48528
|
+
};
|
|
48529
|
+
|
|
48530
48530
|
var RatingOfQuestions = function RatingOfQuestions(_ref) {
|
|
48531
48531
|
var avgQuestionRating = _ref.avgQuestionRating,
|
|
48532
48532
|
selectQuestion = _ref.selectQuestion,
|