SurfaceMetrics
A surface's measured box, and the unit every length inside it is expressed against.
@internote/canvas-sdk/reactOn this page
import { SurfaceMetrics } from '@internote/canvas-sdk/react';#Fields
heightThe SVG's own height in pixels.
numbermeasuredWhether the box has been measured, false while it is still the fallback. A surface can skip drawing its content until then: the first measurement lands in a layout effect, before the browser paints, so a picture drawn at the fallback size is thrown away unseen.
booleanunitThe canvas unit
--cnv-unit in pixels: 17 reading, 22 presenting. Sizes in the surface are multiples of it.numberwidthThe SVG's own width in pixels, never the padded container's.
numberDeclared in packages/canvas-sdk/src/react/use-surface-metrics.ts:30.