@ni/nimble-components 20.16.1 → 20.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-components-bundle.js +36 -40
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +11 -14
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/wafer-map/index.d.ts +2 -2
- package/dist/esm/wafer-map/index.js +4 -4
- package/dist/esm/wafer-map/index.js.map +1 -1
- package/dist/esm/wafer-map/modules/prerendering.d.ts +1 -0
- package/dist/esm/wafer-map/modules/prerendering.js +26 -30
- package/dist/esm/wafer-map/modules/prerendering.js.map +1 -1
- package/dist/esm/wafer-map/modules/wafer-map-update-tracker.d.ts +1 -1
- package/dist/esm/wafer-map/modules/wafer-map-update-tracker.js +5 -5
- package/dist/esm/wafer-map/modules/wafer-map-update-tracker.js.map +1 -1
- package/dist/esm/wafer-map/types.d.ts +1 -0
- package/package.json +2 -1
|
@@ -16274,7 +16274,7 @@
|
|
|
16274
16274
|
|
|
16275
16275
|
/**
|
|
16276
16276
|
* Do not edit directly
|
|
16277
|
-
* Generated on
|
|
16277
|
+
* Generated on Wed, 13 Dec 2023 13:12:27 GMT
|
|
16278
16278
|
*/
|
|
16279
16279
|
|
|
16280
16280
|
const Information100DarkUi = "#a46eff";
|
|
@@ -76591,31 +76591,23 @@ img.ProseMirror-separator {
|
|
|
76591
76591
|
}
|
|
76592
76592
|
updateDiesRenderInfo() {
|
|
76593
76593
|
this.d3ColorScale = this.createD3ColorScale(this.wafermap.colorScale, this.wafermap.colorScaleMode);
|
|
76594
|
+
this._diesRenderInfo = this.wafermap.dies
|
|
76595
|
+
.map(die => this.computeDieRenderInfo(die))
|
|
76596
|
+
.filter(info => info !== null);
|
|
76597
|
+
}
|
|
76598
|
+
computeDieRenderInfo(die) {
|
|
76594
76599
|
const margin = this.dataManager.margin;
|
|
76595
|
-
const
|
|
76596
|
-
const
|
|
76597
|
-
|
|
76598
|
-
|
|
76599
|
-
const maxCharacters = this.wafermap.maxCharacters;
|
|
76600
|
-
const dieLabelsHidden = this.wafermap.dieLabelsHidden;
|
|
76601
|
-
const dieLabelsSuffix = this.wafermap.dieLabelsSuffix;
|
|
76602
|
-
this._diesRenderInfo = [];
|
|
76603
|
-
for (const die of this.wafermap.dies) {
|
|
76604
|
-
const scaledX = horizontalScale(die.x);
|
|
76605
|
-
if (scaledX === undefined) {
|
|
76606
|
-
continue;
|
|
76607
|
-
}
|
|
76608
|
-
const scaledY = verticalScale(die.y);
|
|
76609
|
-
if (scaledY === undefined) {
|
|
76610
|
-
continue;
|
|
76611
|
-
}
|
|
76612
|
-
this._diesRenderInfo.push({
|
|
76613
|
-
x: scaledX + margin.right,
|
|
76614
|
-
y: scaledY + margin.top,
|
|
76615
|
-
fillStyle: this.calculateFillStyle(die.value, colorScaleMode, highlightedValues),
|
|
76616
|
-
text: this.buildLabel(die.value, maxCharacters, dieLabelsHidden, dieLabelsSuffix)
|
|
76617
|
-
});
|
|
76600
|
+
const scaledX = this.dataManager.horizontalScale(die.x);
|
|
76601
|
+
const scaledY = this.dataManager.verticalScale(die.y);
|
|
76602
|
+
if (scaledX === undefined || scaledY === undefined) {
|
|
76603
|
+
return null;
|
|
76618
76604
|
}
|
|
76605
|
+
return {
|
|
76606
|
+
x: scaledX + margin.right,
|
|
76607
|
+
y: scaledY + margin.top,
|
|
76608
|
+
fillStyle: this.calculateFillStyle(die.value, this.wafermap.colorScaleMode, this.wafermap.highlightedTags, die.tags),
|
|
76609
|
+
text: this.buildLabel(die.value, this.wafermap.maxCharacters, this.wafermap.dieLabelsHidden, this.wafermap.dieLabelsSuffix)
|
|
76610
|
+
};
|
|
76619
76611
|
}
|
|
76620
76612
|
calculateLabelsFontSize(dieDimensions, maxCharacters) {
|
|
76621
76613
|
return Math.min(dieDimensions.height, (dieDimensions.width / (Math.max(2, maxCharacters) * 0.5))
|
|
@@ -76644,11 +76636,15 @@ img.ProseMirror-separator {
|
|
|
76644
76636
|
}
|
|
76645
76637
|
return label;
|
|
76646
76638
|
}
|
|
76647
|
-
calculateOpacity(
|
|
76648
|
-
|
|
76649
|
-
|
|
76650
|
-
|
|
76651
|
-
|
|
76639
|
+
calculateOpacity(dieTags, highlightedTags) {
|
|
76640
|
+
if (!highlightedTags || highlightedTags.length === 0) {
|
|
76641
|
+
return 1;
|
|
76642
|
+
}
|
|
76643
|
+
const highlightedSet = new Set(highlightedTags);
|
|
76644
|
+
if (dieTags?.some(dieTag => highlightedSet.has(dieTag))) {
|
|
76645
|
+
return 1;
|
|
76646
|
+
}
|
|
76647
|
+
return this.nonHighlightedOpacity;
|
|
76652
76648
|
}
|
|
76653
76649
|
isColorScaleLinear(colorScaleMode) {
|
|
76654
76650
|
return colorScaleMode === WaferMapColorScaleMode.linear;
|
|
@@ -76656,7 +76652,7 @@ img.ProseMirror-separator {
|
|
|
76656
76652
|
isColorScaleOrdinal(colorScaleMode) {
|
|
76657
76653
|
return colorScaleMode === WaferMapColorScaleMode.ordinal;
|
|
76658
76654
|
}
|
|
76659
|
-
calculateFillStyle(value, colorScaleMode,
|
|
76655
|
+
calculateFillStyle(value, colorScaleMode, highlightedTags, dieTags) {
|
|
76660
76656
|
let colorValue = this.emptyDieColor;
|
|
76661
76657
|
if (this.dieHasData(value)) {
|
|
76662
76658
|
if (isNaN(+value)) {
|
|
@@ -76676,7 +76672,7 @@ img.ProseMirror-separator {
|
|
|
76676
76672
|
if (rgbColor === null) {
|
|
76677
76673
|
return this.emptyDieColor;
|
|
76678
76674
|
}
|
|
76679
|
-
rgbColor = new ColorRGBA64(rgbColor.r, rgbColor.g, rgbColor.b, this.calculateOpacity(
|
|
76675
|
+
rgbColor = new ColorRGBA64(rgbColor.r, rgbColor.g, rgbColor.b, this.calculateOpacity(dieTags, highlightedTags));
|
|
76680
76676
|
return rgbColor.toStringWebRGBA();
|
|
76681
76677
|
}
|
|
76682
76678
|
}
|
|
@@ -77012,6 +77008,7 @@ img.ProseMirror-separator {
|
|
|
77012
77008
|
}
|
|
77013
77009
|
|
|
77014
77010
|
const trackedItems = [
|
|
77011
|
+
'highlightedTags',
|
|
77015
77012
|
'canvasWidth',
|
|
77016
77013
|
'canvasHeight',
|
|
77017
77014
|
'originLocation',
|
|
@@ -77023,7 +77020,6 @@ img.ProseMirror-separator {
|
|
|
77023
77020
|
'maxCharacters',
|
|
77024
77021
|
'colorScale',
|
|
77025
77022
|
'colorScaleMode',
|
|
77026
|
-
'highlightedValues',
|
|
77027
77023
|
'dieLabelsHidden',
|
|
77028
77024
|
'dieLabelsSuffix',
|
|
77029
77025
|
'transform',
|
|
@@ -77040,7 +77036,8 @@ img.ProseMirror-separator {
|
|
|
77040
77036
|
this.updateQueued = false;
|
|
77041
77037
|
}
|
|
77042
77038
|
get requiresEventsUpdate() {
|
|
77043
|
-
return (this.isTracked('
|
|
77039
|
+
return (this.isTracked('highlightedTags')
|
|
77040
|
+
|| this.isTracked('canvasWidth')
|
|
77044
77041
|
|| this.isTracked('canvasHeight')
|
|
77045
77042
|
|| this.isTracked('originLocation')
|
|
77046
77043
|
|| this.isTracked('gridMinX')
|
|
@@ -77051,7 +77048,6 @@ img.ProseMirror-separator {
|
|
|
77051
77048
|
|| this.isTracked('maxCharacters')
|
|
77052
77049
|
|| this.isTracked('colorScale')
|
|
77053
77050
|
|| this.isTracked('colorScaleMode')
|
|
77054
|
-
|| this.isTracked('highlightedValues')
|
|
77055
77051
|
|| this.isTracked('dieLabelsHidden')
|
|
77056
77052
|
|| this.isTracked('dieLabelsSuffix')
|
|
77057
77053
|
|| this.isTracked('transform'));
|
|
@@ -77071,9 +77067,9 @@ img.ProseMirror-separator {
|
|
|
77071
77067
|
return this.isTracked('maxCharacters');
|
|
77072
77068
|
}
|
|
77073
77069
|
get requiresDiesRenderInfoUpdate() {
|
|
77074
|
-
return (this.isTracked('
|
|
77070
|
+
return (this.isTracked('highlightedTags')
|
|
77071
|
+
|| this.isTracked('colorScale')
|
|
77075
77072
|
|| this.isTracked('colorScaleMode')
|
|
77076
|
-
|| this.isTracked('highlightedValues')
|
|
77077
77073
|
|| this.isTracked('dieLabelsHidden')
|
|
77078
77074
|
|| this.isTracked('dieLabelsSuffix'));
|
|
77079
77075
|
}
|
|
@@ -77192,7 +77188,7 @@ img.ProseMirror-separator {
|
|
|
77192
77188
|
* @internal
|
|
77193
77189
|
*/
|
|
77194
77190
|
this.hoverHeight = 0;
|
|
77195
|
-
this.
|
|
77191
|
+
this.highlightedTags = [];
|
|
77196
77192
|
this.dies = [];
|
|
77197
77193
|
this.colorScale = {
|
|
77198
77194
|
colors: [],
|
|
@@ -77306,8 +77302,8 @@ img.ProseMirror-separator {
|
|
|
77306
77302
|
this.waferMapUpdateTracker.track('colorScaleMode');
|
|
77307
77303
|
this.waferMapUpdateTracker.queueUpdate();
|
|
77308
77304
|
}
|
|
77309
|
-
|
|
77310
|
-
this.waferMapUpdateTracker.track('
|
|
77305
|
+
highlightedTagsChanged() {
|
|
77306
|
+
this.waferMapUpdateTracker.track('highlightedTags');
|
|
77311
77307
|
this.waferMapUpdateTracker.queueUpdate();
|
|
77312
77308
|
}
|
|
77313
77309
|
diesChanged() {
|
|
@@ -77392,7 +77388,7 @@ img.ProseMirror-separator {
|
|
|
77392
77388
|
], WaferMap.prototype, "hoverDie", void 0);
|
|
77393
77389
|
__decorate$1([
|
|
77394
77390
|
observable
|
|
77395
|
-
], WaferMap.prototype, "
|
|
77391
|
+
], WaferMap.prototype, "highlightedTags", void 0);
|
|
77396
77392
|
__decorate$1([
|
|
77397
77393
|
observable
|
|
77398
77394
|
], WaferMap.prototype, "dies", void 0);
|