Skip to content

Commit 498da61

Browse files
committed
fix typos in changelog, example app, library and docs
1 parent ea01c7b commit 498da61

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

example/app/scroll.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ export default function HorizontalScrollPage() {
6868
}}
6969
</CartesianChart>
7070
</View>
71-
<Hightlighted viewport={viewport} matrix={state.matrix} />
71+
<Highlighted viewport={viewport} matrix={state.matrix} />
7272
</SafeAreaView>
7373
);
7474
}
7575

76-
type HightlightedProps = {
76+
type HighlightedProps = {
7777
viewport: Viewport;
7878
matrix: SharedValue<Matrix4>;
7979
};
80-
const Hightlighted = ({ viewport, matrix }: HightlightedProps) => {
80+
const Highlighted = ({ viewport, matrix }: HighlightedProps) => {
8181
const font = useFont(inter, 12);
8282
const [chartBounds, setChartBounds] = React.useState<ChartBounds>({
8383
left: 0,

lib/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278

279279
- Adds onChartBoundsChange prop to CartesianChart ([#117](https://github.com/FormidableLabs/victory-native-xl/pull/117))
280280

281-
- Support "misisng data", add `connectMissingData` prop to line/area charts. Allows for null/undefined y-values. ([#129](https://github.com/FormidableLabs/victory-native-xl/pull/129))
281+
- Support "missing data", add `connectMissingData` prop to line/area charts. Allows for null/undefined y-values. ([#129](https://github.com/FormidableLabs/victory-native-xl/pull/129))
282282

283283
- Include src files in distribution tarball ([#100](https://github.com/FormidableLabs/victory-native-xl/pull/100))
284284

@@ -294,7 +294,7 @@
294294

295295
### Patch Changes
296296

297-
- Support "misisng data", add `connectMissingData` prop to line/area charts. Allows for null/undefined y-values. ([#129](https://github.com/FormidableLabs/victory-native-xl/pull/129))
297+
- Support "missing data", add `connectMissingData` prop to line/area charts. Allows for null/undefined y-values. ([#129](https://github.com/FormidableLabs/victory-native-xl/pull/129))
298298

299299
## 40.0.0-next.6
300300

lib/src/cartesian/CartesianChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function CartesianChartContent<
412412
}
413413
})
414414
/**
415-
* On start, check if we have any bootstraped updates we need to apply.
415+
* On start, check if we have any bootstrapped updates we need to apply.
416416
*/
417417
.onStart(() => {
418418
gestureState.value.isGestureActive = true;

lib/src/cartesian/components/AnimatedPath.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ const syncPropsToSharedValues = (
7171
keysToRemove.delete(key);
7272

7373
const propVal = props[key];
74-
const sharVal = sharedValues[key];
74+
const shareVal = sharedValues[key];
7575

7676
// Shared value missing, create it
77-
if (!sharVal) {
77+
if (!shareVal) {
7878
sharedValues[key] = isSharedValue(propVal)
7979
? propVal
8080
: makeMutable(propVal);
8181
}
8282
// Shared value exists, update it if not already a shared value
8383
else if (!isSharedValue(propVal)) {
84-
sharVal.value = propVal;
84+
shareVal.value = propVal;
8585
}
8686
}
8787

lib/src/cartesian/hooks/useBuildChartAxis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { YAxisDefaults } from "../components/YAxis";
1919
import { FrameDefaults } from "../components/Frame";
2020

2121
/**
22-
* This hook builds the chart axes + the surrounding frame based on either the new x, y, frame props, or via backwards compatability for the older axisOptions props and the associated default values it had. The defaults for the former are the new XAxisDefaults, YAxisDefaults, and FrameDefaults, while the defaults for the latter come from the older CartesianAxisDefaultProps.
22+
* This hook builds the chart axes + the surrounding frame based on either the new x, y, frame props, or via backwards compatibility for the older axisOptions props and the associated default values it had. The defaults for the former are the new XAxisDefaults, YAxisDefaults, and FrameDefaults, while the defaults for the latter come from the older CartesianAxisDefaultProps.
2323
*
2424
* The hook returns a normalized object of `xAxis, yAxes, and frame` objects that are used to determine the axes to render and in the transformInputData function.
2525
*/

lib/src/cartesian/hooks/useStackedAreaPaths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const calculateOffsets = (
3333
offsets[layerIndex] = currentPoints.map((_, i) => {
3434
const accumulatedOffset = offsets[layerIndex - 1]?.[i] ?? 0;
3535
const previousHeightOfPoint = previousPoints[i]?.y ?? 0;
36-
// The offset is calculated by starting at the y0 (the bottom-most line of the chart) and then subtract the preceding point's height combined with the accumlation of these values
36+
// The offset is calculated by starting at the y0 (the bottom-most line of the chart) and then subtract the preceding point's height combined with the accumulation of these values
3737
// For example:
3838
// If we had something like { x: 0, high: 5, med: 4, low: 3 } as a data point and passed this in like points={[points.low, points.med, points.high]}
3939
// "low" is not offset by anything other than y0, since it is the first area drawn

lib/src/pie/PieLabel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { type ReactNode } from "react";
33
import { usePieSliceContext } from "./contexts/PieSliceContext";
44
import { getFontGlyphWidth } from "../utils/getFontGlyphWidth";
55

6-
type LabelPostion = {
6+
type LabelPosition = {
77
x: number;
88
y: number;
99
midAngle: number;
@@ -14,7 +14,7 @@ export type PieLabelProps = {
1414
radiusOffset?: number;
1515
color?: Color;
1616
text?: string;
17-
children?: (position: LabelPostion) => ReactNode;
17+
children?: (position: LabelPosition) => ReactNode;
1818
};
1919

2020
const PieLabel = ({

website/docs/cartesian/bar/bar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The `roundedCorners` prop allows you to customize the roundedness of each corner
6060

6161
### `barWidth`
6262

63-
The `barWidth` prop takes a number and sets the width of the bar to that number. If not provided, the default is determined by the `chartBounds` and number of data points. Takes precendence over the `barCount` prop. Use this for the most fine grained control of bar width
63+
The `barWidth` prop takes a number and sets the width of the bar to that number. If not provided, the default is determined by the `chartBounds` and number of data points. Takes precedence over the `barCount` prop. Use this for the most fine grained control of bar width
6464

6565
### `barCount`
6666

website/docs/cartesian/bar/stacked-bar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The `colors` prop takes an array of `Color` values to use for the bars. The orde
103103

104104
### `barWidth`
105105

106-
The `barWidth` prop takes a number and sets the width of the bar to that number. If not provided, the default is determined by the `chartBounds` and number of data points. Takes precendence over the `barCount` prop. Use this for the most fine grained control of bar width
106+
The `barWidth` prop takes a number and sets the width of the bar to that number. If not provided, the default is determined by the `chartBounds` and number of data points. Takes precedence over the `barCount` prop. Use this for the most fine grained control of bar width
107107

108108
### `barCount`
109109

website/docs/cartesian/guides/basic-bar-chart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This guide will show you how to create this bar chart with some customization li
1818

1919
```tsx
2020
const data = Array.from({ length: 6 }, (_, index) => ({
21-
// Starting at 1 for Jaunary
21+
// Starting at 1 for January
2222
month: index + 1,
2323
// Randomizing the listen count between 100 and 50
2424
listenCount: Math.floor(Math.random() * (100 - 50 + 1)) + 50,

0 commit comments

Comments
 (0)