Skip to content

Commit

Permalink
breaking(annotation): remove deprecated/LinePathAnnotation (#1620)
Browse files Browse the repository at this point in the history
* breaking(annotation): remove deprecated/LinePathAnnotation

* deps(annotation): remove unused deps

* fix(annotation): remove a couple deep imports

* fix(docs/annotation): remove LinePathAnnotationDeprecated ref

* fix(annotation): remove LinePathAnnotation test
  • Loading branch information
williaster authored Jan 3, 2023
1 parent 1cf7ec2 commit e7adc24
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 211 deletions.
2 changes: 0 additions & 2 deletions packages/visx-annotation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
"@types/react": "*",
"@visx/drag": "2.17.0",
"@visx/group": "2.17.0",
"@visx/point": "2.17.0",
"@visx/shape": "2.18.0",
"@visx/text": "2.17.0",
"classnames": "^2.3.1",
"prop-types": "^15.5.10",
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
@@ -1,7 +1,7 @@
import React, { useContext, useMemo } from 'react';
import cx from 'classnames';
import useMeasure from 'react-use-measure';
import Group from '@visx/group/lib/Group';
import { Group } from '@visx/group';
import AnnotationContext from '../context/AnnotationContext';
import AnchorLine from './LabelAnchorLine';
import { LabelProps } from './Label';
Expand Down
5 changes: 2 additions & 3 deletions packages/visx-annotation/src/components/Label.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { useContext, useMemo } from 'react';
import cx from 'classnames';
import Group from '@visx/group/lib/Group';
import Text, { TextProps } from '@visx/text/lib/Text';
import { useText } from '@visx/text';
import { Group } from '@visx/group';
import { Text, TextProps, useText } from '@visx/text';
import useMeasure, { Options as UseMeasureOptions } from 'react-use-measure';
import AnnotationContext from '../context/AnnotationContext';
import AnchorLine from './LabelAnchorLine';
Expand Down
121 changes: 0 additions & 121 deletions packages/visx-annotation/src/deprecated/LinePathAnnotation.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions packages/visx-annotation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ export { default as LineSubject } from './components/LineSubject';
export { default as Annotation } from './components/Annotation';
export { default as EditableAnnotation } from './components/EditableAnnotation';
export { default as AnnotationContext } from './context/AnnotationContext';

// @TODO deprecated, remove in 2.0
export { default as LinePathAnnotation } from './deprecated/LinePathAnnotation';
79 changes: 0 additions & 79 deletions packages/visx-annotation/test/LinePathAnnotation.test.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions packages/visx-demo/src/pages/docs/annotation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import LineSubject from '../../../../visx-annotation/src/components/LineSubject'
import Connector from '../../../../visx-annotation/src/components/Connector';
import Label from '../../../../visx-annotation/src/components/Label';
import HtmlLabel from '../../../../visx-annotation/src/components/HtmlLabel';
import LinePathAnnotationDeprecated from '../../../../visx-annotation/src/deprecated/LinePathAnnotation';
import DocPage from '../../components/DocPage';
import AnnotationTile from '../../components/Gallery/AnnotationTile';

Expand All @@ -19,7 +18,6 @@ const components = [
Connector,
Label,
HtmlLabel,
LinePathAnnotationDeprecated,
];

const examples = [AnnotationTile];
Expand Down

0 comments on commit e7adc24

Please sign in to comment.