mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
Add new Ellipse drawing object in Display Layouts (#4153)
* Add new ellipse drawing object to Display Layouts - Fix test and linting issues; Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
committed by
GitHub
parent
40055ba955
commit
9461ad8edd
@ -149,6 +149,7 @@ define(['lodash'], function (_) {
|
||||
return type === 'text-view'
|
||||
|| type === 'telemetry-view'
|
||||
|| type === 'box-view'
|
||||
|| type === 'ellipse-view'
|
||||
|| type === 'image-view'
|
||||
|| type === 'line-view'
|
||||
|| type === 'subobject-view';
|
||||
@ -180,6 +181,10 @@ define(['lodash'], function (_) {
|
||||
"name": "Box",
|
||||
"class": "icon-box-round-corners"
|
||||
},
|
||||
{
|
||||
"name": "Ellipse",
|
||||
"class": "icon-circle"
|
||||
},
|
||||
{
|
||||
"name": "Line",
|
||||
"class": "icon-line-horz"
|
||||
@ -745,7 +750,7 @@ define(['lodash'], function (_) {
|
||||
if (toolbar.remove.length === 0) {
|
||||
toolbar.remove = [getRemoveButton(selectedParent, selectionPath, selectedObjects)];
|
||||
}
|
||||
} else if (layoutItem.type === 'box-view') {
|
||||
} else if (layoutItem.type === 'box-view' || layoutItem.type === 'ellipse-view') {
|
||||
if (toolbar.position.length === 0) {
|
||||
toolbar.position = [
|
||||
getStackOrder(selectedParent, selectionPath),
|
||||
|
Reference in New Issue
Block a user