mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Tidy up edit dialog
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user