@ni/nimble-components 20.1.21 → 20.1.22

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.
@@ -16288,7 +16288,7 @@
16288
16288
 
16289
16289
  /**
16290
16290
  * Do not edit directly
16291
- * Generated on Fri, 01 Sep 2023 05:37:36 GMT
16291
+ * Generated on Fri, 01 Sep 2023 07:07:38 GMT
16292
16292
  */
16293
16293
 
16294
16294
  const Information100DarkUi = "#a46eff";
@@ -71650,7 +71650,7 @@ img.ProseMirror-separator {
71650
71650
  return initRange.apply(scale, arguments);
71651
71651
  }
71652
71652
 
71653
- const WaferMapQuadrant = {
71653
+ const WaferMapOriginLocation = {
71654
71654
  bottomLeft: 'bottom-left',
71655
71655
  bottomRight: 'bottom-right',
71656
71656
  topLeft: 'top-left',
@@ -71732,12 +71732,12 @@ img.ProseMirror-separator {
71732
71732
  const containerDiameter = Math.min(this._containerDimensions.width, this._containerDimensions.height);
71733
71733
  const gridDimensions = this.calculateGridDimensions(this.wafermap.dies);
71734
71734
  // this scale is used for positioning the dies on the canvas
71735
- const quadrant = this.wafermap.quadrant;
71736
- this._horizontalScale = this.createHorizontalScale(quadrant, gridDimensions, containerDiameter);
71737
- this._invertedHorizontalScale = this.createInvertedHorizontalScale(quadrant, gridDimensions, containerDiameter);
71735
+ const originLocation = this.wafermap.originLocation;
71736
+ this._horizontalScale = this.createHorizontalScale(originLocation, gridDimensions, containerDiameter);
71737
+ this._invertedHorizontalScale = this.createInvertedHorizontalScale(originLocation, gridDimensions, containerDiameter);
71738
71738
  // this scale is used for positioning the dies on the canvas
71739
- this._verticalScale = this.createVerticalScale(quadrant, gridDimensions, containerDiameter);
71740
- this._invertedVerticalScale = this.createInvertedVerticalScale(quadrant, gridDimensions, containerDiameter);
71739
+ this._verticalScale = this.createVerticalScale(originLocation, gridDimensions, containerDiameter);
71740
+ this._invertedVerticalScale = this.createInvertedVerticalScale(originLocation, gridDimensions, containerDiameter);
71741
71741
  this._dieDimensions = {
71742
71742
  width: this.horizontalScale.bandwidth(),
71743
71743
  height: this.verticalScale.bandwidth()
@@ -71775,47 +71775,47 @@ img.ProseMirror-separator {
71775
71775
  height: canvasDimensions.height - margin.top - margin.bottom
71776
71776
  };
71777
71777
  }
71778
- createHorizontalScale(axisLocation, grid, containerWidth) {
71778
+ createHorizontalScale(originLocation, grid, containerWidth) {
71779
71779
  const scale = band()
71780
71780
  .domain(range(grid.origin.x, grid.origin.x + grid.cols))
71781
71781
  .paddingInner(0)
71782
71782
  .paddingOuter(0)
71783
71783
  .align(0)
71784
71784
  .round(false);
71785
- if (axisLocation === WaferMapQuadrant.bottomLeft
71786
- || axisLocation === WaferMapQuadrant.topLeft) {
71785
+ if (originLocation === WaferMapOriginLocation.bottomLeft
71786
+ || originLocation === WaferMapOriginLocation.topLeft) {
71787
71787
  return scale.range([0, containerWidth]);
71788
71788
  }
71789
71789
  return scale.range([containerWidth, 0]);
71790
71790
  }
71791
- createInvertedHorizontalScale(axisLocation, grid, containerWidth) {
71791
+ createInvertedHorizontalScale(originLocation, grid, containerWidth) {
71792
71792
  const scale = quantile().domain([0, containerWidth]);
71793
- if (axisLocation === WaferMapQuadrant.bottomLeft
71794
- || axisLocation === WaferMapQuadrant.topLeft) {
71793
+ if (originLocation === WaferMapOriginLocation.bottomLeft
71794
+ || originLocation === WaferMapOriginLocation.topLeft) {
71795
71795
  return scale.range(range(grid.origin.x, grid.origin.x + grid.cols));
71796
71796
  }
71797
71797
  return scale.range(range(grid.origin.x, grid.origin.x + grid.cols).reverse());
71798
71798
  }
71799
- createVerticalScale(axisLocation, grid, containerHeight) {
71799
+ createVerticalScale(originLocation, grid, containerHeight) {
71800
71800
  const scale = band()
71801
71801
  .domain(range(grid.origin.y, grid.origin.y + grid.rows))
71802
71802
  .paddingInner(this.defaultPadding)
71803
71803
  .paddingOuter(0)
71804
71804
  .align(0)
71805
71805
  .round(false);
71806
- if (axisLocation === WaferMapQuadrant.bottomLeft
71807
- || axisLocation === WaferMapQuadrant.bottomRight) {
71808
- return scale.range([containerHeight, 0]);
71806
+ if (originLocation === WaferMapOriginLocation.bottomLeft
71807
+ || originLocation === WaferMapOriginLocation.bottomRight) {
71808
+ return scale.range([0, containerHeight]);
71809
71809
  }
71810
- return scale.range([0, containerHeight]);
71810
+ return scale.range([containerHeight, 0]);
71811
71811
  }
71812
- createInvertedVerticalScale(axisLocation, grid, containerHeight) {
71812
+ createInvertedVerticalScale(originLocation, grid, containerHeight) {
71813
71813
  const scale = quantile().domain([0, containerHeight]);
71814
- if (axisLocation === WaferMapQuadrant.bottomLeft
71815
- || axisLocation === WaferMapQuadrant.bottomRight) {
71816
- return scale.range(range(grid.origin.y, grid.origin.y + grid.rows).reverse());
71814
+ if (originLocation === WaferMapOriginLocation.bottomLeft
71815
+ || originLocation === WaferMapOriginLocation.bottomRight) {
71816
+ return scale.range(range(grid.origin.y, grid.origin.y + grid.rows));
71817
71817
  }
71818
- return scale.range(range(grid.origin.y, grid.origin.y + grid.rows));
71818
+ return scale.range(range(grid.origin.y, grid.origin.y + grid.rows).reverse());
71819
71819
  }
71820
71820
  calculateMarginAddition(baseMargin, addedMargin) {
71821
71821
  return {
@@ -72202,13 +72202,13 @@ img.ProseMirror-separator {
72202
72202
  this.wafermap.hoverDie = undefined;
72203
72203
  }
72204
72204
  calculateDieCoordinates(wafermap, mousePosition) {
72205
- const axisLocation = wafermap.quadrant;
72206
- const xRoundFunction = axisLocation === WaferMapQuadrant.bottomLeft
72207
- || axisLocation === WaferMapQuadrant.topLeft
72205
+ const originLocation = wafermap.originLocation;
72206
+ const xRoundFunction = originLocation === WaferMapOriginLocation.bottomLeft
72207
+ || originLocation === WaferMapOriginLocation.topLeft
72208
72208
  ? Math.floor
72209
72209
  : Math.ceil;
72210
- const yRoundFunction = axisLocation === WaferMapQuadrant.topLeft
72211
- || axisLocation === WaferMapQuadrant.topRight
72210
+ const yRoundFunction = originLocation === WaferMapOriginLocation.bottomLeft
72211
+ || originLocation === WaferMapOriginLocation.bottomRight
72212
72212
  ? Math.floor
72213
72213
  : Math.ceil;
72214
72214
  // go to x and y scale to get the x,y values of the die.
@@ -72262,7 +72262,7 @@ img.ProseMirror-separator {
72262
72262
  const trackedItems = [
72263
72263
  'canvasWidth',
72264
72264
  'canvasHeight',
72265
- 'quadrant',
72265
+ 'originLocation',
72266
72266
  'dies',
72267
72267
  'maxCharacters',
72268
72268
  'colorScale',
@@ -72286,7 +72286,7 @@ img.ProseMirror-separator {
72286
72286
  get requiresEventsUpdate() {
72287
72287
  return (this.isTracked('canvasWidth')
72288
72288
  || this.isTracked('canvasHeight')
72289
- || this.isTracked('quadrant')
72289
+ || this.isTracked('originLocation')
72290
72290
  || this.isTracked('dies')
72291
72291
  || this.isTracked('maxCharacters')
72292
72292
  || this.isTracked('colorScale')
@@ -72300,7 +72300,7 @@ img.ProseMirror-separator {
72300
72300
  return this.isTracked('canvasWidth') || this.isTracked('canvasHeight');
72301
72301
  }
72302
72302
  get requiresScalesUpdate() {
72303
- return this.isTracked('quadrant') || this.isTracked('dies');
72303
+ return this.isTracked('originLocation') || this.isTracked('dies');
72304
72304
  }
72305
72305
  get requiresLabelsFontSizeUpdate() {
72306
72306
  return this.isTracked('maxCharacters');
@@ -72348,7 +72348,7 @@ img.ProseMirror-separator {
72348
72348
  * needs to be initialized before the properties trigger changes
72349
72349
  */
72350
72350
  this.waferMapUpdateTracker = new WaferMapUpdateTracker(this);
72351
- this.quadrant = WaferMapQuadrant.topLeft;
72351
+ this.originLocation = WaferMapOriginLocation.bottomLeft;
72352
72352
  this.orientation = WaferMapOrientation.top;
72353
72353
  this.maxCharacters = 4;
72354
72354
  this.dieLabelsHidden = false;
@@ -72459,8 +72459,8 @@ img.ProseMirror-separator {
72459
72459
  });
72460
72460
  return resizeObserver;
72461
72461
  }
72462
- quadrantChanged() {
72463
- this.waferMapUpdateTracker.track('quadrant');
72462
+ originLocationChanged() {
72463
+ this.waferMapUpdateTracker.track('originLocation');
72464
72464
  this.waferMapUpdateTracker.queueUpdate();
72465
72465
  }
72466
72466
  maxCharactersChanged() {
@@ -72510,32 +72510,22 @@ img.ProseMirror-separator {
72510
72510
  }
72511
72511
  }
72512
72512
  __decorate$1([
72513
- attr
72514
- ], WaferMap.prototype, "quadrant", void 0);
72513
+ attr({ attribute: 'origin-location' })
72514
+ ], WaferMap.prototype, "originLocation", void 0);
72515
72515
  __decorate$1([
72516
72516
  attr
72517
72517
  ], WaferMap.prototype, "orientation", void 0);
72518
72518
  __decorate$1([
72519
- attr({
72520
- attribute: 'max-characters',
72521
- converter: nullableNumberConverter
72522
- })
72519
+ attr({ attribute: 'max-characters', converter: nullableNumberConverter })
72523
72520
  ], WaferMap.prototype, "maxCharacters", void 0);
72524
72521
  __decorate$1([
72525
- attr({
72526
- attribute: 'die-labels-hidden',
72527
- mode: 'boolean'
72528
- })
72522
+ attr({ attribute: 'die-labels-hidden', mode: 'boolean' })
72529
72523
  ], WaferMap.prototype, "dieLabelsHidden", void 0);
72530
72524
  __decorate$1([
72531
- attr({
72532
- attribute: 'die-labels-suffix'
72533
- })
72525
+ attr({ attribute: 'die-labels-suffix' })
72534
72526
  ], WaferMap.prototype, "dieLabelsSuffix", void 0);
72535
72527
  __decorate$1([
72536
- attr({
72537
- attribute: 'color-scale-mode'
72538
- })
72528
+ attr({ attribute: 'color-scale-mode' })
72539
72529
  ], WaferMap.prototype, "colorScaleMode", void 0);
72540
72530
  __decorate$1([
72541
72531
  observable