Tidy up edit dialog

This commit is contained in:
Nick O'Leary
2020-10-30 09:51:03 +00:00
parent 3d3841e651
commit 056836d1e5
3 changed files with 25 additions and 19 deletions

View File

@@ -45,6 +45,11 @@ module.exports = function(RED) {
ctx.lineWidth = annotation.lineWidth || defaultLineWidth;
ctx.lineJoin = 'bevel';
let x,y,r,w,h;
if (!annotation.type && annotation.bbox) {
annotation.type = 'rect';
}
switch(annotation.type) {
case 'rect':
if (annotation.bbox) {