pointValue

Returns the point a refined one-point coordinate list holds, or null when the value is not one or its halves are not finite numbers.

@internote/canvas-sdkFunction
On this page
import { pointValue } from '@internote/canvas-sdk';

#Signature

(value: unknown): { x: number; y: number; } | null

#Parameters

value
An attribute's refined value, as attrValuesOf returns it.

#Example

const at = pointValue(attrs['at']);
if (at) place(at.x, at.y);

Declared in packages/canvas-sdk/src/geometry/point-value.ts:27.

Last updated