Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Razvan1928 committed Mar 8, 2024
1 parent 99c63a4 commit b2bb758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { expose } from 'comlink';
import type { WaferMap } from '../../../src/wafer-map';

/**
* MatrixRenderer class is meant to be used within a Web Worker context,
Expand All @@ -13,12 +12,11 @@ export class MatrixRenderer {
private canvas!: OffscreenCanvas;
private context!: OffscreenCanvasRenderingContext2D;

public setCanvas(canvas: OffscreenCanvas, waferMap: WaferMap): void {
public setCanvas(canvas: OffscreenCanvas): void {
this.canvas = canvas;
this.context = canvas.getContext('2d')!;
this.context.fillStyle = 'red';
this.context.fillRect(0, 0, 300, 300);
console.log(waferMap);
}

public emptyMatrix(): void {
Expand Down
4 changes: 2 additions & 2 deletions packages/nimble-components/src/theme-provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ declare global {
function isValidLang(value: string): boolean {
try {
// We are relying on the Locale constructor to validate the value
// eslint-disable-next-line no-new, no-console
console.log(value);
// eslint-disable-next-line no-new
new Intl.Locale(value);
return true;
} catch (e) {
return false;
Expand Down

0 comments on commit b2bb758

Please sign in to comment.