DIR : /home/kozerus/public_html/cropex/node/node_modules/pdfkit/types/jest.custom-matchers.d.ts
/home/kozerus/public_html/cropex/node/node_modules/pdfkit/types
// Ambient typings to make custom Jest matchers available to the TS language server in tests.
// No external @types packages required.
type PartialExceptTheseRequired<T, K extends keyof T> = Partial<T> &
Pick<Required<T>, K>;
declare global {
// Minimal shape of a TextStream used by tests' helpers
interface TextStream {
text: string;
font: string;
fontSize: number;
}
type TextStreamMatcher = PartialExceptTheseRequired<TextStream, 'text'>;
namespace jest {
interface Matchers<R> {
// Expect the PDF data array to contain a specific chunk sequence
toContainChunk(chunk: Array<string | RegExp>): R;
// Expect the PDF data array to contain a text stream matching the TextStream
toContainText(textStream: TextStreamMatcher): R;
}
}
}
export {};
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer