Socket
Socket
Sign inDemoInstall

ag-charts-react

Package Overview
Dependencies
9
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.0.2 to 9.1.0

2

dist/README.md

@@ -32,3 +32,3 @@ <picture><source media="(prefers-color-scheme: dark)" srcset="./.github/banner-dark.png"><source media="(prefers-color-scheme: light)" srcset="./.github/banner-light.png"><img alt="AG Charts canvas-based charting trusted by the community, built for enterprise." src="./.github/banner-light.png"></picture>

- Pie
- Doughnut
- Donut
- Histogram

@@ -35,0 +35,0 @@ - Box Plot \*

@@ -152,6 +152,5 @@ (function (g, f) {

value: function createStyleForDiv() {
var _a;
return Object.assign({
height: "100%"
}, (_a = this.props.containerStyle) !== null && _a !== void 0 ? _a : {});
}, this.props.containerStyle);
}

@@ -158,0 +157,0 @@ }, {

@@ -1,1 +0,1 @@

(function(i,a){typeof exports=="object"&&typeof module=="object"?module.exports=a(require("ag-charts-community"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define("AgChartsReact",["ag-charts-community","react","react-dom"],a):typeof exports=="object"?exports.AgChartsReact=a(require("ag-charts-community"),require("react"),require("react-dom")):i.AgChartsReact=a(i.agCharts,i.React,i.ReactDOM)})(this,(i,a,_)=>{var c={},u={exports:c};if(typeof y>"u")var y=function(t){if(t==="ag-charts-community")return i;if(t==="react")return a;if(t==="react-dom")return _;throw new Error("Unknown module: "+t)};Object.defineProperty(c,"__esModule",{value:!0});var p=y("react"),v=y("ag-charts-community");function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}function l(e,t){return l=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},l(e,t)}function C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},f(e)}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function s(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(r){return typeof r}:s=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},s(e)}function P(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return t&&(s(t)==="object"||typeof t=="function")?t:P(e)}function w(e){return function(){var t=f(e),r;if(j()){var n=f(this).constructor;r=Reflect.construct(t,arguments,n)}else r=t.apply(this,arguments);return S(this,r)}}var k=function(e){C(r,e);var t=w(r);function r(n){var o;return O(this,r),o=t.call(this,n),o.props=n,o.chartRef=p.createRef(),o}return R(r,[{key:"render",value:function(){return p.createElement("div",{style:this.createStyleForDiv(),ref:this.chartRef})}},{key:"createStyleForDiv",value:function(){var o;return Object.assign({height:"100%"},(o=this.props.containerStyle)!==null&&o!==void 0?o:{})}},{key:"componentDidMount",value:function(){var o=this,h=this.applyContainerIfNotSet(this.props.options),m=v.AgCharts.create(h);this.chart=m,m.chart.waitForUpdate().then(function(){var g,b;return(b=(g=o.props).onChartReady)===null||b===void 0?void 0:b.call(g,m)})}},{key:"applyContainerIfNotSet",value:function(o){return o.container?o:Object.assign(Object.assign({},o),{container:this.chartRef.current})}},{key:"shouldComponentUpdate",value:function(o){return this.processPropsChanges(this.props,o),!1}},{key:"processPropsChanges",value:function(o,h){this.chart&&v.AgCharts.update(this.chart,this.applyContainerIfNotSet(h.options))}},{key:"componentWillUnmount",value:function(){this.chart&&(this.chart.destroy(),this.chart=void 0)}}]),r}(p.Component);if(c.AgChartsReact=k,typeof u.exports=="object"&&typeof c=="object"){var x=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Object.getOwnPropertyNames(t))!Object.prototype.hasOwnProperty.call(e,o)&&o!==r&&Object.defineProperty(e,o,{get:()=>t[o],enumerable:!(n=Object.getOwnPropertyDescriptor(t,o))||n.enumerable});return e};u.exports=x(u.exports,c)}return u.exports});
(function(i,a){typeof exports=="object"&&typeof module=="object"?module.exports=a(require("ag-charts-community"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define("AgChartsReact",["ag-charts-community","react","react-dom"],a):typeof exports=="object"?exports.AgChartsReact=a(require("ag-charts-community"),require("react"),require("react-dom")):i.AgChartsReact=a(i.agCharts,i.React,i.ReactDOM)})(this,(i,a,_)=>{var c={},u={exports:c};if(typeof y>"u")var y=function(t){if(t==="ag-charts-community")return i;if(t==="react")return a;if(t==="react-dom")return _;throw new Error("Unknown module: "+t)};Object.defineProperty(c,"__esModule",{value:!0});var p=y("react"),v=y("ag-charts-community");function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t,r){return t&&d(e.prototype,t),r&&d(e,r),e}function l(e,t){return l=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},l(e,t)}function C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},f(e)}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function s(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(r){return typeof r}:s=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},s(e)}function P(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return t&&(s(t)==="object"||typeof t=="function")?t:P(e)}function w(e){return function(){var t=f(e),r;if(j()){var n=f(this).constructor;r=Reflect.construct(t,arguments,n)}else r=t.apply(this,arguments);return S(this,r)}}var k=function(e){C(r,e);var t=w(r);function r(n){var o;return O(this,r),o=t.call(this,n),o.props=n,o.chartRef=p.createRef(),o}return R(r,[{key:"render",value:function(){return p.createElement("div",{style:this.createStyleForDiv(),ref:this.chartRef})}},{key:"createStyleForDiv",value:function(){return Object.assign({height:"100%"},this.props.containerStyle)}},{key:"componentDidMount",value:function(){var o=this,h=this.applyContainerIfNotSet(this.props.options),m=v.AgCharts.create(h);this.chart=m,m.chart.waitForUpdate().then(function(){var g,b;return(b=(g=o.props).onChartReady)===null||b===void 0?void 0:b.call(g,m)})}},{key:"applyContainerIfNotSet",value:function(o){return o.container?o:Object.assign(Object.assign({},o),{container:this.chartRef.current})}},{key:"shouldComponentUpdate",value:function(o){return this.processPropsChanges(this.props,o),!1}},{key:"processPropsChanges",value:function(o,h){this.chart&&v.AgCharts.update(this.chart,this.applyContainerIfNotSet(h.options))}},{key:"componentWillUnmount",value:function(){this.chart&&(this.chart.destroy(),this.chart=void 0)}}]),r}(p.Component);if(c.AgChartsReact=k,typeof u.exports=="object"&&typeof c=="object"){var x=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Object.getOwnPropertyNames(t))!Object.prototype.hasOwnProperty.call(e,o)&&o!==r&&Object.defineProperty(e,o,{get:()=>t[o],enumerable:!(n=Object.getOwnPropertyDescriptor(t,o))||n.enumerable});return e};u.exports=x(u.exports,c)}return u.exports});
{
"name": "ag-charts-react",
"version": "9.0.2",
"version": "9.1.0",
"description": "AG Charts React Component",

@@ -30,3 +30,3 @@ "main": "./dist/index.cjs",

"devDependencies": {
"ag-charts-community": "9.0.2",
"ag-charts-community": "9.1.0",
"@types/react": "^18",

@@ -47,3 +47,3 @@ "@types/react-dom": "^18",

"peerDependencies": {
"ag-charts-community": "9.0.2",
"ag-charts-community": "9.1.0",
"react": "^16.3.0 || ^17.0.0 || ^18.0.0",

@@ -50,0 +50,0 @@ "react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0"

@@ -32,3 +32,3 @@ <picture><source media="(prefers-color-scheme: dark)" srcset="./.github/banner-dark.png"><source media="(prefers-color-scheme: light)" srcset="./.github/banner-light.png"><img alt="AG Charts canvas-based charting trusted by the community, built for enterprise." src="./.github/banner-light.png"></picture>

- Pie
- Doughnut
- Donut
- Histogram

@@ -35,0 +35,0 @@ - Box Plot \*

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc