@nxtedition/lib 22.0.15 → 22.0.17

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 +2 -2
  2. package/package.json +1 -1
package/ass.js CHANGED
@@ -61,7 +61,7 @@ export function encodeASS(
61
61
  futureWordWrapping = false,
62
62
  } = {},
63
63
  ) {
64
- const scale = typeof width === 'number' ? BASE_WIDTH / width : 1
64
+ const scale = typeof width === 'number' ? BASE_HEIGHT / height : 1
65
65
  const playResX = scale * (width || BASE_WIDTH)
66
66
  const playResY = scale * (height || BASE_HEIGHT)
67
67
  return [
@@ -100,7 +100,7 @@ function formatDialogues(events, styles, scriptResX, futureWordWrapping) {
100
100
  futureWordWrapping ? wordwrap(line, fontSize, fontFamily, maxWidth) : [line],
101
101
  )
102
102
  .map((line) => line.trim())
103
- .join('\\N')}`
103
+ .join('\\N')}\n`
104
104
  }
105
105
  }
106
106
  return s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "22.0.15",
3
+ "version": "22.0.17",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",