flot-plugins
Advanced tools
Comparing version 3.7.1 to 3.8.0
@@ -131,2 +131,3 @@ /* The MIT License | ||
ctx.font = this._annotations[i].font; | ||
let formattedText = this._annotations[i].contentFormatter(this._annotations[i].label); | ||
@@ -155,2 +156,3 @@ let offset = this._calcOffset(plot, ctx, this._annotations[i]); | ||
var ctx = plot.getCanvas().getContext("2d"); | ||
ctx.font = annotation.font; | ||
let offset = this._calcOffset(plot, ctx, annotation); | ||
@@ -175,2 +177,3 @@ let bounds = this._calcBounds(plot, ctx, annotation, formattedText, offset); | ||
ctx.font = this._annotations[i].font; | ||
let formattedText = this._annotations[i].contentFormatter(this._annotations[i].label); | ||
@@ -236,6 +239,6 @@ let offset = this._calcOffset(plot, ctx, this._annotations[i]); | ||
if (arrowDirn.includes('e')) { | ||
offset.x = -al; | ||
offset.x = al; | ||
} | ||
if (arrowDirn.includes('w')) { | ||
offset.x = al; | ||
offset.x = -al; | ||
} | ||
@@ -398,6 +401,6 @@ | ||
case 'e': | ||
x = x - width; | ||
y = y - height / 2; | ||
break; | ||
case 'w': | ||
x = x - width; | ||
y = y - height / 2; | ||
@@ -439,3 +442,2 @@ break; | ||
ctx.save(); | ||
ctx.font = annotation.font; | ||
ctx.fillStyle = annotation.color; | ||
@@ -442,0 +444,0 @@ ctx.textAlign = annotation.textAlign; |
{ | ||
"name": "flot-plugins", | ||
"version": "3.7.1", | ||
"version": "3.8.0", | ||
"description": "A collection of plug-ins for flot charts", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
6948795
21419