Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-canvas

Package Overview
Dependencies
Maintainers
24
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-canvas - npm Package Compare versions

Comparing version 36.3.2 to 36.4.0

6

es/canvas-curve.js

@@ -1,3 +0,5 @@

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -36,3 +38,3 @@

CanvasCurve.propTypes = _objectSpread({}, CommonProps.primitiveProps, {
CanvasCurve.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
interpolation: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),

@@ -39,0 +41,0 @@ openCurve: PropTypes.bool,

@@ -22,3 +22,3 @@ import React from "react";

}, [width, height, padding, clipWidth]);
return React.createElement(CanvasContext.Provider, {
return /*#__PURE__*/React.createElement(CanvasContext.Provider, {
value: {

@@ -29,3 +29,3 @@ canvasRef: canvasRef,

}
}, React.createElement("foreignObject", {
}, /*#__PURE__*/React.createElement("foreignObject", {
width: width,

@@ -35,3 +35,3 @@ height: height,

y: 0
}, React.createElement("canvas", {
}, /*#__PURE__*/React.createElement("canvas", {
width: width,

@@ -38,0 +38,0 @@ height: height,

import _assign from "lodash/assign";
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -74,3 +76,3 @@

CanvasPoint.propTypes = _objectSpread({}, CommonProps.primitiveProps, {
CanvasPoint.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
datum: PropTypes.object,

@@ -77,0 +79,0 @@ size: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),

import React from "react";
export var CanvasContext = React.createContext();
export var CanvasContext = /*#__PURE__*/React.createContext();
export var useCanvasContext = function () {

@@ -4,0 +4,0 @@ var context = React.useContext(CanvasContext);

@@ -6,3 +6,3 @@ "use strict";

});
exports.default = exports.usePreviousValue = void 0;
exports.usePreviousValue = exports.default = void 0;

@@ -9,0 +9,0 @@ var _omit2 = _interopRequireDefault(require("lodash/omit"));

@@ -18,4 +18,6 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -53,3 +55,3 @@

CanvasCurve.propTypes = _objectSpread({}, _victoryCore.CommonProps.primitiveProps, {
CanvasCurve.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {
interpolation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),

@@ -56,0 +58,0 @@ openCurve: _propTypes.default.bool,

@@ -38,3 +38,3 @@ "use strict";

return _react.default.createElement(_useCanvasContext.CanvasContext.Provider, {
return /*#__PURE__*/_react.default.createElement(_useCanvasContext.CanvasContext.Provider, {
value: {

@@ -45,3 +45,3 @@ canvasRef: canvasRef,

}
}, _react.default.createElement("foreignObject", {
}, /*#__PURE__*/_react.default.createElement("foreignObject", {
width: width,

@@ -51,3 +51,3 @@ height: height,

y: 0
}, _react.default.createElement("canvas", {
}, /*#__PURE__*/_react.default.createElement("canvas", {
width: width,

@@ -54,0 +54,0 @@ height: height,

@@ -20,4 +20,6 @@ "use strict";

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
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; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -93,3 +95,3 @@

CanvasPoint.propTypes = _objectSpread({}, _victoryCore.CommonProps.primitiveProps, {
CanvasPoint.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {
datum: _propTypes.default.object,

@@ -96,0 +98,0 @@ size: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),

@@ -12,3 +12,3 @@ "use strict";

var CanvasContext = _react.default.createContext();
var CanvasContext = /*#__PURE__*/_react.default.createContext();

@@ -15,0 +15,0 @@ exports.CanvasContext = CanvasContext;

@@ -12,12 +12,12 @@ "use strict";

});
Object.defineProperty(exports, "CanvasGroup", {
Object.defineProperty(exports, "CanvasCurve", {
enumerable: true,
get: function () {
return _canvasGroup.default;
return _canvasCurve.default;
}
});
Object.defineProperty(exports, "CanvasCurve", {
Object.defineProperty(exports, "CanvasGroup", {
enumerable: true,
get: function () {
return _canvasCurve.default;
return _canvasGroup.default;
}

@@ -24,0 +24,0 @@ });

{
"name": "victory-canvas",
"version": "36.3.2",
"version": "36.4.0",
"description": "HTML5 Canvas Components for Victory",

@@ -24,3 +24,3 @@ "keywords": [

"prop-types": "^15.5.8",
"victory-core": "^36.3.2"
"victory-core": "^36.4.0"
},

@@ -34,3 +34,3 @@ "peerDependencies": {

"sideEffects": false,
"gitHead": "18895d1290245732d14332bbbda10336032c9aab"
"gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc