diff --git a/DesignSpace/Workspace/Workspace.js b/DesignSpace/Workspace/Workspace.js index c08f04e17..0703071e5 100644 --- a/DesignSpace/Workspace/Workspace.js +++ b/DesignSpace/Workspace/Workspace.js @@ -372,6 +372,16 @@ function newWorkspace () { functionLibrarySuperScripts.runSuperScript(payload.node, functionLibraryNodeCloning, functionLibraryUiObjectsFromNodes) } break + case 'Remove Parent': + { + + } + break + case 'Remove Reference': + { + payload.referenceParent = undefined + } + break } } } diff --git a/FloatingSpace/CircularMenuItem.js b/FloatingSpace/CircularMenuItem.js index b54779f50..c45df674b 100644 --- a/FloatingSpace/CircularMenuItem.js +++ b/FloatingSpace/CircularMenuItem.js @@ -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 } } diff --git a/FloatingSpace/UiObjectConstructor.js b/FloatingSpace/UiObjectConstructor.js index ac5ee4dd3..a03a3ff27 100644 --- a/FloatingSpace/UiObjectConstructor.js +++ b/FloatingSpace/UiObjectConstructor.js @@ -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) {