jassub 1.0.0 → 1.0.1

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jassub",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "libass Subtitle Renderer and Parser library for browsers",
5
5
  "main": "src/jassub.js",
6
6
  "files": [
package/src/jassub.js CHANGED
@@ -24,7 +24,7 @@ export default class JASSUB extends EventTarget {
24
24
  * @param {String} [options.legacyWorkerUrl='jassub-worker-legacy.js'] The URL of the legacy worker. Only loaded if the browser doesn't support WASM.
25
25
  * @param {String} [options.subUrl=options.subContent] The URL of the subtitle file to play.
26
26
  * @param {String} [options.subContent=options.subUrl] The content of the subtitle file to play.
27
- * @param {String[]} [options.fonts] An array of links to the fonts used in the subtitle. This forces all the fonts in this array to be loaded by the renderer, regardless of if they are used.
27
+ * @param {String[]|Uint8Array[]} [options.fonts] An array of links or Uint8Arrays to the fonts used in the subtitle. If Uint8Array is used the array is copied, not referenced. This forces all the fonts in this array to be loaded by the renderer, regardless of if they are used.
28
28
  * @param {Object} [options.availableFonts] Object with all available fonts - Key is font name in lower case, value is link: { arial: '/font1.ttf' }. These fonts are selectively loaded if detected as used in the current subtitle track.
29
29
  * @param {String} [options.fallbackFont='default.woff2'] The URL of the fallback font to use.
30
30
  * @param {Number} [options.libassMemoryLimit] libass bitmap cache memory limit in MiB (approximate).
@@ -81,7 +81,6 @@ export default class JASSUB extends EventTarget {
81
81
  this._worker.onmessage = e => this._onmessage(e)
82
82
  this._worker.onerror = e => this._error(e)
83
83
 
84
-
85
84
  this._worker.postMessage({
86
85
  target: 'init',
87
86
  asyncRender: _asyncRender,