getRatio
Home > @anocca/sequence-viewer-utils > getRatio
Get the device pixel ratio
Signature:
export declare function getRatio(context: CanvasRenderingContext2D): {
ratio: number;
shouldScale: boolean;
};
Parameters
Parameter | Type | Description |
---|---|---|
context | CanvasRenderingContext2D |
Returns:
{ ratio: number; shouldScale: boolean; }