@opendata-ai/openchart-engine 9.3.0 → 9.4.0

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
@@ -1,6 +1,6 @@
1
1
  import * as _opendata_ai_openchart_core from '@opendata-ai/openchart-core';
2
2
  import { DataRow, GeoMapGeo, GeoMapProjection, GeoMapEncoding, LegendConfig, ThemeConfig, AnimationSpec, GeoMapPointsLayer, FieldMetadata, GeoCallout, RaceSpec, RaceMarkDef, RaceEncoding, EncodingChannel, RacePlayback, SankeyEncoding, SankeyNodeAlign, SankeyLinkColor, TileMapEncoding, TileMapPalette, MarkType, MarkDef, Encoding, ChromeText, Annotation, LabelConfig, Display, ColumnConfig, TableDensity, SortState, GraphSpec, GraphEncoding, GraphLayoutConfig, NodeOverride, GraphAnimationSpec, GraphInteractionConfig, BarListEncoding, BarListSpec, LayerSpec, ChartSpec, VizSpec, AnimationEase, SpringConfig, LegendLayout, ResolvedChrome, TooltipContent, A11yMetadata, ResolvedTheme, LegendEntry, RaceFrame, RaceLayout, RaceGeometry, CompileOptions, CompileWarning, BarListLayout, ChartLayout, GeoMapLayout, SankeyLayout, CompileTableOptions, TableLayout, TileMapLayout, ResolvedLabel, Rect, ResolvedAnnotation, ScaleType, FieldFormatContext, PlaybackPeriodPosition, PlaybackTimingConfig, LayoutStrategy, Mark, Point, TextMarkLayout, ResolvedAnimationPhase, ResolvedAnimation, MeasureTextFn, BinTransform, CalculateTransform, ConditionalValueDef, FilterPredicate, TimeUnitTransform, Transform, ElementRef, TextAnnotation, DesignDiagnostic, DatasetBinding, ReaderSelection, ObservationIdentity, SpecPatch, ReaderPanelScope, ReaderSlice, ReaderSliceIndexOptions, ReaderComparisonOperand, ReaderComparisonResult, ReaderDomainValue, ReaderSliceSelection, CompositionRecommendation, DesignQuestion, GeoColorKeyLayout, GeoLabelsInput, GeoLabelAffine, GeoLabelOverlay, GeoReaderObservation, GeoMapSpec, TooltipField } from '@opendata-ai/openchart-core';
3
- export { BarListLayout, BarListSpec, ChartLayout, ChartSpec, CompileOptions, CompileTableOptions, GeoMapLayout, GeoMapSpec, GraphLayout, GraphSpec, LayerSpec, MAX_TOTAL_STAGGER_MS, SankeyLayout, SankeySpec, TableLayout, TableSpec, TileMapLayout, TileMapSpec, VizSpec, clampStaggerDelay } from '@opendata-ai/openchart-core';
3
+ export { BarListLayout, BarListSpec, ChartLayout, ChartSpec, CompileOptions, CompileTableOptions, GeoMapLayout, GeoMapSpec, GraphLayout, GraphSpec, LayerSpec, MAX_TOTAL_STAGGER_MS, SankeyLayout, SankeySpec, TableLayout, TableSpec, TileMapLayout, TileMapSpec, TimeTickInterval, TimeTickStep, VizSpec, clampStaggerDelay } from '@opendata-ai/openchart-core';
4
4
  import { Series } from 'd3-shape';
5
5
  import { ScaleLinear, ScaleTime, ScaleLogarithmic, ScalePower, ScaleSymLog, ScaleBand, ScalePoint, ScaleOrdinal, ScaleQuantile, ScaleQuantize, ScaleThreshold } from 'd3-scale';
6
6
 
@@ -280,7 +280,7 @@ interface NormalizedChartSpec {
280
280
  youDrawIt?: _opendata_ai_openchart_core.YouDrawItConfig;
281
281
  annotations: Annotation[];
282
282
  /** Normalized label configuration with defaults applied. density, format, and prefix are always set; offsets and color stay optional. */
283
- labels: Required<Pick<LabelConfig, 'density' | 'format' | 'prefix'>> & Pick<LabelConfig, 'color' | 'fontSize' | 'suffix' | 'placement' | 'content'>;
283
+ labels: Required<Pick<LabelConfig, 'density' | 'format' | 'prefix'>> & Pick<LabelConfig, 'color' | 'fontSize' | 'suffix' | 'placement' | 'content' | 'highlightedOnly'>;
284
284
  /** Legend configuration (position override). */
285
285
  legend?: LegendConfig;
286
286
  /** Right-side endpoint labels column config (multi-series line/area only). */
@@ -1592,6 +1592,8 @@ interface AnnotationContext {
1592
1592
  colors?: _opendata_ai_openchart_core.ThemeColors;
1593
1593
  debugPlacement?: boolean;
1594
1594
  onWarn?: (message: string) => void;
1595
+ /** Called with the spec index of each annotation whose resolver returned nothing. */
1596
+ onUnplaced?: (specIndex: number) => void;
1595
1597
  /** When true, annotations that overlap are demoted to footnote markers instead of being hidden. */
1596
1598
  autoThin?: boolean;
1597
1599
  /**