@pixldocs/canvas-renderer 0.5.48 → 0.5.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4926,7 +4926,7 @@ function applyTextBackground(obj, cfg) {
|
|
|
4926
4926
|
const oy = Number(shadow.offsetY ?? 0) || 0;
|
|
4927
4927
|
const blur = Math.max(0, Number(shadow.blur ?? 0));
|
|
4928
4928
|
const shadowColor = String(shadow.color);
|
|
4929
|
-
const pad = Math.max(
|
|
4929
|
+
const pad = Math.max(16, Math.ceil(blur * 4) + Math.ceil(Math.max(Math.abs(ox), Math.abs(oy))) + 8);
|
|
4930
4930
|
const bx = -w / 2 - pL - pad;
|
|
4931
4931
|
const by = -h / 2 - pT - pad;
|
|
4932
4932
|
const bw = w + pL + pR + pad * 2;
|