mario-education 2.4.181-level → 2.4.183-level

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.
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { IStudentPressureChart } from "../configs/types";
3
- declare const StudentPressureChart: ({ studentPressure, width }: IStudentPressureChart) => JSX.Element;
3
+ declare const StudentPressureChart: ({ studentPressure, width, print }: IStudentPressureChart) => JSX.Element;
4
4
  export default StudentPressureChart;
@@ -31,6 +31,7 @@ export interface IStudentPressure {
31
31
  export interface IStudentPressureChart {
32
32
  studentPressure: IStudentPressure;
33
33
  width?: number;
34
+ print?: boolean;
34
35
  }
35
36
  export interface IStudentPressure {
36
37
  boreOutStudent: string[];
package/dist/index.js CHANGED
@@ -31175,7 +31175,8 @@ var backgroundPressureMobile = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjg3Ii
31175
31175
 
31176
31176
  var StudentPressureChart = function StudentPressureChart(_ref) {
31177
31177
  var studentPressure = _ref.studentPressure,
31178
- width = _ref.width;
31178
+ width = _ref.width,
31179
+ print = _ref.print;
31179
31180
  var svgRef = React.useRef(null);
31180
31181
  var innerWidth = window.innerWidth < 576 ? window.innerWidth - 20 : window.innerWidth - 340;
31181
31182
 
@@ -31400,7 +31401,10 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
31400
31401
  return handleEnterInfoIcon(infoX, infoY + 4, tooltip, label);
31401
31402
  });
31402
31403
  infoIconContainer.addEventListener("mouseleave", handleLeaveInfoIcon);
31403
- svg.appendChild(infoIconContainer);
31404
+
31405
+ if (!print) {
31406
+ svg.appendChild(infoIconContainer);
31407
+ }
31404
31408
  };
31405
31409
 
31406
31410
  for (var i = 1; i <= data.length; i++) {
@@ -32371,11 +32375,12 @@ var DashboardToPDF = function DashboardToPDF(props) {
32371
32375
  })), React__default.createElement("div", {
32372
32376
  id: "student_stress_by_zone",
32373
32377
  style: {
32374
- width: "1280px"
32378
+ width: "175%"
32375
32379
  }
32376
32380
  }, React__default.createElement(StudentPressureChart, {
32377
32381
  studentPressure: studentPressure,
32378
- width: 1280
32382
+ width: 1280,
32383
+ print: true
32379
32384
  })), React__default.createElement("div", {
32380
32385
  id: "learning_progress"
32381
32386
  }, React__default.createElement(GenerateChartData, {
@@ -32636,7 +32641,7 @@ var Dashboard = function Dashboard() {
32636
32641
  className: "" + styles$1["header-desc-modal"]
32637
32642
  }, t("the_data_is_taken_from_the_home_screen"), "."), React__default.createElement("p", {
32638
32643
  className: "" + styles$1["header-desc-modal"]
32639
- }, t("make_sure_everything_is_set_correctly_before_exporting"), ".")), React__default.createElement(reactstrap.ModalBody, null, chartNames === null || chartNames === void 0 ? void 0 : chartNames.map(function (item) {
32644
+ }, t("make_sure_everything_is_set_correctly_before_exporting"))), React__default.createElement(reactstrap.ModalBody, null, chartNames === null || chartNames === void 0 ? void 0 : chartNames.map(function (item) {
32640
32645
  return React__default.createElement(reactstrap.FormGroup, {
32641
32646
  check: true,
32642
32647
  className: "" + styles$1["form-checkbox"]