UNPKG

@robotical/scratch-to-python-transpiler

Version:
27 lines (26 loc) 976 B
import { Sprite, Stage } from "./Target"; import fromSb3, { fromSb3JSON } from "./io/sb3/fromSb3"; import toSb3 from "./io/sb3/toSb3"; import toPython from "./io/python/toPython"; export declare 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: typeof toSb3; toPython: typeof toPython; stage: Stage; sprites: Sprite[]; tempo: number; videoOn: boolean; videoAlpha: number; textToSpeechLanguage: TextToSpeechLanguage; constructor(options: { stage?: Stage; sprites?: Sprite[]; tempo?: number; videoOn?: boolean; videoAlpha?: number; textToSpeechLanguage?: TextToSpeechLanguage; }); sprite(id: string | number): Sprite; }