@texturehq/edges 1.38.0 → 2.0.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/{colors-CBDlvX1A.d.cts → colors-CfANmDSd.d.cts} +21 -1
- package/dist/{colors-op_IMV5O.d.ts → colors-VFFqViFy.d.ts} +21 -1
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -222,6 +222,11 @@ interface TooltipEventItem {
|
|
|
222
222
|
interface TooltipSeries {
|
|
223
223
|
label: string;
|
|
224
224
|
value: number;
|
|
225
|
+
/**
|
|
226
|
+
* Lower bound for a min–max band series. When set, the tooltip renders the
|
|
227
|
+
* range `baselineValue–value` instead of a single value.
|
|
228
|
+
*/
|
|
229
|
+
baselineValue?: number;
|
|
225
230
|
/**
|
|
226
231
|
* Optional y-axis coordinate (in data space) where the focus highlight
|
|
227
232
|
* should be drawn for this series. Defaults to `value`. Used by stacked
|
|
@@ -294,6 +299,14 @@ interface BaseDataPoint {
|
|
|
294
299
|
* behavior is unchanged.
|
|
295
300
|
*/
|
|
296
301
|
chartYValue?: number;
|
|
302
|
+
/**
|
|
303
|
+
* Optional lower bound for a banded `AreaSeries` (e.g. a min–max envelope or a
|
|
304
|
+
* stacked band's floor). Carried on the point so the floor stays bound to the
|
|
305
|
+
* same sample as the ceiling and survives `ChartContainer`'s zoom-filtering —
|
|
306
|
+
* a positional baseline array would desync once `data` is re-indexed. Read via
|
|
307
|
+
* `baselineFromPoint`.
|
|
308
|
+
*/
|
|
309
|
+
baselineValue?: number;
|
|
297
310
|
/**
|
|
298
311
|
* Optional render-only control for the tooltip focus marker. Defaults to true.
|
|
299
312
|
* Useful for zero-height stacked bands: the tooltip row should still report
|
|
@@ -303,6 +316,13 @@ interface BaseDataPoint {
|
|
|
303
316
|
showTooltipMarker?: boolean;
|
|
304
317
|
category?: string;
|
|
305
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* Canonical `AreaSeries` baseline accessor: the per-point band floor. Pass as
|
|
321
|
+
* `baseline={baselineFromPoint}` for any banded area whose points carry a
|
|
322
|
+
* `baselineValue`. Because the floor is read off the point, it stays correct
|
|
323
|
+
* under zoom/pan where a positional baseline array would desync.
|
|
324
|
+
*/
|
|
325
|
+
declare const baselineFromPoint: (point: BaseDataPoint) => number;
|
|
306
326
|
interface ChartMargin {
|
|
307
327
|
top: number;
|
|
308
328
|
right: number;
|
|
@@ -2212,4 +2232,4 @@ declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
|
2212
2232
|
*/
|
|
2213
2233
|
declare const mapValuesToCategoricalColors: (values: (string | number)[]) => Record<string | number, string>;
|
|
2214
2234
|
|
|
2215
|
-
export { type EnergyFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, getContrastingTextColor as D, ENTITY_CONFIG as E, getDefaultChartColor as F, getDefaultColors as G, Heading as H, type InteractiveMapProps as I, getEntityConfig as J, getEntityIcon as K, Loader as L, type MapPoint as M, getEntityLabel as N, getResolvedColor as O, getThemeCategoricalColors as P, getYFormatSettings as Q, isLightColor as R, type SegmentOption as S, TextLink as T, type FieldValue as U, type BooleanFormat as V, type FormattedValue as W, type CurrentFormat as X, type YFormatSettings as Y, type DateFormat as Z, type DistanceFormat as _, type ActionMenuProps as a,
|
|
2235
|
+
export { type EnergyFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, getContrastingTextColor as D, ENTITY_CONFIG as E, getDefaultChartColor as F, getDefaultColors as G, Heading as H, type InteractiveMapProps as I, getEntityConfig as J, getEntityIcon as K, Loader as L, type MapPoint as M, getEntityLabel as N, getResolvedColor as O, getThemeCategoricalColors as P, getYFormatSettings as Q, isLightColor as R, type SegmentOption as S, TextLink as T, type FieldValue as U, type BooleanFormat as V, type FormattedValue as W, type CurrentFormat as X, type YFormatSettings as Y, type DateFormat as Z, type DistanceFormat as _, type ActionMenuProps as a, getDeviceStateLabel as a$, type CurrencyFormat as a0, type NumberFormat as a1, type PhoneFormat as a2, type PowerFormat as a3, type FormatterFunction as a4, type ResistanceFormat as a5, type TemperatureFormat as a6, type TemperatureUnitString as a7, type TemperatureUnit as a8, type TextFormat as a9, InteractiveMap as aA, type LayerFeature as aB, type LayerStyle as aC, MAP_TYPES as aD, type MapType as aE, Meter as aF, type MetricFormat as aG, type PercentageFormat as aH, type PowerUnit as aI, type RenderType as aJ, type ResistanceUnit as aK, SegmentedControl as aL, StackNav as aM, type StackNavItem as aN, type StackNavLinkComponentProps as aO, type StackNavProps as aP, type StackNavTheme as aQ, StaticMap as aR, type TextTransform as aS, type TextTruncatePosition as aT, type VoltageUnit as aU, type ZoomStops as aV, activeDeviceStates as aW, baselineFromPoint as aX, deviceStateLabels as aY, deviceStateMetricFormats as aZ, formatComponentValue as a_, type VoltageFormat as aa, type FieldFormat as ab, type DeviceState as ac, type GridState as ad, type ComponentFormatter as ae, type LayerSpec as af, type CustomPinsSpec as ag, type GeoJsonLayerSpec as ah, type RasterLayerSpec as ai, type VectorLayerSpec as aj, type ClusteredVectorLayerSpec as ak, ActionMenu as al, AppShell as am, Avatar as an, Badge as ao, type BaseFormat as ap, ChartContext as aq, CodeEditor as ar, type ColorSpec as as, type ComponentFormatOptions as at, type CurrentUnit as au, type CustomFormat as av, DEFAULT_MAP_TYPE as aw, type DateFormatStyle as ax, type DistanceUnit as ay, type EnergyUnit as az, type AppShellProps as b, getGridStateLabel as b0, gridStateLabels as b1, isActiveState as b2, mapValuesToCategoricalColors as b3, useChartContext as b4, useComponentFormatter as b5, type AvatarProps as c, type BaseDataPoint as d, type CodeEditorProps as e, type CodeLanguage as f, type CodeTheme as g, type EntityConfig as h, type EntityType as i, Logo as j, type MeterProps as k, type SegmentedControlProps as l, SideNav as m, type SideNavItem as n, type SideNavProps as o, type StaticMapProps as p, type TooltipData as q, type TooltipSeries as r, TopNav as s, type TopNavProps as t, type YFormatType as u, clearColorCache as v, createCategoryColorMap as w, createXScale as x, createYScale as y, defaultMargin as z };
|
|
@@ -222,6 +222,11 @@ interface TooltipEventItem {
|
|
|
222
222
|
interface TooltipSeries {
|
|
223
223
|
label: string;
|
|
224
224
|
value: number;
|
|
225
|
+
/**
|
|
226
|
+
* Lower bound for a min–max band series. When set, the tooltip renders the
|
|
227
|
+
* range `baselineValue–value` instead of a single value.
|
|
228
|
+
*/
|
|
229
|
+
baselineValue?: number;
|
|
225
230
|
/**
|
|
226
231
|
* Optional y-axis coordinate (in data space) where the focus highlight
|
|
227
232
|
* should be drawn for this series. Defaults to `value`. Used by stacked
|
|
@@ -294,6 +299,14 @@ interface BaseDataPoint {
|
|
|
294
299
|
* behavior is unchanged.
|
|
295
300
|
*/
|
|
296
301
|
chartYValue?: number;
|
|
302
|
+
/**
|
|
303
|
+
* Optional lower bound for a banded `AreaSeries` (e.g. a min–max envelope or a
|
|
304
|
+
* stacked band's floor). Carried on the point so the floor stays bound to the
|
|
305
|
+
* same sample as the ceiling and survives `ChartContainer`'s zoom-filtering —
|
|
306
|
+
* a positional baseline array would desync once `data` is re-indexed. Read via
|
|
307
|
+
* `baselineFromPoint`.
|
|
308
|
+
*/
|
|
309
|
+
baselineValue?: number;
|
|
297
310
|
/**
|
|
298
311
|
* Optional render-only control for the tooltip focus marker. Defaults to true.
|
|
299
312
|
* Useful for zero-height stacked bands: the tooltip row should still report
|
|
@@ -303,6 +316,13 @@ interface BaseDataPoint {
|
|
|
303
316
|
showTooltipMarker?: boolean;
|
|
304
317
|
category?: string;
|
|
305
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* Canonical `AreaSeries` baseline accessor: the per-point band floor. Pass as
|
|
321
|
+
* `baseline={baselineFromPoint}` for any banded area whose points carry a
|
|
322
|
+
* `baselineValue`. Because the floor is read off the point, it stays correct
|
|
323
|
+
* under zoom/pan where a positional baseline array would desync.
|
|
324
|
+
*/
|
|
325
|
+
declare const baselineFromPoint: (point: BaseDataPoint) => number;
|
|
306
326
|
interface ChartMargin {
|
|
307
327
|
top: number;
|
|
308
328
|
right: number;
|
|
@@ -2212,4 +2232,4 @@ declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
|
2212
2232
|
*/
|
|
2213
2233
|
declare const mapValuesToCategoricalColors: (values: (string | number)[]) => Record<string | number, string>;
|
|
2214
2234
|
|
|
2215
|
-
export { type EnergyFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, getContrastingTextColor as D, ENTITY_CONFIG as E, getDefaultChartColor as F, getDefaultColors as G, Heading as H, type InteractiveMapProps as I, getEntityConfig as J, getEntityIcon as K, Loader as L, type MapPoint as M, getEntityLabel as N, getResolvedColor as O, getThemeCategoricalColors as P, getYFormatSettings as Q, isLightColor as R, type SegmentOption as S, TextLink as T, type FieldValue as U, type BooleanFormat as V, type FormattedValue as W, type CurrentFormat as X, type YFormatSettings as Y, type DateFormat as Z, type DistanceFormat as _, type ActionMenuProps as a,
|
|
2235
|
+
export { type EnergyFormat as $, type ActionItem as A, type BadgeProps as B, type ChartMargin as C, getContrastingTextColor as D, ENTITY_CONFIG as E, getDefaultChartColor as F, getDefaultColors as G, Heading as H, type InteractiveMapProps as I, getEntityConfig as J, getEntityIcon as K, Loader as L, type MapPoint as M, getEntityLabel as N, getResolvedColor as O, getThemeCategoricalColors as P, getYFormatSettings as Q, isLightColor as R, type SegmentOption as S, TextLink as T, type FieldValue as U, type BooleanFormat as V, type FormattedValue as W, type CurrentFormat as X, type YFormatSettings as Y, type DateFormat as Z, type DistanceFormat as _, type ActionMenuProps as a, getDeviceStateLabel as a$, type CurrencyFormat as a0, type NumberFormat as a1, type PhoneFormat as a2, type PowerFormat as a3, type FormatterFunction as a4, type ResistanceFormat as a5, type TemperatureFormat as a6, type TemperatureUnitString as a7, type TemperatureUnit as a8, type TextFormat as a9, InteractiveMap as aA, type LayerFeature as aB, type LayerStyle as aC, MAP_TYPES as aD, type MapType as aE, Meter as aF, type MetricFormat as aG, type PercentageFormat as aH, type PowerUnit as aI, type RenderType as aJ, type ResistanceUnit as aK, SegmentedControl as aL, StackNav as aM, type StackNavItem as aN, type StackNavLinkComponentProps as aO, type StackNavProps as aP, type StackNavTheme as aQ, StaticMap as aR, type TextTransform as aS, type TextTruncatePosition as aT, type VoltageUnit as aU, type ZoomStops as aV, activeDeviceStates as aW, baselineFromPoint as aX, deviceStateLabels as aY, deviceStateMetricFormats as aZ, formatComponentValue as a_, type VoltageFormat as aa, type FieldFormat as ab, type DeviceState as ac, type GridState as ad, type ComponentFormatter as ae, type LayerSpec as af, type CustomPinsSpec as ag, type GeoJsonLayerSpec as ah, type RasterLayerSpec as ai, type VectorLayerSpec as aj, type ClusteredVectorLayerSpec as ak, ActionMenu as al, AppShell as am, Avatar as an, Badge as ao, type BaseFormat as ap, ChartContext as aq, CodeEditor as ar, type ColorSpec as as, type ComponentFormatOptions as at, type CurrentUnit as au, type CustomFormat as av, DEFAULT_MAP_TYPE as aw, type DateFormatStyle as ax, type DistanceUnit as ay, type EnergyUnit as az, type AppShellProps as b, getGridStateLabel as b0, gridStateLabels as b1, isActiveState as b2, mapValuesToCategoricalColors as b3, useChartContext as b4, useComponentFormatter as b5, type AvatarProps as c, type BaseDataPoint as d, type CodeEditorProps as e, type CodeLanguage as f, type CodeTheme as g, type EntityConfig as h, type EntityType as i, Logo as j, type MeterProps as k, type SegmentedControlProps as l, SideNav as m, type SideNavItem as n, type SideNavProps as o, type StaticMapProps as p, type TooltipData as q, type TooltipSeries as r, TopNav as s, type TopNavProps as t, type YFormatType as u, clearColorCache as v, createCategoryColorMap as w, createXScale as x, createYScale as y, defaultMargin as z };
|