@graphysdk/viz-engine 0.0.1-plugins.1 → 0.0.1-plugins.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1028,6 +1028,12 @@ export declare interface CompiledAxisGuide {
1028
1028
  aesthetic: AestheticKey;
1029
1029
  /** Axis placement */
1030
1030
  position: AxisPosition;
1031
+ /**
1032
+ * Axis geometry: `'linear'` for cartesian (straight edge axis), `'circular'` for the angular axis
1033
+ * of a polar chart (ticks around the rim — the radar spokes/labels), `'radial'` for the radial axis
1034
+ * (concentric ring gridlines). Renderers branch on this before `position`.
1035
+ */
1036
+ geometry: GuideGeometry;
1031
1037
  /** Title text, null means no title */
1032
1038
  label: string | null;
1033
1039
  /** Whether the axis (line + ticks + labels) is visible */
@@ -4047,6 +4053,13 @@ export declare class LayoutCompiler {
4047
4053
  export declare interface LayoutCompileResult {
4048
4054
  layout: GraphLayout;
4049
4055
  formattedAxes: FormattedAxis[];
4056
+ /**
4057
+ * Polar axes (circular angular + radial), formatted with every tick (no fit-based selection or
4058
+ * truncation — a radar shows one spoke per category and rings at the radial ticks). Empty for cartesian
4059
+ * charts. The polar guide renderer consumes these together with the panel/plot rects; they are kept apart
4060
+ * from {@link formattedAxes} because they project around a circle, not onto the four cartesian edges.
4061
+ */
4062
+ formattedPolarAxes: FormattedAxis[];
4050
4063
  }
4051
4064
 
4052
4065
  /** Input for the layout compiler. */
@@ -4631,6 +4644,13 @@ export declare interface PolarCoordSystem {
4631
4644
  axisMapping: AxisMapping;
4632
4645
  /** Donut hole radius as a fraction of the outer radius (0-1). 0 for a full pie. */
4633
4646
  innerRadius: number;
4647
+ /**
4648
+ * Angular offset, in radians, applied to every angular position — the spec's `startAngle` (degrees)
4649
+ * converted once at setup. The polar guide renderer recovers a tick's angle as `position * 2π +
4650
+ * startAngle`, matching the angular transform the coord applies to the data, so spokes/labels align
4651
+ * with the painted marks.
4652
+ */
4653
+ startAngle: number;
4634
4654
  }
4635
4655
 
4636
4656
  export declare const POSITION_VARIABLES: {
@@ -5501,14 +5521,21 @@ export declare interface SourceContent {
5501
5521
  * instead provides a render-side hit-test function (injected per-instance through the renderer),
5502
5522
  * and the engine resolves the observation it returns against the declared identity key. Only the
5503
5523
  * kind rides in the compiled spec — the closure never crosses the serialisable boundary.
5524
+ *
5525
+ * `polar-points` is the polar refinement of `points` (a radar's vertices read in polar). The cursor
5526
+ * and the vertices live in incompatible spaces for the cartesian nearest query — vertices are
5527
+ * `(angle, radius)`, the cursor is plot-local `[0,1]` — so the polar query converts each at query
5528
+ * time (no stored cartesian, no Delaunay), staying correct across resizes. Geoms never declare it; a
5529
+ * polar coord refines a `points`-natural mark to it during the coord transform.
5504
5530
  */
5505
- declare type SpatialIndexKind = 'buckets' | 'rects' | 'points' | 'arcs' | 'noop' | 'render-hit-test';
5531
+ declare type SpatialIndexKind = 'buckets' | 'rects' | 'points' | 'arcs' | 'noop' | 'render-hit-test' | 'polar-points';
5506
5532
 
5507
5533
  /**
5508
5534
  * A layer's geometry-agnostic hit-test declaration. Pure serialisable data riding in the compiled
5509
5535
  * spec: it names the spatial structure the marks present so the runtime can build the matching
5510
5536
  * index without knowing which geom produced it. A geom declares its cartesian-natural kind on its
5511
- * definition; a polar coord refines it to `arcs` during the coord transform.
5537
+ * definition; a polar coord refines it to `arcs` (filled wedges) or `polar-points` (radar vertices)
5538
+ * during the coord transform.
5512
5539
  */
5513
5540
  declare interface SpatialMapDescriptor {
5514
5541
  kind: SpatialIndexKind;