victory-candlestick
Advanced tools
Comparing version 36.8.4 to 36.8.5-next.0
# victory-candlestick | ||
## 36.8.5-next.0 | ||
### Patch Changes | ||
- c8c2eb2f5: Replace instances of lodash.assign with Object.assign | ||
- Updated dependencies [c8c2eb2f5] | ||
- Updated dependencies [0f3abe234] | ||
- victory-core@36.8.5-next.0 | ||
## 36.8.4 | ||
@@ -4,0 +13,0 @@ |
@@ -0,0 +0,0 @@ import React from "react"; |
import _isFunction from "lodash/isFunction"; | ||
import _defaults from "lodash/defaults"; | ||
import _assign from "lodash/assign"; | ||
@@ -90,6 +89,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | ||
*/ | ||
var style = Helpers.evaluateStyle(_assign({ | ||
var style = Helpers.evaluateStyle(Object.assign({ | ||
stroke: "black" | ||
}, props.style), props); | ||
var candleWidth = getCandleWidth(props.candleWidth, _assign({}, props, { | ||
var candleWidth = getCandleWidth(props.candleWidth, Object.assign({}, props, { | ||
style: style | ||
@@ -101,3 +100,3 @@ })); | ||
var tabIndex = Helpers.evaluateProp(props.tabIndex, props); | ||
return _assign({}, props, { | ||
return Object.assign({}, props, { | ||
ariaLabel: ariaLabel, | ||
@@ -151,9 +150,6 @@ style: style, | ||
var candleProps = _assign(getCandleProps(modifiedProps, style), sharedProps); | ||
var highWickProps = _assign(getHighWickProps(modifiedProps, wickStyle), sharedProps); | ||
var lowWickProps = _assign(getLowWickProps(modifiedProps, wickStyle), sharedProps); | ||
var candleProps = Object.assign(getCandleProps(modifiedProps, style), sharedProps); | ||
var highWickProps = Object.assign(getHighWickProps(modifiedProps, wickStyle), sharedProps); | ||
var lowWickProps = Object.assign(getLowWickProps(modifiedProps, wickStyle), sharedProps); | ||
return /*#__PURE__*/React.cloneElement(groupComponent, {}, [/*#__PURE__*/React.cloneElement(rectComponent, candleProps), /*#__PURE__*/React.cloneElement(lineComponent, highWickProps), /*#__PURE__*/React.cloneElement(lineComponent, lowWickProps)]); | ||
}; |
@@ -0,0 +0,0 @@ export declare const getData: (props: any) => any; |
@@ -5,3 +5,2 @@ import _isPlainObject from "lodash/isPlainObject"; | ||
import _defaults from "lodash/defaults"; | ||
import _assign from "lodash/assign"; | ||
import { Helpers, Scale, Domain, Data, LabelHelpers, Collection } from "victory-core"; | ||
@@ -169,3 +168,3 @@ var TYPES = ["close", "open", "high", "low"]; | ||
var stroke = isTransparent(strokeColor) ? fill : strokeColor || "black"; | ||
return _assign({}, style, { | ||
return Object.assign({}, style, { | ||
stroke: stroke, | ||
@@ -172,0 +171,0 @@ fill: fill |
export * from "./victory-candlestick"; | ||
export * from "./candle"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
@@ -0,0 +0,0 @@ import React from "react"; |
@@ -12,4 +12,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _react = _interopRequireDefault(require("react")); | ||
@@ -103,7 +101,7 @@ | ||
*/ | ||
var style = _victoryCore.Helpers.evaluateStyle((0, _assign2.default)({ | ||
var style = _victoryCore.Helpers.evaluateStyle(Object.assign({ | ||
stroke: "black" | ||
}, props.style), props); | ||
var candleWidth = getCandleWidth(props.candleWidth, (0, _assign2.default)({}, props, { | ||
var candleWidth = getCandleWidth(props.candleWidth, Object.assign({}, props, { | ||
style: style | ||
@@ -120,3 +118,3 @@ })); | ||
return (0, _assign2.default)({}, props, { | ||
return Object.assign({}, props, { | ||
ariaLabel: ariaLabel, | ||
@@ -170,5 +168,5 @@ style: style, | ||
var candleProps = (0, _assign2.default)(getCandleProps(modifiedProps, style), sharedProps); | ||
var highWickProps = (0, _assign2.default)(getHighWickProps(modifiedProps, wickStyle), sharedProps); | ||
var lowWickProps = (0, _assign2.default)(getLowWickProps(modifiedProps, wickStyle), sharedProps); | ||
var candleProps = Object.assign(getCandleProps(modifiedProps, style), sharedProps); | ||
var highWickProps = Object.assign(getHighWickProps(modifiedProps, wickStyle), sharedProps); | ||
var lowWickProps = Object.assign(getLowWickProps(modifiedProps, wickStyle), sharedProps); | ||
return /*#__PURE__*/_react.default.cloneElement(groupComponent, {}, [/*#__PURE__*/_react.default.cloneElement(rectComponent, candleProps), /*#__PURE__*/_react.default.cloneElement(lineComponent, highWickProps), /*#__PURE__*/_react.default.cloneElement(lineComponent, lowWickProps)]); | ||
@@ -175,0 +173,0 @@ }; |
@@ -0,0 +0,0 @@ export declare const getData: (props: any) => any; |
@@ -16,4 +16,2 @@ "use strict"; | ||
var _assign2 = _interopRequireDefault(require("lodash/assign")); | ||
var _victoryCore = require("victory-core"); | ||
@@ -195,3 +193,3 @@ | ||
var stroke = isTransparent(strokeColor) ? fill : strokeColor || "black"; | ||
return (0, _assign2.default)({}, style, { | ||
return Object.assign({}, style, { | ||
stroke: stroke, | ||
@@ -198,0 +196,0 @@ fill: fill |
export * from "./victory-candlestick"; | ||
export * from "./candle"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,0 +0,0 @@ import React from "react"; |
{ | ||
"name": "victory-candlestick", | ||
"version": "36.8.4", | ||
"version": "36.8.5-next.0", | ||
"description": "Candlestick Component for Victory", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.8.4" | ||
"victory-core": "^36.8.5-next.0" | ||
}, | ||
@@ -32,8 +32,8 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"victory-vendor": "^36.8.4", | ||
"victory-chart": "^36.8.4", | ||
"victory-candlestick": "*" | ||
"victory-vendor": "^36.8.5-next.0", | ||
"victory-chart": "^36.8.5-next.0", | ||
"victory-candlestick": "36.8.5-next.0" | ||
}, | ||
"publishConfig": { | ||
"provenance": true | ||
"provenance": false | ||
}, | ||
@@ -40,0 +40,0 @@ "wireit": { |
@@ -1,2 +0,2 @@ | ||
import { assign, defaults, isNil, isFunction, isPlainObject } from "lodash"; | ||
import { defaults, isNil, isFunction, isPlainObject } from "lodash"; | ||
import { | ||
@@ -208,3 +208,3 @@ Helpers, | ||
const stroke = isTransparent(strokeColor) ? fill : strokeColor || "black"; | ||
return assign({}, style, { stroke, fill }); | ||
return Object.assign({}, style, { stroke, fill }); | ||
}; | ||
@@ -211,0 +211,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1255429
21797
2
4
Updatedvictory-core@^36.8.5-next.0