victory-create-container 37.0.0 → 37.0.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/victory-create-container.js +14 -14
- package/dist/victory-create-container.min.js +1 -1
- package/es/create-container.d.ts +46 -46
- package/es/create-container.js +2 -2
- package/es/index.d.ts +1 -1
- package/lib/create-container.d.ts +46 -46
- package/lib/create-container.js +2 -2
- package/lib/index.d.ts +1 -1
- package/package.json +7 -10
- package/src/create-container.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# victory-create-container
|
|
2
2
|
|
|
3
|
+
## 37.0.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 22ac23249: Fix the signature of class static functions in components
|
|
8
|
+
- Updated dependencies [22ac23249]
|
|
9
|
+
- victory-brush-container@37.0.1-next.0
|
|
10
|
+
- victory-cursor-container@37.0.1-next.0
|
|
11
|
+
- victory-selection-container@37.0.1-next.0
|
|
12
|
+
- victory-voronoi-container@37.0.1-next.0
|
|
13
|
+
- victory-zoom-container@37.0.1-next.0
|
|
14
|
+
- victory-core@37.0.1-next.0
|
|
15
|
+
|
|
3
16
|
## 37.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
|
@@ -120,12 +120,12 @@ const combineContainerMixins = (mixins, Container) => {
|
|
|
120
120
|
...defaultProps,
|
|
121
121
|
...Class.defaultProps
|
|
122
122
|
}), {});
|
|
123
|
-
static defaultEvents
|
|
123
|
+
static defaultEvents(props) {
|
|
124
124
|
return combineDefaultEvents(Classes.reduce((defaultEvents, Class) => {
|
|
125
125
|
const events = victory_core__WEBPACK_IMPORTED_MODULE_5__.isFunction(Class.defaultEvents) ? Class.defaultEvents(props) : Class.defaultEvents;
|
|
126
126
|
return [...defaultEvents, ...events];
|
|
127
127
|
}, []));
|
|
128
|
-
}
|
|
128
|
+
}
|
|
129
129
|
getChildren(props) {
|
|
130
130
|
return instances.reduce((children, instance) => instance.getChildren({
|
|
131
131
|
...props,
|
|
@@ -7286,7 +7286,7 @@ function brushContainerMixin(Base) {
|
|
|
7286
7286
|
handleWidth: 8,
|
|
7287
7287
|
mouseMoveThreshold: 0
|
|
7288
7288
|
};
|
|
7289
|
-
static defaultEvents
|
|
7289
|
+
static defaultEvents(props) {
|
|
7290
7290
|
return [{
|
|
7291
7291
|
target: "parent",
|
|
7292
7292
|
eventHandlers: {
|
|
@@ -7313,7 +7313,7 @@ function brushContainerMixin(Base) {
|
|
|
7313
7313
|
}
|
|
7314
7314
|
}
|
|
7315
7315
|
}];
|
|
7316
|
-
}
|
|
7316
|
+
}
|
|
7317
7317
|
getSelectBox(props, coordinates) {
|
|
7318
7318
|
const {
|
|
7319
7319
|
x,
|
|
@@ -13358,7 +13358,7 @@ function cursorContainerMixin(Base) {
|
|
|
13358
13358
|
},
|
|
13359
13359
|
cursorComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.LineSegment, null)
|
|
13360
13360
|
};
|
|
13361
|
-
static defaultEvents
|
|
13361
|
+
static defaultEvents(props) {
|
|
13362
13362
|
return [{
|
|
13363
13363
|
target: "parent",
|
|
13364
13364
|
eventHandlers: {
|
|
@@ -13376,7 +13376,7 @@ function cursorContainerMixin(Base) {
|
|
|
13376
13376
|
}
|
|
13377
13377
|
}
|
|
13378
13378
|
}];
|
|
13379
|
-
}
|
|
13379
|
+
}
|
|
13380
13380
|
getCursorPosition(props) {
|
|
13381
13381
|
const {
|
|
13382
13382
|
cursorValue,
|
|
@@ -13774,7 +13774,7 @@ function selectionContainerMixin(Base) {
|
|
|
13774
13774
|
fillOpacity: 0.1
|
|
13775
13775
|
}
|
|
13776
13776
|
};
|
|
13777
|
-
static defaultEvents
|
|
13777
|
+
static defaultEvents(props) {
|
|
13778
13778
|
return [{
|
|
13779
13779
|
target: "parent",
|
|
13780
13780
|
eventHandlers: {
|
|
@@ -13798,7 +13798,7 @@ function selectionContainerMixin(Base) {
|
|
|
13798
13798
|
}
|
|
13799
13799
|
}
|
|
13800
13800
|
}];
|
|
13801
|
-
}
|
|
13801
|
+
}
|
|
13802
13802
|
getRect(props) {
|
|
13803
13803
|
const {
|
|
13804
13804
|
x1,
|
|
@@ -14036,7 +14036,7 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
|
|
|
14036
14036
|
flyoutComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_flyout__WEBPACK_IMPORTED_MODULE_6__.Flyout, null),
|
|
14037
14037
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement("g", null)
|
|
14038
14038
|
};
|
|
14039
|
-
static defaultEvents
|
|
14039
|
+
static defaultEvents(props) {
|
|
14040
14040
|
const activate = props.activateData ? [{
|
|
14041
14041
|
target: "labels",
|
|
14042
14042
|
mutation: () => ({
|
|
@@ -14080,7 +14080,7 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
|
|
|
14080
14080
|
onTouchEnd: () => deactivate
|
|
14081
14081
|
}
|
|
14082
14082
|
}];
|
|
14083
|
-
}
|
|
14083
|
+
}
|
|
14084
14084
|
constructor(props) {
|
|
14085
14085
|
super(props);
|
|
14086
14086
|
this.id = props.id === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("tooltip-") : props.id;
|
|
@@ -14629,7 +14629,7 @@ function voronoiContainerMixin(Base) {
|
|
|
14629
14629
|
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_4__.VictoryTooltip, null),
|
|
14630
14630
|
voronoiPadding: 5
|
|
14631
14631
|
};
|
|
14632
|
-
static defaultEvents
|
|
14632
|
+
static defaultEvents(props) {
|
|
14633
14633
|
return [{
|
|
14634
14634
|
target: "parent",
|
|
14635
14635
|
eventHandlers: {
|
|
@@ -14654,7 +14654,7 @@ function voronoiContainerMixin(Base) {
|
|
|
14654
14654
|
onMouseMove: () => null
|
|
14655
14655
|
}
|
|
14656
14656
|
}];
|
|
14657
|
-
}
|
|
14657
|
+
}
|
|
14658
14658
|
getDimension(props) {
|
|
14659
14659
|
const {
|
|
14660
14660
|
horizontal,
|
|
@@ -15120,7 +15120,7 @@ function zoomContainerMixin(Base) {
|
|
|
15120
15120
|
allowZoom: true,
|
|
15121
15121
|
zoomActive: false
|
|
15122
15122
|
};
|
|
15123
|
-
static defaultEvents
|
|
15123
|
+
static defaultEvents(props) {
|
|
15124
15124
|
return [{
|
|
15125
15125
|
target: "parent",
|
|
15126
15126
|
eventHandlers: {
|
|
@@ -15162,7 +15162,7 @@ function zoomContainerMixin(Base) {
|
|
|
15162
15162
|
})
|
|
15163
15163
|
}
|
|
15164
15164
|
}];
|
|
15165
|
-
}
|
|
15165
|
+
}
|
|
15166
15166
|
clipDataComponents(children, props) {
|
|
15167
15167
|
const {
|
|
15168
15168
|
scale,
|