Removing Unused spaces

This commit is contained in:
Luis Fernando Molina committed 2021-07-19 11:58:19 +02:00
1 parent 6fbc0710da
commit b929c3ec29
5 files changed
+8 -182

No files matched your search

@@ -1,47 +0,0 @@
function newGovernanceFeaturesSpace() {
const MODULE_NAME = 'Features Space'
let thisObject = {
container: undefined,
physics: physics,
draw: draw,
getContainer: getContainer,
finalize: finalize,
initialize: initialize
}
thisObject.container = newContainer()
thisObject.container.initialize(MODULE_NAME)
thisObject.container.isDraggeable = false
return thisObject
function finalize() {
thisObject.container.finalize()
thisObject.container = undefined
}
function initialize() {
}
function physics() {
if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return }
}
function getContainer(point) {
return undefined // since this space does not draw anything we return here
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
thisObject.container.space = MODULE_NAME
return thisObject.container
} else {
return undefined
}
}
function draw() {
}
}
@@ -1,49 +0,0 @@
function newGovernancePoolsSpace() {
const MODULE_NAME = 'Pool Space'
let thisObject = {
container: undefined,
physics: physics,
draw: draw,
getContainer: getContainer,
finalize: finalize,
initialize: initialize
}
thisObject.container = newContainer()
thisObject.container.initialize(MODULE_NAME)
thisObject.container.isDraggeable = false
return thisObject
function initialize() {
}
function finalize() {
thisObject.container.finalize()
thisObject.container = undefined
}
function getContainer(point) {
return undefined // since this space does not draw anything we return here
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
thisObject.container.space = MODULE_NAME
return thisObject.container
} else {
return undefined
}
}
function physics() {
if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return }
UI.projects.governance.functionLibraries.distributionProcess.calculate()
}
function draw() {
}
}
@@ -1,47 +0,0 @@
function newGovernancePositionsSpace() {
const MODULE_NAME = 'Positions Space'
let thisObject = {
container: undefined,
physics: physics,
draw: draw,
getContainer: getContainer,
finalize: finalize,
initialize: initialize
}
thisObject.container = newContainer()
thisObject.container.initialize(MODULE_NAME)
thisObject.container.isDraggeable = false
return thisObject
function finalize() {
thisObject.container.finalize()
thisObject.container = undefined
}
function initialize() {
}
function physics() {
if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return }
}
function getContainer(point) {
return undefined // since this space does not draw anything we return here
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
thisObject.container.space = MODULE_NAME
return thisObject.container
} else {
return undefined
}
}
function draw() {
}
}
@@ -42,6 +42,13 @@ function newGovernanceUserProfileSpace() {
function physics() {
if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return }
/*
Here we will run the distribution process, that in turn will run all the programs.
*/
UI.projects.governance.functionLibraries.distributionProcess.calculate()
/*
Load the user profiles with Token Power.
*/
let userProfiles = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadsByNodeType('User Profile')
if (waitingForResponses !== 0) { return }
/*
@@ -57,6 +64,7 @@ function newGovernanceUserProfileSpace() {
}
}
function getBlockchainAccount(userProfile) {
let signature = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(userProfile.payload, 'signature')
if (signature === undefined || signature === "") { return }
-39
View File
@@ -1116,45 +1116,6 @@
"onMouseOverIndex": 1,
"onMouseClickIndex": 1,
"onMouseDownIndex": 1
},
{
"name": "Features Space",
"folderName": "Features-Space",
"propertyName": "featuresSpace",
"functionName": "newGovernanceFeaturesSpace",
"initializationIndex": 2,
"animationPhysicsIndex": 2,
"animationDrawIndex": 2,
"onMouseWheelIndex": 2,
"onMouseOverIndex": 2,
"onMouseClickIndex": 2,
"onMouseDownIndex": 2
},
{
"name": "Positions Space",
"folderName": "Positions-Space",
"propertyName": "positionsSpace",
"functionName": "newGovernancePositionsSpace",
"initializationIndex": 3,
"animationPhysicsIndex": 3,
"animationDrawIndex": 3,
"onMouseWheelIndex": 3,
"onMouseOverIndex": 3,
"onMouseClickIndex": 3,
"onMouseDownIndex": 3
},
{
"name": "Pools Space",
"folderName": "Pools-Space",
"propertyName": "poolsSpace",
"functionName": "newGovernancePoolsSpace",
"initializationIndex": 4,
"animationPhysicsIndex": 4,
"animationDrawIndex": 4,
"onMouseWheelIndex": 4,
"onMouseOverIndex": 4,
"onMouseClickIndex": 4,
"onMouseDownIndex": 4
}
]
},