Last active
October 13, 2020 19:01
-
-
Save ljmotta/dc6f931e5063361a5621284ec9a2c2db to your computer and use it in GitHub Desktop.
Base64Png Editor Factory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EditorFactory, EditorInitArgs, KogitoEditorEnvelopeContextType } from "@kogito-tooling/editor/dist/api"; | |
import { Base64PngEditorInterface } from "./Base64PngEditorInterface"; | |
export class Base64PngEditorFactory implements EditorFactory { | |
public supports(fileExtension: string) { | |
return fileExtension === "base64png"; | |
} | |
public createEditor(envelopeContext: KogitoEditorEnvelopeContextType, initArgs: EditorInitArgs) { | |
return Promise.resolve(new Base64PngEditorInterface(envelopeContext, initArgs)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment