face percentage bg issue fix
This commit is contained in:
parent
2d24a975d3
commit
b50790f089
@ -360,22 +360,22 @@ drawRectangle(file)
|
|||||||
// context.save();
|
// context.save();
|
||||||
/// text color
|
/// text color
|
||||||
// get width of text
|
// get width of text
|
||||||
context.font = "bold 50px Arial";
|
context.font = "bold 75px Arial";
|
||||||
var width = context.measureText(this.similarity+'%').width;
|
var width = context.measureText(this.similarity+'%').width;
|
||||||
var height = context.measureText(this.similarity+'%').height;
|
var height = context.measureText(this.similarity+'%').height;
|
||||||
context.fillStyle = '#ffffff94';
|
context.fillStyle = 'rgb(255 255 255 / 70%)';
|
||||||
/// draw text on top
|
/// draw text on top
|
||||||
let heightValueCode = file[k]['Top_coordinate'] - 10
|
let heightValueCode = file[k]['Top_coordinate'] - 4
|
||||||
console.log(heightValueCode)
|
console.log(heightValueCode)
|
||||||
// context.textAlign = "end";
|
// context.textAlign = "end";
|
||||||
// context.textAlign = 'center';
|
// context.textAlign = 'center';
|
||||||
context.fillText('\u{2B1B}',file[k]['Left_coordinate'],heightValueCode,width,height);
|
context.fillText("\u23F9",file[k]['Left_coordinate'],heightValueCode,width,height);
|
||||||
// ctx.fillText(txt, x, y);
|
// ctx.fillText(txt, x, y);
|
||||||
// context.restore();
|
// context.restore();
|
||||||
console.log(file[k]['Top_coordinate'])
|
console.log(file[k]['Top_coordinate'])
|
||||||
let heightValue = file[k]['Top_coordinate'] - 15
|
let heightValue = file[k]['Top_coordinate'] - 15
|
||||||
console.log(heightValue)
|
console.log(heightValue)
|
||||||
let widthValue = file[k]['Left_coordinate'] + 7
|
let widthValue = file[k]['Left_coordinate'] + 10
|
||||||
context.fillStyle = this.color[k]['color']
|
context.fillStyle = this.color[k]['color']
|
||||||
// context.fill();
|
// context.fill();
|
||||||
/// get width of text
|
/// get width of text
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user