UNPKG

react-native-drawing

Version:

A React Native library that provides a canvas to perform drawing actions

20 lines (19 loc) 499 B
/** * An object to "transform" symbols to numeric ids */ export declare class SymbolParser { private readonly index; private readonly idAllocator; /** * Gets a numeric id to represent the symbol (the id is created if it doesn't exist) */ toId(sym: symbol): number; /** * Gets a symbol that represents the provided id */ toSymbol(id: number): symbol; /** * Delete the references between the symbol and its id */ unRef(sym: symbol): void; }