import { ASUtil } from "assemblyscript/lib/loader"; import { ICanvasSYS } from "./util/ICanvasSYS"; import { AS2DGlue } from "./glue/AS2DGlue"; export function instantiateBuffer(buffer: Buffer, imports: any = {}): ICanvasSYS & ASUtil & T { var glue: AS2DGlue = new AS2DGlue(); return glue.instantiateBuffer(buffer, imports); } export function instantiate(mod: any, imports: any = {}): ICanvasSYS & ASUtil & T { var glue: AS2DGlue = new AS2DGlue(); return glue.instantiate(mod, imports); } export function instantiateStreaming(response: Promise, imports: any = {}): Promise { var glue: AS2DGlue = new AS2DGlue(); return glue.instantiateStreaming(response, imports); } export * from "./glue/AS2DGlue"; export * from "./shared/CanvasDirection"; export * from "./shared/CanvasInstruction"; export * from "./shared/CanvasPatternRepetition"; export * from "./shared/FillRule"; export * from "./shared/GlobalCompositeOperation"; export * from "./shared/GlobalCompositeOperationValue"; export * from "./shared/ImageSmoothingQuality"; export * from "./shared/LineCap"; export * from "./shared/LineJoin"; export * from "./shared/TextAlign"; export * from "./shared/TextBaseline"; export * from "./util/ICanvasSYS";