@barefootjs/chart 0.9.2 → 0.9.4
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/chart-container.d.ts +1 -1
- package/dist/chart-container.d.ts.map +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/chart-container.ts +1 -1
- package/src/context.ts +1 -1
- package/src/index.ts +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-container.d.ts","sourceRoot":"","sources":["../src/chart-container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"chart-container.d.ts","sourceRoot":"","sources":["../src/chart-container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,WAAW,EACtB,MAAM,EAAE,WAAW,GAClB,IAAI,CAIN"}
|
package/dist/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BarChartContextValue, RadialChartContextValue, RadarChartContextValue, PieChartContextValue, AreaChartContextValue, ChartConfig } from './types';
|
|
1
|
+
import type { BarChartContextValue, RadialChartContextValue, RadarChartContextValue, PieChartContextValue, AreaChartContextValue, ChartConfig } from './types.ts';
|
|
2
2
|
export declare const BarChartContext: import("@barefootjs/client/runtime").Context<BarChartContextValue>;
|
|
3
3
|
export declare const RadialChartContext: import("@barefootjs/client/runtime").Context<RadialChartContextValue>;
|
|
4
4
|
export declare const RadarChartContext: import("@barefootjs/client/runtime").Context<RadarChartContextValue>;
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEjK,eAAO,MAAM,eAAe,oEAAwC,CAAA;AAEpE,eAAO,MAAM,kBAAkB,uEAA2C,CAAA;AAE1E,eAAO,MAAM,iBAAiB,sEAA0C,CAAA;AAExE,eAAO,MAAM,eAAe,oEAAwC,CAAA;AAEpE,eAAO,MAAM,gBAAgB,qEAAyC,CAAA;AAEtE,eAAO,MAAM,kBAAkB;YAA2B,WAAW;EAAK,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { BarChartContext, RadialChartContext, RadarChartContext, PieChartContext, AreaChartContext, ChartConfigContext } from './context';
|
|
2
|
-
export { createBandScale, createLinearScale, createPointScale, createRadarRadialScale } from './utils/scales';
|
|
3
|
-
export { buildRadialBarArcs, buildPieSlices, type RadialBarArcSpec, type PieSliceSpec } from './utils/arcs';
|
|
4
|
-
export { buildLinePath, buildLinePoints, type LinePoint } from './utils/lines';
|
|
5
|
-
export { buildAreaPaths, buildAreaDots, type AreaPaths, type AreaDot } from './utils/areas';
|
|
6
|
-
export { buildRadarVertices, buildRadarPolygonPoints, type RadarVertex } from './utils/radar';
|
|
7
|
-
export { CHART_CLASS_GRID, CHART_CLASS_X_AXIS, CHART_CLASS_Y_AXIS, CHART_CLASS_POLAR_GRID, CHART_CLASS_POLAR_ANGLE_AXIS, CHART_CLASS_RADIAL_BAR, CHART_CLASS_RADIAL_LABEL, CHART_CLASS_BAR, CHART_CLASS_LINE, CHART_CLASS_AREA, CHART_CLASS_AREA_DOT, CHART_CLASS_RADAR, CHART_CLASS_PIE, CHART_CLASS_TOOLTIP, } from './utils/classes';
|
|
8
|
-
export { applyChartCSSVariables } from './chart-container';
|
|
9
|
-
export type { ChartConfig, BarRegistration, RadialBarRegistration, RadarRegistration, PieRegistration, AreaRegistration, ChartContainerProps, BarChartProps, BarProps, PieChartProps, PieProps, PieTooltipProps, AreaChartProps, AreaProps, LineChartProps, LineProps, CartesianGridProps, XAxisProps, YAxisProps, ChartTooltipProps, RadialChartProps, RadialBarProps, RadialChartLabelProps, RadarChartProps, RadarProps, PolarGridProps, PolarAngleAxisProps, RadarTooltipProps, } from './types';
|
|
1
|
+
export { BarChartContext, RadialChartContext, RadarChartContext, PieChartContext, AreaChartContext, ChartConfigContext } from './context.ts';
|
|
2
|
+
export { createBandScale, createLinearScale, createPointScale, createRadarRadialScale } from './utils/scales.ts';
|
|
3
|
+
export { buildRadialBarArcs, buildPieSlices, type RadialBarArcSpec, type PieSliceSpec } from './utils/arcs.ts';
|
|
4
|
+
export { buildLinePath, buildLinePoints, type LinePoint } from './utils/lines.ts';
|
|
5
|
+
export { buildAreaPaths, buildAreaDots, type AreaPaths, type AreaDot } from './utils/areas.ts';
|
|
6
|
+
export { buildRadarVertices, buildRadarPolygonPoints, type RadarVertex } from './utils/radar.ts';
|
|
7
|
+
export { CHART_CLASS_GRID, CHART_CLASS_X_AXIS, CHART_CLASS_Y_AXIS, CHART_CLASS_POLAR_GRID, CHART_CLASS_POLAR_ANGLE_AXIS, CHART_CLASS_RADIAL_BAR, CHART_CLASS_RADIAL_LABEL, CHART_CLASS_BAR, CHART_CLASS_LINE, CHART_CLASS_AREA, CHART_CLASS_AREA_DOT, CHART_CLASS_RADAR, CHART_CLASS_PIE, CHART_CLASS_TOOLTIP, } from './utils/classes.ts';
|
|
8
|
+
export { applyChartCSSVariables } from './chart-container.ts';
|
|
9
|
+
export type { ChartConfig, BarRegistration, RadialBarRegistration, RadarRegistration, PieRegistration, AreaRegistration, ChartContainerProps, BarChartProps, BarProps, PieChartProps, PieProps, PieTooltipProps, AreaChartProps, AreaProps, LineChartProps, LineProps, CartesianGridProps, XAxisProps, YAxisProps, ChartTooltipProps, RadialChartProps, RadialBarProps, RadialChartLabelProps, RadarChartProps, RadarProps, PolarGridProps, PolarAngleAxisProps, RadarTooltipProps, } from './types.ts';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAG5I,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAKhH,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAG9G,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAGjF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG9F,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAKhG,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,GACpB,MAAM,oBAAoB,CAAA;AAI3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAG7D,YAAY,EACV,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,eAAe,EACf,cAAc,EACd,SAAS,EACT,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,YAAY,CAAA"}
|
package/package.json
CHANGED
package/src/chart-container.ts
CHANGED
package/src/context.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from '@barefootjs/client/runtime'
|
|
2
|
-
import type { BarChartContextValue, RadialChartContextValue, RadarChartContextValue, PieChartContextValue, AreaChartContextValue, ChartConfig } from './types'
|
|
2
|
+
import type { BarChartContextValue, RadialChartContextValue, RadarChartContextValue, PieChartContextValue, AreaChartContextValue, ChartConfig } from './types.ts'
|
|
3
3
|
|
|
4
4
|
export const BarChartContext = createContext<BarChartContextValue>()
|
|
5
5
|
|
package/src/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// Context types consumed by JSX-native chart containers and primitives.
|
|
2
|
-
export { BarChartContext, RadialChartContext, RadarChartContext, PieChartContext, AreaChartContext, ChartConfigContext } from './context'
|
|
2
|
+
export { BarChartContext, RadialChartContext, RadarChartContext, PieChartContext, AreaChartContext, ChartConfigContext } from './context.ts'
|
|
3
3
|
|
|
4
4
|
// Scale utilities used by JSX-native chart containers.
|
|
5
|
-
export { createBandScale, createLinearScale, createPointScale, createRadarRadialScale } from './utils/scales'
|
|
5
|
+
export { createBandScale, createLinearScale, createPointScale, createRadarRadialScale } from './utils/scales.ts'
|
|
6
6
|
|
|
7
7
|
// Arc geometry helpers for JSX-native radial primitives. d3-shape stays
|
|
8
8
|
// inside this package so consumer bundles avoid pulling in bare specifiers
|
|
9
9
|
// the browser import map does not resolve.
|
|
10
|
-
export { buildRadialBarArcs, buildPieSlices, type RadialBarArcSpec, type PieSliceSpec } from './utils/arcs'
|
|
10
|
+
export { buildRadialBarArcs, buildPieSlices, type RadialBarArcSpec, type PieSliceSpec } from './utils/arcs.ts'
|
|
11
11
|
|
|
12
12
|
// Line geometry helpers for the JSX-native `Line` primitive (#1080 step 3).
|
|
13
|
-
export { buildLinePath, buildLinePoints, type LinePoint } from './utils/lines'
|
|
13
|
+
export { buildLinePath, buildLinePoints, type LinePoint } from './utils/lines.ts'
|
|
14
14
|
|
|
15
15
|
// Area geometry helpers for the JSX-native `Area` primitive (#1080 step 3).
|
|
16
|
-
export { buildAreaPaths, buildAreaDots, type AreaPaths, type AreaDot } from './utils/areas'
|
|
16
|
+
export { buildAreaPaths, buildAreaDots, type AreaPaths, type AreaDot } from './utils/areas.ts'
|
|
17
17
|
|
|
18
18
|
// Radar geometry helpers for the JSX-native `Radar` primitive (#1080 step 3).
|
|
19
|
-
export { buildRadarVertices, buildRadarPolygonPoints, type RadarVertex } from './utils/radar'
|
|
19
|
+
export { buildRadarVertices, buildRadarPolygonPoints, type RadarVertex } from './utils/radar.ts'
|
|
20
20
|
|
|
21
21
|
// Stable CSS class names for chart primitives. Imported (rather than
|
|
22
22
|
// declared inline) so the JSX compiler's cssLayerPrefixer leaves them alone
|
|
@@ -36,11 +36,11 @@ export {
|
|
|
36
36
|
CHART_CLASS_RADAR,
|
|
37
37
|
CHART_CLASS_PIE,
|
|
38
38
|
CHART_CLASS_TOOLTIP,
|
|
39
|
-
} from './utils/classes'
|
|
39
|
+
} from './utils/classes.ts'
|
|
40
40
|
|
|
41
41
|
// Helper used by the JSX-native ChartContainer ref to project ChartConfig
|
|
42
42
|
// entries onto CSS custom properties.
|
|
43
|
-
export { applyChartCSSVariables } from './chart-container'
|
|
43
|
+
export { applyChartCSSVariables } from './chart-container.ts'
|
|
44
44
|
|
|
45
45
|
// Type exports
|
|
46
46
|
export type {
|
|
@@ -72,4 +72,4 @@ export type {
|
|
|
72
72
|
PolarGridProps,
|
|
73
73
|
PolarAngleAxisProps,
|
|
74
74
|
RadarTooltipProps,
|
|
75
|
-
} from './types'
|
|
75
|
+
} from './types.ts'
|