@wafertools/wafermap 0.40.0 → 0.41.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/AGENTS.md +20 -21
- package/CHANGELOG.md +154 -0
- package/README.md +6 -6
- package/dist/packages/canvas-adapter/canvasTheme.d.ts +12 -0
- package/dist/packages/canvas-adapter/canvasTheme.js +1 -1
- package/dist/packages/canvas-adapter/cellShade.d.ts +2 -2
- package/dist/packages/canvas-adapter/cellShade.js +1 -1
- package/dist/packages/canvas-adapter/chartPopulation.d.ts +3 -0
- package/dist/packages/canvas-adapter/chartPopulation.js +1 -1
- package/dist/packages/canvas-adapter/charts/capability.d.ts +3 -0
- package/dist/packages/canvas-adapter/charts/capability.js +1 -1
- package/dist/packages/canvas-adapter/charts/cardAbout.d.ts +2 -1
- package/dist/packages/canvas-adapter/charts/cardAbout.js +1 -1
- package/dist/packages/canvas-adapter/charts/chartShell.d.ts +47 -27
- package/dist/packages/canvas-adapter/charts/chartShell.js +1 -1
- package/dist/packages/canvas-adapter/charts/commonality.js +4 -4
- package/dist/packages/canvas-adapter/charts/correlation.d.ts +6 -12
- package/dist/packages/canvas-adapter/charts/correlation.js +1 -1
- package/dist/packages/canvas-adapter/charts/divergingScale.d.ts +45 -15
- package/dist/packages/canvas-adapter/charts/divergingScale.js +1 -1
- package/dist/packages/canvas-adapter/charts/groupComparison.js +1 -1
- package/dist/packages/canvas-adapter/charts/palette.d.ts +16 -30
- package/dist/packages/canvas-adapter/charts/palette.js +1 -1
- package/dist/packages/canvas-adapter/charts/patCard.js +1 -1
- package/dist/packages/canvas-adapter/charts/plotChart.d.ts +29 -3
- package/dist/packages/canvas-adapter/charts/plotChart.js +1 -1
- package/dist/packages/canvas-adapter/charts/regionYieldDiagram.d.ts +3 -0
- package/dist/packages/canvas-adapter/charts/regionYieldDiagram.js +1 -1
- package/dist/packages/canvas-adapter/charts/sweep.d.ts +3 -0
- package/dist/packages/canvas-adapter/charts/sweep.js +1 -1
- package/dist/packages/canvas-adapter/chromeRow.d.ts +68 -0
- package/dist/packages/canvas-adapter/chromeRow.js +1 -0
- package/dist/packages/canvas-adapter/chunked.d.ts +6 -0
- package/dist/packages/canvas-adapter/chunked.js +1 -1
- package/dist/packages/canvas-adapter/columnFilterPopup.d.ts +25 -0
- package/dist/packages/canvas-adapter/columnFilterPopup.js +1 -0
- package/dist/packages/canvas-adapter/composePng.d.ts +37 -0
- package/dist/packages/canvas-adapter/composePng.js +1 -0
- package/dist/packages/canvas-adapter/dataTab.d.ts +39 -6
- package/dist/packages/canvas-adapter/dataTab.js +1 -1
- package/dist/packages/canvas-adapter/dieList.js +1 -1
- package/dist/packages/canvas-adapter/differenceMapPanel.d.ts +3 -1
- package/dist/packages/canvas-adapter/differenceMapPanel.js +1 -1
- package/dist/packages/canvas-adapter/drilldown.d.ts +20 -1
- package/dist/packages/canvas-adapter/drilldown.js +1 -1
- package/dist/packages/canvas-adapter/filterButton.d.ts +2 -0
- package/dist/packages/canvas-adapter/filterButton.js +1 -1
- package/dist/packages/canvas-adapter/filterEditor.d.ts +5 -0
- package/dist/packages/canvas-adapter/filterEditor.js +1 -1
- package/dist/packages/canvas-adapter/guideWindow.js +1 -1
- package/dist/packages/canvas-adapter/icons.js +1 -1
- package/dist/packages/canvas-adapter/identityHeader.d.ts +5 -0
- package/dist/packages/canvas-adapter/identityHeader.js +1 -1
- package/dist/packages/canvas-adapter/index.d.ts +7 -0
- package/dist/packages/canvas-adapter/index.js +1 -1
- package/dist/packages/canvas-adapter/insightsTab.d.ts +32 -9
- package/dist/packages/canvas-adapter/insightsTab.js +1 -1
- package/dist/packages/canvas-adapter/maplessSummary.d.ts +4 -2
- package/dist/packages/canvas-adapter/maplessSummary.js +1 -1
- package/dist/packages/canvas-adapter/openWaferMode.d.ts +7 -0
- package/dist/packages/canvas-adapter/openWaferMode.js +1 -0
- package/dist/packages/canvas-adapter/panelChart.d.ts +7 -0
- package/dist/packages/canvas-adapter/panelChart.js +1 -0
- package/dist/packages/canvas-adapter/panelTable.d.ts +50 -0
- package/dist/packages/canvas-adapter/panelTable.js +1 -0
- package/dist/packages/canvas-adapter/plotCard.js +1 -1
- package/dist/packages/canvas-adapter/plotEditor.d.ts +12 -0
- package/dist/packages/canvas-adapter/plotEditor.js +10 -10
- package/dist/packages/canvas-adapter/plotItems.d.ts +9 -4
- package/dist/packages/canvas-adapter/plotItems.js +1 -1
- package/dist/packages/canvas-adapter/plotJsonComplete.js +1 -1
- package/dist/packages/canvas-adapter/plotModal.d.ts +7 -0
- package/dist/packages/canvas-adapter/plotModal.js +1 -1
- package/dist/packages/canvas-adapter/plotStore.js +1 -1
- package/dist/packages/canvas-adapter/plotTab.d.ts +60 -2
- package/dist/packages/canvas-adapter/plotTab.js +1 -1
- package/dist/packages/canvas-adapter/renderWaferGallery.d.ts +7 -0
- package/dist/packages/canvas-adapter/renderWaferGallery.js +1 -1
- package/dist/packages/canvas-adapter/renderWaferMap.d.ts +41 -9
- package/dist/packages/canvas-adapter/renderWaferMap.js +1 -1
- package/dist/packages/canvas-adapter/reportCharts.d.ts +41 -0
- package/dist/packages/canvas-adapter/reportCharts.js +1 -0
- package/dist/packages/canvas-adapter/reportExport.d.ts +91 -0
- package/dist/packages/canvas-adapter/reportExport.js +1 -0
- package/dist/packages/canvas-adapter/reportFigures.d.ts +29 -0
- package/dist/packages/canvas-adapter/reportFigures.js +1 -0
- package/dist/packages/canvas-adapter/reportRun.d.ts +9 -0
- package/dist/packages/canvas-adapter/reportRun.js +1 -0
- package/dist/packages/canvas-adapter/selectionOverlay.d.ts +12 -0
- package/dist/packages/canvas-adapter/selectionOverlay.js +1 -0
- package/dist/packages/canvas-adapter/summaryPanel.d.ts +152 -111
- package/dist/packages/canvas-adapter/summaryPanel.js +7 -4
- package/dist/packages/canvas-adapter/summaryToggle.js +1 -1
- package/dist/packages/canvas-adapter/tableDrilldown.d.ts +48 -0
- package/dist/packages/canvas-adapter/tableDrilldown.js +1 -0
- package/dist/packages/canvas-adapter/tableFilter.d.ts +42 -0
- package/dist/packages/canvas-adapter/tableFilter.js +1 -0
- package/dist/packages/canvas-adapter/tablePlots.d.ts +85 -0
- package/dist/packages/canvas-adapter/tablePlots.js +1 -0
- package/dist/packages/canvas-adapter/themeWatch.d.ts +7 -0
- package/dist/packages/canvas-adapter/themeWatch.js +1 -0
- package/dist/packages/canvas-adapter/toCanvas.d.ts +3 -0
- package/dist/packages/canvas-adapter/toCanvas.js +1 -1
- package/dist/packages/canvas-adapter/toolbar.d.ts +125 -36
- package/dist/packages/canvas-adapter/toolbar.js +2 -2
- package/dist/packages/canvas-adapter/userGuideHtml.d.ts +1 -1
- package/dist/packages/canvas-adapter/userGuideHtml.js +530 -414
- package/dist/packages/canvas-adapter/version.d.ts +2 -2
- package/dist/packages/canvas-adapter/version.js +1 -1
- package/dist/packages/canvas-adapter/viewSwitch.js +1 -1
- package/dist/packages/canvas-adapter/virtualTable.d.ts +37 -7
- package/dist/packages/canvas-adapter/virtualTable.js +1 -1
- package/dist/packages/core/aggregates.d.ts +14 -0
- package/dist/packages/core/aggregates.js +1 -1
- package/dist/packages/core/dies.d.ts +7 -0
- package/dist/packages/core/dies.js +1 -1
- package/dist/packages/core/utils.d.ts +2 -0
- package/dist/packages/core/utils.js +1 -1
- package/dist/packages/experimental/charts.d.ts +4 -0
- package/dist/packages/experimental/charts.js +1 -0
- package/dist/packages/renderer/binColors.d.ts +6 -2
- package/dist/packages/renderer/binColors.js +1 -1
- package/dist/packages/renderer/buildView.d.ts +36 -14
- package/dist/packages/renderer/buildView.js +1 -1
- package/dist/packages/renderer/buildWaferMap.d.ts +8 -0
- package/dist/packages/renderer/buildWaferMap.js +1 -1
- package/dist/packages/renderer/categoryColors.d.ts +3 -0
- package/dist/packages/renderer/categoryColors.js +1 -0
- package/dist/packages/renderer/colorMap.d.ts +15 -16
- package/dist/packages/renderer/colorMap.js +1 -1
- package/dist/packages/renderer/colorSchemes.d.ts +34 -30
- package/dist/packages/renderer/colorSchemes.js +1 -1
- package/dist/packages/renderer/dataColors.d.ts +126 -0
- package/dist/packages/renderer/dataColors.js +1 -0
- package/dist/packages/renderer/deprecate.js +1 -1
- package/dist/packages/renderer/fmt.d.ts +16 -0
- package/dist/packages/renderer/fmt.js +1 -1
- package/dist/packages/renderer/index.d.ts +2 -0
- package/dist/packages/renderer/index.js +1 -1
- package/dist/packages/renderer/spec.d.ts +5 -0
- package/dist/packages/renderer/spec.js +1 -1
- package/dist/packages/renderer/stacks.d.ts +21 -0
- package/dist/packages/renderer/stacks.js +1 -0
- package/dist/packages/renderer/timeAxis.d.ts +19 -0
- package/dist/packages/renderer/timeAxis.js +1 -0
- package/dist/packages/stats/analyzeWaferLot.js +1 -1
- package/dist/packages/stats/analyzeWaferMap.d.ts +2 -4
- package/dist/packages/stats/analyzeWaferMap.js +1 -1
- package/dist/packages/stats/binRows.js +1 -1
- package/dist/packages/stats/binShifts.d.ts +59 -0
- package/dist/packages/stats/binShifts.js +1 -0
- package/dist/packages/stats/capability.d.ts +6 -1
- package/dist/packages/stats/capability.js +1 -1
- package/dist/packages/stats/chartCatalogue.d.ts +3 -0
- package/dist/packages/stats/chartCatalogue.js +1 -1
- package/dist/packages/stats/clusterDetection.js +1 -1
- package/dist/packages/stats/columnPlot.d.ts +38 -0
- package/dist/packages/stats/columnPlot.js +1 -0
- package/dist/packages/stats/commonality.d.ts +8 -1
- package/dist/packages/stats/commonality.js +1 -1
- package/dist/packages/stats/correlation.d.ts +7 -2
- package/dist/packages/stats/correlation.js +1 -1
- package/dist/packages/stats/dataTable.d.ts +44 -0
- package/dist/packages/stats/dataTable.js +1 -0
- package/dist/packages/stats/dieRegions.js +1 -1
- package/dist/packages/stats/examplePicks.js +1 -1
- package/dist/packages/stats/facets.d.ts +11 -0
- package/dist/packages/stats/facets.js +1 -1
- package/dist/packages/stats/filterFindings.d.ts +21 -0
- package/dist/packages/stats/filterFindings.js +1 -1
- package/dist/packages/stats/groupEffects.d.ts +8 -0
- package/dist/packages/stats/groupEffects.js +1 -1
- package/dist/packages/stats/math.d.ts +2 -0
- package/dist/packages/stats/math.js +1 -1
- package/dist/packages/stats/overview.d.ts +114 -0
- package/dist/packages/stats/overview.js +1 -0
- package/dist/packages/stats/pat.d.ts +0 -2
- package/dist/packages/stats/pat.js +1 -1
- package/dist/packages/stats/patternClassification.d.ts +20 -3
- package/dist/packages/stats/patternClassification.js +1 -1
- package/dist/packages/stats/permutationNull.d.ts +16 -0
- package/dist/packages/stats/permutationNull.js +1 -0
- package/dist/packages/stats/plotData.d.ts +138 -12
- package/dist/packages/stats/plotData.js +1 -1
- package/dist/packages/stats/plotSpec.d.ts +10 -1
- package/dist/packages/stats/plotSpec.js +3 -3
- package/dist/packages/stats/plotTable.js +1 -1
- package/dist/packages/stats/plotWords.d.ts +52 -0
- package/dist/packages/stats/plotWords.js +1 -0
- package/dist/packages/stats/presentation.d.ts +63 -14
- package/dist/packages/stats/presentation.js +1 -1
- package/dist/packages/stats/presentationPresets.d.ts +35 -0
- package/dist/packages/stats/presentationPresets.js +1 -0
- package/dist/packages/stats/presentationSections.d.ts +83 -0
- package/dist/packages/stats/presentationSections.js +1 -0
- package/dist/packages/stats/renderSummaryReport.d.ts +80 -2
- package/dist/packages/stats/renderSummaryReport.js +1 -67
- package/dist/packages/stats/reportBlocks.d.ts +249 -0
- package/dist/packages/stats/reportBlocks.js +1 -0
- package/dist/packages/stats/reportContents.d.ts +22 -0
- package/dist/packages/stats/reportContents.js +1 -0
- package/dist/packages/stats/reportDeck.d.ts +245 -0
- package/dist/packages/stats/reportDeck.js +212 -0
- package/dist/packages/stats/reportHtml.d.ts +44 -43
- package/dist/packages/stats/reportHtml.js +82 -46
- package/dist/packages/stats/reportMaps.d.ts +67 -0
- package/dist/packages/stats/reportMaps.js +1 -0
- package/dist/packages/stats/reportSections.d.ts +55 -0
- package/dist/packages/stats/reportSections.js +1 -0
- package/dist/packages/stats/sweep.d.ts +14 -6
- package/dist/packages/stats/sweep.js +1 -1
- package/dist/packages/stats/synthesis.d.ts +87 -10
- package/dist/packages/stats/synthesis.js +1 -1
- package/dist/packages/stats/types.d.ts +22 -0
- package/dist/packages/stats/worthItems.d.ts +15 -0
- package/dist/packages/stats/worthItems.js +1 -0
- package/dist/packages/stats/yield.d.ts +13 -0
- package/dist/packages/stats/yield.js +1 -1
- package/llms.txt +1 -1
- package/package.json +6 -1
|
@@ -5,6 +5,7 @@ import type { WaferMetadata } from '../core/metadata.js';
|
|
|
5
5
|
import { type TestDef } from '../renderer/buildWaferMap.js';
|
|
6
6
|
import type { FacetCuration } from './facets.js';
|
|
7
7
|
import type { PlotSpec, PlotCondition, PlotField, PlotValueReference, PlotAggregate, PlotTestSet, PlotJudge } from './plotSpec.js';
|
|
8
|
+
import { type PlotWords } from './plotWords.js';
|
|
8
9
|
import { type GroupComparison } from './groupCompare.js';
|
|
9
10
|
import { type TestPassKind } from './testPassRate.js';
|
|
10
11
|
import { type ControlLimits, type ControlViolation } from './control.js';
|
|
@@ -24,6 +25,10 @@ export interface PlotItem {
|
|
|
24
25
|
allDies?: readonly Die[];
|
|
25
26
|
}
|
|
26
27
|
export interface PlotContext {
|
|
28
|
+
/** @internal Say it in plain words, for a reader building charts from a table of wafers: a yield is the dies that passed out of all those tested. */
|
|
29
|
+
plain?: boolean;
|
|
30
|
+
/** The words the plot says its data in (`stats/plotWords.ts`): what a row is, what it counts, what an outcome is called. Default: wafers, dies, bins and yield. */
|
|
31
|
+
words?: PlotWords;
|
|
27
32
|
/** The population's reconciled test list (`mergeTestDefs`). */
|
|
28
33
|
testDefs?: readonly TestDef[];
|
|
29
34
|
/** The Insights tab's Group by key, which "follow Group by" resolves to. Absent outside the tab. */
|
|
@@ -38,6 +43,14 @@ export interface PlotContext {
|
|
|
38
43
|
scaleDies?: readonly Die[];
|
|
39
44
|
/** @internal The panels divide a set of tests by test, so neither X nor the colour has to. */
|
|
40
45
|
facetByTest?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The values of a wafer field over the whole loaded lot, in the order every surface lists them (`orderFieldValues`). A
|
|
48
|
+
* group is coloured by its place in this list, not in the chart's own, so a split keeps its colour in a chart that lacks
|
|
49
|
+
* one of the others. Absent, a group takes its place among the values the chart shows.
|
|
50
|
+
*/
|
|
51
|
+
lotValues?: (key: string) => readonly string[] | undefined;
|
|
52
|
+
/** The colour a host gave a value of a wafer field (its definition's `color`), which wins over the palette, as on the map. */
|
|
53
|
+
valueColor?: (key: string, value: string) => string | undefined;
|
|
41
54
|
/** @internal Partial and edge-excluded dies are already left out (`resolveEligible`). */
|
|
42
55
|
eligibleOnly?: boolean;
|
|
43
56
|
/** @internal The plot's `where` is already applied: these are the dies it keeps. */
|
|
@@ -87,6 +100,10 @@ export interface FieldColumn {
|
|
|
87
100
|
limits?: TestLimits;
|
|
88
101
|
/** Set on a yield taken per die (100 for a passing die, 0 for a failing one): its mean over any set of dies is their yield. */
|
|
89
102
|
perDie?: true;
|
|
103
|
+
/** A count of dies (passing, failing): wafers combine by adding it, unless the chart says otherwise. */
|
|
104
|
+
sums?: true;
|
|
105
|
+
/** A count of dies taken per die: a die with no value is one the count leaves out, not a missing reading. */
|
|
106
|
+
counted?: true;
|
|
90
107
|
/** For a pass rate judged by test limits: per die, −1 failed below the low limit, 1 above the high, 0 otherwise. */
|
|
91
108
|
failSide?: Int8Array;
|
|
92
109
|
/** Why this field cannot be used on this population. */
|
|
@@ -94,6 +111,8 @@ export interface FieldColumn {
|
|
|
94
111
|
/** For a field put in ranges: the middle of each row's range, in the measured field's own unit, so a line can run along them. */
|
|
95
112
|
mid?: Float64Array;
|
|
96
113
|
midUnit?: string;
|
|
114
|
+
/** `num` is a date, as days since 1970-01-01 (UTC): a wafer field whose every value is an ISO date or date-time. `cat` keeps the text. */
|
|
115
|
+
time?: true;
|
|
97
116
|
/** For a set of tests: the test each row's value belongs to, by name, so a missing value is reported against its test. */
|
|
98
117
|
labelOf?: (row: number) => string;
|
|
99
118
|
}
|
|
@@ -128,12 +147,19 @@ export interface PlotPoint {
|
|
|
128
147
|
group: number;
|
|
129
148
|
item: number;
|
|
130
149
|
die?: Die; /** The colour field's value, when it is continuous. */
|
|
131
|
-
value?: number;
|
|
150
|
+
value?: number; /** For a mark of a whole wafer: the dies of that wafer its value is made from (see `PlotUnit.dies`). */
|
|
151
|
+
dies?: readonly Die[];
|
|
132
152
|
}
|
|
133
153
|
/** What one mark stands for: the wafer it is on, and the die when it is one die (not a wafer's aggregate). */
|
|
134
154
|
export interface PlotUnit {
|
|
135
155
|
item: number;
|
|
136
156
|
die?: Die;
|
|
157
|
+
/**
|
|
158
|
+
* For a unit of a whole wafer: the dies of that wafer its value is made from, after the plot's filter. A yield counts
|
|
159
|
+
* the tested dies, a test's mean the dies with a reading, Passing dies the passing ones; a die count, a wafer field or a
|
|
160
|
+
* count of wafers all of them. A drilldown from the mark opens on exactly these, so it shows the numbers the mark did.
|
|
161
|
+
*/
|
|
162
|
+
dies?: readonly Die[];
|
|
137
163
|
}
|
|
138
164
|
/**
|
|
139
165
|
* A bar of die pass rates or a yield per die: its cells' values are 100 (pass) and 0 (fail), and, judged by test limits,
|
|
@@ -173,7 +199,8 @@ export type PlotMarks =
|
|
|
173
199
|
type: 'box' | 'bar';
|
|
174
200
|
categories: string[];
|
|
175
201
|
cells: number[][][];
|
|
176
|
-
cellUnits: number[][][];
|
|
202
|
+
cellUnits: number[][][]; /** The dies each cell stands for, when its units stand for more than one each (a wafer table's rows); absent otherwise. */
|
|
203
|
+
cellCount?: number[][];
|
|
177
204
|
values: number[][];
|
|
178
205
|
categoryItems?: number[];
|
|
179
206
|
nest?: {
|
|
@@ -233,6 +260,12 @@ export interface ResolvedAxis {
|
|
|
233
260
|
min?: number;
|
|
234
261
|
max?: number;
|
|
235
262
|
reverse?: boolean;
|
|
263
|
+
/** The values are dates, as days since 1970-01-01 (UTC, the time of day a fraction): the axis ticks on days, weeks, months or years and labels them as dates. */
|
|
264
|
+
time?: true;
|
|
265
|
+
/** The values are a count or a sum of something that has no unit (orders, revenue, dies): written with thousands separators, never as an exponent. */
|
|
266
|
+
plainNumbers?: true;
|
|
267
|
+
/** The values are counts of things, so no tick falls between two whole numbers. */
|
|
268
|
+
whole?: true;
|
|
236
269
|
/** The limits of the test this axis measures, when it measures one: the chart draws them as lines. */
|
|
237
270
|
limits?: TestLimits;
|
|
238
271
|
/** A panel of a faceted plot: the data range of every panel, so each panel's axis spans the same range. */
|
|
@@ -245,6 +278,8 @@ export interface ResolvedAxis {
|
|
|
245
278
|
hi: number;
|
|
246
279
|
outside: number;
|
|
247
280
|
};
|
|
281
|
+
/** An axis of wafer order: the wafer at each position, `names[k]` at value k + 1, so the ticks read wafer IDs. */
|
|
282
|
+
names?: string[];
|
|
248
283
|
}
|
|
249
284
|
export interface ResolvedPlot {
|
|
250
285
|
spec: PlotSpec;
|
|
@@ -260,7 +295,12 @@ export interface ResolvedPlot {
|
|
|
260
295
|
y?: ResolvedAxis;
|
|
261
296
|
/** Colour groups in legend order; `['']` when there is no colour (or the colour is continuous, see `colorScale`). */
|
|
262
297
|
groups: string[];
|
|
263
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* The yield of every bar together, when the bars are coloured by their shortfall from it (`colorBars: 'shortfall'`): a
|
|
300
|
+
* bar 1, 2, or 4 or more points below takes the attention colour's three strengths.
|
|
301
|
+
*/
|
|
302
|
+
shortfallFrom?: number;
|
|
303
|
+
/** Set when a scatter is coloured by a continuous field, or bars by their value (`colorBars`): the range its colourbar covers. */
|
|
264
304
|
colorScale?: {
|
|
265
305
|
label: string;
|
|
266
306
|
unit?: string;
|
|
@@ -272,12 +312,25 @@ export interface ResolvedPlot {
|
|
|
272
312
|
diverging?: true;
|
|
273
313
|
/** The values are a rating (a yield, a pass rate): the key runs from bad to good, not from low to high. */
|
|
274
314
|
rating?: true;
|
|
315
|
+
/** The values are counts of dies: the key runs from none (the quiet colour) up, in the warm counts gradient. */
|
|
316
|
+
counts?: true;
|
|
317
|
+
/** The values are positions in the limits (0 the low limit, 1 the high): the key is labelled Low limit, Centre and High limit. */
|
|
318
|
+
limits?: true;
|
|
275
319
|
};
|
|
276
320
|
colorLabel?: string;
|
|
277
321
|
/** Set when the colour is a hard or soft bin: each group takes that bin's colour on the maps (`BinColors`). */
|
|
278
322
|
colorBins?: 'hard' | 'soft';
|
|
279
|
-
/** Set when the colour is one of the X fields: the axis already names every
|
|
323
|
+
/** Set when the colour is one of the X fields (bins aside): the axis already names every value. */
|
|
280
324
|
colorRepeatsX?: true;
|
|
325
|
+
/** Set when the colour is one of the X fields, bins included: a table of the plot needs no column for it. */
|
|
326
|
+
colorIsX?: true;
|
|
327
|
+
/**
|
|
328
|
+
* Which colour of the Group by palette each group takes, when that is not its place in `groups`: its place in the whole
|
|
329
|
+
* lot's values (a split, a lot) or the wafer's place in the set loaded. Absent: its place in `groups`.
|
|
330
|
+
*/
|
|
331
|
+
groupColorIndex?: number[];
|
|
332
|
+
/** A group's own colour, where a host defined one for its value (`PlotContext.valueColor`): it wins over the palette. */
|
|
333
|
+
groupColorOwn?: Array<string | undefined>;
|
|
281
334
|
/** How values were combined, in words ("mean of Vth per wafer"), when they were. */
|
|
282
335
|
aggregation?: string;
|
|
283
336
|
/** How the values were rescaled, in words, when they were (`PlotSpec.normalize`). */
|
|
@@ -335,6 +388,8 @@ export interface ResolvedPlot {
|
|
|
335
388
|
wafers: number;
|
|
336
389
|
dies: number;
|
|
337
390
|
};
|
|
391
|
+
/** The words this plot was resolved in, which its footnote, tooltips and menus say it in. Absent: the wafer words. */
|
|
392
|
+
words?: PlotWords;
|
|
338
393
|
/** From `PlotContext.populationLabel`: replaces the wafer count in the footnote. */
|
|
339
394
|
populationLabel?: string;
|
|
340
395
|
/** Marks drawn. */
|
|
@@ -356,16 +411,30 @@ export interface ResolvedPlot {
|
|
|
356
411
|
}>;
|
|
357
412
|
};
|
|
358
413
|
}
|
|
414
|
+
/** The two values of the Pass / fail field, and their order: Pass first. */
|
|
415
|
+
export declare const PASS_FAIL_LABEL: {
|
|
416
|
+
readonly pass: "Pass";
|
|
417
|
+
readonly fail: "Fail";
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* A die's Pass / fail value by its wafer's pass bins, the rule the yield uses (`diePassStatus`): the share of Pass is the
|
|
421
|
+
* yield. A die the yield leaves out (no bin, edge-excluded) has none. The chart field and the Dies table both read it.
|
|
422
|
+
*/
|
|
423
|
+
export declare function passFailOf(die: Die, passBins: ReadonlySet<number>): string | undefined;
|
|
424
|
+
/** The words a plot is said in: the host's, or the wafer words. */
|
|
425
|
+
export declare const wordsOf: (ctx: {
|
|
426
|
+
words?: PlotWords;
|
|
427
|
+
} | undefined) => PlotWords;
|
|
359
428
|
/** The reader's name for a field, whether or not the population has it. */
|
|
360
|
-
export declare function fieldLabel(field: PlotField, testDefs?: readonly TestDef[], curation?: Record<string, FacetCuration
|
|
429
|
+
export declare function fieldLabel(field: PlotField, testDefs?: readonly TestDef[], curation?: Record<string, FacetCuration>, words?: PlotWords): string;
|
|
361
430
|
/**
|
|
362
431
|
* The order a wafer field's values (a split, a lot) are listed in: by number when every value is one, else naturally
|
|
363
432
|
* (W2 before W10). A plot places and colours them in this order, and Insights' Group by lists its groups in it, so a
|
|
364
433
|
* group has one colour on every card.
|
|
365
434
|
*/
|
|
366
435
|
export declare function orderFieldValues(values: readonly string[]): string[];
|
|
367
|
-
/** The bin a category or colour named by `binLabel` stands for; `undefined` for any other label. */
|
|
368
|
-
export declare function binOfLabel(label: string): number | undefined;
|
|
436
|
+
/** The bin a category or colour named by `binLabel` stands for (by name, or "Bin 3"); `undefined` for any other label. */
|
|
437
|
+
export declare function binOfLabel(label: string, words?: PlotWords): number | undefined;
|
|
369
438
|
/**
|
|
370
439
|
* How a pass rate judges a die of `def`: a functional test by its recorded verdict, a parametric one by its test limits
|
|
371
440
|
* or (`judge: 'flag'`) by the tester's recorded flag. The Overview pass-rate card's three modes, as one rule.
|
|
@@ -403,13 +472,24 @@ export declare function binEdges(values: ArrayLike<number>, bins: number, by: 'c
|
|
|
403
472
|
export declare const probabilityPosition: (k: number, n: number) => number;
|
|
404
473
|
/** One value for a set of numbers. `count` ignores missing values; the rest of an empty set is NaN. */
|
|
405
474
|
export declare function combine(values: readonly number[], how: PlotAggregate): number;
|
|
475
|
+
/**
|
|
476
|
+
* Whether a bar chart's bars add up (a count or a sum), so stacking, shares of a total and a cumulative line mean
|
|
477
|
+
* something. With no combine chosen, a bar with no Y field counts, one of a count of dies (passing, failing) sums, and
|
|
478
|
+
* any other takes its mean or its yield, which do not add up. The one rule the chart and the editor both use.
|
|
479
|
+
*/
|
|
480
|
+
export declare const barsAddUp: (aggregate: PlotAggregate | undefined, y: PlotField | undefined, splitByDie?: boolean) => boolean;
|
|
406
481
|
/** What the cross-field rules need to know of a field: its level, whether it is a number, and whether it is a yield. */
|
|
407
482
|
export interface FieldFacts {
|
|
408
483
|
label: string;
|
|
409
484
|
level: 'die' | 'wafer';
|
|
410
485
|
kind: FieldKind;
|
|
411
486
|
yield: boolean;
|
|
487
|
+
dieCount?: boolean;
|
|
412
488
|
}
|
|
489
|
+
/** The wafer figures that are counts of dies, which split by a die field are counted die by die. */
|
|
490
|
+
declare const DIE_COUNTS: readonly ["passDies", "failDies", "dieCount"];
|
|
491
|
+
/** Which count of dies a field is, if it is one. */
|
|
492
|
+
export declare const dieCountOf: (field: PlotField | undefined) => (typeof DIE_COUNTS)[number] | undefined;
|
|
413
493
|
/**
|
|
414
494
|
* Whether the chosen fields can be drawn together, as the reason in two lengths: `long` for the chart card, `short` for the
|
|
415
495
|
* editor's field list, where a choice that would break the plot is greyed with it. ONE function, so the list and the chart
|
|
@@ -427,10 +507,20 @@ export declare function combinationIssue(mark: PlotSpec['chart'], f: {
|
|
|
427
507
|
aggregate?: PlotAggregate;
|
|
428
508
|
level?: 'die' | 'wafer';
|
|
429
509
|
continuousColor?: boolean;
|
|
510
|
+
words?: PlotWords;
|
|
430
511
|
}): {
|
|
431
512
|
long: string;
|
|
432
513
|
short: string;
|
|
433
514
|
} | undefined;
|
|
515
|
+
/**
|
|
516
|
+
* Why a saved chart cannot be drawn here when none of the tests it names is in this lot — a chart saved with another
|
|
517
|
+
* test program, kept in the reader's charts after a different lot was opened — or `null` when at least one of them is.
|
|
518
|
+
* A test is in this lot when the lot's program declares that number, or its dies hold values for it, and, where the
|
|
519
|
+
* chart recorded the test's name, the name still matches. Every kind of chart, a sweep included, and every place one is
|
|
520
|
+
* listed (My charts, the charts menu) reads this one rule, so the reason is the same wherever the chart is offered.
|
|
521
|
+
* A chart that names no test (yield by split, bins by site) is never caught by it.
|
|
522
|
+
*/
|
|
523
|
+
export declare function testsNotInLot(spec: PlotSpec, testDefs: readonly TestDef[], present?: () => ReadonlySet<number>): string | null;
|
|
434
524
|
/** The values a resolved plot draws along one axis (`markValues`): what a host compares its limits against. */
|
|
435
525
|
export declare const axisValues: (r: ResolvedPlot, role: "x" | "y") => number[];
|
|
436
526
|
/** The unit a condition's numbers are in, for stating its range: a test's own, or a percentage. */
|
|
@@ -439,7 +529,7 @@ export declare function conditionUnit(field: PlotField, testDefs?: readonly Test
|
|
|
439
529
|
* One condition in words, as the card footnote, the filter band and the editor's summary state it: "Ring is Edge or
|
|
440
530
|
* Middle", "Hard bin is not Bin 1", "Vth from 0.4 V to 0.6 V", "Yield below 90%".
|
|
441
531
|
*/
|
|
442
|
-
export declare function conditionText(c: PlotCondition, testDefs?: readonly TestDef[], curation?: Record<string, FacetCuration
|
|
532
|
+
export declare function conditionText(c: PlotCondition, testDefs?: readonly TestDef[], curation?: Record<string, FacetCuration>, words?: PlotWords): string;
|
|
443
533
|
/** What `applyConditions` kept: the items (each with only its kept dies), their places in the input, and counts. */
|
|
444
534
|
export interface ConditionsApplied {
|
|
445
535
|
items: PlotItem[];
|
|
@@ -467,6 +557,12 @@ export interface ConditionsApplied {
|
|
|
467
557
|
* verdict or a whole-wafer figure is still judged on all of it.
|
|
468
558
|
*/
|
|
469
559
|
export declare function applyConditions(conditions: readonly PlotCondition[], items: readonly PlotItem[], ctx?: PlotContext): ConditionsApplied;
|
|
560
|
+
/**
|
|
561
|
+
* A title in sentence case: after its first word, a plain word with a capital ("Yield by Split", "Mean Pass rate") is
|
|
562
|
+
* written small ("Yield by split", "Mean pass rate"). A name in `keep` (a test's: Fmax, IDS) and a word with capitals of
|
|
563
|
+
* its own (PartType, PAT) keep theirs.
|
|
564
|
+
*/
|
|
565
|
+
export declare function sentenceTitle(title: string, keep: readonly string[]): string;
|
|
470
566
|
/** Resolves `spec` over `items`. Never throws for a plot that cannot be drawn: it returns the reasons. */
|
|
471
567
|
export declare function resolvePlot(spec: PlotSpec, items: readonly PlotItem[], ctx?: PlotContext): ResolvedPlot;
|
|
472
568
|
/** The plot's title: the one the user typed, else the automatic one. */
|
|
@@ -491,6 +587,8 @@ export interface FieldOption {
|
|
|
491
587
|
/** For a lot field: how many different values the wafers in view carry. */
|
|
492
588
|
distinct?: number;
|
|
493
589
|
group: FieldGroup;
|
|
590
|
+
/** The heading the field's group shows under, in the host's words, when it is not the group's own name. */
|
|
591
|
+
groupLabel?: string;
|
|
494
592
|
kind: FieldKind;
|
|
495
593
|
level: 'die' | 'wafer';
|
|
496
594
|
/** Can divide the data into series or categories (a colour, a bar's X). */
|
|
@@ -543,20 +641,48 @@ export interface TitleDrift {
|
|
|
543
641
|
export declare function titleDrift(spec: PlotSpec, catalogue: readonly FieldOption[]): TitleDrift;
|
|
544
642
|
/** `titleDrift` in a sentence for the reader, or null when the title is fine. */
|
|
545
643
|
export declare function describeTitleDrift(d: TitleDrift): string | null;
|
|
644
|
+
/** One starter plot: the plot, and one line on what it is for. */
|
|
645
|
+
export interface ExamplePlot {
|
|
646
|
+
spec: PlotSpec;
|
|
647
|
+
purpose: string;
|
|
648
|
+
}
|
|
649
|
+
/** The Examples' groups, each a question a test engineer or analyst asks, in the order they ask them. */
|
|
650
|
+
export declare const EXAMPLE_GROUPS: readonly ["Yield and bins", "Limits and capability", "On the wafer", "Tester", "Relationships", "Sweep"];
|
|
651
|
+
export type ExampleGroup = typeof EXAMPLE_GROUPS[number];
|
|
652
|
+
/**
|
|
653
|
+
* The starter plots, grouped by the question each answers and built on this lot's own tests and fields: the tests that
|
|
654
|
+
* have most to show (or fail their limits most) and the field that divides the wafers. About a dozen, none of them a
|
|
655
|
+
* chart the Overview or Distributions already draws. Each has a plain title and one line on what it is for.
|
|
656
|
+
*/
|
|
657
|
+
export declare function exampleGroups(catalogue: readonly FieldOption[], waferCount: number, newId: () => string, data?: {
|
|
658
|
+
items: readonly PlotItem[];
|
|
659
|
+
ctx?: PlotContext;
|
|
660
|
+
}): Array<{
|
|
661
|
+
group: ExampleGroup;
|
|
662
|
+
examples: ExamplePlot[];
|
|
663
|
+
}>;
|
|
664
|
+
/** Every starter plot, in group order (see {@link exampleGroups}). */
|
|
546
665
|
export declare function examplePlots(catalogue: readonly FieldOption[], waferCount: number, newId: () => string, data?: {
|
|
547
666
|
items: readonly PlotItem[];
|
|
548
667
|
ctx?: PlotContext;
|
|
549
668
|
}): PlotSpec[];
|
|
669
|
+
/**
|
|
670
|
+
* Whether a wafer opened from a plot opens on its bins: a plot of yield or of bins that names no test, as a yield bar does
|
|
671
|
+
* everywhere. A plot that names a test opens on it ({@link plotTestNumber}); any other leaves the map as it is.
|
|
672
|
+
*/
|
|
673
|
+
export declare function plotOpensBins(spec: PlotSpec): boolean;
|
|
550
674
|
/**
|
|
551
675
|
* The test a click on this plot should open a wafer on: the plot's own measurement, so the map shows the values the
|
|
552
676
|
* plot is about rather than the bins. A scatter takes its X (as the Insights scatter does), then its Y, then its
|
|
553
|
-
* colour; every other chart type its values. `undefined` when the plot has no test in it (yield against wafer order)
|
|
554
|
-
*
|
|
677
|
+
* colour; every other chart type its values. `undefined` when the plot has no test in it (yield against wafer order):
|
|
678
|
+
* {@link plotOpensBins} then says whether the wafer opens on its bins.
|
|
555
679
|
*/
|
|
556
680
|
export declare function plotTestNumber(spec: PlotSpec): number | undefined;
|
|
557
681
|
/**
|
|
558
|
-
* A new sweep to start from:
|
|
559
|
-
*
|
|
682
|
+
* A new sweep to start from: the program's longest sweep run (its tests in swept order, the x axis read from their
|
|
683
|
+
* names), else the first five parametric tests that share the first one's unit, in test order on the ordinal axis.
|
|
684
|
+
* Never tests of different units, and never an empty editor; the reader edits the tests and adds the series they meant.
|
|
560
685
|
*/
|
|
561
686
|
export declare function defaultSweep(testDefs: readonly TestDef[], id: string): PlotSpec;
|
|
687
|
+
export {};
|
|
562
688
|
//# sourceMappingURL=plotData.d.ts.map
|