@ni/nimble-components 16.1.6 → 16.1.8
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 +17 -8
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2 -1
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/tab/styles.js +2 -1
- package/dist/esm/tab/styles.js.map +1 -1
- package/dist/esm/wafer-map/index.js +5 -2
- package/dist/esm/wafer-map/index.js.map +1 -1
- package/dist/esm/wafer-map/modules/computations.js +10 -5
- package/dist/esm/wafer-map/modules/computations.js.map +1 -1
- package/package.json +4 -4
|
@@ -22014,6 +22014,7 @@
|
|
|
22014
22014
|
--ni-private-active-indicator-width: 2px;
|
|
22015
22015
|
--ni-private-focus-indicator-width: 1px;
|
|
22016
22016
|
--ni-private-indicator-lines-gap: 1px;
|
|
22017
|
+
--ni-private-focus-indicator-inset-width: 3px;
|
|
22017
22018
|
}
|
|
22018
22019
|
|
|
22019
22020
|
:host(:hover) {
|
|
@@ -22069,7 +22070,7 @@
|
|
|
22069
22070
|
}
|
|
22070
22071
|
|
|
22071
22072
|
:host(${focusVisible})::before {
|
|
22072
|
-
width: 100
|
|
22073
|
+
width: calc(100% - 2 * var(--ni-private-focus-indicator-inset-width));
|
|
22073
22074
|
}
|
|
22074
22075
|
|
|
22075
22076
|
:host::after {
|
|
@@ -28105,19 +28106,24 @@ Instead styling against the role which is more general and likely a better appro
|
|
|
28105
28106
|
};
|
|
28106
28107
|
}
|
|
28107
28108
|
calculateMapDimensions(dies) {
|
|
28108
|
-
if (dies.length === 0 || dies[0] === undefined)
|
|
28109
|
+
if (dies.length === 0 || dies[0] === undefined) {
|
|
28109
28110
|
return { origin: { x: 0, y: 0 }, rows: 0, cols: 0 };
|
|
28111
|
+
}
|
|
28110
28112
|
const minPoint = { x: dies[0].x, y: dies[0].y };
|
|
28111
28113
|
const maxPoint = { x: dies[0].x, y: dies[0].y };
|
|
28112
28114
|
for (const die of dies) {
|
|
28113
|
-
if (die.x < minPoint.x)
|
|
28115
|
+
if (die.x < minPoint.x) {
|
|
28114
28116
|
minPoint.x = die.x;
|
|
28115
|
-
|
|
28117
|
+
}
|
|
28118
|
+
if (die.y < minPoint.y) {
|
|
28116
28119
|
minPoint.y = die.y;
|
|
28117
|
-
|
|
28120
|
+
}
|
|
28121
|
+
if (die.x > maxPoint.x) {
|
|
28118
28122
|
maxPoint.x = die.x;
|
|
28119
|
-
|
|
28123
|
+
}
|
|
28124
|
+
if (die.y > maxPoint.y) {
|
|
28120
28125
|
maxPoint.y = die.y;
|
|
28126
|
+
}
|
|
28121
28127
|
}
|
|
28122
28128
|
return {
|
|
28123
28129
|
origin: minPoint,
|
|
@@ -29453,8 +29459,9 @@ Instead styling against the role which is more general and likely a better appro
|
|
|
29453
29459
|
super.connectedCallback();
|
|
29454
29460
|
this.resizeObserver = new ResizeObserver(entries => {
|
|
29455
29461
|
const entry = entries[0];
|
|
29456
|
-
if (entry === undefined)
|
|
29462
|
+
if (entry === undefined) {
|
|
29457
29463
|
return;
|
|
29464
|
+
}
|
|
29458
29465
|
const { height, width } = entry.contentRect;
|
|
29459
29466
|
this.canvasSideLength = Math.min(height, width);
|
|
29460
29467
|
});
|
|
@@ -29470,8 +29477,10 @@ Instead styling against the role which is more general and likely a better appro
|
|
|
29470
29477
|
*/
|
|
29471
29478
|
render() {
|
|
29472
29479
|
this.renderQueued = false;
|
|
29473
|
-
if (this.canvasSideLength === undefined
|
|
29480
|
+
if (this.canvasSideLength === undefined
|
|
29481
|
+
|| this.canvasSideLength === 0) {
|
|
29474
29482
|
return;
|
|
29483
|
+
}
|
|
29475
29484
|
this.renderer?.clearCanvas(this.canvasSideLength, this.canvasSideLength);
|
|
29476
29485
|
this.dataManager = new DataManager(this.dies, this.quadrant, { width: this.canvasSideLength, height: this.canvasSideLength }, this.colorScale, this.highlightedValues, this.colorScaleMode, this.dieLabelsHidden, this.dieLabelsSuffix, this.maxCharacters);
|
|
29477
29486
|
this.renderer = new RenderingModule(this.dataManager, this.canvas);
|