qesuite 1.0.19 → 1.0.20

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 CHANGED
@@ -2357,7 +2357,7 @@ function AddAxisGridlines(ctx, chartSettings, axis) {
2357
2357
  if (((_n = chartSettings.axis.y.labels) == null ? void 0 : _n.length) === void 0) {
2358
2358
  chartSettings.axis.y.labels = [];
2359
2359
  }
2360
- ctx.fillText(chartSettings.axis.y.labels[i] ? chartSettings.axis.y.labels[i] : RoundTO(unadjustedValue, 3), xL - 20, y);
2360
+ ctx.fillText(chartSettings.axis.y.labels[i] ? chartSettings.axis.y.labels[i] : Number(RoundTO(unadjustedValue, 3)) ? RoundTO(unadjustedValue, 3) : "", xL - 20, y);
2361
2361
  ctx.stroke();
2362
2362
  ctx.closePath();
2363
2363
  }
@@ -3513,6 +3513,7 @@ function GageEvaluation(VarianceComponents2, tolerance) {
3513
3513
  }
3514
3514
  function GRR(data, tolerance) {
3515
3515
  let ANOVA = AnovaTableTwoWay(data, true);
3516
+ console.log(ANOVA.Interaction);
3516
3517
  if (ANOVA.Interaction) {
3517
3518
  if (ANOVA.Interaction.P >= 0.05) {
3518
3519
  ANOVA = AnovaTableTwoWay(data, false);
package/dist/index.mjs CHANGED
@@ -2270,7 +2270,7 @@ function AddAxisGridlines(ctx, chartSettings, axis) {
2270
2270
  if (((_n = chartSettings.axis.y.labels) == null ? void 0 : _n.length) === void 0) {
2271
2271
  chartSettings.axis.y.labels = [];
2272
2272
  }
2273
- ctx.fillText(chartSettings.axis.y.labels[i] ? chartSettings.axis.y.labels[i] : RoundTO(unadjustedValue, 3), xL - 20, y);
2273
+ ctx.fillText(chartSettings.axis.y.labels[i] ? chartSettings.axis.y.labels[i] : Number(RoundTO(unadjustedValue, 3)) ? RoundTO(unadjustedValue, 3) : "", xL - 20, y);
2274
2274
  ctx.stroke();
2275
2275
  ctx.closePath();
2276
2276
  }
@@ -3426,6 +3426,7 @@ function GageEvaluation(VarianceComponents2, tolerance) {
3426
3426
  }
3427
3427
  function GRR(data, tolerance) {
3428
3428
  let ANOVA = AnovaTableTwoWay(data, true);
3429
+ console.log(ANOVA.Interaction);
3429
3430
  if (ANOVA.Interaction) {
3430
3431
  if (ANOVA.Interaction.P >= 0.05) {
3431
3432
  ANOVA = AnovaTableTwoWay(data, false);
package/index.ts CHANGED
@@ -2631,7 +2631,7 @@ function AddAxisGridlines(ctx: any, chartSettings: ChartSettings, axis: string)
2631
2631
  if(chartSettings.axis.y.labels?.length === undefined){
2632
2632
  chartSettings.axis.y.labels = []
2633
2633
  }
2634
- ctx.fillText(chartSettings.axis.y.labels[i] ? chartSettings.axis.y.labels[i] : RoundTO(unadjustedValue, 3), xL - 20, y);
2634
+ ctx.fillText(chartSettings.axis.y.labels[i] ? chartSettings.axis.y.labels[i] : (Number(RoundTO(unadjustedValue, 3)) ? RoundTO(unadjustedValue, 3) : ""), xL - 20, y);
2635
2635
  ctx.stroke();
2636
2636
  ctx.closePath();
2637
2637
  }
@@ -4096,7 +4096,7 @@ export function GageEvaluation(VarianceComponents: any, tolerance: any){
4096
4096
  */
4097
4097
  export function GRR(data: any, tolerance: number){
4098
4098
  let ANOVA = AnovaTableTwoWay(data, true);
4099
-
4099
+ console.log(ANOVA.Interaction)
4100
4100
  if(ANOVA.Interaction){
4101
4101
  if(ANOVA.Interaction.P >= 0.05){
4102
4102
  ANOVA = AnovaTableTwoWay(data, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qesuite",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Performs advanced statistical analysis of data. Specifically designed for engineering statistical analysis",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -0,0 +1 @@
1
+ Added type checking for undefined y-axis gridline label