Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
c5d5279
deps: typescript ^4.8.0
williaster Dec 19, 2024
c9d0e41
deps: ts-node ^10.9.1
williaster Dec 19, 2024
e5da486
deps: jest
williaster Dec 19, 2024
0d05e53
update jest.config.js
williaster Dec 19, 2024
274a897
geo: bump topo types
williaster Dec 19, 2024
bdedb6b
wordcloud: bump d3-cloud + types
williaster Dec 19, 2024
eb743f0
remove @types/d3-cloud dep, copy local types
williaster Dec 19, 2024
ba4c1e8
fix wordcloud types
williaster Dec 19, 2024
2a02080
fix wordcloud types
williaster Dec 19, 2024
fa4ee0e
zoom: update use-gesture
williaster Dec 19, 2024
56c40b5
shape: relax type
williaster Dec 19, 2024
c04dd7d
add postinstall script
williaster Dec 19, 2024
1d127a8
add d3-cloud declaration
williaster Dec 19, 2024
f9e7611
Fix typescript error when accessing `error` in `scripts/updateTsRefer…
darthmaim Dec 19, 2024
f8b2d48
react-spring: update to ^9.7.5
williaster Dec 19, 2024
db62369
react-spring: update to ^9.7.5
williaster Dec 19, 2024
9b9b7aa
xychart: fix types
williaster Dec 19, 2024
41c39f2
udpate project refs
williaster Dec 19, 2024
ad067d4
try ts 5.4
williaster Dec 19, 2024
acadff2
bump @types/lodash throughout
williaster Dec 19, 2024
dd40e4f
upgrade eslint and @typescript-eslint
williaster Dec 20, 2024
3ba0a26
lint fix - mostly for import type changes
williaster Dec 20, 2024
9dd7eae
xychart: fix a lot of types, remove withRegisteredData because it's t…
williaster Dec 20, 2024
3b28669
typescript 5.7
williaster Dec 20, 2024
18c4091
demo: include only .ts,.tsx files in tsconfig.json
williaster Dec 20, 2024
71de40e
fix jest config
williaster Dec 20, 2024
4a64991
jest: add TextEncoder, TextDecoder to shims
williaster Dec 20, 2024
a4e4214
fix tests
williaster Dec 20, 2024
dbd24d7
lint
williaster Dec 20, 2024
9aa312e
fix misc issues in scripts
williaster Dec 20, 2024
b6bc0e6
group: export type to fix TS module issue
williaster Dec 20, 2024
b1c6fc8
fix misc issues in scripts
williaster Dec 20, 2024
052cbdd
chore: update resolutions for additional dependencies
hshoff Oct 29, 2025
18e4df0
chore: clean up yarn.lock by removing unused ansi-regex and wrap-ansi…
hshoff Oct 29, 2025
6dd9178
fix: update imports to use type-only imports for better clarity
hshoff Oct 29, 2025
b0c46a2
feat: add script to generate component documentation from TypeScript …
hshoff Oct 29, 2025
871b1c3
fix: update .gitignore to include generated files
hshoff Oct 29, 2025
b90bfe3
feat: add documentation generation script and update TypeScript types…
hshoff Oct 29, 2025
a46e031
refactor: simplify tsconfig by removing unnecessary compiler options …
hshoff Oct 29, 2025
b7f4582
chorn(yarn): update yarn.lock
hshoff Oct 29, 2025
8ee49e0
feat: add utility functions for component documentation and GitHub UR…
hshoff Oct 29, 2025
3fc972b
refactor: enhance DocGenInfo type by adding parameters and return typ…
hshoff Oct 29, 2025
e20b4e7
fix: update reference path for Next.js types in next-env.d.ts
hshoff Oct 29, 2025
2e4c662
refactor: streamline webpack configuration for handling visx source f…
hshoff Oct 29, 2025
bc8cf6f
perf(demo): enable incremental TypeScript compilation
hshoff Oct 29, 2025
0d6bc82
refactor: add JSDoc comments to Legend components for improved docume…
hshoff Oct 29, 2025
6c52907
refactor: add JSDoc comments to useTooltip and useTooltipInPortal hoo…
hshoff Oct 29, 2025
612c127
feat(demo): enhance API documentation with function support and GitHu…
hshoff Oct 29, 2025
2f7185f
refactor(docs): streamline component imports and enhance documentatio…
hshoff Oct 29, 2025
4e29dea
refactor: change constructor visibility to public in BaseBrush component
hshoff Oct 29, 2025
11d540a
refactor: explicitly extract children prop in AllGridAngleProps type …
hshoff Oct 29, 2025
2a9fc62
refactor: update NodeProps type to clarify usage of node prop in Defa…
hshoff Oct 29, 2025
ee5cb61
refactor: simplify children prop type in ThemeProviderProps definition
hshoff Oct 29, 2025
0cacfda
refactor: correct type assertion in isChildWithProps function to use …
hshoff Oct 29, 2025
25e1679
chore: update Node version in .nvmrc to 18
hshoff Oct 29, 2025
a402ad0
chore: update @types/react and @types/react-dom to latest versions
hshoff Oct 29, 2025
76a73e5
chore: update @types/react and @types/react-dom to latest versions
hshoff Oct 29, 2025
96cd306
chore: upgrade Next.js to version 13 and React to version 18
hshoff Oct 29, 2025
a38212b
fix: add newline at end of tsconfig.json file
hshoff Oct 29, 2025
5c1e21e
refactor: change module.exports to ES6 export in next.config.js
hshoff Oct 30, 2025
e8d3dfb
refactor: update export syntax in next.config.js and fix lint
hshoff Oct 30, 2025
da2b6ee
Reorder steps build => lint in pull request workflow
hshoff Oct 30, 2025
7cd7717
Add documentation generation step to CI workflow
hshoff Oct 30, 2025
d544395
refactor: update import statements to use barrel exports from @visx/axis
hshoff Oct 30, 2025
bf4a2ec
refactor: remove happo for now
hshoff Oct 30, 2025
9600521
chore: update yarn.lock
hshoff Oct 30, 2025
d087563
fix: update type:build script to remove parallel execution to avoid r…
hshoff Oct 30, 2025
a9d3418
fix: update output setting for yarn cache directory in workflows
hshoff Oct 30, 2025
e1f0c53
feat: add radial scale support to createScale and updateScale functions
hshoff Oct 30, 2025
f02c9c2
fix: refine radial scale detection logic in inferScaleType function
hshoff Oct 31, 2025
5eeb635
fix: update radial scale test to reflect correct transformation calcu…
hshoff Oct 31, 2025
6bf8564
fix: remove comment
hshoff Oct 31, 2025
9cb654e
fix: add comments to clarify brush handling logic in BrushCorner and …
hshoff Oct 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.happo/
.next/
coverage/
node_modules/
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4.3.0
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
Expand All @@ -41,6 +41,9 @@ jobs:
env:
CI: true

- name: 📃 Generate docs
run: yarn docs:generate

- name: ❤️ Run lint
run: yarn lint

Expand All @@ -50,15 +53,6 @@ jobs:
env:
NODE_OPTIONS: '--openssl-legacy-provider'

- name: 🦛 Run happo
run: yarn run happo-ci-github-actions
working-directory: './packages/visx-demo/'
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
HAPPO_COMMAND: '../../node_modules/happo.io/build/cli.js'
NODE_OPTIONS: '--openssl-legacy-provider'

# @TODO
# this fails on forks, we need to update workflow event type to `pull_request_target`
# but this needs security review
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4.3.0
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
Expand Down Expand Up @@ -89,12 +89,3 @@ jobs:
git add .
git commit -m "bot(${GITHUB_SHA}): build gh-pages"
git push -f "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:gh-pages

- name: 🦛 Run happo
# not running happo on push results in stale base shas in pull_request
run: yarn run happo-ci-github-actions
working-directory: './packages/visx-demo/'
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
HAPPO_COMMAND: '../../node_modules/happo.io/build/cli.js'
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ logs/
# Cache
.bundle/
.eslintcache/
.happo/
.idea/
.next/
.npm/
Expand All @@ -34,4 +33,7 @@ webpack.config.js

# Lock files
npm-shrinkwrap.json
package-lock.json
package-lock.json

# Generated files
packages/visx-demo/src/generated/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.happo/
.next/
coverage/
node_modules/
Expand Down
1 change: 0 additions & 1 deletion config-eslint/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ module.exports = {
'jest/no-export': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/no-if': 'error',
'jest/no-jasmine-globals': 'error',
'jest/no-standalone-expect': 'error',
'jest/no-test-prefixes': 'error',
Expand Down
3 changes: 1 addition & 2 deletions config-eslint/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module.exports = {
'error',
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' },
],
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
'@typescript-eslint/explicit-function-return-type': 'off', // Allow inferrence
'@typescript-eslint/func-call-spacing': ['error', 'never'],
'@typescript-eslint/member-delimiter-style': 'error',
Expand All @@ -95,9 +96,7 @@ module.exports = {
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-parameter-properties': 'error',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-throw-literal': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
Expand Down
3 changes: 3 additions & 0 deletions config-jest/setup/shims.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
require('airbnb-js-shims/target/es2019');

// Global mock for getComputedTextLength
SVGElement.prototype.getComputedTextLength = () => 100;
8 changes: 5 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('jest').Config} */
module.exports = {
bail: false,
collectCoverageFrom: [
Expand Down Expand Up @@ -38,9 +39,10 @@ module.exports = {
roots: ['<rootDir>/packages'],
setupFiles: ['<rootDir>/config-jest/setup/shims.js', '<rootDir>/config-jest/setup/console.js'],
testEnvironment: 'jsdom',
testURL: 'http://localhost',
timers: 'fake',
verbose: false,
testEnvironmentOptions: {
url: 'http://localhost',
},
verbose: true,
testPathIgnorePatterns: ['<rootDir>/packages/visx-demo'],
transformIgnorePatterns: [
'node_modules/(?!(d3-(array|color|format|geo|interpolate|scale|time|time-format)|delaunator|internmap|robust-predicates)/)',
Expand Down
37 changes: 25 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"charts"
],
"engines": {
"node": ">=16.13.0",
"node": ">=18.18.0",
"yarn": ">=1.17.0"
},
"contributors": [
Expand Down Expand Up @@ -41,10 +41,12 @@
"dev:demo": "yarn workspace @visx/demo dev",
"check:sizes": "yarn run ts ./scripts/compareBuildSizes.ts",
"clean": "rm -rf ./packages/**/{lib,esm}",
"docs:generate": "yarn run ts ./scripts/generateDocs.ts",
"format": "lerna exec --parallel -- prettier --write --ignore-path ../../.prettierignore .",
"jest": "NODE_ENV=test jest --coverage --verbose",
"lint": "eslint packages/ --quiet",
"lint:fix": "yarn run lint --fix",
"postinstall": "yarn run ts ./scripts/postInstall.ts",
"prepare-release": "git checkout master && git pull --rebase origin master && lerna updated",
"release": "yarn run prepare-release && lerna publish --exact",
"setup": "yarn run build",
Expand All @@ -54,7 +56,7 @@
"vitest:ui": "vitest --ui",
"ts": "ts-node --project ./tsconfig.node.json",
"type": "yarn type:clean && yarn type:build",
"type:build": "lerna exec --parallel -- tsc --build",
"type:build": "lerna exec -- tsc --build",
"type:clean": "find . -type f -name 'tsconfig.tsbuildinfo' -delete",
"type:pkg": "lerna exec --scope $PKG -- tsc --build --verbose",
"type:update-refs": "yarn run ts ./scripts/updateTsReferences.ts",
Expand All @@ -73,21 +75,24 @@
"@testing-library/jest-dom": "^6.6.0",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^24.0.18",
"@types/jsdom": "^12.2.4",
"@types/jest": "^29.5.14",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.10.2",
"@types/node-fetch": "1.6.9",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@types/react": "18.3.26",
"@types/react-dom": "18.3.7",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"@vitest/coverage-v8": "2",
"@vitest/ui": "2",
"airbnb-js-shims": "^2.2.1",
"babel-plugin-typescript-to-proptypes": "^2.0.0",
"chalk": "4.1.0",
"eslint": "^8.30.0",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.7",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
Expand All @@ -99,7 +104,8 @@
"fs-jetpack": "^1.3.0",
"happy-dom": "14",
"husky": "^3.0.0",
"jest": "^25.5.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-mock-console": "^1.0.1",
"lerna": "^7.0.2",
"marked": "^0.7.0",
Expand All @@ -110,8 +116,8 @@
"react-dom": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0",
"regenerator-runtime": "^0.10.5",
"timezone-mock": "^1.1.0",
"ts-node": "9.1.1",
"typescript": "^3.8.3",
"ts-node": "^10.9.1",
"typescript": "^5.7.0",
"vitest": "2"
},
"packageManager": "yarn@1.22.19",
Expand All @@ -126,6 +132,13 @@
"resolutions": {
"handlebars": "4.5.3",
"react": "18.0.0",
"react-dom": "18.0.0"
"react-dom": "18.0.0",
"@types/react": "18.3.26",
"@types/react-dom": "18.3.7",
"wrap-ansi": "7.0.0",
"string-width": "4.2.3",
"strip-ansi": "6.0.1",
"ansi-regex": "5.0.1",
"emoji-regex": "8.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/Annotation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useMemo } from 'react';
import AnnotationContext from '../context/AnnotationContext';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';

export type AnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {
/** Annotation children (Subject, Label, Connector) */
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/CircleSubject.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext } from 'react';
import cx from 'classnames';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';
import AnnotationContext from '../context/AnnotationContext';

export type CircleSubjectProps = Pick<AnnotationContextType, 'x' | 'y'> & {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/Connector.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext } from 'react';
import cx from 'classnames';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';
import AnnotationContext from '../context/AnnotationContext';

// @TODO
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable react/jsx-handler-names */
import React, { useCallback, useRef } from 'react';
import useDrag, { UseDrag, HandlerArgs as DragHandlerArgs } from '@visx/drag/lib/useDrag';
import { AnnotationContextType } from '../types';
import type { UseDrag, HandlerArgs as DragHandlerArgs } from '@visx/drag/lib/useDrag';
import useDrag from '@visx/drag/lib/useDrag';
import type { AnnotationContextType } from '../types';
import Annotation from './Annotation';

export type EditableAnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/HtmlLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useMeasure from 'react-use-measure';
import { Group } from '@visx/group';
import AnnotationContext from '../context/AnnotationContext';
import AnchorLine from './LabelAnchorLine';
import { LabelProps } from './Label';
import type { LabelProps } from './Label';

const wrapperStyle = { display: 'inline-block' };

Expand Down
6 changes: 4 additions & 2 deletions packages/visx-annotation/src/components/Label.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React, { useContext, useMemo } from 'react';
import cx from 'classnames';
import { Group } from '@visx/group';
import { Text, TextProps, useText } from '@visx/text';
import useMeasure, { Options as UseMeasureOptions } from 'react-use-measure';
import type { TextProps } from '@visx/text';
import { Text, useText } from '@visx/text';
import type { Options as UseMeasureOptions } from 'react-use-measure';
import useMeasure from 'react-use-measure';
import AnnotationContext from '../context/AnnotationContext';
import AnchorLine from './LabelAnchorLine';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { TextProps } from '@visx/text';
import type { TextProps } from '@visx/text';

interface AnchorLineProps {
anchorLineOrientation: 'horizontal' | 'vertical';
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/context/AnnotationContext.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createContext } from 'react';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';

const AnnotationContext = createContext<AnnotationContextType>({});

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/test/Label.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('<Label />', () => {

it('should render anchor line', () => {
const { container } = renderLabel({
title: 'title test',
title: 'title',
showAnchorLine: true,
resizeObserverPolyfill: ResizeObserver,
});
Expand Down
5 changes: 3 additions & 2 deletions packages/visx-axis/src/axis/Axis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import React from 'react';
import cx from 'classnames';
import { Group } from '@visx/group';
import { getTicks, coerceNumber } from '@visx/scale';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';
import AxisRenderer from './AxisRenderer';
import getTickPosition from '../utils/getTickPosition';
import getTickFormatter from '../utils/getTickFormatter';
import createPoint from '../utils/createPoint';
import Orientation, { OrientationType } from '../constants/orientation';
import type { OrientationType } from '../constants/orientation';
import Orientation from '../constants/orientation';
import getAxisRangePaddingConfig from '../utils/getAxisRangePaddingConfig';

export type AxisProps<Scale extends AxisScale> = SharedAxisProps<Scale> & {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisBottom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export const bottomTickLabelProps = {
dy: '0.25em',
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisLeft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export const leftTickLabelProps = {
dx: '-0.25em',
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-axis/src/axis/AxisRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import cx from 'classnames';
import { Line } from '@visx/shape';
import { Text } from '@visx/text';

import { TextProps } from '@visx/text/lib/Text';
import type { TextProps } from '@visx/text/lib/Text';
import getLabelTransform from '../utils/getLabelTransform';
import Orientation from '../constants/orientation';
import { AxisRendererProps, AxisScale } from '../types';
import type { AxisRendererProps, AxisScale } from '../types';
import Ticks from './Ticks';

const defaultTextProps: Partial<TextProps> = {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisRight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export type AxisRightProps<Scale extends AxisScale> = SharedAxisProps<Scale>;

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export type AxisTopProps<Scale extends AxisScale> = SharedAxisProps<Scale>;

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/Ticks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Group } from '@visx/group';
import { Text } from '@visx/text';

import Orientation from '../constants/orientation';
import { TicksRendererProps, AxisScale } from '../types';
import type { TicksRendererProps, AxisScale } from '../types';

export default function Ticks<Scale extends AxisScale>({
hideTicks,
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/constants/orientation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValueOf } from '@visx/scale';
import type { ValueOf } from '@visx/scale';

const Orientation = {
top: 'top',
Expand Down
Loading