Skip to content

Commit 57de561

Browse files
committed
Fixing the flow
1 parent a71e073 commit 57de561

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/components/OrdinalFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ class OrdinalFrame extends React.Component<OrdinalFrameProps, State> {
13581358
}: {
13591359
d: Object,
13601360
i: number,
1361-
annotationLayer: Node
1361+
annotationLayer: Object
13621362
}) => {
13631363
const { projection } = this.props
13641364

src/components/XYFrame.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export type XYFrameProps = {
125125
lines?: Array<Object> | Object,
126126
points?: Array<Object>,
127127
areas?: Array<Object> | Object,
128+
summaries?: Array<Object> | Object,
128129
axes?: Array<Object>,
129130
matte?: Object,
130131
xScaleType?: Function,
@@ -137,33 +138,42 @@ export type XYFrameProps = {
137138
yAccessor?: accessorType,
138139
lineDataAccessor?: accessorType,
139140
areaDataAccessor?: accessorType,
141+
summaryDataAccessor?: accessorType,
140142
lineType: string | Object,
141143
areaType: string | Object,
144+
summaryType: string | Object,
142145
lineRenderMode?: string | Object | Function,
143146
pointRenderMode?: string | Object | Function,
144147
areaRenderMode?: string | Object | Function,
148+
summaryRenderMode?: string | Object | Function,
145149
showLinePoints?: boolean,
146150
defined?: Function,
147151
lineStyle?: Function | Object,
148152
pointStyle?: Function | Object,
149153
areaStyle?: Function | Object,
154+
summaryStyle?: Function | Object,
150155
lineClass?: Function | string,
151156
pointClass?: Function | string,
152157
areaClass?: Function | string,
158+
summaryClass?: Function | string,
153159
canvasPoints?: Function | boolean,
154160
canvasLines?: Function | boolean,
155161
canvasAreas?: Function | boolean,
162+
canvasSummaries?: Function | boolean,
156163
customPointMark?: Function | Object,
157164
customLineMark?: Function,
158165
customAreaMark?: Function,
166+
customSummaryMark?: Function,
159167
lineIDAccessor?: Function | string,
160168
minimap?: Object,
161169
fullDataset?: Array<ProjectedPoint>,
162170
projectedLines?: Array<Object>,
163171
projectedAreas?: Array<Object>,
172+
projectedSummaries?: Array<Object>,
164173
projectedPoints?: Array<Object>,
165174
renderOrder?: $ReadOnlyArray<"lines" | "points" | "areas">,
166-
useAreasAsInteractionLayer?: boolean
175+
useAreasAsInteractionLayer?: boolean,
176+
useSummariesAsInteractionLayer?: boolean
167177
}
168178

169179
type State = {
@@ -912,7 +922,7 @@ class XYFrame extends React.Component<XYFrameProps, State> {
912922
}: {
913923
d: Object,
914924
i: number,
915-
annotationLayer: Node,
925+
annotationLayer: Object,
916926
lines: Object,
917927
areas: Object,
918928
points: Object

0 commit comments

Comments
 (0)