@ni/nimble-components 16.1.3 → 16.1.5

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.
@@ -22234,7 +22234,7 @@
22234
22234
  let result = originalRow;
22235
22235
  for (const key of accessorKey.split('.')) {
22236
22236
  result = result[key];
22237
- if (process.env.NODE_ENV !== 'production' && result === undefined) {
22237
+ if (result === undefined) {
22238
22238
  throw new Error(`"${key}" in deeply nested key "${accessorKey}" returned undefined.`);
22239
22239
  }
22240
22240
  }
@@ -22245,10 +22245,9 @@
22245
22245
  }
22246
22246
  }
22247
22247
  if (!id) {
22248
- if (process.env.NODE_ENV !== 'production') {
22248
+ {
22249
22249
  throw new Error(resolvedColumnDef.accessorFn ? `Columns require an id when using an accessorFn` : `Columns require an id when using a non-string header`);
22250
22250
  }
22251
- throw new Error();
22252
22251
  }
22253
22252
  let column = {
22254
22253
  id: `${String(id)}`,
@@ -22261,7 +22260,7 @@
22261
22260
  var _column$columns;
22262
22261
  return [column, ...((_column$columns = column.columns) == null ? void 0 : _column$columns.flatMap(d => d.getFlatColumns()))];
22263
22262
  }, {
22264
- key: process.env.NODE_ENV === 'production' && 'column.getFlatColumns',
22263
+ key: "development" === 'production' ,
22265
22264
  debug: () => {
22266
22265
  var _table$options$debugA;
22267
22266
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugColumns;
@@ -22275,7 +22274,7 @@
22275
22274
  }
22276
22275
  return [column];
22277
22276
  }, {
22278
- key: process.env.NODE_ENV === 'production' && 'column.getLeafColumns',
22277
+ key: "development" === 'production' ,
22279
22278
  debug: () => {
22280
22279
  var _table$options$debugA2;
22281
22280
  return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugColumns;
@@ -22341,7 +22340,7 @@
22341
22340
  const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], table);
22342
22341
  return headerGroups;
22343
22342
  }, {
22344
- key: process.env.NODE_ENV === 'development' && 'getHeaderGroups',
22343
+ key: 'getHeaderGroups',
22345
22344
  debug: () => {
22346
22345
  var _table$options$debugA;
22347
22346
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugHeaders;
@@ -22351,7 +22350,7 @@
22351
22350
  leafColumns = leafColumns.filter(column => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
22352
22351
  return buildHeaderGroups(allColumns, leafColumns, table, 'center');
22353
22352
  }, {
22354
- key: process.env.NODE_ENV === 'development' && 'getCenterHeaderGroups',
22353
+ key: 'getCenterHeaderGroups',
22355
22354
  debug: () => {
22356
22355
  var _table$options$debugA2;
22357
22356
  return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugHeaders;
@@ -22362,7 +22361,7 @@
22362
22361
  const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
22363
22362
  return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'left');
22364
22363
  }, {
22365
- key: process.env.NODE_ENV === 'development' && 'getLeftHeaderGroups',
22364
+ key: 'getLeftHeaderGroups',
22366
22365
  debug: () => {
22367
22366
  var _table$options$debugA3;
22368
22367
  return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugHeaders;
@@ -22373,7 +22372,7 @@
22373
22372
  const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
22374
22373
  return buildHeaderGroups(allColumns, orderedLeafColumns, table, 'right');
22375
22374
  }, {
22376
- key: process.env.NODE_ENV === 'development' && 'getRightHeaderGroups',
22375
+ key: 'getRightHeaderGroups',
22377
22376
  debug: () => {
22378
22377
  var _table$options$debugA4;
22379
22378
  return (_table$options$debugA4 = table.options.debugAll) != null ? _table$options$debugA4 : table.options.debugHeaders;
@@ -22384,7 +22383,7 @@
22384
22383
  getFooterGroups: memo(() => [table.getHeaderGroups()], headerGroups => {
22385
22384
  return [...headerGroups].reverse();
22386
22385
  }, {
22387
- key: process.env.NODE_ENV === 'development' && 'getFooterGroups',
22386
+ key: 'getFooterGroups',
22388
22387
  debug: () => {
22389
22388
  var _table$options$debugA5;
22390
22389
  return (_table$options$debugA5 = table.options.debugAll) != null ? _table$options$debugA5 : table.options.debugHeaders;
@@ -22393,7 +22392,7 @@
22393
22392
  getLeftFooterGroups: memo(() => [table.getLeftHeaderGroups()], headerGroups => {
22394
22393
  return [...headerGroups].reverse();
22395
22394
  }, {
22396
- key: process.env.NODE_ENV === 'development' && 'getLeftFooterGroups',
22395
+ key: 'getLeftFooterGroups',
22397
22396
  debug: () => {
22398
22397
  var _table$options$debugA6;
22399
22398
  return (_table$options$debugA6 = table.options.debugAll) != null ? _table$options$debugA6 : table.options.debugHeaders;
@@ -22402,7 +22401,7 @@
22402
22401
  getCenterFooterGroups: memo(() => [table.getCenterHeaderGroups()], headerGroups => {
22403
22402
  return [...headerGroups].reverse();
22404
22403
  }, {
22405
- key: process.env.NODE_ENV === 'development' && 'getCenterFooterGroups',
22404
+ key: 'getCenterFooterGroups',
22406
22405
  debug: () => {
22407
22406
  var _table$options$debugA7;
22408
22407
  return (_table$options$debugA7 = table.options.debugAll) != null ? _table$options$debugA7 : table.options.debugHeaders;
@@ -22411,7 +22410,7 @@
22411
22410
  getRightFooterGroups: memo(() => [table.getRightHeaderGroups()], headerGroups => {
22412
22411
  return [...headerGroups].reverse();
22413
22412
  }, {
22414
- key: process.env.NODE_ENV === 'development' && 'getRightFooterGroups',
22413
+ key: 'getRightFooterGroups',
22415
22414
  debug: () => {
22416
22415
  var _table$options$debugA8;
22417
22416
  return (_table$options$debugA8 = table.options.debugAll) != null ? _table$options$debugA8 : table.options.debugHeaders;
@@ -22424,7 +22423,7 @@
22424
22423
  return headerGroup.headers;
22425
22424
  }).flat();
22426
22425
  }, {
22427
- key: process.env.NODE_ENV === 'development' && 'getFlatHeaders',
22426
+ key: 'getFlatHeaders',
22428
22427
  debug: () => {
22429
22428
  var _table$options$debugA9;
22430
22429
  return (_table$options$debugA9 = table.options.debugAll) != null ? _table$options$debugA9 : table.options.debugHeaders;
@@ -22435,7 +22434,7 @@
22435
22434
  return headerGroup.headers;
22436
22435
  }).flat();
22437
22436
  }, {
22438
- key: process.env.NODE_ENV === 'development' && 'getLeftFlatHeaders',
22437
+ key: 'getLeftFlatHeaders',
22439
22438
  debug: () => {
22440
22439
  var _table$options$debugA10;
22441
22440
  return (_table$options$debugA10 = table.options.debugAll) != null ? _table$options$debugA10 : table.options.debugHeaders;
@@ -22446,7 +22445,7 @@
22446
22445
  return headerGroup.headers;
22447
22446
  }).flat();
22448
22447
  }, {
22449
- key: process.env.NODE_ENV === 'development' && 'getCenterFlatHeaders',
22448
+ key: 'getCenterFlatHeaders',
22450
22449
  debug: () => {
22451
22450
  var _table$options$debugA11;
22452
22451
  return (_table$options$debugA11 = table.options.debugAll) != null ? _table$options$debugA11 : table.options.debugHeaders;
@@ -22457,7 +22456,7 @@
22457
22456
  return headerGroup.headers;
22458
22457
  }).flat();
22459
22458
  }, {
22460
- key: process.env.NODE_ENV === 'development' && 'getRightFlatHeaders',
22459
+ key: 'getRightFlatHeaders',
22461
22460
  debug: () => {
22462
22461
  var _table$options$debugA12;
22463
22462
  return (_table$options$debugA12 = table.options.debugAll) != null ? _table$options$debugA12 : table.options.debugHeaders;
@@ -22471,7 +22470,7 @@
22471
22470
  return !((_header$subHeaders = header.subHeaders) != null && _header$subHeaders.length);
22472
22471
  });
22473
22472
  }, {
22474
- key: process.env.NODE_ENV === 'development' && 'getCenterLeafHeaders',
22473
+ key: 'getCenterLeafHeaders',
22475
22474
  debug: () => {
22476
22475
  var _table$options$debugA13;
22477
22476
  return (_table$options$debugA13 = table.options.debugAll) != null ? _table$options$debugA13 : table.options.debugHeaders;
@@ -22483,7 +22482,7 @@
22483
22482
  return !((_header$subHeaders2 = header.subHeaders) != null && _header$subHeaders2.length);
22484
22483
  });
22485
22484
  }, {
22486
- key: process.env.NODE_ENV === 'development' && 'getLeftLeafHeaders',
22485
+ key: 'getLeftLeafHeaders',
22487
22486
  debug: () => {
22488
22487
  var _table$options$debugA14;
22489
22488
  return (_table$options$debugA14 = table.options.debugAll) != null ? _table$options$debugA14 : table.options.debugHeaders;
@@ -22495,7 +22494,7 @@
22495
22494
  return !((_header$subHeaders3 = header.subHeaders) != null && _header$subHeaders3.length);
22496
22495
  });
22497
22496
  }, {
22498
- key: process.env.NODE_ENV === 'development' && 'getRightLeafHeaders',
22497
+ key: 'getRightLeafHeaders',
22499
22498
  debug: () => {
22500
22499
  var _table$options$debugA15;
22501
22500
  return (_table$options$debugA15 = table.options.debugAll) != null ? _table$options$debugA15 : table.options.debugHeaders;
@@ -22507,7 +22506,7 @@
22507
22506
  return header.getLeafHeaders();
22508
22507
  }).flat();
22509
22508
  }, {
22510
- key: process.env.NODE_ENV === 'development' && 'getLeafHeaders',
22509
+ key: 'getLeafHeaders',
22511
22510
  debug: () => {
22512
22511
  var _table$options$debugA16;
22513
22512
  return (_table$options$debugA16 = table.options.debugAll) != null ? _table$options$debugA16 : table.options.debugHeaders;
@@ -23611,7 +23610,7 @@
23611
23610
  }
23612
23611
  return orderColumns(orderedColumns, grouping, groupedColumnMode);
23613
23612
  }, {
23614
- key: process.env.NODE_ENV === 'development' && 'getOrderColumnsFn'
23613
+ key: 'getOrderColumnsFn'
23615
23614
  // debug: () => table.options.debugAll ?? table.options.debugTable,
23616
23615
  })
23617
23616
  };
@@ -23722,7 +23721,7 @@
23722
23721
  }
23723
23722
  return pageOptions;
23724
23723
  }, {
23725
- key: process.env.NODE_ENV === 'development' && 'getPageOptions',
23724
+ key: 'getPageOptions',
23726
23725
  debug: () => {
23727
23726
  var _table$options$debugA;
23728
23727
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugTable;
@@ -23842,7 +23841,7 @@
23842
23841
  const leftAndRight = [...(left != null ? left : []), ...(right != null ? right : [])];
23843
23842
  return allCells.filter(d => !leftAndRight.includes(d.column.id));
23844
23843
  }, {
23845
- key: process.env.NODE_ENV === 'production' && 'row.getCenterVisibleCells',
23844
+ key: "development" === 'production' ,
23846
23845
  debug: () => {
23847
23846
  var _table$options$debugA;
23848
23847
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugRows;
@@ -23855,7 +23854,7 @@
23855
23854
  }));
23856
23855
  return cells;
23857
23856
  }, {
23858
- key: process.env.NODE_ENV === 'production' && 'row.getLeftVisibleCells',
23857
+ key: "development" === 'production' ,
23859
23858
  debug: () => {
23860
23859
  var _table$options$debugA2;
23861
23860
  return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugRows;
@@ -23868,7 +23867,7 @@
23868
23867
  }));
23869
23868
  return cells;
23870
23869
  }, {
23871
- key: process.env.NODE_ENV === 'production' && 'row.getRightVisibleCells',
23870
+ key: "development" === 'production' ,
23872
23871
  debug: () => {
23873
23872
  var _table$options$debugA3;
23874
23873
  return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugRows;
@@ -23895,7 +23894,7 @@
23895
23894
  getLeftLeafColumns: memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left], (allColumns, left) => {
23896
23895
  return (left != null ? left : []).map(columnId => allColumns.find(column => column.id === columnId)).filter(Boolean);
23897
23896
  }, {
23898
- key: process.env.NODE_ENV === 'development' && 'getLeftLeafColumns',
23897
+ key: 'getLeftLeafColumns',
23899
23898
  debug: () => {
23900
23899
  var _table$options$debugA4;
23901
23900
  return (_table$options$debugA4 = table.options.debugAll) != null ? _table$options$debugA4 : table.options.debugColumns;
@@ -23904,7 +23903,7 @@
23904
23903
  getRightLeafColumns: memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.right], (allColumns, right) => {
23905
23904
  return (right != null ? right : []).map(columnId => allColumns.find(column => column.id === columnId)).filter(Boolean);
23906
23905
  }, {
23907
- key: process.env.NODE_ENV === 'development' && 'getRightLeafColumns',
23906
+ key: 'getRightLeafColumns',
23908
23907
  debug: () => {
23909
23908
  var _table$options$debugA5;
23910
23909
  return (_table$options$debugA5 = table.options.debugAll) != null ? _table$options$debugA5 : table.options.debugColumns;
@@ -23914,7 +23913,7 @@
23914
23913
  const leftAndRight = [...(left != null ? left : []), ...(right != null ? right : [])];
23915
23914
  return allColumns.filter(d => !leftAndRight.includes(d.id));
23916
23915
  }, {
23917
- key: process.env.NODE_ENV === 'development' && 'getCenterLeafColumns',
23916
+ key: 'getCenterLeafColumns',
23918
23917
  debug: () => {
23919
23918
  var _table$options$debugA6;
23920
23919
  return (_table$options$debugA6 = table.options.debugAll) != null ? _table$options$debugA6 : table.options.debugColumns;
@@ -24056,7 +24055,7 @@
24056
24055
  }
24057
24056
  return selectRowsFn(table, rowModel);
24058
24057
  }, {
24059
- key: process.env.NODE_ENV === 'development' && 'getSelectedRowModel',
24058
+ key: 'getSelectedRowModel',
24060
24059
  debug: () => {
24061
24060
  var _table$options$debugA;
24062
24061
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugTable;
@@ -24072,7 +24071,7 @@
24072
24071
  }
24073
24072
  return selectRowsFn(table, rowModel);
24074
24073
  }, {
24075
- key: process.env.NODE_ENV === 'production' && 'getFilteredSelectedRowModel',
24074
+ key: "development" === 'production' ,
24076
24075
  debug: () => {
24077
24076
  var _table$options$debugA2;
24078
24077
  return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugTable;
@@ -24088,7 +24087,7 @@
24088
24087
  }
24089
24088
  return selectRowsFn(table, rowModel);
24090
24089
  }, {
24091
- key: process.env.NODE_ENV === 'production' && 'getGroupedSelectedRowModel',
24090
+ key: "development" === 'production' ,
24092
24091
  debug: () => {
24093
24092
  var _table$options$debugA3;
24094
24093
  return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugTable;
@@ -24663,14 +24662,14 @@
24663
24662
  _getAllVisibleCells: memo(() => [row.getAllCells(), table.getState().columnVisibility], cells => {
24664
24663
  return cells.filter(cell => cell.column.getIsVisible());
24665
24664
  }, {
24666
- key: process.env.NODE_ENV === 'production' && 'row._getAllVisibleCells',
24665
+ key: "development" === 'production' ,
24667
24666
  debug: () => {
24668
24667
  var _table$options$debugA;
24669
24668
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugRows;
24670
24669
  }
24671
24670
  }),
24672
24671
  getVisibleCells: memo(() => [row.getLeftVisibleCells(), row.getCenterVisibleCells(), row.getRightVisibleCells()], (left, center, right) => [...left, ...center, ...right], {
24673
- key: process.env.NODE_ENV === 'development' && 'row.getVisibleCells',
24672
+ key: 'row.getVisibleCells',
24674
24673
  debug: () => {
24675
24674
  var _table$options$debugA2;
24676
24675
  return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugRows;
@@ -24812,10 +24811,9 @@
24812
24811
  getRow: id => {
24813
24812
  const row = table.getRowModel().rowsById[id];
24814
24813
  if (!row) {
24815
- if (process.env.NODE_ENV !== 'production') {
24814
+ {
24816
24815
  throw new Error(`getRow expected an ID, but got ${id}`);
24817
24816
  }
24818
- throw new Error();
24819
24817
  }
24820
24818
  return row;
24821
24819
  },
@@ -24848,7 +24846,7 @@
24848
24846
  var _table$options$debugA;
24849
24847
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugColumns;
24850
24848
  },
24851
- key: process.env.NODE_ENV === 'development' && 'getDefaultColumnDef'
24849
+ key: 'getDefaultColumnDef'
24852
24850
  }),
24853
24851
  _getColumnDefs: () => table.options.columns,
24854
24852
  getAllColumns: memo(() => [table._getColumnDefs()], columnDefs => {
@@ -24865,7 +24863,7 @@
24865
24863
  };
24866
24864
  return recurseColumns(columnDefs);
24867
24865
  }, {
24868
- key: process.env.NODE_ENV === 'development' && 'getAllColumns',
24866
+ key: 'getAllColumns',
24869
24867
  debug: () => {
24870
24868
  var _table$options$debugA2;
24871
24869
  return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugColumns;
@@ -24876,7 +24874,7 @@
24876
24874
  return column.getFlatColumns();
24877
24875
  });
24878
24876
  }, {
24879
- key: process.env.NODE_ENV === 'development' && 'getAllFlatColumns',
24877
+ key: 'getAllFlatColumns',
24880
24878
  debug: () => {
24881
24879
  var _table$options$debugA3;
24882
24880
  return (_table$options$debugA3 = table.options.debugAll) != null ? _table$options$debugA3 : table.options.debugColumns;
@@ -24888,7 +24886,7 @@
24888
24886
  return acc;
24889
24887
  }, {});
24890
24888
  }, {
24891
- key: process.env.NODE_ENV === 'development' && 'getAllFlatColumnsById',
24889
+ key: 'getAllFlatColumnsById',
24892
24890
  debug: () => {
24893
24891
  var _table$options$debugA4;
24894
24892
  return (_table$options$debugA4 = table.options.debugAll) != null ? _table$options$debugA4 : table.options.debugColumns;
@@ -24898,7 +24896,7 @@
24898
24896
  let leafColumns = allColumns.flatMap(column => column.getLeafColumns());
24899
24897
  return orderColumns(leafColumns);
24900
24898
  }, {
24901
- key: process.env.NODE_ENV === 'development' && 'getAllLeafColumns',
24899
+ key: 'getAllLeafColumns',
24902
24900
  debug: () => {
24903
24901
  var _table$options$debugA5;
24904
24902
  return (_table$options$debugA5 = table.options.debugAll) != null ? _table$options$debugA5 : table.options.debugColumns;
@@ -24907,7 +24905,7 @@
24907
24905
  getColumn: columnId => {
24908
24906
  const column = table._getAllFlatColumnsById()[columnId];
24909
24907
  if (!column) {
24910
- if (process.env.NODE_ENV !== 'production') {
24908
+ {
24911
24909
  console.warn(`[Table] Column with id ${columnId} does not exist.`);
24912
24910
  }
24913
24911
  throw new Error();
@@ -24941,7 +24939,7 @@
24941
24939
  getValue: cell.getValue,
24942
24940
  renderValue: cell.renderValue
24943
24941
  }), {
24944
- key: process.env.NODE_ENV === 'development' && 'cell.getContext',
24942
+ key: 'cell.getContext',
24945
24943
  debug: () => table.options.debugAll
24946
24944
  })
24947
24945
  };
@@ -24996,7 +24994,7 @@
24996
24994
  return createCell(table, row, column, column.id);
24997
24995
  });
24998
24996
  }, {
24999
- key: process.env.NODE_ENV === 'development' && 'row.getAllCells',
24997
+ key: 'row.getAllCells',
25000
24998
  debug: () => {
25001
24999
  var _table$options$debugA;
25002
25000
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugRows;
@@ -25008,7 +25006,7 @@
25008
25006
  return acc;
25009
25007
  }, {});
25010
25008
  }, {
25011
- key: process.env.NODE_ENV === 'production' && 'row.getAllCellsByColumnId',
25009
+ key: "development" === 'production' ,
25012
25010
  debug: () => {
25013
25011
  var _table$options$debugA2;
25014
25012
  return (_table$options$debugA2 = table.options.debugAll) != null ? _table$options$debugA2 : table.options.debugRows;
@@ -25037,7 +25035,7 @@
25037
25035
  for (let i = 0; i < originalRows.length; i++) {
25038
25036
  // This could be an expensive check at scale, so we should move it somewhere else, but where?
25039
25037
  // if (!id) {
25040
- // if (process.env.NODE_ENV !== 'production') {
25038
+ // if ("development" !== 'production') {
25041
25039
  // throw new Error(`getRowId expected an ID, but got ${id}`)
25042
25040
  // }
25043
25041
  // }
@@ -25068,7 +25066,7 @@
25068
25066
  rowModel.rows = accessRows(data);
25069
25067
  return rowModel;
25070
25068
  }, {
25071
- key: process.env.NODE_ENV === 'development' && 'getRowModel',
25069
+ key: 'getRowModel',
25072
25070
  debug: () => {
25073
25071
  var _table$options$debugA;
25074
25072
  return (_table$options$debugA = table.options.debugAll) != null ? _table$options$debugA : table.options.debugTable;
@@ -26474,24 +26472,39 @@ Instead styling against the role which is more general and likely a better appro
26474
26472
  const template = html `
26475
26473
  <div class="wafer-map-container">
26476
26474
  <svg class="svg-root ${x => x.orientation}">
26477
- <g class="zoom-container">
26478
- <svg class="circle-base" version="1.1" x="0px" y="0px" viewbox="1 .45 20 21">
26479
- <path class="circle-drawing-path" d="m 21 12 a 10 10 330 1 1 0 -1.98 a 1 1 0 0 0 0 2"/>
26475
+ <g class="zoom-container">
26476
+ <svg
26477
+ class="circle-base"
26478
+ version="1.1"
26479
+ x="0px"
26480
+ y="0px"
26481
+ viewBox="1 .45 20 21"
26482
+ >
26483
+ <path
26484
+ class="circle-drawing-path"
26485
+ d="m 21 12 a 10 10 330 1 1 0 -1.98 a 1 1 0 0 0 0 2"
26486
+ />
26480
26487
  </svg>
26481
26488
  </g>
26482
26489
  </svg>
26483
- <div class="wafer-map-area" style="left: 0px; top: 0px">
26484
- <canvas width=500 height="500" ${ref('canvas')}>
26490
+ <div class="wafer-map-area">
26491
+ <canvas class="wafer-map-canvas" ${ref('canvas')}></canvas>
26485
26492
  </div>
26486
26493
  </div>
26487
26494
  `;
26488
26495
 
26489
26496
  const styles = css `
26490
- .wafer-map-container {
26497
+ :host {
26498
+ display: inline-block;
26491
26499
  width: 500px;
26492
26500
  height: 500px;
26501
+ }
26502
+
26503
+ .wafer-map-container {
26504
+ width: 100%;
26505
+ padding-bottom: 100%;
26493
26506
  position: relative;
26494
- display: flex;
26507
+ display: inline-block;
26495
26508
  justify-content: center;
26496
26509
  align-items: center;
26497
26510
  }
@@ -26499,6 +26512,7 @@ Instead styling against the role which is more general and likely a better appro
26499
26512
  .svg-root {
26500
26513
  width: 100%;
26501
26514
  height: 100%;
26515
+ position: absolute;
26502
26516
  }
26503
26517
 
26504
26518
  .svg-root.top {
@@ -26520,13 +26534,14 @@ Instead styling against the role which is more general and likely a better appro
26520
26534
  .zoom-container {
26521
26535
  width: 100%;
26522
26536
  height: 100%;
26537
+ position: absolute;
26523
26538
  }
26524
26539
 
26525
26540
  .circle-base {
26526
26541
  width: 100%;
26527
26542
  height: 100%;
26528
26543
  position: absolute;
26529
- fill: white;
26544
+ fill: transparent;
26530
26545
  }
26531
26546
 
26532
26547
  .circle-drawing-path {
@@ -26538,6 +26553,16 @@ Instead styling against the role which is more general and likely a better appro
26538
26553
 
26539
26554
  .wafer-map-area {
26540
26555
  position: absolute;
26556
+ justify-content: center;
26557
+ align-items: center;
26558
+ width: 100%;
26559
+ height: 100%;
26560
+ }
26561
+
26562
+ .wafer-map-canvas {
26563
+ display: inline-block;
26564
+ width: 100%;
26565
+ height: 100%;
26541
26566
  }
26542
26567
  `;
26543
26568
 
@@ -29392,8 +29417,8 @@ Instead styling against the role which is more general and likely a better appro
29392
29417
  this.context.fillText(die.text, die.x + dimensions.width / 2, die.y + dimensions.height / 2 + aproxTextHeight.width / 2);
29393
29418
  }
29394
29419
  }
29395
- clearCanvas() {
29396
- this.context.clearRect(0, 0, this.waferData.containerDimensions.width, this.waferData.containerDimensions.height);
29420
+ clearCanvas(width, height) {
29421
+ this.context.clearRect(0, 0, width, height);
29397
29422
  }
29398
29423
  }
29399
29424
 
@@ -29419,16 +29444,31 @@ Instead styling against the role which is more general and likely a better appro
29419
29444
  }
29420
29445
  connectedCallback() {
29421
29446
  super.connectedCallback();
29447
+ this.resizeObserver = new ResizeObserver(entries => {
29448
+ const entry = entries[0];
29449
+ if (entry === undefined)
29450
+ return;
29451
+ const { height, width } = entry.contentRect;
29452
+ this.canvasSideLength = Math.min(height, width);
29453
+ });
29454
+ this.resizeObserver.observe(this);
29422
29455
  this.queueRender();
29423
29456
  }
29457
+ disconnectedCallback() {
29458
+ super.disconnectedCallback();
29459
+ this.resizeObserver.unobserve(this);
29460
+ }
29424
29461
  /**
29425
29462
  * @internal
29426
29463
  */
29427
29464
  render() {
29428
29465
  this.renderQueued = false;
29429
- this.dataManager = new DataManager(this.dies, this.quadrant, { width: 500, height: 500 }, this.colorScale, this.highlightedValues, this.colorScaleMode, this.dieLabelsHidden, this.dieLabelsSuffix, this.maxCharacters);
29430
- const renderer = new RenderingModule(this.dataManager, this.canvas);
29431
- renderer.drawWafer();
29466
+ if (this.canvasSideLength === undefined || this.canvasSideLength === 0)
29467
+ return;
29468
+ this.renderer?.clearCanvas(this.canvasSideLength, this.canvasSideLength);
29469
+ 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);
29470
+ this.renderer = new RenderingModule(this.dataManager, this.canvas);
29471
+ this.renderer.drawWafer();
29432
29472
  }
29433
29473
  quadrantChanged() {
29434
29474
  this.queueRender();
@@ -29457,6 +29497,14 @@ Instead styling against the role which is more general and likely a better appro
29457
29497
  colorScaleChanged() {
29458
29498
  this.queueRender();
29459
29499
  }
29500
+ canvasSideLengthChanged() {
29501
+ if (this.canvasSideLength !== undefined
29502
+ && this.canvasSideLength !== 0) {
29503
+ this.canvas.width = this.canvasSideLength;
29504
+ this.canvas.height = this.canvasSideLength;
29505
+ }
29506
+ this.queueRender();
29507
+ }
29460
29508
  queueRender() {
29461
29509
  if (!this.$fastController.isConnected) {
29462
29510
  return;
@@ -29495,6 +29543,9 @@ Instead styling against the role which is more general and likely a better appro
29495
29543
  attribute: 'color-scale-mode'
29496
29544
  })
29497
29545
  ], WaferMap.prototype, "canvas", void 0);
29546
+ __decorate$1([
29547
+ observable
29548
+ ], WaferMap.prototype, "canvasSideLength", void 0);
29498
29549
  __decorate$1([
29499
29550
  observable
29500
29551
  ], WaferMap.prototype, "colorScaleMode", void 0);