- viewportToSpace(targetSpace?): ((a: Readonly<number | number[] | Point>, b?: number) => Readonly<{
x: number;
y: number;
}>) Returns ((a: Readonly<number | number[] | Point>, b?: number) => Readonly<{
x: number;
y: number;
}>)
- (a, b?): Readonly<{
x: number;
y: number;
}> Parameters
- a: Readonly<number | number[] | Point>
Optional
b: number
Returns Readonly<{
x: number;
y: number;
}>
Returns a function that converts input viewport coordinate space to an output coordinate space.
Or immediately invoke for one-off use: