@yuneta/gobj-ui 7.23.27 → 7.23.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gobj-ui.cjs.js +20 -0
- package/dist/gobj-ui.es.js +20 -0
- package/package.json +1 -1
- package/src/c_g6_nodes_tree.js +31 -0
- package/src/lib_graph.js +0 -31
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -49236,6 +49236,26 @@ function configure_behaviour(gobj) {
|
|
|
49236
49236
|
graph_write_behaviors(gobj, behaviors);
|
|
49237
49237
|
}
|
|
49238
49238
|
/************************************************************
|
|
49239
|
+
* Count hooks and fkeys in topic desc, classify node type
|
|
49240
|
+
************************************************************/
|
|
49241
|
+
function calculate_hooks_fkeys_counter(desc) {
|
|
49242
|
+
let cols = desc.cols;
|
|
49243
|
+
desc.hooks_counter = 0;
|
|
49244
|
+
desc.fkeys_counter = 0;
|
|
49245
|
+
for (let i = 0; i < cols.length; i++) {
|
|
49246
|
+
let col = cols[i];
|
|
49247
|
+
switch ((0, _yuneta_gobj_js.treedb_get_field_desc)(col).type) {
|
|
49248
|
+
case "hook":
|
|
49249
|
+
desc.hooks_counter++;
|
|
49250
|
+
break;
|
|
49251
|
+
case "fkey": desc.fkeys_counter++;
|
|
49252
|
+
}
|
|
49253
|
+
}
|
|
49254
|
+
if (desc.hooks_counter === 0) desc.node_treedb_type = "child";
|
|
49255
|
+
else if (desc.fkeys_counter === 0) desc.node_treedb_type = "extended";
|
|
49256
|
+
else desc.node_treedb_type = "hierarchical";
|
|
49257
|
+
}
|
|
49258
|
+
/************************************************************
|
|
49239
49259
|
* Build ports for a topic desc
|
|
49240
49260
|
************************************************************/
|
|
49241
49261
|
function build_ports(gobj, desc) {
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -49231,6 +49231,26 @@ function configure_behaviour(gobj) {
|
|
|
49231
49231
|
graph_write_behaviors(gobj, behaviors);
|
|
49232
49232
|
}
|
|
49233
49233
|
/************************************************************
|
|
49234
|
+
* Count hooks and fkeys in topic desc, classify node type
|
|
49235
|
+
************************************************************/
|
|
49236
|
+
function calculate_hooks_fkeys_counter(desc) {
|
|
49237
|
+
let cols = desc.cols;
|
|
49238
|
+
desc.hooks_counter = 0;
|
|
49239
|
+
desc.fkeys_counter = 0;
|
|
49240
|
+
for (let i = 0; i < cols.length; i++) {
|
|
49241
|
+
let col = cols[i];
|
|
49242
|
+
switch (treedb_get_field_desc(col).type) {
|
|
49243
|
+
case "hook":
|
|
49244
|
+
desc.hooks_counter++;
|
|
49245
|
+
break;
|
|
49246
|
+
case "fkey": desc.fkeys_counter++;
|
|
49247
|
+
}
|
|
49248
|
+
}
|
|
49249
|
+
if (desc.hooks_counter === 0) desc.node_treedb_type = "child";
|
|
49250
|
+
else if (desc.fkeys_counter === 0) desc.node_treedb_type = "extended";
|
|
49251
|
+
else desc.node_treedb_type = "hierarchical";
|
|
49252
|
+
}
|
|
49253
|
+
/************************************************************
|
|
49234
49254
|
* Build ports for a topic desc
|
|
49235
49255
|
************************************************************/
|
|
49236
49256
|
function build_ports(gobj, desc) {
|
package/package.json
CHANGED
package/src/c_g6_nodes_tree.js
CHANGED
|
@@ -1600,6 +1600,37 @@ function configure_behaviour(gobj)
|
|
|
1600
1600
|
graph_write_behaviors(gobj, behaviors);
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
+
/************************************************************
|
|
1604
|
+
* Count hooks and fkeys in topic desc, classify node type
|
|
1605
|
+
************************************************************/
|
|
1606
|
+
function calculate_hooks_fkeys_counter(desc)
|
|
1607
|
+
{
|
|
1608
|
+
let cols = desc.cols;
|
|
1609
|
+
desc.hooks_counter = 0;
|
|
1610
|
+
desc.fkeys_counter = 0;
|
|
1611
|
+
|
|
1612
|
+
for(let i=0; i<cols.length; i++) {
|
|
1613
|
+
let col = cols[i];
|
|
1614
|
+
const field_desc = treedb_get_field_desc(col);
|
|
1615
|
+
switch(field_desc.type) {
|
|
1616
|
+
case "hook":
|
|
1617
|
+
desc.hooks_counter++;
|
|
1618
|
+
break;
|
|
1619
|
+
case "fkey":
|
|
1620
|
+
desc.fkeys_counter++;
|
|
1621
|
+
break;
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
if(desc.hooks_counter === 0) {
|
|
1626
|
+
desc.node_treedb_type = 'child';
|
|
1627
|
+
} else if(desc.fkeys_counter === 0) {
|
|
1628
|
+
desc.node_treedb_type = 'extended';
|
|
1629
|
+
} else {
|
|
1630
|
+
desc.node_treedb_type = 'hierarchical';
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1603
1634
|
/************************************************************
|
|
1604
1635
|
* Build ports for a topic desc
|
|
1605
1636
|
************************************************************/
|
package/src/lib_graph.js
CHANGED
|
@@ -218,37 +218,6 @@ function getPointPosition(count, index, margin = 0.2)
|
|
|
218
218
|
return start + index * step + step / 2;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
/************************************************************
|
|
222
|
-
* Count hooks and fkeys in topic desc, classify node type
|
|
223
|
-
************************************************************/
|
|
224
|
-
function calculate_hooks_fkeys_counter(desc)
|
|
225
|
-
{
|
|
226
|
-
let cols = desc.cols;
|
|
227
|
-
desc.hooks_counter = 0;
|
|
228
|
-
desc.fkeys_counter = 0;
|
|
229
|
-
|
|
230
|
-
for(let i=0; i<cols.length; i++) {
|
|
231
|
-
let col = cols[i];
|
|
232
|
-
const field_desc = treedb_get_field_desc(col);
|
|
233
|
-
switch(field_desc.type) {
|
|
234
|
-
case "hook":
|
|
235
|
-
desc.hooks_counter++;
|
|
236
|
-
break;
|
|
237
|
-
case "fkey":
|
|
238
|
-
desc.fkeys_counter++;
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if(desc.hooks_counter === 0) {
|
|
244
|
-
desc.node_treedb_type = 'child';
|
|
245
|
-
} else if(desc.fkeys_counter === 0) {
|
|
246
|
-
desc.node_treedb_type = 'extended';
|
|
247
|
-
} else {
|
|
248
|
-
desc.node_treedb_type = 'hierarchical';
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
221
|
export {
|
|
253
222
|
addClasses,
|
|
254
223
|
removeClasses,
|