@easyv/charts 1.2.10 → 1.2.11

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.
@@ -233,7 +233,12 @@ ConicalGradient.prototype = {
233
233
  b1 = currentColor.b;
234
234
  a1 = currentColor.a;
235
235
  if (!a1 && a1 !== 0) a1 = 1;
236
- nextColor = colors[currentColorIndex];
236
+ nextColor = colors[currentColorIndex] || {
237
+ r: 0,
238
+ g: 0,
239
+ b: 0,
240
+ a: 1
241
+ };
237
242
  r2 = nextColor.r;
238
243
  g2 = nextColor.g;
239
244
  b2 = nextColor.b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -217,7 +217,7 @@ ConicalGradient.prototype = {
217
217
  a1 = currentColor.a;
218
218
  if (!a1 && a1 !== 0) a1 = 1;
219
219
 
220
- nextColor = colors[currentColorIndex];
220
+ nextColor = colors[currentColorIndex] || {r:0,g:0,b:0,a:1};
221
221
  r2 = nextColor.r;
222
222
  g2 = nextColor.g;
223
223
  b2 = nextColor.b;