From 076f182fcd9933949d537e40a5e56e3a03cf98d1 Mon Sep 17 00:00:00 2001 From: Reinder Nijhoff Date: Tue, 7 Nov 2023 11:44:34 +0100 Subject: [PATCH] export RendererInstance and RendererBuffer in index --- src/index.ts | 2 ++ src/lib/ImageEffectRenderer.ts | 2 +- src/lib/RendererInstance.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 47d93e8..b5dca15 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,3 @@ export { default as ImageEffectRenderer } from './lib/ImageEffectRenderer.js'; +export { RendererInstance } from './lib/RendererInstance.js'; +export { RendererBuffer } from './lib/RendererBuffer.js'; diff --git a/src/lib/ImageEffectRenderer.ts b/src/lib/ImageEffectRenderer.ts index bcde2bc..8154f74 100644 --- a/src/lib/ImageEffectRenderer.ts +++ b/src/lib/ImageEffectRenderer.ts @@ -1,5 +1,5 @@ import {WebGLInstance} from './WebGLInstance.js'; -import RendererInstance from "./RendererInstance.js"; +import {RendererInstance} from "./RendererInstance.js"; /** * @typedef {Object} ImageEffectRendererOptions diff --git a/src/lib/RendererInstance.ts b/src/lib/RendererInstance.ts index 341de12..8ff49f5 100644 --- a/src/lib/RendererInstance.ts +++ b/src/lib/RendererInstance.ts @@ -5,7 +5,7 @@ import {ImageEffectRenderer} from "../index.js"; import {type BufferOptions, RendererBuffer} from "./RendererBuffer.js"; import Program from "./Program.js"; -export default class RendererInstance extends Renderer { +export class RendererInstance extends Renderer { private static index: number = 0; public canvas: HTMLCanvasElement;