@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.cjs
CHANGED
|
@@ -4945,7 +4945,7 @@ function applyTextBackground(obj, cfg) {
|
|
|
4945
4945
|
const oy = Number(shadow.offsetY ?? 0) || 0;
|
|
4946
4946
|
const blur = Math.max(0, Number(shadow.blur ?? 0));
|
|
4947
4947
|
const shadowColor = String(shadow.color);
|
|
4948
|
-
const pad = Math.max(
|
|
4948
|
+
const pad = Math.max(16, Math.ceil(blur * 4) + Math.ceil(Math.max(Math.abs(ox), Math.abs(oy))) + 8);
|
|
4949
4949
|
const bx = -w / 2 - pL - pad;
|
|
4950
4950
|
const by = -h / 2 - pT - pad;
|
|
4951
4951
|
const bw = w + pL + pR + pad * 2;
|