first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
33
node_modules/canvg/lib/util/debug.d.ts
generated
vendored
Normal file
33
node_modules/canvg/lib/util/debug.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { RenderingContext2D } from '../types';
|
||||
/**
|
||||
* Wrap rendering context to log every action.
|
||||
* @param ctx - Rendering context.
|
||||
* @returns Proxy logger.
|
||||
*/
|
||||
export declare function ctxLogger(ctx: RenderingContext2D): RenderingContext2D;
|
||||
/**
|
||||
* Draw point.
|
||||
* @param ctx - Rendering context.
|
||||
* @param x - Point x.
|
||||
* @param y - Point y
|
||||
* @param radius - Point radius.
|
||||
*/
|
||||
export declare function point(ctx: RenderingContext2D, x?: number, y?: number, radius?: number): void;
|
||||
/**
|
||||
* Draw triangle to vizualize angle.
|
||||
* @param ctx - Rendering context.
|
||||
* @param x - Angle x.
|
||||
* @param y - Angle y.
|
||||
* @param size - Triangle size.
|
||||
*/
|
||||
export declare function angle(ctx: RenderingContext2D, x?: number, y?: number, size?: number): void;
|
||||
/**
|
||||
* Draw triangle to vizualize angle.
|
||||
* @param ctx - Rendering context.
|
||||
* @param x - Angle x.
|
||||
* @param y - Angle y.
|
||||
* @param width
|
||||
* @param height
|
||||
*/
|
||||
export declare function box(ctx: RenderingContext2D, x: number, y: number, width: number, height: number): void;
|
||||
//# sourceMappingURL=debug.d.ts.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue