Files
Superalgos/Projects/Governance/UI/Spaces/Pools-Space/Pools.js
T

47 lines
1.0 KiB
JavaScript

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)
return thisObject
function initialize() {
}
function finalize() {
thisObject.container.finalize()
thisObject.container = undefined
}
function getContainer(point) {
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
thisObject.container.space = MODULE_NAME
return thisObject.container
} else {
return undefined
}
}
function physics() {
if (UI.projects.superalgos.spaces.designSpace.workspace === undefined) { return }
UI.projects.governance.functionLibraries.distributionProcess.calculate()
}
function draw() {
}
}