@nxtedition/lib 22.0.10 → 22.0.11

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.
Files changed (2) hide show
  1. package/ass.js +1 -1
  2. package/package.json +1 -1
package/ass.js CHANGED
@@ -93,7 +93,7 @@ function encASSStyles({ styles, width, height }) {
93
93
  for (const [id, style] of Object.entries(styles)) {
94
94
  scaledStyles[id] = { ...style }
95
95
  for (const key of ['fontsize', 'marginV', 'marginL', 'marginR']) {
96
- const scale = width / BASE_WIDTH
96
+ const scale = key === 'fontsize' ? height / BASE_HEIGHT : width / BASE_WIDTH
97
97
 
98
98
  if (typeof style[key] === 'string') {
99
99
  const scaled = Number(style[key]) * scale
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "22.0.10",
3
+ "version": "22.0.11",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",