@thi.ng/canvas
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Change Log | ||
- **Last updated**: 2025-01-04T21:07:37Z | ||
- **Last updated**: 2025-01-14T12:23:33Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
### [1.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/canvas@1.0.2) (2025-01-14) | ||
#### ♻️ Refactoring | ||
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13)) | ||
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/canvas@0.5.0) (2024-08-10) | ||
@@ -14,0 +20,0 @@ |
@@ -5,3 +5,3 @@ const adaptiveCanvas2d = (width, height = width, parent, opts = {}) => { | ||
opts.pixelated && (canvas.style.imageRendering = "pixelated"); | ||
parent && parent.appendChild(canvas); | ||
parent?.appendChild(canvas); | ||
return { | ||
@@ -8,0 +8,0 @@ canvas, |
{ | ||
"name": "@thi.ng/canvas", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Canvas creation & HDPI support helpers", | ||
@@ -80,3 +80,3 @@ "type": "module", | ||
}, | ||
"gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n" | ||
"gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n" | ||
} |
@@ -71,3 +71,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
Package sizes (brotli'd, pre-treeshake): ESM: 380 bytes | ||
Package sizes (brotli'd, pre-treeshake): ESM: 372 bytes | ||
@@ -74,0 +74,0 @@ ## Dependencies |
34049