victory-scatter
Advanced tools
Comparing version 36.5.3 to 36.6.0
@@ -65,5 +65,5 @@ import _isNil from "lodash/isNil"; | ||
return getBubbleSize(datum, props); | ||
} else { | ||
return Math.max(size || 0, 1); | ||
} | ||
return Math.max(size || 0, 1); | ||
}; | ||
@@ -70,0 +70,0 @@ |
@@ -1,31 +0,2 @@ | ||
import * as React from "react"; | ||
import { | ||
EventPropTypeInterface, | ||
ScatterSymbolType, | ||
StringOrNumberOrCallback, | ||
VictoryCommonProps, | ||
VictoryDatableProps, | ||
VictoryMultiLabelableProps, | ||
VictoryStyleInterface, | ||
} from "victory-core"; | ||
export type VictoryScatterTTargetType = "data" | "labels" | "parent"; | ||
export interface VictoryScatterProps | ||
extends VictoryCommonProps, | ||
VictoryDatableProps, | ||
VictoryMultiLabelableProps { | ||
bubbleProperty?: string; | ||
events?: EventPropTypeInterface< | ||
VictoryScatterTTargetType, | ||
StringOrNumberOrCallback | ||
>[]; | ||
eventKey?: StringOrNumberOrCallback; | ||
maxBubbleSize?: number; | ||
minBubbleSize?: number; | ||
size?: number | { (data: any): number }; | ||
style?: VictoryStyleInterface; | ||
symbol?: ScatterSymbolType | { (data: any): ScatterSymbolType }; | ||
} | ||
export class VictoryScatter extends React.Component<VictoryScatterProps, any> {} | ||
export * from "./victory-scatter"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export { default as VictoryScatter } from "./victory-scatter"; | ||
export * from "./victory-scatter"; | ||
//# sourceMappingURL=index.js.map |
@@ -39,9 +39,13 @@ 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 VictoryScatter = /*#__PURE__*/function (_React$Component) { | ||
_inherits(VictoryScatter, _React$Component); | ||
/** | ||
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes. | ||
* Add VictoryArea as a child of VictoryChart for a complete chart. | ||
*/ | ||
var VictoryScatterBase = /*#__PURE__*/function (_React$Component) { | ||
_inherits(VictoryScatterBase, _React$Component); | ||
var _super = _createSuper(VictoryScatter); | ||
var _super = _createSuper(VictoryScatterBase); | ||
function VictoryScatter() { | ||
_classCallCheck(this, VictoryScatter); | ||
function VictoryScatterBase() { | ||
_classCallCheck(this, VictoryScatterBase); | ||
@@ -51,3 +55,3 @@ return _super.apply(this, arguments); | ||
_createClass(VictoryScatter, [{ | ||
_createClass(VictoryScatterBase, [{ | ||
key: "shouldAnimate", | ||
@@ -75,10 +79,10 @@ value: // Overridden in native versions | ||
return VictoryScatter; | ||
return VictoryScatterBase; | ||
}(React.Component); | ||
VictoryScatter.animationWhitelist = ["data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"]; | ||
VictoryScatter.displayName = "VictoryScatter"; | ||
VictoryScatter.role = "scatter"; | ||
VictoryScatter.defaultTransitions = DefaultTransitions.discreteTransitions(); | ||
VictoryScatter.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, { | ||
VictoryScatterBase.animationWhitelist = ["data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"]; | ||
VictoryScatterBase.displayName = "VictoryScatter"; | ||
VictoryScatterBase.role = "scatter"; | ||
VictoryScatterBase.defaultTransitions = DefaultTransitions.discreteTransitions(); | ||
VictoryScatterBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, CommonProps.baseProps), CommonProps.dataProps), {}, { | ||
bubbleProperty: PropTypes.string, | ||
@@ -90,3 +94,3 @@ maxBubbleSize: CustomPropTypes.nonNegative, | ||
}); | ||
VictoryScatter.defaultProps = { | ||
VictoryScatterBase.defaultProps = { | ||
containerComponent: /*#__PURE__*/React.createElement(VictoryContainer, null), | ||
@@ -101,11 +105,11 @@ dataComponent: /*#__PURE__*/React.createElement(Point, null), | ||
}; | ||
VictoryScatter.getDomain = Domain.getDomain; | ||
VictoryScatter.getData = Data.getData; | ||
VictoryScatterBase.getDomain = Domain.getDomain; | ||
VictoryScatterBase.getData = Data.getData; | ||
VictoryScatter.getBaseProps = function (props) { | ||
VictoryScatterBase.getBaseProps = function (props) { | ||
return getBaseProps(props, fallbackProps); | ||
}; | ||
VictoryScatter.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]; | ||
export default addEvents(VictoryScatter); | ||
VictoryScatterBase.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]; | ||
export var VictoryScatter = addEvents(VictoryScatterBase); | ||
//# sourceMappingURL=victory-scatter.js.map |
@@ -83,5 +83,5 @@ "use strict"; | ||
return getBubbleSize(datum, props); | ||
} else { | ||
return Math.max(size || 0, 1); | ||
} | ||
return Math.max(size || 0, 1); | ||
}; | ||
@@ -88,0 +88,0 @@ |
@@ -1,31 +0,2 @@ | ||
import * as React from "react"; | ||
import { | ||
EventPropTypeInterface, | ||
ScatterSymbolType, | ||
StringOrNumberOrCallback, | ||
VictoryCommonProps, | ||
VictoryDatableProps, | ||
VictoryMultiLabelableProps, | ||
VictoryStyleInterface, | ||
} from "victory-core"; | ||
export type VictoryScatterTTargetType = "data" | "labels" | "parent"; | ||
export interface VictoryScatterProps | ||
extends VictoryCommonProps, | ||
VictoryDatableProps, | ||
VictoryMultiLabelableProps { | ||
bubbleProperty?: string; | ||
events?: EventPropTypeInterface< | ||
VictoryScatterTTargetType, | ||
StringOrNumberOrCallback | ||
>[]; | ||
eventKey?: StringOrNumberOrCallback; | ||
maxBubbleSize?: number; | ||
minBubbleSize?: number; | ||
size?: number | { (data: any): number }; | ||
style?: VictoryStyleInterface; | ||
symbol?: ScatterSymbolType | { (data: any): ScatterSymbolType }; | ||
} | ||
export class VictoryScatter extends React.Component<VictoryScatterProps, any> {} | ||
export * from "./victory-scatter"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,12 +6,15 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "VictoryScatter", { | ||
enumerable: true, | ||
get: function () { | ||
return _victoryScatter.default; | ||
} | ||
}); | ||
var _victoryScatter = _interopRequireDefault(require("./victory-scatter")); | ||
var _victoryScatter = require("./victory-scatter"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
Object.keys(_victoryScatter).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _victoryScatter[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function () { | ||
return _victoryScatter[key]; | ||
} | ||
}); | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = void 0; | ||
exports.VictoryScatter = void 0; | ||
@@ -53,9 +53,13 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var VictoryScatter = /*#__PURE__*/function (_React$Component) { | ||
_inherits(VictoryScatter, _React$Component); | ||
/** | ||
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes. | ||
* Add VictoryArea as a child of VictoryChart for a complete chart. | ||
*/ | ||
var VictoryScatterBase = /*#__PURE__*/function (_React$Component) { | ||
_inherits(VictoryScatterBase, _React$Component); | ||
var _super = _createSuper(VictoryScatter); | ||
var _super = _createSuper(VictoryScatterBase); | ||
function VictoryScatter() { | ||
_classCallCheck(this, VictoryScatter); | ||
function VictoryScatterBase() { | ||
_classCallCheck(this, VictoryScatterBase); | ||
@@ -65,3 +69,3 @@ return _super.apply(this, arguments); | ||
_createClass(VictoryScatter, [{ | ||
_createClass(VictoryScatterBase, [{ | ||
key: "shouldAnimate", | ||
@@ -90,10 +94,10 @@ value: // Overridden in native versions | ||
return VictoryScatter; | ||
return VictoryScatterBase; | ||
}(_react.default.Component); | ||
VictoryScatter.animationWhitelist = ["data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"]; | ||
VictoryScatter.displayName = "VictoryScatter"; | ||
VictoryScatter.role = "scatter"; | ||
VictoryScatter.defaultTransitions = _victoryCore.DefaultTransitions.discreteTransitions(); | ||
VictoryScatter.propTypes = _objectSpread(_objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), _victoryCore.CommonProps.dataProps), {}, { | ||
VictoryScatterBase.animationWhitelist = ["data", "domain", "height", "maxBubbleSize", "padding", "samples", "size", "style", "width"]; | ||
VictoryScatterBase.displayName = "VictoryScatter"; | ||
VictoryScatterBase.role = "scatter"; | ||
VictoryScatterBase.defaultTransitions = _victoryCore.DefaultTransitions.discreteTransitions(); | ||
VictoryScatterBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, _victoryCore.CommonProps.baseProps), _victoryCore.CommonProps.dataProps), {}, { | ||
bubbleProperty: _propTypes.default.string, | ||
@@ -105,3 +109,3 @@ maxBubbleSize: _victoryCore.PropTypes.nonNegative, | ||
}); | ||
VictoryScatter.defaultProps = { | ||
VictoryScatterBase.defaultProps = { | ||
containerComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.VictoryContainer, null), | ||
@@ -116,14 +120,12 @@ dataComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Point, null), | ||
}; | ||
VictoryScatter.getDomain = _victoryCore.Domain.getDomain; | ||
VictoryScatter.getData = _victoryCore.Data.getData; | ||
VictoryScatterBase.getDomain = _victoryCore.Domain.getDomain; | ||
VictoryScatterBase.getData = _victoryCore.Data.getData; | ||
VictoryScatter.getBaseProps = function (props) { | ||
VictoryScatterBase.getBaseProps = function (props) { | ||
return (0, _helperMethods.getBaseProps)(props, fallbackProps); | ||
}; | ||
VictoryScatter.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]; | ||
var _default = (0, _victoryCore.addEvents)(VictoryScatter); | ||
exports.default = _default; | ||
VictoryScatterBase.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]; | ||
var VictoryScatter = (0, _victoryCore.addEvents)(VictoryScatterBase); | ||
exports.VictoryScatter = VictoryScatter; | ||
//# sourceMappingURL=victory-scatter.js.map |
245
package.json
{ | ||
"name": "victory-scatter", | ||
"version": "36.5.3", | ||
"version": "36.6.0", | ||
"description": "Scatter Component for Victory", | ||
@@ -16,2 +16,3 @@ "keywords": [ | ||
"homepage": "https://formidable.com/open-source/victory", | ||
"sideEffects": false, | ||
"main": "lib/index.js", | ||
@@ -25,3 +26,3 @@ "module": "es/index.js", | ||
"prop-types": "^15.8.1", | ||
"victory-core": "^36.5.3" | ||
"victory-core": "^36.6.0" | ||
}, | ||
@@ -31,7 +32,237 @@ "peerDependencies": { | ||
}, | ||
"devDependencies": { | ||
"victory-scatter": "*" | ||
}, | ||
"wireit": { | ||
"### THESE WIREIT CONFIGS ARE GENERATED ####": {}, | ||
"### DO NOT MODIFY THESE MANUALLY ####": {}, | ||
"build": { | ||
"dependencies": [ | ||
"build:lib", | ||
"build:dist", | ||
"types:create" | ||
] | ||
}, | ||
"build:lib": { | ||
"dependencies": [ | ||
"build:lib:esm", | ||
"build:lib:cjs" | ||
] | ||
}, | ||
"build:lib:esm": { | ||
"command": "nps build:lib:esm", | ||
"files": [ | ||
"src/**", | ||
"!src/**/*.test.*", | ||
"../../.babelrc.build.js" | ||
], | ||
"output": [ | ||
"es/**/*.js", | ||
"es/**/*.js.map" | ||
], | ||
"dependencies": [ | ||
"../victory-core:build:lib:esm" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"build:lib:cjs": { | ||
"command": "nps build:lib:cjs", | ||
"files": [ | ||
"src/**", | ||
"!src/**/*.test.*", | ||
"../../.babelrc.build.js" | ||
], | ||
"output": [ | ||
"lib/**/*.js", | ||
"lib/**/*.js.map" | ||
], | ||
"dependencies": [ | ||
"../victory-core:build:lib:cjs" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"build:dist": { | ||
"dependencies": [ | ||
"build:dist:dev", | ||
"build:dist:min" | ||
] | ||
}, | ||
"build:dist:dev": { | ||
"command": "nps build:dist:dev", | ||
"files": [ | ||
"src/**", | ||
"!src/**/*.test.*", | ||
"../../.babelrc.build.js", | ||
"../../config/webpack.config.js", | ||
"../../config/webpack.config.dev.js" | ||
], | ||
"output": [ | ||
"dist/victory*.js", | ||
"!dist/victory*.min.js*" | ||
], | ||
"dependencies": [ | ||
"../victory-core:build:lib:esm" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"build:dist:min": { | ||
"command": "nps build:dist:min", | ||
"files": [ | ||
"src/**", | ||
"!src/**/*.test.*", | ||
"../../.babelrc.build.js", | ||
"../../config/webpack.config.js" | ||
], | ||
"output": [ | ||
"dist/victory*.min.js*" | ||
], | ||
"dependencies": [ | ||
"../victory-core:build:lib:esm" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"types:check": { | ||
"command": "nps types:pkg:check", | ||
"files": [ | ||
"src/**/*.{ts,tsx}", | ||
"../../tsconfig.base.json", | ||
"tsconfig.json" | ||
], | ||
"dependencies": [ | ||
"types:create", | ||
"../victory-core:types:create", | ||
"../victory-vendor:types:create", | ||
"../victory-voronoi:types:create" | ||
], | ||
"output": [], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"types:create": { | ||
"command": "nps types:pkg:create", | ||
"files": [ | ||
"src/**", | ||
"!src/**/*.test.*", | ||
"../../tsconfig.base.json", | ||
"tsconfig.build.json" | ||
], | ||
"output": [ | ||
"es/**/*.d.ts", | ||
"es/**/*.d.ts.map", | ||
"lib/**/*.d.ts", | ||
"lib/**/*.d.ts.map" | ||
], | ||
"dependencies": [ | ||
"../victory-core:types:create" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"format": { | ||
"command": "nps format:pkg", | ||
"files": [ | ||
"src/**", | ||
"*.json", | ||
"../../.prettierignore", | ||
"../../.prettierrc.json" | ||
], | ||
"output": [], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"lint": { | ||
"command": "nps lint:pkg", | ||
"files": [ | ||
"src/**", | ||
"../../.eslintignore", | ||
"../../.eslintrc.js" | ||
], | ||
"output": [], | ||
"dependencies": [ | ||
"../victory-core:types:create", | ||
"../victory-vendor:types:create", | ||
"../victory-voronoi:types:create" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"format:fix": { | ||
"command": "pnpm run format || nps format:pkg:fix", | ||
"files": [ | ||
"src/**", | ||
"*.json", | ||
"../../.prettierignore", | ||
"../../.prettierrc.json" | ||
], | ||
"output": [], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"lint:fix": { | ||
"command": "pnpm run lint || nps lint:pkg:fix", | ||
"files": [ | ||
"src/**", | ||
"../../.eslintignore", | ||
"../../.eslintrc.js" | ||
], | ||
"output": [], | ||
"dependencies": [ | ||
"../victory-core:types:create", | ||
"../victory-vendor:types:create", | ||
"../victory-voronoi:types:create" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"jest": { | ||
"command": "nps jest:pkg", | ||
"files": [ | ||
"src/**/*.test.*", | ||
"../../.babelrc.js", | ||
"../../test/jest-config.js", | ||
"../../test/jest-setup.ts" | ||
], | ||
"output": [], | ||
"dependencies": [ | ||
"build:lib:cjs", | ||
"../victory-vendor:build:lib:cjs", | ||
"../victory-voronoi:build:lib:cjs" | ||
], | ||
"packageLocks": [ | ||
"pnpm-lock.yaml" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"version": "yarn run nps build-libs && nps build-dists" | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e" | ||
} | ||
"### THESE SCRIPTS ARE GENERATED ###": "true", | ||
"### DO NOT MODIFY THESE MANUALLY ###": "true", | ||
"build": "wireit", | ||
"build:lib": "wireit", | ||
"build:lib:esm": "wireit", | ||
"build:lib:cjs": "wireit", | ||
"build:dist": "wireit", | ||
"build:dist:dev": "wireit", | ||
"build:dist:min": "wireit", | ||
"types:check": "wireit", | ||
"types:create": "wireit", | ||
"format": "wireit", | ||
"format:fix": "wireit", | ||
"lint": "wireit", | ||
"lint:fix": "wireit", | ||
"jest": "wireit" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
1180456
21
19673
1
Updatedvictory-core@^36.6.0