sb-edit
Version:
Import, edit, and export Scratch project files
30 lines (29 loc) • 1.35 kB
TypeScript
import { Sprite, Stage } from "./Target";
import fromSb3, { fromSb3JSON } from "./io/sb3/fromSb3";
export type TextToSpeechLanguage = "ar" | "zh-cn" | "da" | "nl" | "en" | "fr" | "de" | "hi" | "is" | "it" | "ja" | "ko" | "nb" | "pl" | "pt-br" | "pt" | "ro" | "ru" | "es" | "es-419" | "sv" | "tr" | "cy";
export default class Project {
static fromSb3: typeof fromSb3;
static fromSb3JSON: typeof fromSb3JSON;
toSb3: (options?: Partial<import("./io/sb3/toSb3").ToSb3Options> | undefined) => import("./io/sb3/toSb3").ToSb3Output;
toLeopard: (inOptions?: Partial<import("./io/leopard/toLeopard").ToLeopardOptions> | undefined, prettierConfig?: import("prettier").Options | undefined) => {
[fileName: string]: string;
};
toScratchblocks: (inOptions?: Partial<import("./io/scratchblocks/toScratchblocks").ToScratchblocksOptions> | undefined) => {
[targetName: string]: string;
};
stage: Stage;
sprites: Sprite[];
tempo: number;
videoOn: boolean;
videoAlpha: number;
textToSpeechLanguage: TextToSpeechLanguage | null;
constructor(options: {
stage?: Stage;
sprites?: Sprite[];
tempo?: number;
videoOn?: boolean;
videoAlpha?: number;
textToSpeechLanguage?: TextToSpeechLanguage;
});
sprite(id: string | number): Sprite | null;
}