Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
munteannatan committed Feb 20, 2024
1 parent 7bb7ea3 commit 22ef63d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
6 changes: 4 additions & 2 deletions packages/nimble-components/src/wafer-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,15 @@ export class WaferMap extends FoundationElement {

@observable public highlightedTags: string[] = [];
@observable public dies: WaferMapDie[] = [];
@observable public diesTable: Table<{
@observable public diesTable:
| Table<{
colIndex: Int32,
rowIndex: Int32,
value: Float32,
tags: Uint32,
metadata: never
}> | undefined;
}>
| undefined;

@observable public colorScale: WaferMapColorScale = {
colors: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export class MatrixRenderer {

public drawWafer(): void {
// rendering will be implemented in a future PR
this.wafermap.$emit('render-complete', { count: this.wafermap.diesTable?.numRows });
this.wafermap.$emit('render-complete', {
count: this.wafermap.diesTable?.numRows
});
}

public renderHover(): void {
Expand Down Expand Up @@ -50,4 +52,4 @@ export class MatrixRenderer {
}
return '';
}
}
}
5 changes: 4 additions & 1 deletion packages/nimble-components/src/wafer-map/tests/sets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ export const wafermapDiesTableSets: Table<{
tableFromArrays({
colIndex: Int32Array.from([0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4]),
rowIndex: Int32Array.from([2, 2, 1, 3, 2, 1, 0, 3, 4, 2, 1, 3, 2]),
value: Float32Array.from([14.24, 76.43, 44.63, 67.93, 72.71, 79.04, 26.49, 37.79, 59.82, 52.90, 98.50, 20.83, 62.80]),
value: Float32Array.from([
14.24, 76.43, 44.63, 67.93, 72.71, 79.04, 26.49, 37.79, 59.82, 52.9,
98.5, 20.83, 62.8
]),
tags: Uint32Array.from([
0b000011, // a, b
0b000110, // b, c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ describe('WaferMap', () => {
});

xit('will trigger render-complete after diesTable change', async () => {
const renderCompleteListener = createEventListener(element, 'render-complete');
const renderCompleteListener = createEventListener(
element,
'render-complete'
);
element.diesTable = new Table();
processUpdates();
await renderCompleteListener.promise;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,25 @@ const getDiesTableSet = (
tags: Uint32,
metadata: never
}>[]
): Table<{
):
| Table<{
colIndex: Int32,
rowIndex: Int32,
value: Float32,
tags: Uint32,
metadata: never
}> | undefined => {
}>
| undefined => {
const seed = 0.5;
let returnedValue: Table<{
let returnedValue:
| Table<{
colIndex: Int32,
rowIndex: Int32,
value: Float32,
tags: Uint32,
metadata: never
}> | undefined;
}>
| undefined;
switch (setName) {
case 'fixedDies10':
returnedValue = sets[0]!;
Expand Down Expand Up @@ -288,7 +292,7 @@ const metadata: Meta<WaferMapArgs> = {
goodDies1000: 'Large dies set of mostly good values',
badDies10000: 'Very large dies set of mostly bad values'
}
},
}
},
dieLabelsHidden: {
name: 'die-labels-hidden',
Expand Down

0 comments on commit 22ef63d

Please sign in to comment.