@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
package/AGENTS.md
CHANGED
|
@@ -5,7 +5,7 @@ Guidance for AI tools (Claude Code, Codex, Copilot, Cursor, …) writing code th
|
|
|
5
5
|
agent config so they are loaded whenever the agent works on wafer map code.
|
|
6
6
|
|
|
7
7
|
This library renders semiconductor wafer maps. Its output drives yield calls, lot
|
|
8
|
-
dispositions and process changes, so a
|
|
8
|
+
dispositions and process changes, so a chart that is *plausibly but silently wrong*
|
|
9
9
|
is the expensive failure — worse than one that throws. Most rules here exist
|
|
10
10
|
because the obvious-looking code produces exactly that.
|
|
11
11
|
|
|
@@ -19,7 +19,7 @@ loudly over guessing.
|
|
|
19
19
|
|
|
20
20
|
### Entry points
|
|
21
21
|
|
|
22
|
-
- `@wafertools/wafermap` — `buildWaferMap()`, `
|
|
22
|
+
- `@wafertools/wafermap` — `buildWaferMap()`, `registerDataColorScheme()`. Pure, no DOM, server-safe.
|
|
23
23
|
- `@wafertools/wafermap/render` — `renderWaferMap()`, `renderWaferGallery()`. Needs the DOM.
|
|
24
24
|
- `@wafertools/wafermap/stats` — `analyzeWaferMap()`, `analyzeWaferLot()`. Pure analysis.
|
|
25
25
|
- `@wafertools/wafermap/worker` — `createWafermapWorker()` for off-main-thread builds.
|
|
@@ -93,16 +93,16 @@ worth reporting, not a pattern to build on.
|
|
|
93
93
|
### API facts that are easy to guess wrong
|
|
94
94
|
|
|
95
95
|
- `PlotMode` values are camelCase: `'hardBin'`, `'softBin'`, `'value'`, `'metadata'`,
|
|
96
|
-
`'stackedValues'`, `'stackedBins'`, `'stackedSoftBins'`. Never snake_case.
|
|
96
|
+
`'stackedValues'`, `'stackedBins'`, `'stackedSoftBins'`, `'stackedFails'`. Never snake_case.
|
|
97
97
|
- `retestCount` is the total probe count — `2` means probed twice. Do not add 1.
|
|
98
98
|
- `retestPolicy: 'best'`/`'worst'` is pass/fail-aware via `passBins`; bin number only
|
|
99
99
|
breaks ties within a category.
|
|
100
100
|
- Hard bins (`hbin`) and soft bins (`sbin`) are independent number spaces. Never merge them.
|
|
101
101
|
- **Do not colour bins yourself.** The maps give each bin one colour from its number
|
|
102
102
|
and its pass/fail verdict (pass bins, per `passBins`, take green pass colours), so a
|
|
103
|
-
bin is the same colour in every lot. To choose colours, set `BinDef.color
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
bin is the same colour in every lot. To choose colours, set `BinDef.color`, or choose
|
|
104
|
+
or register a data colour scheme (`dataColors`, `registerDataColorScheme`): one choice
|
|
105
|
+
sets the bin palette and every other colour that stands for data. Need the colours for a surface of
|
|
106
106
|
your own (a table swatch, an export)? Read `controller.getBinColors()` for a live map,
|
|
107
107
|
or `binColorsForMaps(results)` — never a palette lookup of your own.
|
|
108
108
|
- Build once, render many: `buildWaferMap()` handles data + geometry; re-render UI
|
|
@@ -112,12 +112,12 @@ worth reporting, not a pattern to build on.
|
|
|
112
112
|
- **The analysis surfaces are already built — do not reimplement them.** Pass
|
|
113
113
|
`statsSummary` to `renderWaferMap` and it mounts the Summary panel. The
|
|
114
114
|
chart suite (Insights) is on by default (`insights: { enabled: false }` removes it): yield, bin pareto,
|
|
115
|
-
boxplot, histogram, correlation, scatter, capability, and a My
|
|
115
|
+
boxplot, histogram, correlation, scatter, capability, and a My charts tab where the reader's own charts
|
|
116
116
|
and sweeps (`chart: 'sweep'`, in `insights.plots`) are cards. `renderWaferGallery` takes the same option across a whole
|
|
117
117
|
lot. Supply or replace the analysis later with `setStatsSummary()`. There is no
|
|
118
118
|
chart-data API to hand-build them from. Charting a selection or one wafer (right-click → histogram, capability,
|
|
119
|
-
saved
|
|
120
|
-
- **Keep the reader's
|
|
119
|
+
saved charts and sweeps) is built in too, with no wiring.
|
|
120
|
+
- **Keep the reader's charts in the host, hand them back in.** The library stores nothing: supply `insights.plots` and keep
|
|
121
121
|
it current from `insights.onPlotsChange` (the whole list, after every change). Wafer attribute names (`attributes`) and the
|
|
122
122
|
Data tab need no wiring beyond that.
|
|
123
123
|
- **A value that is not a measurement is excluded by limits, not by editing the data.** A tester clamp or open-circuit reading is
|
|
@@ -129,7 +129,7 @@ worth reporting, not a pattern to build on.
|
|
|
129
129
|
measured. Computing it in the host and injecting it into `testValues` loses that
|
|
130
130
|
mark, the missing-input rule (absent, never 0) and the collision check. A boolean
|
|
131
131
|
expression must be declared `testType: 'F'`.
|
|
132
|
-
- **A sweep's x values are data, not guesses.** In a sweep
|
|
132
|
+
- **A sweep's x values are data, not guesses.** In a sweep chart's `sweep.series`, give `xValues`, or `xFromName` (a
|
|
133
133
|
`{x}` placeholder pattern, not a regex) when the swept value is only in the test
|
|
134
134
|
name. Never derive x from test numbers: they are identifiers, not a scale.
|
|
135
135
|
- **Click-to-highlight is wired, not hand-rolled.** `onSelect` reports what the user
|
|
@@ -138,10 +138,9 @@ worth reporting, not a pattern to build on.
|
|
|
138
138
|
- A die layout with no test data — a map of the reticle or the grid alone — is
|
|
139
139
|
`buildWaferMap({ layout: true, waferConfig, dieConfig })`, not a synthesized results
|
|
140
140
|
array.
|
|
141
|
-
- `
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
so it cannot disagree with the dies.
|
|
141
|
+
- `dataColors` and `reverseValueScheme` travel as a pair. A scheme's measured ramp reads
|
|
142
|
+
low = dark, high = light; if you draw your own colorbar or swatch, take the colour from the
|
|
143
|
+
scheme the map uses (`controller.getOptions().dataColors`) so it cannot disagree with the dies.
|
|
145
144
|
- What a map was built with is on the result: `result.plotMode`, `result.metadata`,
|
|
146
145
|
`result.isLotStack`, `result.hbinDefs`, `result.sbinDefs`, `result.testDefs`. The renderers
|
|
147
146
|
read them; pass nothing again.
|
|
@@ -195,8 +194,8 @@ it is handed, because it has no way to know which tests anyone will look at.
|
|
|
195
194
|
- **Capability, pass rates, region yield and the spatial-pattern label come back from
|
|
196
195
|
the analysis** — `stats.capability` (with `computePerTestStats`), `stats.testSpecYield`,
|
|
197
196
|
`stats.testFlagYield`, `stats.functionalYield`, `stats.regionYield` and
|
|
198
|
-
`stats.spatialPattern`, on wafer and lot summaries alike. Do not compute Cp/Cpk or ring yield yourself: the
|
|
199
|
-
|
|
197
|
+
`stats.spatialPattern`, on wafer and lot summaries alike. Do not compute Cp/Cpk or ring yield yourself: the within-wafer
|
|
198
|
+
stddev combined over the wafers and per-wafer pass bins are easy to get subtly wrong.
|
|
200
199
|
- **Reports from code: `renderWaferReportHtml(result, summary)` and
|
|
201
200
|
`renderLotReportHtml(results)`** — they take the built maps, so pass bins and ring
|
|
202
201
|
count cannot be wrong. They run in Node.
|
|
@@ -214,7 +213,7 @@ it is handed, because it has no way to know which tests anyone will look at.
|
|
|
214
213
|
| `WaferMapResult.inference.warnings` | `WaferMapResult.warnings` (structured, with a `code`) |
|
|
215
214
|
| `ViewOptions.testIndex` | `activeTest` |
|
|
216
215
|
| `mountWaferCanvas` | `renderWaferMap` |
|
|
217
|
-
| `HARD_BIN_COLORS` / `SOFT_BIN_COLORS` | `BinDef.color`, or `
|
|
216
|
+
| `HARD_BIN_COLORS` / `SOFT_BIN_COLORS` | `BinDef.color`, or `registerDataColorScheme` — there is no exported palette constant |
|
|
218
217
|
| `GalleryItem` | `WaferMapDisplayItem` |
|
|
219
218
|
| `MountOptions` | `RenderOptions` |
|
|
220
219
|
| `WaferCanvasController` | `WaferMapController` |
|
|
@@ -223,9 +222,9 @@ it is handed, because it has no way to know which tests anyone will look at.
|
|
|
223
222
|
| `WaferFlat`, field `flat` | `WaferNotch`, field `notch` |
|
|
224
223
|
| `isInsideWaferWithFlat` | nothing — `buildWaferMap` resolves the geometry |
|
|
225
224
|
| `DieSample` / `WaferMapPoint` | `DieResult` |
|
|
226
|
-
| `colorScheme` / `WaferViewOptions.colorScheme` | `
|
|
227
|
-
| `registerColorScheme` / `getColorScheme` / `listColorSchemes` | `
|
|
228
|
-
| `hardBinColor` / `softBinColor` / `hardBinGreyscale` | `BinDef.color`, or `
|
|
225
|
+
| `colorScheme` / `WaferViewOptions.colorScheme` | `dataColors` (one choice for bin and value maps) |
|
|
226
|
+
| `registerColorScheme` / `getColorScheme` / `listColorSchemes` | `registerDataColorScheme` / `listDataColorSchemes` |
|
|
227
|
+
| `hardBinColor` / `softBinColor` / `hardBinGreyscale` | `BinDef.color`, or `registerDataColorScheme` |
|
|
229
228
|
| `plotMode: 'specLimit'` | `passFailDisplay: 'spec'` |
|
|
230
229
|
| standalone `getDieAtPoint` | `onHover` / `onClick` on `renderWaferMap` |
|
|
231
230
|
| `RenderOptions.tooltipTestLimit` | (was a no-op; nothing replaces it) |
|
|
@@ -250,7 +249,7 @@ compatibility shims for them.
|
|
|
250
249
|
- [API reference](https://wafertools.github.io/wafermap/api/) — every type, option and return value
|
|
251
250
|
- [Developer guide](https://wafertools.github.io/wafermap/guide/) — worked walkthroughs
|
|
252
251
|
- [Troubleshooting](https://wafertools.github.io/wafermap/troubleshooting/)
|
|
253
|
-
- [Examples](https://wafertools.github.io/wafermap/examples/) —
|
|
252
|
+
- [Examples](https://wafertools.github.io/wafermap/examples/) — 30 runnable pages, also
|
|
254
253
|
[downloadable](https://wafertools.github.io/wafermap/wafermap-examples.zip) to run offline
|
|
255
254
|
|
|
256
255
|
When a rule here and the API reference disagree, the API reference wins — tell the
|
package/CHANGELOG.md
CHANGED
|
@@ -24,6 +24,160 @@ under `### Breaking`.
|
|
|
24
24
|
|
|
25
25
|
## [Unreleased]
|
|
26
26
|
|
|
27
|
+
## [0.41.0] — 2026-11-30
|
|
28
|
+
|
|
29
|
+
### Breaking
|
|
30
|
+
|
|
31
|
+
- **The default colours come from the Classic data colour scheme** (below) when no `binColorScheme`, `valueColorScheme` or `dataColors` is set. Its pass green and first fail colour differ from the previous default bin palette, and its measured ramp is not Viridis; set `BinDef.color` where exact bin colours matter.
|
|
32
|
+
- **A stacked count map draws on the scheme's counts scale** (`stackedBins`, `stackedSoftBins`, `stackedFails`) unless a `valueColorScheme` is chosen, which colours it as before.
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- **Insights' Overview has a Tests section when no test can be judged** (no limits, tester pass/fail flags or functional tests). **Test shifts in each fail bin** shows how far each fail bin's dies read from the passing dies of the same wafer, test by test, in standard deviations; clear differences are shaded and open their dies, and the section's sentence names the largest. **Tests by wafer** is shown beside it.
|
|
37
|
+
- **Examples are in a new order and the sweep pages are split.** The list runs Start here, Reading a wafer and a lot, Your data, Display and interaction, Wafer layouts, Advanced analysis, Scale and real data, Experimental. **Derived tests** and **Sweeps** are separate pages.
|
|
38
|
+
- **Small text is body size where it is read or clicked.** Links, headings, table column headings and descriptions in the Summary panel and Insights are 12 px; 11 px is kept for counts and short sub-labels. The selected item of tabs and segmented controls reads at 4.5:1 or more in every colour scheme. A line of section links under the Insights tabs stays on screen while the charts scroll, marks the section in view and goes to any section of the Overview or Distributions.
|
|
39
|
+
- **The identity strip fits the room the top row has,** in a gallery and in a wafer card's own window, and while Insights is open the row keeps the button words it had in the map view.
|
|
40
|
+
- **Column filters on the Data tab's Wafers and Dies tables, and on the statistics-by-group table.** Each heading has a filter button: a From/To range for a number column (with "Include blank cells" when some cells hold no number), a searchable checklist with counts for any other. The button is the three-line filter glyph, quiet at rest, and a filtered column's heading is tinted. Filters on different columns all apply; a filter narrows the table only, never the Insights scope, the page filter or the maps. A filtered table says "412 of 5,000 dies shown" and names its filters, a Clear filters button removes them, and each table keeps its filters while another view is open, in the Insights Data tab and in the **Data tables** window the Summary panel opens (which has filters and filtered exports but not Plot columns, a button of the Insights Data tab).
|
|
41
|
+
- **Export CSV and Copy can hold the filtered rows or every row.** While a filter is on, a Rows: Filtered | All choice appears beside them (Filtered is the default); the note above the table states which rows a file will hold, and a filtered file is named with `-filtered`. Both follow the sort shown. The Dies table's Long format and the Copy size limit use the chosen rows.
|
|
42
|
+
- **Plot columns.** Pressing Plot columns on the Insights Data tab's Wafers or Dies table puts a tick under each column that stands for a plot field, aligned with its heading (a test, the die's X, Y, site, bin, ring or quadrant, a wafer's yield, die count or attribute); a ticked column is tinted and marked, and Cancel leaves the mode. Plot then opens the plot builder on a suggested chart (one number: histogram; one category: bar; a number by a category: box, or a bar of wafer means in the Wafers table; two numbers: scatter; two categories: a bar of counts by the first, stacked by the second; three or more tests: a box of the tests) with the column filters carried into the chart's own filter where it can say the same: a range on a number, a list of categories. A chart saved from there keeps them, and the plot builder shows and edits them. A filter with no equal (cells with no value kept, a list on a number column, a column with no plot field) is not saved: the chart is drawn over the rows it leaves, and its population says "not saved with the chart". The chart is a draft the reader can change and keeps only by adding it.
|
|
43
|
+
- **Data colour schemes (`dataColors`, `registerDataColorScheme`, `listDataColorSchemes`).** One choice sets every colour that stands for data, on every map, chart, table tint, panel bar and report: the measured ramp, the good-to-bad scale of a yield, pass rate, Ppk class and shortfall tint, the signed scale, the counts scale, the categories, the bin palette, the pass/fail display of a value map and the quantity bar. Five schemes are built in: **Classic** (the default), **Okabe-Ito** (colour-blind safe for bins and for pass against fail), **Calm**, **Vivid** and **Night**; `registerDataColorScheme` adds a host's own, to match its theme. Lightness carries the order in every ramp, so it survives the common kinds of colour blindness and greyscale; every step is measured under colour-blindness simulation in the tests. No bin colour is black or near-black. A yield or pass rate runs on a fixed, linear key from 0% to 100%, so equal distances on it are equal differences in yield; 100% is a colour of its own, never the quiet colour of a count of zero. The scale has no pale neutral middle, because a yield has no neutral: its lightness changes one way only, the worst yields strongest (dark red and orange on a light card, bright on a dark one) and the best the calmest (pale blue on a light card, deep blue on a dark one), so the order survives greyscale.
|
|
44
|
+
- **Bin colours and Value colours in the Colours menu.** A bin palette registered with `registerBinColorScheme` and a value gradient registered with `registerValueColorScheme` are listed under their labels (bin maps and Insights; value and stacked maps), after **Scheme colours**. A chosen palette or gradient (`binColorScheme`, `valueColorScheme`, both `WaferPreferences` keys) replaces that part of whichever data colour scheme the reader picks. `binColorsForMaps` takes `binColorScheme`. Plasma and Mako are among the gradients.
|
|
45
|
+
- **A colour key is drawn with the theme the card has when it is shown.** The yield or count key is drawn again on every draw, so on a dark theme it matches the cells and follows a theme switch.
|
|
46
|
+
- **One top row for a map, a gallery and Insights.** It is a single bar with the same controls in the same order in every view: the wafer or lot name with its details (which take the free space), the map tools, **Plot mode**, **Colours**, **View**, **Summary**, **Maps | Insights**, **Filter…**, **Reports**, then **Expand** and **Help** at the right edge. **Maps | Insights**, **Filter…** and the controls after them are in the same place in both views, because only the controls to their left come and go (Insights hides the map tools, Plot mode, View and Summary), and the row keeps the fit it had on the map while Insights is open, so the buttons keep their words. When the window is narrow it makes room in steps so no control is cut off: the details after the name go first, then the word on Plot mode, then the words on the other buttons (they keep their icons), then the ▾, then **Maps | Insights** narrows, and only then does the row wrap. On a single map the map tools stay in the row while it fits, and otherwise move to a row of their own at the top right of the map beside the Summary panel, never over it.
|
|
47
|
+
- **The Colours button** sits beside Plot mode, so it is in reach in both views. Its menu lists the schemes, each with a strip of its colours, then **Reverse gradient** and **Greyscale** when a map shows a measured value, then **Use colours from bin definitions** when a definition carries a colour.
|
|
48
|
+
- **The View menu** holds how the map is drawn, apart from its colours, in sections: **Overlays** (Ring boundaries, Quadrant lines, Die labels, XY indicator, Axis labels, Reticle grid, Limit and Test pass/fail, Mark failing dies, Compact layout, Clear overlays), **Legend** (the position as one line of choices; in a gallery, **Legend on each map** first), **Orientation** (four icon buttons: rotate, flip horizontal, flip vertical, reset) and, in a gallery, **Columns** and **Selection**. The button shows pressed while anything in it differs from the map as built, and the menu scrolls inside itself in a short window.
|
|
49
|
+
- **The Reports menu** holds what you can take away from the whole wafer or lot: **Summary report**, **Data tables** and, in a gallery, **Gallery image** (all cards as one PNG).
|
|
50
|
+
- **Greyscale (`greyscaleValues`, a `WaferPreferences` key).** Draws a measured value in greys, dark for low and light for high, whatever the data colour scheme. It applies to the dies, the colour bar, the mapless summary, the charts that use the measured ramp and the reports, and combines with Reverse gradient. Bins, categories and every other scale keep their colours.
|
|
51
|
+
- **The lot details show every field that fits.** In a gallery the strip takes the room the row's other controls leave, and hides a field behind "N more fields" only when there is no more room.
|
|
52
|
+
- **"N more fields" opens a list of every field.** A card under the strip shows each field on its own line, the labels in one column and every value aligned in the next; it scrolls when long and closes with Escape or a click outside. A card's own wafer info uses the same list.
|
|
53
|
+
- **Bar values show by default** on the Insights Yield by wafer and bin pareto charts and on the starter bin pareto under My charts → Examples. They are plain numbers, the unit being in the axis title, and a value too wide for its bar turns to read upward, so a lot of 25 wafers still shows every value. Only when even a turned value is wider than its bar are none drawn.
|
|
54
|
+
- **`onEditBinColor(bin, kind)` (`RenderOptions`, `GalleryOptions`)** lets the reader change one bin's colour where they see it. Right-click, or the ContextMenu key or Shift+F10, on a bin's legend entry on the map or in the gallery strip, or on a bin's chip in a chart key, opens a menu with **Change colour…**, which calls the hook; the host opens its own bin definitions. A left click is unchanged, and the menu item and its tooltip hint appear only when the hook is supplied.
|
|
55
|
+
- **Charts follow the reader's scheme.** A heatmap of a measured value, a scatter coloured by a measurement and bars coloured by value take the scheme's measured ramp and Reverse unless the chart sets its own; yields, counts and differences take the scheme's good-to-bad, counts and signed scales.
|
|
56
|
+
- **Bars coloured by their value (`PlotSpec.colorBars`)**: `'value'` colours each bar on a colour key, as a heatmap cell; `'shortfall'`, for a yield or pass rate, keeps the bars their colour and colours a bar 1, 2, or 4 or more points below the total yield of all the bars in three strengths of the scheme's bad side, with a key naming that yield. Offered in the chart editor as **Colour bars**. The built-in Yield by wafer chart uses `'shortfall'`.
|
|
57
|
+
- **Dates draw as dates.** A wafer field whose every value is an ISO date or date-time is a date on a line, scatter, control or box plot: the axis ticks on days, weeks, months or years and labels them as dates, and a bar's categories sit in time order.
|
|
58
|
+
- **Scatter, line, control, histogram and probability charts zoom.** Ctrl+wheel, a trackpad pinch, Shift+drag or the keys (Plus, minus, arrows, 0) zoom and move the chart; a sideways swipe or wheel moves it (a swipe that is mostly up or down still scrolls the page), and a button, a double click or Esc resets it. A vertical bar or box chart with more categories than fit shows a window of them under a scroll bar, with a note of what is in view.
|
|
59
|
+
- **Counts and sums without a unit read in full.** A count, or a sum of a wafer field that has no unit, is written with thousands separators (767,168) on whole-number ticks, never as an exponent.
|
|
60
|
+
- **Your own data can be charted (`@wafertools/wafermap/experimental/charts`, experimental).** `renderChartsTab` and `renderCharts` draw the charts, editor and filters over data the host hands over as a table of rows (columns by name, with optional outcome counts, pass outcomes and the words for its rows), and a click on a mark hands the rows behind it to the host. A table is refused, with the reason, when two rows share a name, when no pass outcome has a column of counts, or when an outcome column is not named by a plain number; counts may be whole numbers, or their text or bigint form, and invalid dates count as missing. The entry may change or be removed without notice and is not part of the stable API; the guide **Charts from your own data**, its API reference and three live examples (charts only, build your own, and rows that are not wafers) describe it.
|
|
61
|
+
- **`renderReportDeck` and `reportContents` (`/render`)**: the wafer or lot report as a self-contained HTML slide deck, with a title page, a contents slide linking each section (and each part of a load split by lot or temperature) to its slide, the maps, a lot's wafers as one grid, the chosen Insights charts, each after the tables of the section it belongs to (drawn by Insights, light, as Save as PNG saves them; `chartSection` names a chart's section) and a data details slide; and what a report of the data can hold, for a host's choice of sections and charts. A table too wide for a slide is shown in blocks of columns, each with the row names. Printed from a browser, a deck is one landscape page per slide. `renderReportSlides` gives the same slides as data (each table's cells as text with how to show them, each picture as a `data:` URL), for a host that writes the report in a format of its own. All three load their code on first use.
|
|
62
|
+
- **Stacked fails plot mode (gallery).** One map of the lot: at each die position, the number of wafers on which the die fails, whatever its fail bin, each wafer judged by its own pass bins as yield is. It is every fail bin's stacked count added together, and sits with the stacked modes in the Plot mode menu.
|
|
63
|
+
- **A presentation's maps and tests (`ReportDeckRequest.maps`, `.tests`, `.valueMaps`).** `maps` chooses hard or soft bins, the maps to a slide (as many as fit, or 12, 6 or 2, each as large as that many allow, or one wafer per slide, large, with its yield and the legend), the order (as loaded, or the lowest yield first) and a Stacked fails map before the wafers' maps. A new section, **Test value maps** (`value-maps`), shows each test's Stacked test values map, combined by the gallery's aggregation method, or every wafer's map of it. `tests` names up to six tests (`ReportContents.tests`, `ReportContents.maxTests`): the test tables, the value maps and the group comparison cover only those, and a chart that shows one test (Test value distribution, Value histogram, Test value by site, Probability plot of a test, Test value by wafer order) is drawn once for each. With no tests named, a presentation is about the tests the analysis points at, at most three, the first of them the test Insights' Distributions opens on: its one-test charts are drawn for each and its value maps are of them. `ReportContents.tests` gives each test's `label`, its name and its unit unless the name states it.
|
|
64
|
+
- **Ready-made presentations (`presentationPresets`, `combinePresets`, `/render`).** **What stands out**; one per Insights Overview group, **Yield**, **Bins**, **Tests**, **Where** and **Why** (a wafer has no Why), each its group's sections, the charts its Overview section shows and the map settings that suit it; **Test report**; and **Full report**. Each has a one-sentence `description` and names the sections it `needs`. `combinePresets` makes several ticked together into one ("Yield and Why"): the union of their sections, in the report's order, and charts, their settings merged; Full report is only ever alone. A presentation's own sections, left out of the printed Summary report unless named (`ReportSectionInfo.presentation`): **Worth a look items** (`items`), a slide per item with its sentence, its importance, strength and cost, its chart beside maps that mark the dies it is about, and the findings it rests on, the Low items in one table after them (`ReportDeckRequest.items`: `count` 5, 10 or all, `low`, `maps`); **What compared**, **What divides yield**, **Tests behind the bins** and **Test sites**, the tables the Insights Overview shows. Each Overview group's sections open with that group's sentence from the Overview. `ReportDeckRequest.topics` keeps only some groups' items; `maps.grid: false` leaves the Stacked fails map alone, and `maps.binStacks` (3 or 5) adds stacked maps of the largest fail bins. `ReportContents.groups` names the Overview groups a section's `group` refers to.
|
|
65
|
+
- **A presentation is laid out for slides.** A slide's title is a name, with what followed its dash on a smaller line under it ("Hard bin breakdown", "Share of 4,199 dies"); the title page shows the presentation's name over the lot; a load split by an identity field has a divider slide naming only what sets each part apart ("Temperature 25", "Part 1 of 2 · 19 wafers · Lot …"), and its charts of every wafer come first. Every slide holds one section: a title, one sentence of at most two lines, and what shows it. Text is at least 16 px and a slide's sentence 24 px. A table shows at most 8 rows at 20 px (a short one larger): the rows it marks (a shortfall, a flagged rate) first, then the worst by the figure that decides it (`ReportBlock` table `slide`: lowest limit yield, Ppk or pass rate first), and a note describes the rows left out, how many and the range they hold ("18 more tests: limit yield 99.2% to 100.0%, none marked"). Findings, Worth a look and wafer fields are capped the same way and what is left out counted or named. A section with nothing found is a statement slide: its sentence, large; a presentation about one Overview group lists its items as their own slides and, when Worth a look has none of them, says so ("Worth a look lists nothing about the bins."). A presentation waits for its window to be in view before drawing charts, and names a chart it could not draw under Not included. Charts fill the space under the text, drawn at 2.5 times the pixel density so they stay sharp enlarged. An item's slide has its importance, strength and reach as coloured labels and its chart beside the maps of its dies, without its findings table. In a presentation (`ReportBlock` `plots`, `badges`): the group comparison is a slide per wafer field with the tests that differ by it (q < 0.05) as a chart and each group's yield in a line; the per-wafer yield is a chart, its outliers named; tests without limits are counted under the capability table rather than listed. In a load split in several, a chart made for a part is drawn over that part's wafers (`ReportPlot.wafers`).
|
|
66
|
+
- **`InsightsOptions.report`**: with it, every Insights chart's ⋯ menu offers Add to report / Remove from report.
|
|
67
|
+
- **`PatternClassification` (`stats.spatialPattern`) has `pValue` and `resembles`.** `pValue` is how often the same number of fails scattered at random over the same dies is given the pattern; `resembles` names the shape of a wafer that reads `random` because chance gives that shape too often.
|
|
68
|
+
- **`wireMenuA11y` is exported from `/render`.** A host's own popup menu takes the keyboard behaviour of wmap's menus: arrow keys, Home and End, Enter and Space, and Escape or Tab returning focus to the trigger.
|
|
69
|
+
- **`LotStatsSummary.stats.yield`**: the lot's yield, passing dies over tested dies summed over the wafers (each wafer judged by its own pass bins), as `{ passDies, testedDies, yieldPercent }`. `StatsSummary.stats` adds `yieldPassDies` and `yieldTestedDies`, the counts behind `yieldPercent`.
|
|
70
|
+
- **The Dies table has the wafer fields that group the wafers.** After **Wafer** come the wafer fields with a few values across the wafers in view (a split, a temperature, a program; the field Group by is set to first), each die showing its own wafer's value, so the dies can be filtered, sorted and plotted by them, and both exports carry them. A field with a value of its own on nearly every wafer stays in the Wafers table.
|
|
71
|
+
- **Fields the same on every wafer are behind a link.** In the Wafers and Dies tables, **N fields are the same on every wafer ▸** opens them as a list, the card the lot details strip uses. The note above a table states the count and the filters; what a cell means, what a click does and what a file holds are under **How to read this**.
|
|
72
|
+
- **A chart's chips stay when its colour repeats the X axis**, so each value can still be shown or hidden.
|
|
73
|
+
- **Passing dies and Failing dies (`passDies`, `failDies`)** on Y in the chart editor: each wafer's counts by its own pass bins, as its yield is counted. With Combine values by on Automatic a bar adds its wafers up, so Failing dies by split, largest first, with a cumulative line is a pareto of the failing dies.
|
|
74
|
+
- **A Pass / fail field (`passFail`)** in the chart editor and a **Pass / fail** column in the Dies table: each die's verdict by its own wafer's pass bins, the rule the yield uses, so the share of Pass is the yield; a die the yield leaves out is blank. Counted, it gives the passing and failing dies of each wafer or group, stacked or as a pareto; as a colour, Pass and Fail take the scheme's pass/fail colours.
|
|
75
|
+
- **Stacked, 100% and Cumulative line are greyed on a bar of a rate** (a yield, an average), with the reason, whether Combine values by is set or left on Automatic: their bars do not add up. A cumulative line on a count says when it needs **Order: Largest first**, and on a rate that it needs a count or a sum.
|
|
76
|
+
- **Columns is shown only on a tab of cards.** The Data tab holds tables, so it has no Columns control, and the keys 1 to 5 do nothing there.
|
|
77
|
+
- **Statistics has the Copy and Export CSV of the other views.** One row for the view; with several tables (the comparison, a group's tables), each asks which. Its table and column headings are in sentence case.
|
|
78
|
+
|
|
79
|
+
### Changed
|
|
80
|
+
|
|
81
|
+
- **Process capability lists tests without both limits in test number order**, after the tests with limits (which stay worst Ppk first). This is also the order of those rows in `stats.capability`.
|
|
82
|
+
- **The Summary report's Process capability table lists the tests with both limits.** A note counts the others, as in a presentation; their values are in Test values.
|
|
83
|
+
- **A drilldown opens on the dies the clicked mark, count or selection counted, and says what was clicked.** A chart bar, box, line point or heatmap cell of whole wafers opens on the dies its value is made from: the tested dies of a yield, the passing dies of Passing dies, the dies with a reading of a test's mean. Its title names the mark ("that pass in Split TT, across 10 wafers"). A bin's legend entry, on a map or in the gallery strip, opens on the dies its count states; each cell of Tests behind each bin and Test fail rate by site opens on the dies behind its figure; the bin pareto and the trend open on the dies of the bar or wafers picked; and a finding opens titled by its place ("in Ring 4 (edge)").
|
|
84
|
+
- **A test site row in the Summary panel shows the dies its yield is out of,** the eligible dies with a bin, as Test fail rate by site counts them.
|
|
85
|
+
- **A cell of the pass-rate card's Grid opens the dies that fail its test,** as a bar of the card does, and its tooltip says so.
|
|
86
|
+
- **Drilldown titles and counts in words:** a menu reads "at Site 1", "with no hard bin" for the Bin mix's part with no bin, and names the ring on the Re-probed card; a count of one reads "1 wafer" in chart tooltips and notes.
|
|
87
|
+
- **Passing dies, Failing dies and Die count split by a die field are counted per die.** With a ring, bin or Pass / fail on the X axis or as the colour, a bar, line point or heatmap cell is the number of those dies in that ring, bin or verdict. The counts add up (Combine values by Automatic or Sum), and a box, scatter, histogram or other chart of them says to use a bar, line or heatmap.
|
|
88
|
+
- **A chart saved as stacked, with one colour, shows each bar's own value** under its own axis label, with a note that stacking needs a colour. In the chart editor, Stacked and 100% are greyed with that reason while the chart has one colour, and Colour bars is offered.
|
|
89
|
+
- **The chart editor's controls follow each choice at once.** Choosing a field, a colour or Combine values by updates which fields and layouts the other controls offer.
|
|
90
|
+
- **The Summary panel has no close button and, when a toolbar is shown, no report buttons.** The Summary button in the top row opens and closes it, and **Summary report** and **Data tables** are in the Reports menu. A panel drawn without a toolbar keeps its own report buttons.
|
|
91
|
+
- **Select the same dies on every wafer is a mode in the View menu** (under Selection). A pill in the top row, **Same dies on all wafers**, shows while it is on and counts the selected die positions; clicking it clears the selection and keeps the mode on, and a second click turns the mode off.
|
|
92
|
+
- **Layout diagnostics is listed in the View menu while Compact layout is on.**
|
|
93
|
+
- **A saved chart whose tests are all from another test program reads the same everywhere.** The Charts menu, My charts and a sweep's card list it greyed with one reason, and it draws again on a lot that has its tests.
|
|
94
|
+
- **A sweep is one of New chart's chart types.** The Charts menu no longer lists a separate **New sweep…**.
|
|
95
|
+
- **A control that cannot be used just now is faded** (`opacity` 0.4), including a menu's disabled rows, and says why when hovered.
|
|
96
|
+
- **Tab follows the top row's order on screen.** The row's controls are in the same order in the page as in the layout, so keyboard focus moves strictly left to right.
|
|
97
|
+
- **Controls are found by these names**, for a host or test that looks for one by its label: **View** (overlays, legend, orientation, columns, selection), **Reports** (the summary report, the data tables, the gallery image), **Colours**, **Filter…** and **Summary**.
|
|
98
|
+
- **`StatsFinding.detail`**: a wafer's spatial-pattern finding states its size and shape ("a line 26 dies long and about 1 wide") in an optional `detail`, which the Summary and report read instead of picking it out of `summary`; trends and outlier wafers are recognised from the finding's level, test and variable, not from its `id`.
|
|
99
|
+
- A scratch, cluster or edge pattern of medium or high strength is listed in Worth a look of a wafer's Summary and of a lot's, whatever its cost in dies, with its size ("a line 26 dies long and about 1 wide") as its measure. A wafer's shape is recognised from the kind of finding, and a lot's outlier wafer reads "points below the median of all wafers" when the lot has no ID, as it does for a lot.
|
|
100
|
+
- The chart editor groups Setup under Data, Split and colour, Filter and Layout, with Combine values by, One mark per and What-if limits under a closed Advanced heading that names what is set in it. Colour reads **Split and colour by** and Panels **Split into charts by**; a note says when the colour repeats the X axis or has many values. A control that cannot apply because of another setting (stacked bars over an average, a cumulative line without Largest first, Order with nested levels) stays, greyed, with the reason. Customise is sectioned (Title, Axes, Limits, Colour scale, Chart details), its axes headed Horizontal and Vertical, and reference lines are a list with Add line, Add band, Add median and Add mean. The JSON tab marks unapplied edits with a dot, keeps them while you use the other tabs, and enables Apply only when the text differs from the chart.
|
|
101
|
+
- A box or bar chart with Wafer on X and the colour set to follow Group by draws a colour per wafer when Group by is off, as the colour control says.
|
|
102
|
+
- A theme switch made on `<html>` (a `data-theme` attribute, a class or an inline token) repaints the map canvases and the Insights cards where they stand, as an operating-system light/dark flip already does. The Insights tab keeps its tab, view, filters, scroll position and every card, with no flash; a change of data colours repaints the cards the same way.
|
|
103
|
+
- **A bar's "Share of each colour's total" says what it shows.** The option (formerly "Share of colour") reads "Share of each colour's total" with a hint, and a chart drawn that way states that each colour adds up to 100% across the bars: it shows where a colour's values sit, not what a bar is made of (100% stacked shows that). The 100% option's hint says so too.
|
|
104
|
+
- **Histograms, bars and boxes opened from Plot columns are one picture of the ticked columns.** They are not coloured by wafer unless a colour column is ticked, so a distribution of wafer means is not a bar and a colour per wafer. A histogram's count axis uses whole numbers.
|
|
105
|
+
- **The difference map draws the scheme's signed scale.** It takes it by what it shows, in any bundle, whatever measured ramp the reader chose.
|
|
106
|
+
- **A card opened in its own window uses the host's typeface.** When `--wmap-font-family` is not set, the window's text takes the typeface the host page resolves for the gallery, so the Summary panel and header read in the same face as the page.
|
|
107
|
+
- **A functional test in the Summary panel plots on the map.** A functional test's row in Failing tests, and in the Functional tests table switches the map to that test's Test pass/fail view and rings the dies that fail it, as a measured test's row does; a second click restores the previous view.
|
|
108
|
+
- **Yield and pass-rate colours come from the scheme's good-to-bad scale.** Heatmaps, ring and quadrant diagrams and any figure coloured by a yield use the same colour for the same yield everywhere, on the fixed key from 0% to 100% with 25, 50 and 75% named under it; a scatter coloured by a yield uses the same key. A cell with no data keeps its own fill.
|
|
109
|
+
- **Shortfall tints and Ppk classes come from the scheme's bad side.** A yield a point or more short of its reference is tinted in three strengths, in the tables, the Summary panel and the reports. A Ppk is tinted only when marginal (the middle strength) or poor (the strongest); the capability chart draws capable tests in the quantity colour, marginal and poor in two steps of the bad side.
|
|
110
|
+
- **Reports and presentations take the reader's scheme**: the value maps its measured ramp and Reverse, the bin maps its bin palette, and the tints, bars and charts its other colours, from the host's `gallery.viewOptions`; a report opened from the Summary panel follows the scheme the panel is drawn in.
|
|
111
|
+
- **Counts have their own scale.** A count heatmap and the stacked count maps (`stackedBins`, `stackedSoftBins`, `stackedFails`) run from the quiet colour at zero to the scheme's strongest count colour, with its dark-theme form on a dark theme; any count above zero is visibly stronger than zero, and a die with no data is drawn differently from a zero. The stacked count maps key from none to every wafer in the lot, so two lots read against the same scale. `stackedValues` takes the measured ramp.
|
|
112
|
+
- **"Where each test sits in its limits" uses the signed scale on a fixed 0 to 1 key** labelled Low limit, Centre and High limit; a value outside its limits widens the key evenly and is never clipped.
|
|
113
|
+
- **One palette names a category, by its value.** A split, a lot or a wafer takes its colour from its place in the whole lot's values, from the scheme's categories, so it keeps that colour in every chart and on the map; a colour set on a value's definition still wins, in charts too. A wafer is a category like any other: coloured by wafer, each wafer keeps its colour in every chart, with a chip to show or hide it; a chart with no colour takes the quantity colour, and the Summary strip and the gallery cards carry no wafer colour.
|
|
114
|
+
- **Worth a look and lot findings are written as plain sentences**: "… 10.4 points higher than the rest of the wafer. About 229 dies lost"; "… lower than other test sites, all wafers' data combined; lower on 19/19 wafers"; "Spatial pattern: edge, seen on 3/3 wafers (100%)". A chart's automatic title is in sentence case ("Yield by split", "Mean pass rate by test and site"); a test's name is kept as written.
|
|
115
|
+
- **Headings in the Summary panel and the Summary report are in sentence case**: Lot summary, Wafer information, Per-wafer yield, Functional tests, Process capability, Group comparison and the rest. The bin breakdown is headed "Hard bin breakdown — share of 4,199 dies".
|
|
116
|
+
- **A lot's yield is passing dies over tested dies across every wafer.** The Summary panel, the Insights Overview, the Summary report, the report deck and the findings headline show this one figure, labelled **Yield**; the headline adds the range of the wafers' own yields. It is the total yield: a wafer with more tested dies weighs more than one with fewer.
|
|
117
|
+
- **A reading outside its test's limits is tinted from the bad side of the good-to-bad scale** in the Dies table, the same tint as a short yield, in every data colour scheme, so it is never a colour a pass could be mistaken for.
|
|
118
|
+
- **The Data tab shades a wafer's yield against the lot median**, as the Summary panel, the report and the findings do.
|
|
119
|
+
- **Plainer labels for yields over several wafers.** The chart builder's combine choice reads **Yield (passing dies ÷ tested dies)**, and on the Yield field the mean reads **Average of wafer yields**; the correlation choice reads **All dies together**; table titles read "all dies of N wafers".
|
|
120
|
+
- **A gallery redraw reads the theme once for all its cards** (`--wmap-*` variables, `sharedCanvasTheme`); a theme change is picked up on the next redraw.
|
|
121
|
+
- **Save as PNG of a chart whose rows scroll holds every row** (the box plot of each wafer, a pass rate per test): the picture is as tall as all the rows, up to 8,000 pixels, and the chart on screen stays where it was scrolled. A presentation's pictures of these charts hold every row too.
|
|
122
|
+
- **A chart's title check reads a test cut into ranges as that test** ("GAIN_DB across ranges of IP3_DBM" names both of its fields), finds a short test name the chart shows ("VT"), and takes a radial position described in words ("from the centre to the edge") as named. No example chart's own title is reported.
|
|
123
|
+
- **The lot report's group comparison compares a wafer field only when its groups can be compared**: at least two groups of two wafers or more, and not too many, the rule Worth a look's groups follow. A field with a value of its own on every wafer (a timestamp, a serial number) is left out, and a note names the fields left out. A date field is grouped by its day, as the field list shows it.
|
|
124
|
+
- **A date field is grouped by its day wherever it is grouped.** Worth a look, Insights' Group by and the Data tab group a test date by its day, as the field list already did, also when the host passes wafer attributes that do not describe that field.
|
|
125
|
+
- **A lot report of a load split by lot, product, test program or temperature names the field in each group's heading** ("Temperature 85 · Lot PVT-LOT-05"), not the bare value.
|
|
126
|
+
- **Save as PNG on a heatmap card saves the heatmap** (Ring yield by wafer, Quadrant yield by wafer, Tests by wafer and a heatmap chart), with its title, caption and colour key.
|
|
127
|
+
- **The README and docs site use the wafertools icon**: a small wafer map with green passing dies and one purple failing die, drawn pixel by pixel at favicon sizes.
|
|
128
|
+
- **The Summary panel reads in the order an engineer checks a lot.** Its title is the population ("Lot PVT-LOT-05 · 25 wafers"), then the yield and one line on the fail bins, then **Summary report** and **Data tables**. The lot at a glance follows: a strip of every wafer's yield with the three lowest named and **All wafers ▸**; **Where the dies go**, the five largest fail bins; **Failing tests**, the five tests with the most failing dies, parametric and functional together; **On the wafer**, the yield by ring, on a single wafer's panel; and **Test sites**, when there are several sites with at least 150 dies each, with the site a finding names marked. Each heading opens its full table in the panel's place, with **Back to summary**, where every column sorts and a row shows its wafers or dies on the map. **Worth a look** comes next: what was found that costs dies or forms a shape on the wafer, the costliest first. A row is its importance as a dot and a word (High, Medium or Low), its few words, what it costs ("≈ 120 dies", or for a shape, the shape) and **Chart**, which opens the item in a window over the map: its sentence, what it costs and how strong it is, its chart, **Show on map**, **Open in Insights** and the findings it rests on. Rows of Low importance fold under **N more, all Low**. **Lot details** (or **Wafer details**) ends the panel; it lists the fields every wafer shares and, under **What was compared**, every comparison the analysis made, including those that found nothing. A host's `findingsNotice`, and the offer of a skipped test-value analysis, appear under the report buttons.
|
|
129
|
+
- **One rule for the gallery's cards when a row is shown.** When a row concerns some of the wafers, those cards are outlined and the others dimmed; when it concerns every wafer, no card is singled out. A test that differs between groups shows the test's values with that group's wafers outlined.
|
|
130
|
+
- **A defect on one wafer of a lot is listed for the lot.** A lot finding needs two wafers, so a finding of strength High on a single wafer is listed by its wafer ("W03: Cluster at (−1, 1)") and opens that wafer, unless the lot already has a finding of the same kind on that region or pattern for the wafer.
|
|
131
|
+
- **Every level is High, Medium or Low, said with what it measures.** A finding's severity is shown as **Strength** (`unusual` High, `notable` Medium, `info` Low); an item's impact as **Impact**; What divides yield's **Confidence** as High, Medium or Low. An item shows its impact, and its strength only when that is Medium or Low. An item that moves values instead of costing dies (a test that differs between groups of wafers, a shift in a region, a test's trend) is Medium from 10% of the dies moved and High from 25%, weighted by the size of the shift. An item that counts dies outside a test's limits, or a Ppk, rests on no test of a difference and has no strength. The `severity` values in the API are unchanged.
|
|
132
|
+
- **A repeated lot finding (a cluster, an edge arc, a pattern seen on several wafers) carries the dies of each wafer that shows it** in `highlight.dieKeysByWafer`, as a lot pattern already did, so the map can ring them on each wafer. It is a count of wafers and is not costed as a region's loss, except near-full wafers, whose impact is the share of the lot's dies that fail on them.
|
|
133
|
+
- **The Plot mode button names the current mode** — "Hard bin ▾", the test's name in value mode, the field's name in metadata mode, "PAT verdict" for the PAT verdict mode — whenever the row has room; otherwise it is the icon alone. The name is cut short with "…" past 150 px, and the button's accessible name and tooltip read "Plot mode: …".
|
|
134
|
+
- **The Insights Overview is in sections: Yield, Bins, Tests, Where and Why.** A line of links under the Insights tabs goes to each. Each section opens with one sentence: the reason of the largest item Worth a look holds for it, with its importance, or the plain figures when there is none; its charts follow. **Yield** gains **Bins by wafer**, each wafer's dies by bin as a share. **Tests** lists the tests behind the fail bins, the tests nearest their limits and, for a lot with several sites, each site's fail rate per test. **Where** shows the chart of the region its items are about first, then the sites and rings, with the other region charts under **More charts**; the PAT card is folded. **Why** is What divides yield. The panel's **Chart** link opens the section that holds its item.
|
|
135
|
+
- **The plot modes are named in sentence case**: Test value, Hard bin, Soft bin, Stacked test values, Stacked hard bins, Stacked soft bins, in the menu, the map titles and the legend.
|
|
136
|
+
- **A wafer opened in its own window, and the guide's window, take the theme's ground and text colour**, so neither shows the browser's white on a dark theme.
|
|
137
|
+
- **Muted text clears WCAG AA in an unthemed host.** The light default of `--wmap-text-muted` is `#5d6e7e` on the panels and on the map canvas (overflow counts, secondary labels), at 4.6:1 or more on every default ground. The canvas reads the same defaults as the panels for `--wmap-text-muted` and `--wmap-icon-active`. A host that sets these tokens sees no change.
|
|
138
|
+
- **A wafer's details scroll inside its card.** The list of fields that opens from a wafer's label (on a gallery card, a single map, or a wafer opened in its own window) is no taller than the area it covers, and scrolls when the wafer has more fields than fit.
|
|
139
|
+
- **A difference between two rates is in percentage points everywhere.** A finding's sentence reads "3.9 percentage points higher", an item's figure "33.8 points", and the report's difference column "+2.2 points".
|
|
140
|
+
- **The lot report names a wafer field as the panel does** ("Tester", "Probe card"), from the host's `attributes`.
|
|
141
|
+
- **A spatial pattern is tested against chance, as a cluster is.** A centre cluster, donut, edge ring, edge-local pattern or scratch is reported only when the measure its rule rests on (the centre's fail rate above the wafer's, the mid-radius band's above the centre and rim, the outer ring's above the wafer's, the length of the line) is rarely as strong when the wafer's fails are scattered at random over the same dies (up to 99 shuffles, at the significance level, 5% by default). Random fails at a moderate rate on a small wafer take a shape often: on 221-die wafers at 15–20% fails, 7–10% of random wafers take one; from 561 dies, 3% or fewer. On the WM-811K benchmark overall exact match is 71.6%. A wafer whose shape is set aside reads random, its finding is gone, and the findings it held under it stand on their own. The finding states `method: 'permutation'` and its p-value. Near-full is a fail rate, not a shape, and is not tested. Wafers of a lot with the same die layout and a fail count within 5% share one set of shuffles.
|
|
142
|
+
- **A heatmap's cells and tooltip carry the unit of their value.** A cell of Re-probed dies or of yield reads "71.4%", and the tooltip names the value ("Mean Re-probed: 71.4%"), as the colour key does.
|
|
143
|
+
- **A yield or pass-rate heatmap's key is linear from 0% to 100% and names 25, 50 and 75%.** The scale is fixed, so a lot yielding 15% is told apart from one yielding 45%, and equal distances on the key are equal differences in yield.
|
|
144
|
+
- **A statistics row is in one unit.** In Data → Statistics, the Summary panel's test table and the statistics by group, a test's min, quartiles, mean, max, standard deviation and limits share the unit the map's colour bar gives that test ("1760 MHz" beside "127 MHz" for `fmax_MHz`); a value under 1 keeps three significant figures.
|
|
145
|
+
- **The correlation matrix's mixed-fields warning names fields as the rest of Insights does** ("Burn-in time", "Program rev"), and gives the same first sentence as the scatter plot's: "Mixed … across these wafers: a correlation here may come from the groups' offset rather than the relationship (Simpson's paradox)." The scatter's reads "across these wafers" too.
|
|
146
|
+
- **Columns lists "Auto" and the counts alone**, in the gallery's View menu. The keys 1 to 5 and 0 still set them; the chart builder's panel control names the keys in its hover hint.
|
|
147
|
+
- **Worth a look says what its q means.** An item about groups of wafers ends "more than wafer-to-wafer variation explains (q 0.002)".
|
|
148
|
+
- **Worth a look ranks by dies lost.** A test site's findings are one item per site, costed by the dies it fails beyond the other sites' rate ("Site 3 fails io_loopback and bist_mem more often"), and only a site that does worse is listed. A low wafer is costed by its shortfall from the lot's yield times its dies. An item is Medium from 1.5% of the dies. A shape on the wafer of strength Medium or High is listed whatever it costs, apart from a lot-wide item unless the lot shows the same shape; its cost line is the shape, not a count of dies. Counts of dies outside a test's limits and Ppk values are routine: they are in the test tables and the report, not in Worth a look.
|
|
149
|
+
- **The Summary report follows the panel.** A lot report reads: summary, Worth a look (one table: importance, item and what it costs), wafer yield, bins, tests, functional tests, capability, rings, quadrants, group comparison, details, then the findings. A wafer report is in the same order.
|
|
150
|
+
- **A lot reports a region whose rate differs from the rest by 5 points or more**, over all its wafers' dies together, when the difference is significant and goes the same way on at least 60% of the wafers; a single wafer still needs 20 points or a doubled fail rate. On simulated 25-wafer lots with no effect no region is reported; a region 5 points worse is found half the time, and from 8 points every time.
|
|
151
|
+
- **A sweep series is one unit.** A sweep whose series mixes units (mV, µA and nA on one axis) is not drawn; the chart says which tests differ. The starting sweep, and the Examples' sweep charts, take a run of tests that share a unit and a name with one number changing ("Fmax @ 0.65V" … "Fmax @ 0.95V"), up to two runs.
|
|
152
|
+
- **Distributions reads Test by test, then All tests.** The tab opens on the test the analysis points at (the test of the costliest item Worth a look lists, else the lowest Ppk), not the first by number. Test by test holds the value histogram, the box plot by wafer, **Test value by site** (a box per test site, when there are two sites or more), **Probability plot of a test** (a line per group, or per site) and **Test value by wafer order**, whose axis names the wafers and whose wafers are coloured by Group by, or by the field that divides yield most clearly. All tests holds process capability, with the dies below and above each test's limits under its box (▽ and △, as the map marks them), and the tests by wafer, a column per wafer with the wafers of a group side by side (by Group by, else by the field that divides yield most clearly); with Group by on, the comparison cards follow under their own heading. The histogram's cumulative view is now the probability plot card.
|
|
153
|
+
- **A chart along wafer order names the wafers.** Its ticks and tooltip read the wafer ("W07"), and the axis is titled Wafer.
|
|
154
|
+
- **The correlation matrix reads within wafers by default.** Each wafer's mean is taken off every test first, so the matrix shows how tests move together die to die; with all dies together, a lot of process splits mostly measures the splits. **Between wafers** (from five wafers) correlates the wafers' means, and **All dies together** is both at once, with the mixed-fields warning. Tests that move together sit side by side, and the scatter opens on the pair most correlated within wafers.
|
|
155
|
+
- **Statistics can be compared By wafer, site or wafer field.** The Data tab's Statistics has a **By** choice: the lot (or Group by's groups), each wafer, each test site, or any wafer field, as one table with a row per test and group. Every statistics table gains **Below lo** and **Above hi**, the dies outside each limit, and its headers are in sentence case (**Std dev**, **Limit yield %**, **Test values**).
|
|
156
|
+
- **The Wafers table carries the bin summary.** Each hard bin is a column of the wafer's dies and their share of its judged dies, pass bins first (the eight largest shown, every bin in the export). **Yield-eligible dies** is shown only when it differs from **Dies**, and a field that repeats the wafer's label is left out of the table (it stays in the export).
|
|
157
|
+
- **The Examples are starter charts grouped by question.** About a dozen, under **Yield and bins**, **Limits and capability**, **On the wafer**, **Tester**, **Relationships** and **Sweep**, built on the lot's own tests and the field that divides its wafers. Each has a plain title ("Where each test sits in its limits, by split") and one line on what it is for, and none repeats a chart the Overview or Distributions draws. The goal plot names the tests below Ppk 1; hovering a point names any other.
|
|
158
|
+
- **The strip of wafers marks a wafer as low only when it is a point or more under the wafers' mean**, by the report's rule, under its bar and in **Below the mean**; a lot with every wafer within a point says so.
|
|
159
|
+
- **A bin chart always keys its bins.** A chart coloured by bin draws each bin in its map colour with a legend, even when the bins are its X axis (the pareto), and the Hard bins example is coloured by bin. Tests behind each bin shows each bin's colour beside its heading.
|
|
160
|
+
- **A lot recorded with soft bins only is charted by its soft bins.** The bin pareto, Bins by wafer, Tests behind each bin, Where the dies go, the Wafers table's bin columns, the test scatter's colours and the bin examples read soft bins when no die has a hard bin, by the rule the map's own mode follows. A table of a chart whose colour is its X field has no repeated column.
|
|
161
|
+
|
|
162
|
+
### Fixed
|
|
163
|
+
|
|
164
|
+
- **Saved map pictures name their colours.** A gallery's **Gallery image** has the lot's legend above the grid, with its yield and the dies in each bin or value, and a gallery card's **Save image** draws the legend beside the wafer. A card too small to show its legend or colour bar on screen has it in both pictures, and a wafer the page filter drops is left out of the Gallery image.
|
|
165
|
+
- **A cell of an Overview table opens its menu from the keyboard** (Enter or Space), as a click does.
|
|
166
|
+
|
|
167
|
+
## [0.40.1] — 2026-11-06
|
|
168
|
+
|
|
169
|
+
### Changed
|
|
170
|
+
|
|
171
|
+
- **A wafer opened from an Insights chart starts in the mode that describes it.** A bar on a chart about a test opens that wafer on the test, a yield bar opens its bins, and a gallery showing a lot-stacked mode opens the wafer in the same kind of measure on its own, never in a stack of one wafer. The menus opened from heatmap cells and Worth a look charts name their dies once ("884 dies in FF, across 4 wafers"), a histogram bar names its test and range ("162 dies with Ioff from 11.2 pA to 23.5 pA"), a cell of Tests by wafer opens the menu on its test, and a sweep level is named by its value ("measured at VDD 0.65 V"). On a Worth a look card about groups of wafers that leads with a test, the map button names that test ("Show fmax_MHz on map").
|
|
172
|
+
- **What stands out, What divides yield and the example plots compare the same fields.** A field is compared when at least two of its groups have two wafers or more and it has no more groups than half the wafers (two, below six wafers). What divides yield no longer ranks a field with more groups than that, which can move the q of the other rows, and lists it under "Not compared" with the rule; the example plots now accept a field with a group of one wafer beside two larger ones. Each set of groups is therefore read after allowing for the same other field everywhere.
|
|
173
|
+
- **Worth a look draws each item once.** An item about the yield of groups of wafers (a probe card, a recipe) is a row of What divides yield, just below, so it has no card of its own; an item about a ring's pass rate in each group keeps its card. The Summary panel's Chart link for such an item opens Insights at What divides yield. The smaller items are listed under What stands out beside the map only, not on a line under Worth a look. A Chart link appears only on an item that has a card, and it opens that item's card: a test's own item and an item about groups of wafers that leads with the same test each have their own.
|
|
174
|
+
- **Worth a look follows the filter.** While the filter narrows the lot, Worth a look draws the items What stands out lists for what it keeps, so each of the Summary panel's Chart links opens its card. Only Show, narrowing to one group, leaves it out, and says so.
|
|
175
|
+
- **A wafer opens on what was clicked, from every chart and table.** A plot of yield or bins that names no test opens the wafer on its bins wherever it is drawn (a Worth a look card, My plots), as the Overview's yield bar does, and so does a row of the Summary panel's Wafer Yield list, in a window of its own over the maps (in a stacked mode too).
|
|
176
|
+
- **A row of the Wafers table opens its wafer on the column you clicked.** A test's mean column opens it on that test, its yield on its bins, and any other column as a wafer opened from Insights opens.
|
|
177
|
+
- **A row of the Dies table opens its die's wafer on the test you clicked.** In Insights, a click opens the wafer in a window of its own with the die ringed, on the test whose column was clicked; a click in another column opens it as any wafer opened from Insights does. In the Maps view's tables, the die is ringed on its card, which shows that test. A single map shows the test and rings the die.
|
|
178
|
+
- **A lot stack names only what its wafers share.** The header and the Summary panel of a stacked mode list the fields every stacked wafer has with one value, and the header strip lists the stacked wafers' fields, never the first wafer's split or temperature as the stack's. The stacking method is named in words ("25 wafers stacked · occurrence count", "std dev").
|
|
179
|
+
- **A filter that keeps nothing says so on the Maps view too**, in the words Insights uses, and the Summary panel says once that there are no findings.
|
|
180
|
+
|
|
27
181
|
## [0.40.0] — 2026-11-06
|
|
28
182
|
|
|
29
183
|
### Added
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/wafertools/wafermap/actions/workflows/deploy.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/@wafertools/wafermap)
|
|
7
7
|

|
|
8
|
-

|
|
9
9
|
[](./LICENSE)
|
|
10
10
|
[](https://github.com/sponsors/wafertools)
|
|
11
11
|
[](https://ko-fi.com/wafertools)
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Browser-first wafer map visualisation for semiconductor test data.
|
|
16
16
|
|
|
17
17
|
**Zero runtime dependencies.** Pure ES modules with TypeScript types — works in React,
|
|
18
|
-
Svelte, Vue, plain HTML, or a Web Worker. The DOM-free data-and-stats layer is ~
|
|
18
|
+
Svelte, Vue, plain HTML, or a Web Worker. The DOM-free data-and-stats layer is ~105 kB
|
|
19
19
|
min+gz; the interactive renderer is larger, and its chart suite and in-app guide are
|
|
20
20
|
loaded on demand rather than shipped up front — [measured sizes](docs/performance.md).
|
|
21
21
|
|
|
@@ -35,9 +35,9 @@ wafermap renders interactive wafer maps from semiconductor prober output. Hard b
|
|
|
35
35
|
- `renderWaferGallery` — lot-level card grid with shared controls and click-to-expand
|
|
36
36
|
- Insights tab — a chart suite behind the Maps | Insights switch, on by default (`insights: { enabled: false }` removes it) (yield, per-test pass rate, bin pareto, capability, boxplot, histogram, wafer-to-wafer trend, correlation, scatter) computed from the same wafer/lot data, for one wafer or the whole gallery
|
|
37
37
|
- Derived tests (`derivedTests`) — tests computed per die from other tests (`abs(t[1020] - t[1010])`), which then work everywhere a measured test does, marked † as not measured
|
|
38
|
-
- Parametric sweeps (
|
|
38
|
+
- Parametric sweeps (charts with `chart: 'sweep'`, edited on the My charts tab) — an ordered run of tests read as a response curve, with the crossing and widths between two curves measured; x values given directly or read from the test names, on a linear or log axis
|
|
39
39
|
- Drilldown — right-click selected dies, a finding, a legend bin, a wafer card or a wafer's bar to chart and tabulate just that population, with the population stated on the chart; in a gallery, select the same dies on every wafer to read one region across the lot
|
|
40
|
-
- My
|
|
40
|
+
- My charts tab and Data tab — a chart builder (scatter, histogram, box, bar, line, sweep over any test, die field or wafer attribute) whose saved charts your app keeps with `insights.plots` and `onPlotsChange`, and the lot as sortable tables (statistics, dies, wafers) with CSV export
|
|
41
41
|
- Validity limits (`TestDef.validLow` / `validHigh`, `valueFilter`) — tester clamps and open-circuit readings are kept out of the map, statistics and charts, and counted wherever a population is shown
|
|
42
42
|
- Reticle and multi-project wafers — stepper-field overlay, reticle cell and shot as die fields to colour, split and chart by, reticle-position findings, and a compact layout for sparse multi-project reticles
|
|
43
43
|
- `analyzeWaferMap` / `analyzeWaferLot` — spatial analysis across rings, quadrants, sectors, and reticle positions; failure cluster detection; lot trend series
|
|
@@ -74,13 +74,13 @@ renderWaferMap(document.getElementById('map'), result);
|
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
**That is the whole integration.** No options are passed, and the map still renders
|
|
77
|
-
with its full toolbar — plot modes, colour schemes, zoom and pan, die tooltips, PNG
|
|
77
|
+
with its full toolbar — plot modes, data colour schemes, zoom and pan, die tooltips, PNG
|
|
78
78
|
export. Add `analyzeWaferMap` for the findings and summary panel, swap in
|
|
79
79
|
`renderWaferGallery` for a lot, and you have covered what most projects need.
|
|
80
80
|
|
|
81
81
|
The API reference is long because it documents every option, not because you need
|
|
82
82
|
them: [tsmap](https://github.com/wafertools/tsmap), a complete cross-platform desktop
|
|
83
|
-
application built on this library, imports **
|
|
83
|
+
application built on this library, imports **34** of its ~100 exports. Read the
|
|
84
84
|
[Quick Start](https://wafertools.github.io/wafermap/quickstart/) first and treat the
|
|
85
85
|
[API reference](https://wafertools.github.io/wafermap/api/) as something to search,
|
|
86
86
|
not to read.
|
|
@@ -16,6 +16,9 @@ export interface CanvasTheme {
|
|
|
16
16
|
* SELECTED row — hover and selected must stay tellable apart (UI_STANDARDS).
|
|
17
17
|
*/
|
|
18
18
|
hoverRow: string;
|
|
19
|
+
/** Ground of the wafer disc, under the dies and in the kerf between them: the canvas colour, so it follows the theme
|
|
20
|
+
* (`--wmap-wafer-bg` sets a ground of its own). */
|
|
21
|
+
waferFill: string;
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
24
|
* Resolve the canvas chrome palette from `--wmap-*` custom properties on `el`
|
|
@@ -29,4 +32,13 @@ export interface CanvasTheme {
|
|
|
29
32
|
* the general surface token still get a sensible canvas.
|
|
30
33
|
*/
|
|
31
34
|
export declare function resolveCanvasTheme(el: HTMLElement | null): CanvasTheme;
|
|
35
|
+
/**
|
|
36
|
+
* One theme for every map drawn under `root` within one task: the first draw resolves it, the rest reuse it, and the
|
|
37
|
+
* next task resolves afresh (a host changes its `--wmap-*` variables in a task of its own, a theme or colour-scheme
|
|
38
|
+
* change, so a redraw after it reads the new values). For a gallery, whose cards all inherit the grid's variables and
|
|
39
|
+
* redraw together: one style read per redraw instead of one per card.
|
|
40
|
+
*/
|
|
41
|
+
export declare function sharedCanvasTheme(root: HTMLElement): () => CanvasTheme;
|
|
42
|
+
/** Whether a canvas background colour is dark, so a gradient with a dark form (`counts`) takes it. */
|
|
43
|
+
export declare const isDarkCanvas: (background: string | undefined) => boolean;
|
|
32
44
|
//# sourceMappingURL=canvasTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={background:"#f5f5f5",surface:"#fff",text:"#333",textMuted:"#
|
|
1
|
+
import{isDarkColour as u}from"../renderer/colorMap.js";const t={background:"#f5f5f5",surface:"#fff",text:"#333",textMuted:"#5d6e7e",axisLine:"#bbb",accent:"#1a65ca",hoverRow:"#edf0f8",waferFill:"#f5f5f5"};export function resolveCanvasTheme(r){if(!r||typeof getComputedStyle!="function")return{...t};const a=getComputedStyle(r),e=(c,f)=>a.getPropertyValue(`--wmap-${c}`).trim()||f,n=e("canvas-bg",e("surface",t.background)),o=e("text",t.text);return{background:n,surface:e("surface",t.surface),text:o,waferFill:e("wafer-bg",n),textMuted:e("text-muted",t.textMuted),axisLine:e("border",t.axisLine),accent:e("icon-active",t.accent),hoverRow:e("bg-hover",t.hoverRow)}}export function sharedCanvasTheme(r){let a;return()=>(a||(a=resolveCanvasTheme(r),(r.ownerDocument.defaultView??globalThis).setTimeout(()=>{a=void 0},0)),a)}export const isDarkCanvas=r=>u(r);
|
|
@@ -14,8 +14,8 @@ export declare function shadesAmong(values: readonly number[], show?: (v: number
|
|
|
14
14
|
* report's rule: a point or more short is light, two medium, four strong; nothing at or above the reference.
|
|
15
15
|
*/
|
|
16
16
|
export declare function shortfallShade(points: number | null | undefined): string | undefined;
|
|
17
|
-
/** A Ppk
|
|
17
|
+
/** A Ppk tinted when marginal (under 1.33) or poor (under 1.0), by the shortfall tint's middle and strongest steps; capable has none. */
|
|
18
18
|
export declare function capabilityShade(ppk: number | null | undefined): string | undefined;
|
|
19
|
-
/** A value outside its limits,
|
|
19
|
+
/** A value outside its limits, at the shortfall tint's middle step: the bad side of the good-to-bad scale, in any scheme. */
|
|
20
20
|
export declare function outOfLimitsShade(): string;
|
|
21
21
|
//# sourceMappingURL=cellShade.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cssRgb as d,dataColorsFor as c,shortfallTint as h,signedColor as u}from"../renderer/dataColors.js";import{NEGLIGIBLE_SPREAD as l,maxOf as s,minOf as S}from"../core/utils.js";import{shortfallStep as b}from"../stats/presentation.js";const a=c("classic"),g={low:d(u(0,a,!1)),high:d(u(1,a,!1))},p=(n,e)=>`color-mix(in srgb, var(--wmap-data-signed-${n}, ${g[n]}) ${(e*100).toFixed(0)}%, transparent)`,f=n=>`var(--wmap-data-shortfall-${n}, ${h(n,a)})`,x=.42,F=.05;export function signedShade(n){if(!Number.isFinite(n))return;const e=Math.max(-1,Math.min(1,n));if(!(Math.abs(e)<F))return p(e<0?"low":"high",x*Math.abs(e))}export function shadesAmong(n,e){const t=n.filter(Number.isFinite);if(t.length<2)return n.map(()=>{});if(e&&new Set(t.map(e)).size<2)return n.map(()=>{});const i=t.reduce((r,m)=>r+m,0)/t.length,o=s(t.map(r=>Math.abs(r-i)));return o>0?i!==0&&(s(t)-S(t))/Math.abs(i)<l?n.map(()=>{}):n.map(r=>signedShade((r-i)/o)):n.map(()=>{})}export function shortfallShade(n){if(n==null||!Number.isFinite(n))return;const e=b(n);return e?f(e):void 0}export function capabilityShade(n){if(!(n==null||!Number.isFinite(n)))return n>=1.33?void 0:f(n>=1?2:3)}export function outOfLimitsShade(){return f(2)}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Die } from '../core/dies.js';
|
|
2
2
|
import type { Wafer } from '../core/wafer.js';
|
|
3
3
|
import type { TestDef } from '../renderer/buildWaferMap.js';
|
|
4
|
+
import type { StatsFinding } from '../stats/types.js';
|
|
4
5
|
/** One wafer's share of a population. */
|
|
5
6
|
export interface DrilldownItem {
|
|
6
7
|
/** The wafer's display label. */
|
|
@@ -54,5 +55,7 @@ interface WaferFacts {
|
|
|
54
55
|
export declare function selectionPopulation(selected: Die[], f: WaferFacts, all?: readonly Die[]): DrilldownSource;
|
|
55
56
|
/** Every die of one wafer. */
|
|
56
57
|
export declare function waferPopulation(dies: Die[], f: WaferFacts): DrilldownSource;
|
|
58
|
+
/** Where a finding is, for a drilldown title: "in Ring 4 (edge)", "in the edge-local pattern". */
|
|
59
|
+
export declare function findingPlace(finding: StatsFinding): string;
|
|
57
60
|
export {};
|
|
58
61
|
//# sourceMappingURL=chartPopulation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getDieKey as o}from"../core/dies.js";export const LOT_STACK_REASON="This map stacks a lot: its dies are per-position aggregates, not measured dies";function i(
|
|
1
|
+
import{getDieKey as o}from"../core/dies.js";export const LOT_STACK_REASON="This map stacks a lot: its dies are per-position aggregates, not measured dies";function i(n,e,t){return{items:[{label:t.waferLabel??"this wafer",dies:n,waferIndex:t.waferIndex,wafer:t.wafer,passBins:t.passBins,ringCount:t.ringCount}],population:e,testDefs:t.testDefs,activeTest:t.activeTest,notMeasuredReason:t.isLotStack?LOT_STACK_REASON:void 0}}export function selectionPopulation(n,e,t){const a=i(n,e.waferLabel?`selected on ${e.waferLabel}`:"selected",e);if(!t||e.isLotStack)return a;const c=new Set(n.map(r=>o(r))),s=t.filter(r=>!c.has(o(r)));if(s.length===0)return a;const u=a.items[0];return{...a,rest:{...u,dies:s}}}export function waferPopulation(n,e){return i(n,e.waferLabel?`on ${e.waferLabel}`:"on this wafer",e)}export function findingPlace(n){const e=n.comparison.left;return n.variable.kind==="spatialPattern"?`in the ${e.toLowerCase()} pattern`:`in ${e}`}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CapabilityItem } from '../../stats/capability.js';
|
|
2
|
+
import type { ReaderColors } from './divergingScale.js';
|
|
2
3
|
import type { TestDef } from '../../renderer/buildWaferMap.js';
|
|
3
4
|
import { type SaveImageHandler } from './chartShell.js';
|
|
4
5
|
export interface CapabilityPanelOptions {
|
|
@@ -6,6 +7,8 @@ export interface CapabilityPanelOptions {
|
|
|
6
7
|
items: CapabilityItem[];
|
|
7
8
|
testDefs: TestDef[];
|
|
8
9
|
onSaveImage?: SaveImageHandler;
|
|
10
|
+
/** The reader's colours: the panel draws from their data colour scheme. */
|
|
11
|
+
readerColors?: ReaderColors;
|
|
9
12
|
/** Test to mark as the section's current one, if any. */
|
|
10
13
|
selectedTestNumber?: number;
|
|
11
14
|
/** Clicking a test's box calls this — the Analysis tab wires it to drive the boxplot panel's selected test in place, mirroring tsmap's original capability→boxplot link. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buildCapabilityData as De}from"../../stats/capability.js";import{capabilityColor as Z}from"./palette.js";import{LEADING as Ae,SPACE as C,fontPx as ie,FONT as se,CLR as F}from"../toolbar.js";import{cardShell as We,guideCite as Ne,isExpandedCard as Ie,chartFillHeight as Be,applyCanvasFlow as Oe,observeResize as Re,makeTooltip as He,positionChartTooltip as _e,renderEmptyState as je,resolveChartCanvasColors as Xe,chartSwatchCss as ze,prepareCanvas as Fe,chartDpr as Ue}from"./chartShell.js";import{GUIDE_SECTIONS as Ge}from"../../stats/guideSections.js";import{fmt as Ye}from"../../renderer/fmt.js";import{limitSetName as he}from"../../renderer/valueFilter.js";import{escHtml as ee}from"../../core/utils.js";import{DERIVED_MARK as ae,DERIVED_KEY as ue}from"../../renderer/testLabel.js";import{cardAbout as Ke}from"./cardAbout.js";function H($){return $==="spec"?{lo:"LSL",hi:"USL",noun:"spec limits"}:{lo:"Lo limit",hi:"Hi limit",noun:"test limits"}}function be($){let W;for(const G of $){if(!G.hasSpec)continue;const N=G.limitBasis??"test";if(W===void 0)W=N;else if(W!==N)return"mixed"}return W}const qe=30,xe=160,ye=90,ge=28,y=42;function U($){return $===null?"\u2014":$.toFixed(2)}export function renderCapabilityPanel($){const{title:W="Process capability",items:G,testDefs:N,onSaveImage:ve,onSelectTest:Y}=$;let te=$.selectedTestNumber??null;const{card:c,body:T,setAbout:Se}=We(W,ve,$.ownerDocument);Se(Ke("capability"));const Me=N.some(n=>n.testNumber!==void 0);T.style.overflowX="hidden";function $e(){return G}const I=c.ownerDocument.createElement("div");Object.assign(I.style,{display:"flex",flexDirection:"column",gap:C.xs,marginBottom:C.sm}),c.insertBefore(I,T);const B=He(c);let K=()=>{};function Le(n,i,m,s,p,a){I.innerHTML="";const f=c.ownerDocument.createElement("span");Object.assign(f.style,{display:"inline-flex",alignItems:"center",gap:C.sm,color:F.value,fontSize:se.body,fontWeight:"500"});const b=m-n,g=(i>0?` \xB7 ${i} without both limits`:"")+(a?` \xB7 ${a.total.toLocaleString("en-GB")} values outside ${he(a.limitSet)} excluded`:""),k=c.ownerDocument.createElement("span");k.dataset.wmapCaption="1",k.textContent=b>0?`${n} of ${m} tests shown${g} \xB7 ${b} excluded (no recorded values)`:`${n} test${n!==1?"s":""} shown${g}`,f.appendChild(k),I.appendChild(f);const q=i>=n,P=c.ownerDocument.createElement("div");P.dataset.wmapCaption="1",P.textContent=q?"No test has both limits, so each is normalised to its own observed range (min = 0, max = 1) and sorted most-variable first. Ppk needs limits, so none is shown.":(p==="mixed"?"Normalised to each test's spec limits (LSL = 0, USL = 1), or its test limits (Lo limit = 0, Hi limit = 1) where it has no spec limits, worst Ppk first. ":`Normalised to ${H(p).noun} (${H(p).lo} = 0, ${H(p).hi} = 1), worst Ppk first. `)+"Tests without both limits are normalised to their own observed range and drawn muted/dashed.",q||P.append(" ",Ne(c.ownerDocument,Ge.goal),"."),Object.assign(P.style,{color:F.label,fontSize:se.body,lineHeight:Ae.base,marginTop:C.xs,maxWidth:"78ch"}),I.appendChild(P),I.appendChild(Ce(c.ownerDocument,i>0,q,s>0))}function Ce(n,i,m=!1,s=!1){const p=n.createElement("div");Object.assign(p.style,{display:"flex",flexWrap:"wrap",alignItems:"center",gap:`${C.xs} ${C.xl}`,marginTop:C.xl,marginBottom:C.xs,fontSize:se.body,color:F.label});const a=m?[]:[{color:Z(2),label:"Capable \xB7 Ppk \u2265 1.33"},{color:Z(1.1),label:"Marginal \xB7 Ppk \u2265 1.0"},{color:Z(.5),label:"Poor \xB7 Ppk < 1.0"}];i&&a.push({color:F.label,label:"No limits \xB7 no Ppk",dashed:!0});for(const f of a){const b=n.createElement("span");Object.assign(b.style,{display:"inline-flex",alignItems:"center",gap:C.sm});const g=n.createElement("span");g.style.cssText=ze(f.color,f.dashed?"outline":"solid");const k=n.createElement("span");k.textContent=f.label,b.append(g,k),p.appendChild(b)}if(s){const f=n.createElement("span");Object.assign(f.style,{display:"inline-flex",alignItems:"center",gap:C.sm});const b=n.createElement("span");b.textContent=ae,Object.assign(b.style,{color:F.value,fontWeight:"600"});const g=n.createElement("span");g.textContent=ue,f.append(b,g),p.appendChild(f)}return p}function Te(n){if(T.innerHTML="",n.length===0)return je(T,"No parametric tests have any recorded values.",{maxWidth:"480px"}),()=>{};const i=c.ownerDocument.createElement("canvas");i.style.display="block",i.style.cursor="default",T.appendChild(i);let m=0;const s=c.ownerDocument.createElement("div");s.dataset.wmapColScroll="1",s.tabIndex=0,s.setAttribute("aria-label",`Scroll the ${n.length} tests`),Object.assign(s.style,{position:"absolute",display:"none",height:"12px",overflowX:"auto",overflowY:"hidden",zIndex:"1"});const p=c.ownerDocument.createElement("div");p.style.height="1px",s.appendChild(p),T.appendChild(s),s.addEventListener("scroll",()=>{Math.abs(s.scrollLeft-m)<1||(m=s.scrollLeft,B.style.display="none",Q())}),i.addEventListener("wheel",t=>{if(s.style.display==="none")return;const l=t.deltaX||(t.shiftKey?t.deltaY:0);if(!l)return;const o=s.scrollLeft;s.scrollLeft+=t.deltaMode===1?l*16:l,s.scrollLeft!==o&&t.preventDefault()},{passive:!1});const a=n.length,f=Math.min(0,...n.map(t=>t.min)),b=Math.max(1,...n.map(t=>t.max)),g=(b-f)*.05||.1,k=f-g,P=b+g-k||1;function re(t){const l=Math.floor(t/a);return Math.max(qe,Ie(c)?l:Math.min(xe,l))}function E(t,l,o){return l+(1-(t-k)/P)*o}function we(t,l,o,r,v){const S=n.filter(e=>e.hasSpec).length,V=S===n.length,d=S===0,O=be(n),w=O==="mixed"?{lo:"Lo",hi:"Hi",noun:"limits"}:H(O),R=d?"max":O==="spec"?w.hi:"Hi",M=d?"min":O==="spec"?w.lo:"Lo",J=V?`normalised to ${w.noun}`:d?"normalised to range":"normalised (per test)";t.font=`${ie(-1)}px system-ui, sans-serif`,t.textAlign="right",t.textBaseline="middle";for(const[e,x]of[[1,R],[0,M]]){const D=E(e,o,r);D<o-1||D>o+r+1||(t.strokeStyle=l.limitLine,t.lineWidth=1,t.beginPath(),t.moveTo(y-5,D),t.lineTo(y,D),t.stroke(),t.fillStyle=l.textMuted,t.fillText(x,y-8,D))}t.save(),t.translate(9,o+r/2),t.rotate(-Math.PI/2),t.textAlign="center",t.fillStyle=l.textMuted,t.fillText(J,0,0),t.restore()}let _=-1;function Q(){Oe(i);const t=T.clientWidth,l=re(t-y),o=l*a,r=Math.max(10,Math.min(o,t-y)),v=o>r+.5,S=v?14:0;m=v?Math.max(0,Math.min(m,o-r)):0;const V=r,d=ge,O=y+r,w=Be(c,T,i,ge+200+ye+S),R=Math.max(d+60,w-ye-S),M=R-d;s.style.display=v?"block":"none",v&&(Object.assign(s.style,{left:`${i.offsetLeft+y}px`,width:`${r}px`,top:`${i.offsetTop+w-13}px`}),p.style.width=`${o}px`,Math.abs(s.scrollLeft-m)>=1&&(s.scrollLeft=m));const J=Fe(i,c,O,w);if(!J)return;const{ctx:e}=J,x=Xe(c);e.save(),e.beginPath(),e.rect(y,0,r,w),e.clip();const D=Math.max(0,Math.floor(m/l)-1),Pe=Math.min(a,Math.ceil((m+r)/l)+1);n.forEach((h,j)=>{if(j<D||j>=Pe)return;const A=y+j*l-m,u=A+l/2,L=Math.max(4,Math.min(l,xe)*.55);if(j===_&&(e.fillStyle=x.bgHover,e.fillRect(A,d,l,R-d)),n[j].testNumber===te&&(e.fillStyle=x.accent,e.fillRect(A,R-2,l,2)),h.hasSpec){const pe=E(0,d,M),fe=E(1,d,M);e.strokeStyle=x.limitLine,e.setLineDash([3,3]),e.lineWidth=1,e.beginPath(),e.moveTo(A,pe),e.lineTo(A+l,pe),e.moveTo(A,fe),e.lineTo(A+l,fe),e.stroke(),e.setLineDash([])}const ne=h.hasSpec?Z(h.ppk):x.textMuted,oe=E(h.min,d,M),X=E(h.q1,d,M),de=E(h.median,d,M),z=E(h.q3,d,M),le=E(h.max,d,M);e.strokeStyle=x.textMuted,e.lineWidth=1,e.beginPath(),e.moveTo(u,oe),e.lineTo(u,X),e.moveTo(u,z),e.lineTo(u,le),e.moveTo(u-L/4,oe),e.lineTo(u+L/4,oe),e.moveTo(u-L/4,le),e.lineTo(u+L/4,le),e.stroke(),e.fillStyle=ne,e.globalAlpha=.5,e.fillRect(u-L/2,Math.min(X,z),L,Math.max(1,Math.abs(z-X))),e.globalAlpha=1,e.strokeStyle=ne,h.hasSpec||e.setLineDash([4,2]),e.strokeRect(u-L/2,Math.min(X,z),L,Math.max(1,Math.abs(z-X))),e.setLineDash([]),e.strokeStyle=x.text,e.lineWidth=2,e.beginPath(),e.moveTo(u-L/2,de),e.lineTo(u+L/2,de),e.stroke(),e.lineWidth=1,e.font=`${ie(-1)}px system-ui, sans-serif`,e.textAlign="center",e.textBaseline="alphabetic",e.fillStyle=h.hasSpec?ne:x.textMuted,e.fillText(h.hasSpec?U(h.ppk):"\u2014",u,d-8);const me=h.label.length>12?`${h.label.slice(0,11)}\u2026`:h.label;e.save(),e.translate(u,R+6),e.rotate(-Math.PI/4),e.textAlign="right",e.textBaseline="middle",e.font=`${ie(-1)}px system-ui, sans-serif`,e.fillStyle=x.textMuted,e.fillText(me,0,0),h.derived&&(e.fillStyle=x.text,e.fillText(`${ae} `,-e.measureText(me).width,0)),e.restore()}),e.restore(),e.strokeStyle=x.border,e.lineWidth=1,e.strokeRect(y,d,V,M),we(e,x,d,M,V)}function ce(t){const l=i.getBoundingClientRect(),o=T.clientWidth,r=re(o-y),v=(t.clientX-l.left)*(i.width/Ue(i)/l.width)-y;if(v<0)return-1;const S=Math.floor((v+m)/r);return S>=0&&S<a?S:-1}return i.addEventListener("mousemove",t=>{const l=ce(t);if(l!==_&&(_=l,Q()),l===-1){B.style.display="none";return}const o=n[l],r=S=>ee(Ye(S,o.unit)),v=o.derived?`<em>${ae} ${ee(ue)}</em>`+(o.expression?`<br><code>${ee(o.expression)}</code>`:"")+"<br>":"";B.innerHTML=`<strong>${ee(o.label)}</strong> (n=${o.n}${o.excluded?`, ${o.excluded.count} outside ${he(o.excluded.limitSet)} excluded`:""})<br>${v}`+(o.hasSpec?`${H(o.limitBasis).lo} ${r(o.lsl)} \xB7 ${H(o.limitBasis).hi} ${r(o.usl)}<br>mean ${r(o.mean)}<br>Cp ${U(o.cp)} \xB7 Cpk ${U(o.cpk)}<br>Pp ${U(o.pp)} \xB7 Ppk ${U(o.ppk)}`:`<em>No limits \u2014 sorted by variability</em><br>mean ${r(o.mean)} \xB7 stddev ${r(o.stdOverall)}`)+(Y?"<br><em>click to view in boxplot</em>":""),B.style.display="block",_e(B,c,t.clientX,t.clientY),i.style.cursor=Y?"pointer":"default"}),i.addEventListener("mouseleave",()=>{_!==-1&&(_=-1,Q()),B.style.display="none"}),i.addEventListener("click",t=>{if(!Y)return;const l=ce(t);l!==-1&&Y(n[l].testNumber)}),Q}function ke(){const n=De($e(),N),i=N.filter(a=>a.testNumber!==void 0).length,m=n.filter(a=>!a.hasSpec).length,s=n.reduce((a,f)=>a+(f.excluded?.count??0),0),p=n.find(a=>a.excluded)?.excluded?.limitSet;Le(n.length,m,i,n.filter(a=>a.derived).length,be(n),s>0&&p?{total:s,limitSet:p}:void 0),K=Te(n),K()}const Ee=Re(c,()=>K());return ke(),{card:c,hasData:Me,setTest:n=>{te!==n&&(te=n,K())},destroy:()=>Ee.disconnect()}}
|
|
1
|
+
import{buildCapabilityData as Be}from"../../stats/capability.js";import{capabilityColor as ne}from"./palette.js";import{LEADING as We,SPACE as L,fontPx as re,FONT as ce,CLR as U}from"../toolbar.js";import{cardShell as Ie,onRepaint as Ne,guideCite as Oe,isExpandedCard as Re,chartFillHeight as He,applyCanvasFlow as _e,observeResize as je,makeTooltip as Xe,positionChartTooltip as ze,renderEmptyState as Ge,resolveChartCanvasColors as Fe,chartSwatchCss as Ue,prepareCanvas as Ke,chartDpr as Ye}from"./chartShell.js";import{GUIDE_SECTIONS as qe}from"../../stats/guideSections.js";import{fmt as Qe}from"../../renderer/fmt.js";import{limitSetName as be}from"../../renderer/valueFilter.js";import{escHtml as oe}from"../../core/utils.js";import{DERIVED_MARK as de,DERIVED_KEY as xe}from"../../renderer/testLabel.js";import{cardAbout as Ve,cardKindId as Je}from"./cardAbout.js";function P(y){return y==="spec"?{lo:"LSL",hi:"USL",noun:"spec limits"}:{lo:"Lo limit",hi:"Hi limit",noun:"test limits"}}function ye(y){let I;for(const Y of y){if(!Y.hasSpec)continue;const N=Y.limitBasis??"test";if(I===void 0)I=N;else if(I!==N)return"mixed"}return I}const Ze=30,ge=160,ve=104,Se=28,g=42;function K(y){return y===null?"\u2014":y.toFixed(2)}export function renderCapabilityPanel(y){const{title:I="Process capability",items:Y,testDefs:N,onSaveImage:$e,onSelectTest:q}=y;let _=y.readerColors?.dataColors,le=y.selectedTestNumber??null;const{card:c,body:T,setAbout:Me,setCardId:Ce}=Ie(I,$e,y.ownerDocument);Ce(Je("capability")),Me(Ve("capability"));const Le=N.some(o=>o.testNumber!==void 0);T.style.overflowX="hidden";function Te(){return Y}const O=c.ownerDocument.createElement("div");Object.assign(O.style,{display:"flex",flexDirection:"column",gap:L.xs,marginBottom:L.sm}),c.insertBefore(O,T);const R=Xe(c);let Q=()=>{};function we(o,i,p,a,f,r){O.innerHTML="";const h=c.ownerDocument.createElement("span");Object.assign(h.style,{display:"inline-flex",alignItems:"center",gap:L.sm,color:U.value,fontSize:ce.body,fontWeight:"500"});const x=p-o,v=(i>0?` \xB7 ${i} without both limits`:"")+(r?` \xB7 ${r.total.toLocaleString("en-GB")} values outside ${be(r.limitSet)} excluded`:""),w=c.ownerDocument.createElement("span");w.dataset.wmapCaption="1",w.textContent=x>0?`${o} of ${p} tests shown${v} \xB7 ${x} excluded (no recorded values)`:`${o} test${o!==1?"s":""} shown${v}`,h.appendChild(w),O.appendChild(h);const V=i>=o,D=c.ownerDocument.createElement("div");D.dataset.wmapCaption="1",D.textContent=V?"No test has both limits, so each is normalised to its own observed range (min = 0, max = 1), in test number order. Ppk needs limits, so none is shown.":(f==="mixed"?"Normalised to each test's spec limits (LSL = 0, USL = 1), or its test limits (Lo limit = 0, Hi limit = 1) where it has no spec limits, worst Ppk first. ":`Normalised to ${P(f).noun} (${P(f).lo} = 0, ${P(f).hi} = 1), worst Ppk first. `)+"Tests without both limits follow in test number order, normalised to their own observed range and drawn muted/dashed.",V||D.append(" ",Oe(c.ownerDocument,qe.goal),"."),Object.assign(D.style,{color:U.label,fontSize:ce.body,lineHeight:We.base,marginTop:L.xs,maxWidth:"78ch"}),O.appendChild(D),O.appendChild(ke(c.ownerDocument,i>0,V,a>0))}function ke(o,i,p=!1,a=!1){const f=o.createElement("div");Object.assign(f.style,{display:"flex",flexWrap:"wrap",alignItems:"center",gap:`${L.xs} ${L.xl}`,marginTop:L.xl,marginBottom:L.xs,fontSize:ce.body,color:U.label});const r=p?[]:[{color:ne(2,_),label:"Capable \xB7 Ppk \u2265 1.33"},{color:ne(1.1,_),label:"Marginal \xB7 Ppk \u2265 1.0"},{color:ne(.5,_),label:"Poor \xB7 Ppk < 1.0"}];i&&r.push({color:U.label,label:"No limits \xB7 no Ppk",dashed:!0});for(const h of r){const x=o.createElement("span");Object.assign(x.style,{display:"inline-flex",alignItems:"center",gap:L.sm});const v=o.createElement("span");v.style.cssText=Ue(h.color,h.dashed?"outline":"solid");const w=o.createElement("span");w.textContent=h.label,x.append(v,w),f.appendChild(x)}if(a){const h=o.createElement("span");Object.assign(h.style,{display:"inline-flex",alignItems:"center",gap:L.sm});const x=o.createElement("span");x.textContent=de,Object.assign(x.style,{color:U.value,fontWeight:"600"});const v=o.createElement("span");v.textContent=xe,h.append(x,v),f.appendChild(h)}return f}function Ee(o){if(T.innerHTML="",o.length===0)return Ge(T,"No parametric tests have any recorded values.",{maxWidth:"480px"}),()=>{};const i=c.ownerDocument.createElement("canvas");i.style.display="block",i.style.cursor="default",T.appendChild(i);let p=0;const a=c.ownerDocument.createElement("div");a.dataset.wmapColScroll="1",a.tabIndex=0,a.setAttribute("aria-label",`Scroll the ${o.length} tests`),Object.assign(a.style,{position:"absolute",display:"none",height:"12px",overflowX:"auto",overflowY:"hidden",zIndex:"1"});const f=c.ownerDocument.createElement("div");f.style.height="1px",a.appendChild(f),T.appendChild(a),a.addEventListener("scroll",()=>{Math.abs(a.scrollLeft-p)<1||(p=a.scrollLeft,R.style.display="none",J())}),i.addEventListener("wheel",t=>{if(a.style.display==="none")return;const l=t.deltaX||(t.shiftKey?t.deltaY:0);if(!l)return;const n=a.scrollLeft;a.scrollLeft+=t.deltaMode===1?l*16:l,a.scrollLeft!==n&&t.preventDefault()},{passive:!1});const r=o.length,h=Math.min(0,...o.map(t=>t.min)),x=Math.max(1,...o.map(t=>t.max)),v=(x-h)*.05||.1,w=h-v,D=x+v-w||1;function pe(t){const l=Math.floor(t/r);return Math.max(Ze,Re(c)?l:Math.min(ge,l))}function k(t,l,n){return l+(1-(t-w)/D)*n}function De(t,l,n,d,S){const $=o.filter(e=>e.hasSpec).length,Z=$===o.length,m=$===0,H=ye(o),E=H==="mixed"?{lo:"Lo",hi:"Hi",noun:"limits"}:P(H),A=m?"max":H==="spec"?E.hi:"Hi",M=m?"min":H==="spec"?E.lo:"Lo",ee=Z?`normalised to ${E.noun}`:m?"normalised to range":"normalised (per test)";t.font=`${re(-1)}px system-ui, sans-serif`,t.textAlign="right",t.textBaseline="middle";for(const[e,b]of[[1,A],[0,M]]){const B=k(e,n,d);B<n-1||B>n+d+1||(t.strokeStyle=l.limitLine,t.lineWidth=1,t.beginPath(),t.moveTo(g-5,B),t.lineTo(g,B),t.stroke(),t.fillStyle=l.textMuted,t.fillText(b,g-8,B))}t.save(),t.translate(9,n+d/2),t.rotate(-Math.PI/2),t.textAlign="center",t.fillStyle=l.textMuted,t.fillText(ee,0,0),t.restore()}let j=-1;function J(){_e(i);const t=T.clientWidth,l=pe(t-g),n=l*r,d=Math.max(10,Math.min(n,t-g)),S=n>d+.5,$=S?14:0;p=S?Math.max(0,Math.min(p,n-d)):0;const Z=d,m=Se,H=g+d,E=He(c,T,i,Se+200+ve+$),A=Math.max(m+60,E-ve-$),M=A-m;a.style.display=S?"block":"none",S&&(Object.assign(a.style,{left:`${i.offsetLeft+g}px`,width:`${d}px`,top:`${i.offsetTop+E-13}px`}),f.style.width=`${n}px`,Math.abs(a.scrollLeft-p)>=1&&(a.scrollLeft=p));const ee=Ke(i,c,H,E);if(!ee)return;const{ctx:e}=ee,b=Fe(c);e.save(),e.beginPath(),e.rect(g,0,d,E),e.clip();const B=Math.max(0,Math.floor(p/l)-1),Ae=Math.min(r,Math.ceil((p+d)/l)+1);o.forEach((s,X)=>{if(X<B||X>=Ae)return;const W=g+X*l-p,u=W+l/2,C=Math.max(4,Math.min(l,ge)*.55);if(X===j&&(e.fillStyle=b.bgHover,e.fillRect(W,m,l,A-m)),o[X].testNumber===le&&(e.fillStyle=b.accent,e.fillRect(W,A-2,l,2)),s.hasSpec){const F=k(0,m,M),te=k(1,m,M);e.strokeStyle=b.limitLine,e.setLineDash([3,3]),e.lineWidth=1,e.beginPath(),e.moveTo(W,F),e.lineTo(W+l,F),e.moveTo(W,te),e.lineTo(W+l,te),e.stroke(),e.setLineDash([])}const ie=s.hasSpec?ne(s.ppk,_):b.textMuted,se=k(s.min,m,M),z=k(s.q1,m,M),he=k(s.median,m,M),G=k(s.q3,m,M),ae=k(s.max,m,M);if(e.strokeStyle=b.textMuted,e.lineWidth=1,e.beginPath(),e.moveTo(u,se),e.lineTo(u,z),e.moveTo(u,G),e.lineTo(u,ae),e.moveTo(u-C/4,se),e.lineTo(u+C/4,se),e.moveTo(u-C/4,ae),e.lineTo(u+C/4,ae),e.stroke(),e.fillStyle=ie,e.globalAlpha=.5,e.fillRect(u-C/2,Math.min(z,G),C,Math.max(1,Math.abs(G-z))),e.globalAlpha=1,e.strokeStyle=ie,s.hasSpec||e.setLineDash([4,2]),e.strokeRect(u-C/2,Math.min(z,G),C,Math.max(1,Math.abs(G-z))),e.setLineDash([]),e.strokeStyle=b.text,e.lineWidth=2,e.beginPath(),e.moveTo(u-C/2,he),e.lineTo(u+C/2,he),e.stroke(),e.lineWidth=1,e.font=`${re(-1)}px system-ui, sans-serif`,e.textAlign="center",e.textBaseline="alphabetic",e.fillStyle=s.hasSpec?ie:b.textMuted,e.fillText(s.hasSpec?K(s.ppk):"\u2014",u,m-8),s.hasSpec&&(s.below??0)+(s.above??0)>0){const F=[s.below?`\u25BD${s.below}`:"",s.above?`\u25B3${s.above}`:""].filter(Boolean).join(" "),te=e.measureText(F).width<=l-2?F:String((s.below??0)+(s.above??0));e.fillStyle=b.text,e.textBaseline="top",e.fillText(te,u,A+3)}const ue=s.label.length>12?`${s.label.slice(0,11)}\u2026`:s.label;e.save(),e.translate(u,A+20),e.rotate(-Math.PI/4),e.textAlign="right",e.textBaseline="middle",e.font=`${re(-1)}px system-ui, sans-serif`,e.fillStyle=b.textMuted,e.fillText(ue,0,0),s.derived&&(e.fillStyle=b.text,e.fillText(`${de} `,-e.measureText(ue).width,0)),e.restore()}),e.restore(),e.strokeStyle=b.border,e.lineWidth=1,e.strokeRect(g,m,Z,M),De(e,b,m,M,Z)}function fe(t){const l=i.getBoundingClientRect(),n=T.clientWidth,d=pe(n-g),S=(t.clientX-l.left)*(i.width/Ye(i)/l.width)-g;if(S<0)return-1;const $=Math.floor((S+p)/d);return $>=0&&$<r?$:-1}return i.addEventListener("mousemove",t=>{const l=fe(t);if(l!==j&&(j=l,J()),l===-1){R.style.display="none";return}const n=o[l],d=$=>oe(Qe($,n.unit)),S=n.derived?`<em>${de} ${oe(xe)}</em>`+(n.expression?`<br><code>${oe(n.expression)}</code>`:"")+"<br>":"";R.innerHTML=`<strong>${oe(n.label)}</strong> (n=${n.n}${n.excluded?`, ${n.excluded.count} outside ${be(n.excluded.limitSet)} excluded`:""})<br>${S}`+(n.hasSpec?`${P(n.limitBasis).lo} ${d(n.lsl)} \xB7 ${P(n.limitBasis).hi} ${d(n.usl)}<br>mean ${d(n.mean)}<br>Cp ${K(n.cp)} \xB7 Cpk ${K(n.cpk)}<br>Pp ${K(n.pp)} \xB7 Ppk ${K(n.ppk)}`+(n.below!==void 0?`<br>${n.below.toLocaleString("en-GB")} below ${P(n.limitBasis).lo} \xB7 ${(n.above??0).toLocaleString("en-GB")} above ${P(n.limitBasis).hi}`:""):`<em>No limits \u2014 sorted by variability</em><br>mean ${d(n.mean)} \xB7 stddev ${d(n.stdOverall)}`)+(q?"<br><em>click to view in boxplot</em>":""),R.style.display="block",ze(R,c,t.clientX,t.clientY),i.style.cursor=q?"pointer":"default"}),i.addEventListener("mouseleave",()=>{j!==-1&&(j=-1,J()),R.style.display="none"}),i.addEventListener("click",t=>{if(!q)return;const l=fe(t);l!==-1&&q(o[l].testNumber)}),J}function me(){const o=Be(Te(),N),i=N.filter(r=>r.testNumber!==void 0).length,p=o.filter(r=>!r.hasSpec).length,a=o.reduce((r,h)=>r+(h.excluded?.count??0),0),f=o.find(r=>r.excluded)?.excluded?.limitSet;we(o.length,p,i,o.filter(r=>r.derived).length,ye(o),a>0&&f?{total:a,limitSet:f}:void 0),Q=Ee(o),Q()}const Pe=je(c,()=>Q());return me(),Ne(c,()=>{_=y.readerColors?.dataColors,me()}),{card:c,hasData:Le,setTest:o=>{le!==o&&(le=o,Q())},destroy:()=>Pe.disconnect()}}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PlotChart } from '../../stats/plotSpec.js';
|
|
2
|
-
import { type CardKind } from '../../stats/chartCatalogue.js';
|
|
2
|
+
import { cardKindId, type CardKind } from '../../stats/chartCatalogue.js';
|
|
3
3
|
export type { CardKind };
|
|
4
|
+
export { cardKindId };
|
|
4
5
|
/** A card's About line, and what the card is, which names its menu row. */
|
|
5
6
|
export interface CardAboutLine {
|
|
6
7
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CHART_CATALOGUE as
|
|
1
|
+
import{CHART_CATALOGUE as a,cardKindId as d,catalogueCardId as u}from"../../stats/chartCatalogue.js";export{d as cardKindId};const o={},c={},r={};for(const t of a){for(const n of t.cards??[])o[n]=t.about;t.card&&(c[t.card]=t.about),t.chart&&(r[t.chart]=t.about)}const e=new Set(a.flatMap(t=>t.kind==="table"&&t.card?[t.card]:[]));export function plotAbout(t){return{text:o[u(t.id)]??r[t.chart],noun:"chart"}}export function cardAbout(t){return{text:c[t],noun:e.has(t)?"table":"chart"}}export const ABOUT_LINES={cards:o,charts:r};
|