Skip to content

Commit

Permalink
feat(arcs): improve label accessor in ArcLinkLabelsProps
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Dec 18, 2020
1 parent 89c52e6 commit 3aa12a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/arcs/src/arc_link_labels/compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const computeArcLinkTextAnchor = (arc: Arc): 'start' | 'end' => {

/**
* Compute the link of a single arc, returning its points,
* please not that points coordinates are relative to
* please note that points coordinates are relative to
* the center of the arc.
*/
export const computeArcLink = (
Expand Down
4 changes: 2 additions & 2 deletions packages/arcs/src/arc_link_labels/props.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PropertyAccessor } from '@nivo/core'
import { InheritedColorConfig } from '@nivo/colors'
import { ArcLinkLabelComponent } from './ArcLinkLabelsLayer'
import { DatumWithArcAndColor } from '../types'

export interface ArcLinkLabelsProps<Datum extends DatumWithArcAndColor> {
// string | LabelAccessorFunction<Datum['data']>
arcLinkLabel: any
arcLinkLabel: PropertyAccessor<Datum, string>
arcLinkLabelsSkipAngle: number
arcLinkLabelsTextOffset: number
arcLinkLabelsTextColor: InheritedColorConfig<Datum>
Expand Down

0 comments on commit 3aa12a3

Please sign in to comment.