UNPKG

js-draw

Version:

Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.

14 lines (13 loc) 505 B
import { BeforeDeallocCallback, CacheProps, CacheState } from './types'; import CacheRecord from './CacheRecord'; import { Rect2 } from '@js-draw/math'; export declare class CacheRecordManager { private cacheRecords; private maxCanvases; private cacheState; constructor(cacheProps: CacheProps); setSharedState(state: CacheState): void; allocCanvas(drawTo: Rect2, onDealloc: BeforeDeallocCallback): CacheRecord; private getLeastRecentlyUsedRecord; getDebugInfo(): string; }