Skip to content
Permalink
Browse files

fix bind

  • Loading branch information...
amcdnl committed Mar 1, 2019
1 parent 4e77fd1 commit 99ac9d4ef8ffa33176db3ba1900ca93c6644d067
@@ -64,3 +64,4 @@ typings/
# next.js build output
.next
.DS_Store
src/**/*.scss.d.ts
@@ -1,6 +1,6 @@
import React, { Fragment } from 'react';
import classNames from 'classnames';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { AreaSeries, AreaChartTypes, AreaSeriesProps } from './AreaSeries';
import {
isAxisVisible,
@@ -19,7 +19,7 @@ import {
import { Line, LineProps } from './Line';
import { InterpolationTypes } from '../../common/utils/interpolation';
import { getColor, sequentialScheme } from '../../common/utils/color';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';

export type AreaChartTypes = 'standard' | 'stacked' | 'stackedNormalized';

@@ -33,7 +33,7 @@ import {
ChartContainerChildProps,
ChartProps
} from '../common/containers/ChartContainer';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { CloneElement } from '../common/utils/children';

export interface BarChartProps extends ChartProps {
@@ -5,7 +5,7 @@ import { Gradient } from '../../common/Styles';
import classNames from 'classnames';
import { ChartInternalShallowDataShape } from '../../common/data';
import { RangeLinesProps } from './RangeLines';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import * as css from './Bar.module.scss';
import { PosedBar } from './PosedBar';
import { CloneElement } from '../../common/utils/children';
@@ -1,5 +1,5 @@
import React, { Fragment } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { scaleOrdinal, scaleLinear, scalePoint } from 'd3-scale';
import { range } from 'd3-array';
import { Tooltip } from '../common/TooltipArea';
@@ -1,7 +1,7 @@
import React, { Component, createRef, Fragment } from 'react';
import posed from 'react-pose';
import { Tooltip } from '../common/TooltipArea';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import * as css from './MapMarker.module.scss';

export interface MapMarkerProps {
@@ -1,6 +1,6 @@
import React, { Component, Fragment, createRef } from 'react';
import { PosedArc } from './PosedArc';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import chroma from 'chroma-js';
import { ChartTooltip, ChartTooltipProps } from '../../../common/TooltipArea';
import { CloneElement } from '../../../common/utils/children';
@@ -19,7 +19,7 @@ import { SankeyNodeProps } from './SankeyNode';
import { SankeyLinkProps } from './SankeyLink';
import { Node, Link } from './utils';
import { PoseSVGGElement } from '../common/utils/animations';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';

const JUSTIFICATION = {
justify: sankeyJustify,
@@ -6,7 +6,7 @@ import { formatValue } from '../../common/utils/formatting';
import { Tooltip, TooltipProps } from '../../common/TooltipArea';
import { transition } from '../../common/utils/animations';
import { NodeExtra, Node, Link, DEFAULT_COLOR } from '../utils';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { sankeyLinkHorizontal } from 'd3-sankey';
import * as css from './SankeyLink.module.scss';

@@ -7,7 +7,7 @@ import { formatValue } from '../../common/utils/formatting';
import { Tooltip, TooltipProps } from '../../common/TooltipArea';
import { SankeyLabel, SankeyLabelProps } from '../SankeyLabel';
import { Node, DEFAULT_COLOR } from '../utils';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import * as css from './SankeyNode.module.scss';
import { transition } from '../../common/utils/animations';

@@ -12,7 +12,7 @@ import {
LinearXAxis,
LinearYAxis
} from '../common/Axis';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { getYScale, getXScale } from '../common/scales';
import { ScatterSeries, ScatterSeriesProps } from './ScatterSeries';
import { GridlineSeries, GridlineSeriesProps } from '../common/Gridline';
@@ -1,6 +1,6 @@
import React, { Component, Fragment, ReactNode } from 'react';
import { ChartInternalShallowDataShape } from '../../common/data';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { ChartTooltip, ChartTooltipProps } from '../../common/TooltipArea';
import { PosedCircle } from './PosedCircle';
import { PosedSymbol } from './PosedSymbol';
@@ -1,5 +1,5 @@
import React, { Component, Fragment } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { getPositionForTarget } from '../utils/position';
import { BrushSlice, BrushChangeEvent } from './BrushSlice';
import { ChartDataTypes } from '../data';
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import classNames from 'classnames';
import { range } from 'd3-array';
import { Pan, PanMoveEvent } from '../Gestures/Pan';
@@ -1,5 +1,5 @@
import React, { Component, Fragment } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { BrushHandle } from './BrushHandle';
import * as css from './BrushSlice.module.scss';
import { Pan, PanMoveEvent } from '../Gestures/Pan';
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { BrushConfiguration, Brush } from './Brush';
import { BrushChangeEvent } from './BrushSlice';

@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { ChartInternalShallowDataShape } from '../data';
import { PosedCircle } from './PosedCircle';

@@ -1,6 +1,6 @@
import React from 'react';
import classNames from 'classnames';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import {
ConnectedOverlay,
TriggerTypes
@@ -8,7 +8,7 @@ import {
isNested
} from '../data';
import { getPositionForTarget, getClosestPoint } from '../utils/position';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { isEqual } from 'lodash-es';
import { CloneElement } from '../utils/children';
import { ChartTooltip, ChartTooltipProps } from './ChartTooltip';
@@ -32,7 +32,7 @@ export class TooltipTemplate extends Component<TooltipTemplateProps, {}> {
<span className={css.subValueName}>
{formatValue(data.key || data.x)}:
</span>
<span className={css.subValueValue}>
<span>
{formatValue(data.value || data.y)}
</span>
</span>
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { ZoomPan, ZoomPanEvent, ZoomPanProps } from './ZoomPan';
import { ChartInternalDataShape, ChartDataTypes } from '../data';
import { getXScale } from '../scales';
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { Pan, PanMoveEvent } from '../Gestures/Pan';
import { Zoom, ZoomEvent } from '../Gestures/Zoom';
import { value, decay, ValueReaction, ColdSubscription } from 'popmotion';
@@ -1,5 +1,5 @@
import React from 'react';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { Dimensions, getDimension, Margins } from '../utils/dimensions';
import { ResizeEvent, ResizeContainer } from './ResizeContainer';
import { LinearAxisDimensionChanged } from '../Axis';
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import classNames from 'classnames';
import * as bind from 'memoize-bind';
import bind from 'memoize-bind';
import { CloneElement } from '../../utils/children';
import { DiscreteLegendEntryProps } from './DiscreteLegendEntry';
import * as css from './DiscreteLegend.module.scss';
@@ -55,7 +55,6 @@ export class DiscreteLegendEntry extends Component<
>
<CloneElement<DiscreteLegendSymbolProps>
element={symbol}
className={css.symbol}
color={color}
/>
<span className={css.label}>{label}</span>

0 comments on commit 99ac9d4

Please sign in to comment.
You can’t perform that action at this time.