Skip to content

Commit

Permalink
Fixed a few oversights with the last PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
ILOVEPIE committed Mar 5, 2024
1 parent 6c83e79 commit 08bd763
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
"description": "A gpu accelerated ecmascript renderer for Advanced Substation Alpha (ASS) subtitles. Renders .ass and .ssa files over video in the browser.",
"main": "dist/sabre.min.js",
"types": "types/sabre.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"opentype.js": "^1.3.4",
"codepage": "^1.15.0",
"@types/offscreencanvas": "^2019.3.0"
},
"repository": {
Expand Down Expand Up @@ -38,7 +36,7 @@
"browser"
],
"author": "Patrick \"ILOVEPIE\" Rhodes Martin & Contributors",
"license": "SEE LICENSE IN LICENCE.md",
"license": "See licence in LICENCE.md",
"bugs": {
"url": "https://github.com/SABRE-JS/SABRE.js/issues"
},
Expand Down
6 changes: 3 additions & 3 deletions types/sabre.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type CanvasDrawable = HTMLCanvasElement | OffscreenCanvas;
type SABREOptions = {
fonts?: Array<Font>,
subtitles?: string,
subtitles?: ArrayBuffer,
colorSpace?:number,
resolution?:number[],
nativeResolution?:number[]
Expand All @@ -28,9 +28,9 @@ declare namespace sabre {
const FCC_PC: number;
}
class SABRERenderer {
constructor(loadFont: (name: string) => void, options?: SABREOptions);
constructor(options?: SABREOptions);

loadSubtitles(subsText: string, fonts: Array<Font>): void;
loadSubtitles(subs: ArrayBuffer, fonts: Array<Font>): void;

setColorSpace(colorSpace: number, width?: number, height?: number): void;

Expand Down

0 comments on commit 08bd763

Please sign in to comment.