Remove Reference Button implemented

This commit is contained in:
Luis Fernando Molina committed 2020-02-20 16:27:01 +01:00
1 parent 285a1088f7
commit 188de8f56f
3 files changed
+41 -3

No files matched your search

+10
View File
@@ -372,6 +372,16 @@ function newWorkspace () {
functionLibrarySuperScripts.runSuperScript(payload.node, functionLibraryNodeCloning, functionLibraryUiObjectsFromNodes)
}
break
case 'Remove Parent':
{
}
break
case 'Remove Reference':
{
payload.referenceParent = undefined
}
break
}
}
}
+3 -3
View File
@@ -150,15 +150,15 @@ function newCircularMenuItem () {
if (thisObject.type === 'Icon Only') {
switch (thisObject.ring) {
case 1: {
radiusGrowthFactor = 5
radiusGrowthFactor = 6
break
}
case 2: {
radiusGrowthFactor = 3.5
radiusGrowthFactor = 4.5
break
}
case 3: {
radiusGrowthFactor = 2
radiusGrowthFactor = 3
break
}
}
+28
View File
@@ -246,6 +246,34 @@ function newUiObjectConstructor () {
}
)
}
menuItemsInitialValues.push(
{
action: 'Remove Parent',
actionFunction: floatingObject.payload.onMenuItemClick,
label: undefined,
visible: true,
iconPathOn: 'kraken',
iconPathOff: 'kraken',
rawRadius: 8,
targetRadius: 0,
currentRadius: 0,
ring: 3
}
)
menuItemsInitialValues.push(
{
action: 'Remove Reference',
actionFunction: floatingObject.payload.onMenuItemClick,
label: undefined,
visible: true,
iconPathOn: 'bitcoin',
iconPathOff: 'bitcoin',
rawRadius: 8,
targetRadius: 0,
currentRadius: 0,
ring: 3
}
)
}
function getMenuItemsInitialValues (uiObject, floatingObject, payload) {