How Race, Age and Gender Shape Attitudes Towards Mental Health
タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。
Web フロントエンドにて、Canvas を使った View のテストを書きたいことがたまにあります。ブラウザであれば以下のようにして Canvas を利用できますが、テストが実行される Node.js ではそのような API は生えていません。 const canvas = document.createElement('canvas'); canvas.width = 200; canvas.height = 200; const ctx = canvas.getContext('2d'); ctx.fillStyle = 'green'; ctx.fillRect(10, 10, 150, 100); そこで Node.js では、node-canvas という npm パッケージがよく使われます。これを使うと、Web Canvas API 互換な API を用いて、Node.js
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く