UNPKG

magica

Version:

ImageMagick for browser and Node.js, easy setup, high level API and Command Line Interface, including WASM binary for an easy setup.

34 lines 1.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const misc_utils_of_mine_generic_1 = require("misc-utils-of-mine-generic"); const file_1 = require("../file/file"); const protected_1 = require("../file/protected"); const html_1 = require("../image/html"); const imageCompare_1 = require("../image/imageCompare"); const imageInfo_1 = require("../image/imageInfo"); const imageUtil_1 = require("../image/imageUtil"); const support_1 = require("../image/support"); const magickLoaded_1 = require("../imageMagick/magickLoaded"); const command_1 = require("../main/command"); const executeCommandPreprocessor_1 = require("../main/executeCommandPreprocessor"); const main_1 = require("../main/main"); const run_1 = require("../main/run"); const template_1 = require("../main/template/template"); const options_1 = require("../options"); function _getMagica() { return { File: file_1.File, toDataUrl: html_1.toDataUrl, imageBuiltIn: support_1.imageBuiltIn, imageCompare: imageCompare_1.imageCompare, magickLoaded: magickLoaded_1.magickLoaded, imageInfo: imageInfo_1.imageInfo, imagePixelColor: imageUtil_1.imagePixelColor, registerCommandPreprocessor: executeCommandPreprocessor_1.registerCommandPreprocessor, main: main_1.main, cliToArray: command_1.cliToArray, run: run_1.run, protectFile: protected_1.protectFile, isProtectedFile: protected_1.isProtectedFile, addTemplateHelper: template_1.addTemplateHelper, getOptions: options_1.getOptions, setOptions: options_1.setOptions, colorCount: imageUtil_1.colorCount }; } function getMagica() { return _getMagica(); } exports.getMagica = getMagica; function installMagica() { misc_utils_of_mine_generic_1.getGlobal().Magica = _getMagica(); } exports.installMagica = installMagica; //# sourceMappingURL=magica.js.map