MCPcopy Create free account
hub / github.com/tensorflow/tfjs / constructor

Method constructor

tfjs-node/src/canvas_test.ts:31–31  ·  view source on GitHub ↗
(public width: number, public height: number)

Source from the content-addressed store, hash-verified

29
30class MockCanvas {
31 constructor(public width: number, public height: number) {}
32 getContext(type: '2d'): MockContext {
33 return new MockContext();
34 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected