Charting Space refactoring
This commit is contained in:
1 parent
8ee203f7f3
commit
b55c22d8bb
6 files changed
+9
-8
No files matched your search
@@ -148,7 +148,7 @@ function newUiObjectConstructor () {
|
||||
currentStatus: true,
|
||||
label: undefined,
|
||||
visible: true,
|
||||
icons: ['menu-tensor-free-angles', 'angle-to-parent-360', 'angle-to-parent-180', 'angle-to-parent-090', 'angle-to-parent-045'],
|
||||
icons: ['angle-to-parent-000', 'angle-to-parent-360', 'angle-to-parent-180', 'angle-to-parent-090', 'angle-to-parent-045'],
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
@@ -163,7 +163,7 @@ function newUiObjectConstructor () {
|
||||
currentStatus: true,
|
||||
label: undefined,
|
||||
visible: true,
|
||||
icons: ['headphones', 'distance-to-parent-025', 'distance-to-parent-050', 'distance-to-parent-100', 'distance-to-parent-150', 'distance-to-parent-200'],
|
||||
icons: ['distance-to-parent-000', 'distance-to-parent-025', 'distance-to-parent-050', 'distance-to-parent-100', 'distance-to-parent-150', 'distance-to-parent-200'],
|
||||
rawRadius: 8,
|
||||
targetRadius: 0,
|
||||
currentRadius: 0,
|
||||
|
||||
@@ -299,7 +299,7 @@ function newLayersPanel () {
|
||||
The overall idea here is that we need to keep syncronized the panel with the layers that are
|
||||
defined at the Designer. Users can connect or disconnect any objext resulting in changes in which
|
||||
are valid layers and which not at any point in time. So what we do here is trying to keep the panel
|
||||
only with the layers that are connected to the Charting System hiriarcy.
|
||||
only with the layers that are connected to the Charting Space hiriarcy.
|
||||
|
||||
To achieve this, first we are going to move all session related cards to a local array. Then we are
|
||||
going to check for layers at the designer, and will move back the cards which still have layers well
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Welcome to the Canvas App
|
||||
|
||||
The Canvas App provides a visual environment for the _Charting System_ and the _Designer_.
|
||||
The Canvas App provides a visual environment for the _Charting Space_ and the _Designer_.
|
||||
|
||||
**Installation (for developers):** To install the Canvas App, you need to install AAWeb, following [this guide](https://github.com/Superalgos/AAWeb/blob/develop/README.md).
|
||||
|
||||
|
||||
@@ -87,14 +87,14 @@ function newChartSpace () {
|
||||
let rootNodes = canvas.designerSpace.workspace.workspaceNode.rootNodes
|
||||
for (let i = 0; i < rootNodes.length; i++) {
|
||||
let rootNode = rootNodes[i]
|
||||
if (rootNode.type === 'Charting System') {
|
||||
if (rootNode.type === 'Charting Space') {
|
||||
thisObject.payload = rootNode.payload
|
||||
}
|
||||
}
|
||||
|
||||
thisObject.viewport = newViewport()
|
||||
if (thisObject.payload.node.viewport === undefined) {
|
||||
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> There must exist a Viewport node attached to the Charting System node in order for the Viewport save its properties. ') }
|
||||
if (ERROR_LOG === true) { logger.write('[WARN] initialize -> There must exist a Viewport node attached to the Charting Space node in order for the Viewport save its properties. ') }
|
||||
} else {
|
||||
thisObject.viewport.payload = thisObject.payload.node.viewport.payload
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ function newDesignerSpace () {
|
||||
'crypto-exchanges',
|
||||
'crypto-exchange',
|
||||
'exchange-markets',
|
||||
'charting-system',
|
||||
'charting-space',
|
||||
'time-line-chart',
|
||||
'time-frame-scale',
|
||||
'time-scale',
|
||||
@@ -227,6 +227,7 @@ function newDesignerSpace () {
|
||||
'distance-to-parent-100',
|
||||
'distance-to-parent-050',
|
||||
'distance-to-parent-025',
|
||||
'distance-to-parent-000',
|
||||
'angle-to-parent-360',
|
||||
'angle-to-parent-180',
|
||||
'angle-to-parent-090',
|
||||
|
||||
@@ -91,7 +91,7 @@ function newFloatingSpace () {
|
||||
payload.node.type === 'Trading System' ||
|
||||
payload.node.type === 'Network' ||
|
||||
payload.node.type === 'Crypto Ecosystem' ||
|
||||
payload.node.type === 'Charting System' ||
|
||||
payload.node.type === 'Charting Space' ||
|
||||
payload.node.type === 'Data Mine'
|
||||
) {
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user