/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/vips/src/worker.ts
37 строк
770 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
/** * Worker entry point for vips image processing. * * This file exposes all vips functions to be available in the Web Worker * context. The @wordpress/worker-threads library handles the RPC * communication with the main thread. */ import { expose } from '@wordpress/worker-threads'; import { cancelOperations, convertImageFormat, compressImage, resizeImage, rotateImage, hasTransparency, getUltraHdrInfo, } from './index'; /** * The API object that exposes all vips functions to the main thread. */ const api = { cancelOperations, convertImageFormat, compressImage, resizeImage, rotateImage, hasTransparency, getUltraHdrInfo, }; expose( api ); /** * Type export for use with wrap() on the main thread. */ export type WorkerAPI = typeof api;