Skip to content

Commit f55f704

Browse files
authored
Merge pull request #52 from jamesscottbrown/unused-imports
Remove some unused imports
2 parents b5b2e68 + edba919 commit f55f704

35 files changed

+28
-51
lines changed

src/lib/core/Facet.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<script lang="ts">
22
import { setContext, type Snippet } from 'svelte';
33
import { resolveChannel } from '../helpers/resolve.js';
4-
import type { BaseMarkProps, DataRecord, PlotScale, RawValue } from '../types.js';
5-
import { identity } from '$lib/helpers';
4+
import type { BaseMarkProps, DataRecord, RawValue } from '../types.js';
65
76
let {
87
fx,

src/lib/core/FacetGrid.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
marks for each facet domain value
55
-->
66
<script lang="ts">
7-
import { getContext, setContext, type Snippet } from 'svelte';
7+
import { getContext, type Snippet } from 'svelte';
88
import type { PlotContext, GenericMarkOptions, Mark } from '../types.js';
99
import { scaleBand } from 'd3-scale';
1010
import Facet from './Facet.svelte';

src/lib/helpers/facets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GenericMarkOptions, Mark, PlotScale, RawValue } from '$lib/types.js';
1+
import type { GenericMarkOptions, Mark, RawValue } from '$lib/types.js';
22
import { resolveChannel } from './resolve.js';
33

44
/**

src/lib/helpers/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { coalesce, isObject, pick, omit } from './index';
1+
import { coalesce, isObject, omit } from './index';
22
import { describe, it, expect } from 'vitest';
33

44
describe('coalesce', () => {

src/lib/helpers/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {
2-
BaseMarkProps,
32
ChannelAccessor,
43
ChannelName,
54
DataRecord,

src/lib/helpers/projection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { geoClipRectangle, geoPath, geoTransform } from 'd3-geo';
22

3-
import { constant, isObject, isValid } from './index.js';
3+
import { constant, isObject } from './index.js';
44

55
const identity = constant({ stream: (stream) => stream });
66

src/lib/helpers/reduce.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect } from 'vitest';
22
import { reduceOutputs, type ReducerName } from './reduce.js';
3-
import type { ChannelAccessor, ChannelName, RawValue } from '$lib/types.js';
3+
import type { ChannelAccessor, ChannelName } from '$lib/types.js';
44

55
describe('reduceOutputs', () => {
66
it('should correctly reduce outputs', () => {

src/lib/helpers/reduce.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import type {
2-
ChannelAccessor,
32
ChannelName,
43
Channels,
54
DataRecord,
65
DataRow,
76
RawValue
87
} from '$lib/types.js';
9-
import { min, max, mode, sum, mean, median, variance, deviation, quantile, range } from 'd3-array';
8+
import { min, max, mode, sum, mean, median, variance, deviation, quantile } from 'd3-array';
109
import { resolveChannel } from './resolve.js';
1110
import { POSITION_CHANNELS } from './index.js';
1211

src/lib/helpers/resolve.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import isDataRecord from '$lib/helpers/isDataRecord.js';
33
import isRawValue from '$lib/helpers/isRawValue.js';
44
import type { MarkStyleProps, PlotState, ScaledDataRecord } from '$lib/types.js';
55
import { isValid } from './isValid.js';
6-
import { pick } from 'es-toolkit';
76

87
import type {
98
ScaleName,

src/lib/helpers/scales.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { extent, range as d3Range, ascending } from 'd3-array';
1+
import { extent, ascending } from 'd3-array';
22

33
import {
44
isColorOrNull,

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