const sdk = globalThis.HyperViewPanelSDK; if (!sdk || sdk.version !== "2") { throw new Error("HyperViewPanelSDK v2 is not available on window."); } const { React, components = {}, hooks = {} } = sdk; const Panel = components.Panel || (({ children, className = "" }) => (
{children}
)); const { usePanelState, useSelection } = hooks; const geometryColors = { Euclidean: "#67e8f9", Spherical: "#a78bfa", "Hyperbolic · Poincare": "#fb923c", }; export default function HelloWorldIntro() { const { props } = usePanelState(); const { selectedIds } = useSelection(); const geometries = Array.isArray(props.geometries) ? props.geometries : []; return (
HyperView Hello World

One image collection.
Three geometries.

Every map contains the same {props.sampleCount || 300} {props.dataset || "iNaturalist"} observations. What changes is the representation and the geometry used to lay it out.

{geometries.map((geometry) => (
{geometry.name} {geometry.model} · {geometry.dimension}
))}
Try this
  1. Rotate and zoom each map.
  2. Select a cluster in one view.
  3. Compare where that selection lands in the other geometries.
  4. Open Samples to inspect the underlying observations.
{selectedIds.length ? selectedIds.length : "No"} {selectedIds.length === 1 ? " observation selected" : " observations selected"}
); }