@opendata-ai/openchart-engine 8.4.0 → 8.4.1

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
@@ -801,7 +801,7 @@ declare function computeArrowheadPoints(tipX: number, tipY: number, tangentX: nu
801
801
  * scored search, and two-pass deterministic placement.
802
802
  */
803
803
 
804
- type ObstacleKind = 'mark' | 'line' | 'area-fill' | 'legend' | 'data-label' | 'endpoint-label' | 'watermark' | 'axis-band' | 'annotation';
804
+ type ObstacleKind = 'mark' | 'line' | 'area-fill' | 'legend' | 'data-label' | 'endpoint-label' | 'watermark' | 'axis-band' | 'annotation' | 'chrome';
805
805
  interface PlacementObstacle extends Rect {
806
806
  kind: ObstacleKind;
807
807
  }
@@ -835,6 +835,12 @@ interface AnnotationContext {
835
835
  debugPlacement?: boolean;
836
836
  /** When true, annotations that overlap are demoted to footnote markers instead of being hidden. */
837
837
  autoThin?: boolean;
838
+ /**
839
+ * First y an annotation label may occupy, in SVG coordinates. Callers pass
840
+ * the bottom of the top chrome block so hand-placed callouts stay clear of
841
+ * the title/subtitle. Defaults to the plain SVG clamp margin.
842
+ */
843
+ topBound?: number;
838
844
  }
839
845
 
840
846
  /**