qesuite 1.0.6 → 1.0.7

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.d.mts CHANGED
@@ -221,6 +221,7 @@ declare function SixPack(data: number[], specification: QESpecification, title?:
221
221
  };
222
222
  declare function IndividualValuePlot(data: number[], title?: string, historicalMean?: number): HTMLCanvasElement;
223
223
  declare function MovingRangeChart(data: number[], title?: string, w?: number): HTMLCanvasElement;
224
+ declare function LastObservationsChart(data: number[], N: number, title?: string): HTMLCanvasElement;
224
225
  declare function CreateCapabilityHistogram(data: number[], specification: QESpecification): HTMLCanvasElement;
225
226
  /** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
226
227
  */
@@ -1120,4 +1121,4 @@ declare function GRR_Graphs(data: any, tolerance: number, name?: string): {
1120
1121
  declare function GRR_ByPartChart(data: GRR_Data): HTMLCanvasElement;
1121
1122
  declare function GRR_PartxOperatorChart(data: GRR_Data): HTMLCanvasElement;
1122
1123
 
1123
- export { AnovaTableTwoWay, AverageMovingRange, Beta, CanvasDrawSettings, Capability, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, Distributions, ERF, EngFont, FixedPointIteration, G1, G1_Graphs, GRR, GRR_ByPartChart, GRR_Data, GRR_Graphs, GRR_Operator, GRR_PartxOperatorChart, GRR_Replication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, Margin, MarkOutOfControl, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, Point, QEAxisSettings, QEChart, QEChartSettings, QECustomGridline, QEDataCollection, QEDataSet, QELine, QESpecification, QQPlot, QQPlotChart, Range, RoundTO, SerializeData, SixPack, StDev, Sum, UnbiasingConstant, VarianceComponents };
1124
+ export { AnovaTableTwoWay, AverageMovingRange, Beta, CanvasDrawSettings, Capability, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, Distributions, ERF, EngFont, FixedPointIteration, G1, G1_Graphs, GRR, GRR_ByPartChart, GRR_Data, GRR_Graphs, GRR_Operator, GRR_PartxOperatorChart, GRR_Replication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, LastObservationsChart, Margin, MarkOutOfControl, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, Point, QEAxisSettings, QEChart, QEChartSettings, QECustomGridline, QEDataCollection, QEDataSet, QELine, QESpecification, QQPlot, QQPlotChart, Range, RoundTO, SerializeData, SixPack, StDev, Sum, UnbiasingConstant, VarianceComponents };
package/dist/index.d.ts CHANGED
@@ -221,6 +221,7 @@ declare function SixPack(data: number[], specification: QESpecification, title?:
221
221
  };
222
222
  declare function IndividualValuePlot(data: number[], title?: string, historicalMean?: number): HTMLCanvasElement;
223
223
  declare function MovingRangeChart(data: number[], title?: string, w?: number): HTMLCanvasElement;
224
+ declare function LastObservationsChart(data: number[], N: number, title?: string): HTMLCanvasElement;
224
225
  declare function CreateCapabilityHistogram(data: number[], specification: QESpecification): HTMLCanvasElement;
225
226
  /** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
226
227
  */
@@ -1120,4 +1121,4 @@ declare function GRR_Graphs(data: any, tolerance: number, name?: string): {
1120
1121
  declare function GRR_ByPartChart(data: GRR_Data): HTMLCanvasElement;
1121
1122
  declare function GRR_PartxOperatorChart(data: GRR_Data): HTMLCanvasElement;
1122
1123
 
1123
- export { AnovaTableTwoWay, AverageMovingRange, Beta, CanvasDrawSettings, Capability, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, Distributions, ERF, EngFont, FixedPointIteration, G1, G1_Graphs, GRR, GRR_ByPartChart, GRR_Data, GRR_Graphs, GRR_Operator, GRR_PartxOperatorChart, GRR_Replication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, Margin, MarkOutOfControl, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, Point, QEAxisSettings, QEChart, QEChartSettings, QECustomGridline, QEDataCollection, QEDataSet, QELine, QESpecification, QQPlot, QQPlotChart, Range, RoundTO, SerializeData, SixPack, StDev, Sum, UnbiasingConstant, VarianceComponents };
1124
+ export { AnovaTableTwoWay, AverageMovingRange, Beta, CanvasDrawSettings, Capability, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, Distributions, ERF, EngFont, FixedPointIteration, G1, G1_Graphs, GRR, GRR_ByPartChart, GRR_Data, GRR_Graphs, GRR_Operator, GRR_PartxOperatorChart, GRR_Replication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, LastObservationsChart, Margin, MarkOutOfControl, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, Point, QEAxisSettings, QEChart, QEChartSettings, QECustomGridline, QEDataCollection, QEDataSet, QELine, QESpecification, QQPlot, QQPlotChart, Range, RoundTO, SerializeData, SixPack, StDev, Sum, UnbiasingConstant, VarianceComponents };
package/dist/index.js CHANGED
@@ -53,6 +53,7 @@ __export(QESuite_exports, {
53
53
  IndividualDistributionIdentification: () => IndividualDistributionIdentification,
54
54
  IndividualDistributionPlots: () => IndividualDistributionPlots,
55
55
  IndividualValuePlot: () => IndividualValuePlot,
56
+ LastObservationsChart: () => LastObservationsChart,
56
57
  Margin: () => Margin,
57
58
  MarkOutOfControl: () => MarkOutOfControl,
58
59
  Mean: () => Mean,
@@ -2806,6 +2807,10 @@ function CreateSummaryChart(charts, title) {
2806
2807
  if (!ctx) {
2807
2808
  return canvas;
2808
2809
  }
2810
+ ctx.beginPath();
2811
+ ctx.fillStyle = "white";
2812
+ ctx.fillRect(0, 0, width, height);
2813
+ ctx.closePath();
2809
2814
  let fontsize = 96;
2810
2815
  ctx.font = `${fontsize}px calibri`;
2811
2816
  ctx.textAlign = "center";
@@ -3638,6 +3643,7 @@ function GRR_PartxOperatorChart(data) {
3638
3643
  IndividualDistributionIdentification,
3639
3644
  IndividualDistributionPlots,
3640
3645
  IndividualValuePlot,
3646
+ LastObservationsChart,
3641
3647
  Margin,
3642
3648
  MarkOutOfControl,
3643
3649
  Mean,
package/dist/index.mjs CHANGED
@@ -2723,6 +2723,10 @@ function CreateSummaryChart(charts, title) {
2723
2723
  if (!ctx) {
2724
2724
  return canvas;
2725
2725
  }
2726
+ ctx.beginPath();
2727
+ ctx.fillStyle = "white";
2728
+ ctx.fillRect(0, 0, width, height);
2729
+ ctx.closePath();
2726
2730
  let fontsize = 96;
2727
2731
  ctx.font = `${fontsize}px calibri`;
2728
2732
  ctx.textAlign = "center";
@@ -3554,6 +3558,7 @@ export {
3554
3558
  IndividualDistributionIdentification,
3555
3559
  IndividualDistributionPlots,
3556
3560
  IndividualValuePlot,
3561
+ LastObservationsChart,
3557
3562
  Margin,
3558
3563
  MarkOutOfControl,
3559
3564
  Mean,
package/index.ts CHANGED
@@ -619,7 +619,6 @@ export function IndividualValuePlot(data: number[], title?: string, historicalMe
619
619
  MarkOutOfControl(dataset, UCL, LCL);
620
620
 
621
621
  return CreateScatterPlot([dataset], title, chartSettings);
622
-
623
622
  }
624
623
 
625
624
  export function MovingRangeChart(data: number[], title?: string, w: number = 2){
@@ -661,7 +660,7 @@ export function MovingRangeChart(data: number[], title?: string, w: number = 2){
661
660
  return CreateScatterPlot([dataset], title, chartSettings);
662
661
  }
663
662
 
664
- function LastObservationsChart(data: number[], N: number, title?: string){
663
+ export function LastObservationsChart(data: number[], N: number, title?: string){
665
664
 
666
665
  let last = data.slice(-N);
667
666
  let mean = Mean(last);
@@ -3096,6 +3095,12 @@ export function CreateSummaryChart(charts: HTMLCanvasElement[], title: string){
3096
3095
  let ctx = canvas.getContext('2d');
3097
3096
 
3098
3097
  if(!ctx){return canvas}
3098
+ // Draw white background
3099
+ ctx.beginPath();
3100
+ ctx.fillStyle = 'white';
3101
+ ctx.fillRect(0,0,width, height);
3102
+ ctx.closePath();
3103
+
3099
3104
  let fontsize = 96;
3100
3105
  ctx.font = `${fontsize}px calibri`;
3101
3106
  ctx.textAlign ='center';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qesuite",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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,3 @@
1
+ Added background to summary charts.
2
+
3
+ Added export to LastObservationsChart in Capability module.