Skip to content

Commit

Permalink
fixed default values for uml items
Browse files Browse the repository at this point in the history
  • Loading branch information
ishubin committed Dec 11, 2023
1 parent 301dcca commit e179a35
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
12 changes: 11 additions & 1 deletion src/ui/components/editor/items/shapes/Link.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ export default {
iconUrl: '/assets/images/items/link.svg',
item: {
textSlots: {
link: {text: 'Link', fontSize: 16, padding: {left: 0, top: 0, bottom: 0, right: 0}, color: '#047EFB', halign: 'left', valign: 'top'}
link: {
text: 'Link',
fontSize: 16,
paddingLeft: 0,
paddingTop: 0,
paddingBottom: 0,
paddingRight: 0,
color: '#047EFB',
halign: 'left',
valign: 'top'
}
},
cursor: 'pointer'
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/editor/items/shapes/uml/UMLClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default {
},

args: {
cornerRadius: {type: 'number', value: '0', name: 'Corner radius', min: 0},
cornerRadius: {type: 'number', value: 0, name: 'Corner radius', min: 0},
headerHeight: {type: 'number', value: 30, name: 'Header Height', min: 0},
sectionRatio: {type: 'number', value: 50, name: 'Section Ratio (%)', min: 0, max: 100}
}
Expand Down
6 changes: 3 additions & 3 deletions src/ui/components/editor/items/shapes/uml/UMLModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ export default {
},

args: {
cornerRadius: {type: 'number', value: '0', name: 'Corner radius', min: 0},
brickWidth : {type: 'number', value: '70', name: 'Brick Width', min: 0},
brickHeight : {type: 'number', value: '20', name: 'Brick Height', min: 0},
cornerRadius: {type: 'number', value: 0, name: 'Corner radius', min: 0},
brickWidth : {type: 'number', value: 70, name: 'Brick Width', min: 0},
brickHeight : {type: 'number', value: 20, name: 'Brick Height', min: 0},
},
},
}
2 changes: 1 addition & 1 deletion src/ui/components/editor/items/shapes/uml/UMLObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
},

args: {
cornerRadius: {type: 'number', value: '0', name: 'Corner radius', min: 0},
cornerRadius: {type: 'number', value: 0, name: 'Corner radius', min: 0},
headerHeight: {type: 'number', value: 30, name: 'Header Height', min: 0}
}
}
Expand Down

0 comments on commit e179a35

Please sign in to comment.