UNPKG

ts-browser-helpers

Version:

A collection of utility classes, functions and decorators for javascript/typescript projects, for use in the browser.

36 lines 3.11 kB
export type { IEvent, IEventDispatcher } from './EventDispatcher'; export type { ImageCanvasOptions } from './image'; export type { AnyFunction, AnyOptions, Class, IDisposable, IJSONSerializable, PartialPick, PartialRecord, StringKeyOf, Fof, ValOrFunc, ValOrFuncOp, ValOrArr, ValOrArrOp } from './types'; export type { Serializer } from './serialization'; export { PointerDragHelper } from './PointerDragHelper'; export { JSUndoManager } from './JSUndoManager'; export type { JSUndoManagerCommand2, JSUndoManagerCommand, JSUndoManagerOptions, JSUndoManagerCommand1 } from './JSUndoManager'; export { Damper } from './damper'; export { SimpleEventDispatcher } from './EventDispatcher'; export { createCanvasElement, createDiv, createImage, createStyles, createScriptFromURL, cloneScriptTag, setInnerHTMLWithScripts } from './dom'; export { TYPED_ARRAYS, arrayBufferToBase64, base64ToArrayBuffer, getTypedArray } from './arrayBuffer'; export { escapeRegExp, getFilenameFromPath, parseFileExtension, replaceAll, toTitleCase, longestCommonPrefix, toCamelCase, safeReplaceString, escapeHtml } from './text'; export { prettyScrollbar } from './styles'; export { blobToDataURL, downloadBlob, downloadFile, uploadFile, mobileAndTabletCheck } from './browser'; export { LinearToSRGB, SRGBToLinear, colorToDataUrl } from './color'; export { onChange, onChange2, onChange3, onChangeDispatchEvent, serialize, serializable, type OnChangeDispatchEventType } from './decorators'; export { aesGcmDecrypt, aesGcmEncrypt } from './encryption'; export { verifyPermission, writeFile, getFileHandle, getNewFileHandle, readFile } from './fs-api'; export { embedUrlRefs, htmlToCanvas, htmlToPng, htmlToSvg } from './htmlToImage'; export { imageToCanvas, imageBitmapToBase64, imageUrlToImageData, imageDataToCanvas, canvasFlipY, isWebpExportSupported, imageBitmapToBlob, imageBitmapToCanvas, blobToImage } from './image'; export { absMax, clearBit, updateBit, uuidV4 } from './math'; export { includesAll, wrapThisFunction, wrapThisFunction2, findLastIndex } from './misc'; export { copyProps, getOrCall, getPropertyDescriptor, isPropertyWritable, safeSetProperty } from './obj-property'; export { deepAccessObject, getKeyByValue, objectHasOwn, objectMap2, objectMap } from './object'; export { makeColorSvg, makeTextSvg, makeColorSvgCircle, svgToCanvas, svgToPng } from './svg'; export { timeout, now } from './time'; export { pathJoin, getUrlQueryParam, setUrlQueryParam, remoteWorkerURL } from './url'; export { css, glsl, html, svgUrl } from './template-literals'; export { Serialization } from './serialization'; export { FnCaller } from './fnCaller'; export { windowDialogWrapper, type IDialogWrapper } from './DialogWrapper'; export { htmlDialogWrapper } from './HTMLDialogWrapper'; export { equalsPrimitive, copyPrimitive, clonePrimitive, type PrimitiveValObject, type PrimitiveVal } from './primitive_value'; export { recordUndoCommand, setValueUndoCommand } from './undo_commands'; export type { SetValueUndoCommandProps, SetValueUndoCommand, ActionUndoCommand } from './undo_commands'; //# sourceMappingURL=index.d.ts.map