project
project(
node):unknown
Defined in: packages/core/src/model/sugar.ts:324
Narrow a richer authored node down to { coordinates, name?, description? }
by reading only those fixed literal keys — dropping any styling/camera fields
the expander would reject (R4). Used by Astro/U4, whose LocationPoint /
RegionPolygon / RouteLine carry markerColor/zoom/fillColor/… An
array (a locations value) is projected element-wise; a non-object is
returned unchanged for the caller’s own structural error to surface.
Only fixed literal keys are ever read or written, so this is prototype-safe.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
node | unknown |
Returns
Section titled “Returns”unknown