Skip to content

Commit 5634419

Browse files
authored
Merge pull request #51 from jamesscottbrown/fix-typos
Fix typos
2 parents d57dbd2 + d63a9eb commit 5634419

File tree

20 files changed

+27
-27
lines changed

20 files changed

+27
-27
lines changed

src/lib/Plot.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
their data and channels and computes the shared scales.
55
66
The Plot component is split into two parts. This is the outer Plot which
7-
provides convenient defaults and automatically adds axes etc to the grapihcs.
7+
provides convenient defaults and automatically adds axes etc to the graphics.
88
The downside is that it adds a bunch of imports that you may not be using.
99
To help with this you can use the core/Plot component directly for a more
1010
low-level Plot wrapper.

src/lib/helpers/autoScales.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function getScaleRange(
321321
: name === 'r'
322322
? [0, 10]
323323
: name === 'symbol'
324-
? // Plot is smart enough to pick different default shapes depending on wether
324+
? // Plot is smart enough to pick different default shapes depending on whether
325325
// or not there are filled dot marks in the plot, so we have to pass this
326326
// information all the way here
327327
plotHasFilledDotMarks

src/lib/helpers/callWithProps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type Setter = (v: any) => void;
44

55
/**
66
* Helper function to call a D3 "function class" while also calling
7-
* porperty setter functions on the result.
7+
* property setter functions on the result.
88
*/
99
export default function (
1010
d3func: () => Record<string, Setter>,

src/lib/helpers/group.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('groupFacetsAndZ', () => {
2727
expect(result).toEqual([2, 1, 1, 1]);
2828
});
2929

30-
it('implicitely groups by fill and stroke if z is not present', () => {
30+
it('implicitly groups by fill and stroke if z is not present', () => {
3131
const items = [
3232
{ color: 'red', value: 10 },
3333
{ color: 'red', value: 15 },

src/lib/helpers/scales.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ const scaledChannelNames: ScaledChannelName[] = [
402402
];
403403

404404
/**
405-
* Mark channels can explicitely or implicitely be exempt from being
405+
* Mark channels can explicitly or implicitly be exempt from being
406406
* mapped to a scale, so everywhere where values are being mapped to
407-
* scales, we need to check if the the scale is supposed to be used
407+
* scales, we need to check if the scale is supposed to be used
408408
* not. That's what this function is used for.
409409
*/
410410
export function getUsedScales(
@@ -450,7 +450,7 @@ export function projectXY(
450450
): [number, number] {
451451
if (scales.projection) {
452452
// TODO: pretty sure this is not how projection streams are supposed to be used
453-
// efficiantly, in observable plot, all data points of a mark are projected using
453+
// efficiently, in observable plot, all data points of a mark are projected using
454454
// the same stream
455455
let x_, y_;
456456
const stream = scales.projection.stream({

src/lib/marks/GridX.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
import { testFilter } from '$lib/helpers/index.js';
88
import { RAW_VALUE } from '$lib/transforms/recordize.js';
99
10-
type GrixXMarkProps = BaseMarkProps & {
10+
type GridXMarkProps = BaseMarkProps & {
1111
data?: RawValue[];
1212
automatic?: boolean;
1313
};
1414
15-
let { data = [], automatic = false, ...options }: GrixXMarkProps = $props();
15+
let { data = [], automatic = false, ...options }: GridXMarkProps = $props();
1616
1717
const { getPlotState } = getContext<PlotContext>('svelteplot');
1818
const plot = $derived(getPlotState());

src/lib/marks/helpers/BaseAxisX.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
const T = tickObjects.length;
8989
for (let i = 0; i < T; i++) {
9090
let j = i;
91-
// find the preceeding tick that was not hidden
91+
// find the preceding tick that was not hidden
9292
do {
9393
j--;
9494
} while (j >= 0 && tickObjects[j].hidden);

src/lib/marks/helpers/BaseAxisY.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
const T = tickObjects.length;
7171
for (let i = 0; i < T; i++) {
7272
let j = i;
73-
// find the preceeding tick that was not hidden
73+
// find the preceding tick that was not hidden
7474
do {
7575
j--;
7676
} while (j >= 0 && tickObjects[j].hidden);

src/lib/marks/helpers/MarkerPath.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
datum: DataRecord;
2626
/**
2727
* the marker shape to use at the start of the path, defaults to
28-
* cirlce
28+
* circle
2929
*/
3030
markerStart?: boolean | MarkerShape;
3131
/**

src/lib/transforms/bin.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('binX', () => {
7373
y: d
7474
}));
7575

76-
it('bins dailys into weekly data', () => {
76+
it('bins daily into weekly data', () => {
7777
const { data, ...channels } = binX(
7878
{
7979
data: dailyData,
@@ -119,7 +119,7 @@ describe('binX', () => {
119119
expect(binDuration).toBeLessThanOrEqual(7 * 24 * 60 * 60 * 1000);
120120
});
121121

122-
// it.only('bins dailys into weekly data', () => {
122+
// it.only('bins daily into weekly data', () => {
123123
// const { data, ...channels } = binX(
124124
// {
125125
// data: dailyData,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy