JIT 空间树节点间距问题



我在使用JIT Spacetree时遇到了一个问题,其中节点之间的空间相距很远,导致视图不可用。前几个节点很好,但随着您深入导航到树,子节点上的间距会增加。

我正在使用一个非常类似于 JIT 站点上的示例 1 的普通配置http://philogb.github.io/jit/static/v20/Jit/Examples/Spacetree/example1.html

这是一个显示片段的屏幕截图,但问题比这显示的还要严重,因为间距随着节点的增加而进一步增加。

https://dl.dropboxusercontent.com/u/5454906/spacetree_issue.png

我已经成功使用它一段时间了,但从未遇到过这个特定问题。

有人有任何想法/想法吗?

谢谢

尼尔

下面是生成的 JSON 集示例。

{
"id": "Class91240",
"name": "Cube Org - OrgID",
"data": {"nodeType": "reportObj"},
"children": [{
    "id": "001",
    "name": "Data Warehouse - Org",
    "data": {"nodeType": "dataRep"},
    "children": [
        {
            "id": "002",
            "name": "DataWarehouse Loader - Update Org Data",
            "data": {"nodeType": "interface"},
            "children": [{
                "id": "003",
                "name": "Staging Database - MasterOrg",
                "data": {"nodeType": "dataRep"},
                "children": [
                    {
                        "id": "Class90189",
                        "name": "Staging Interface - Update Master Org Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91838",
                            "name": "Staging Database - ExtractABC",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class93632",
                                "name": "Staging Interface - Rates Data",
                                "data": {"nodeType": "busLogic"},
                                "children": [{
                                    "id": "Class90125",
                                    "name": "Operational Data Stored Procedures - Data",
                                    "data": {"nodeType": "interface"},
                                    "children": [{
                                        "id": "Class90387",
                                        "name": "sim_xyz_rates",
                                        "data": {"nodeType": "feed"},
                                        "children": []
                                    }]
                                }]
                            }]
                        }]
                    },
                    {
                        "id": "Class90340",
                        "name": "Staging Interface - Update  Master tables Budget Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91889",
                            "name": "Staging Database - ExtractPQR_Fact01",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class90308",
                                "name": "Web UI Interface - Export Template Data",
                                "data": {"nodeType": "interface"},
                                "children": [{
                                    "id": "Class91942",
                                    "name": "HTC Staging Database - DEF_Template",
                                    "data": {"nodeType": "dataRep"},
                                    "children": []
                                }]
                            }]
                        }]
                    },
                    {
                        "id": "Class90342",
                        "name": "Staging Interface - Update  Master tables Forecast Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91889",
                            "name": "Staging Database - ExtractPQR_Fact01",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class90308",
                                "name": "Web UI Interface - Export Template Data",
                                "data": {"nodeType": "interface"},
                                "children": [{
                                    "id": "Class91942",
                                    "name": "HTC Staging Database - DEF_Template",
                                    "data": {"nodeType": "dataRep"},
                                    "children": []
                                }]
                            }]
                        }]
                    }
                ]
            }]
        },
        {
            "id": "Class90324",
            "name": "DataWarehouse Loader - Update  Discovery  Tables Budget Data",
            "data": {"nodeType": "interface"},
            "children": [{
                "id": "003",
                "name": "Staging Database - MasterOrg",
                "data": {"nodeType": "dataRep"},
                "children": [
                    {
                        "id": "Class90189",
                        "name": "Staging Interface - Update Master Org Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91838",
                            "name": "Staging Database - ExtractABC",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class93632",
                                "name": "Staging Interface - Rates Data",
                                "data": {"nodeType": "busLogic"},
                                "children": [{
                                    "id": "Class90125",
                                    "name": "Operational Data Stored Procedures - Data",
                                    "data": {"nodeType": "interface"},
                                    "children": [{
                                        "id": "Class90387",
                                        "name": "sim_xyz_rates",
                                        "data": {"nodeType": "feed"},
                                        "children": []
                                    }]
                                }]
                            }]
                        }]
                    },
                    {
                        "id": "Class90340",
                        "name": "Staging Interface - Update  Master tables Budget Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91889",
                            "name": "Staging Database - ExtractPQR_Fact01",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class90308",
                                "name": "Web UI Interface - Export Template Data",
                                "data": {"nodeType": "interface"},
                                "children": [{
                                    "id": "Class91942",
                                    "name": "HTC Staging Database - DEF_Template",
                                    "data": {"nodeType": "dataRep"},
                                    "children": []
                                }]
                            }]
                        }]
                    },
                    {
                        "id": "Class90342",
                        "name": "Staging Interface - Update  Master tables Forecast Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91889",
                            "name": "Staging Database - ExtractPQR_Fact01",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class90308",
                                "name": "Web UI Interface - Export Template Data",
                                "data": {"nodeType": "interface"},
                                "children": [{
                                    "id": "Class91942",
                                    "name": "HTC Staging Database - DEF_Template",
                                    "data": {"nodeType": "dataRep"},
                                    "children": []
                                }]
                            }]
                        }]
                    }
                ]
            }]
        },
        {
            "id": "Class90331",
            "name": "DataWarehouse Loader - Update  Discovery Tables Forecast Data",
            "data": {"nodeType": "interface"},
            "children": [{
                "id": "003",
                "name": "Staging Database - MasterOrg",
                "data": {"nodeType": "dataRep"},
                "children": [
                    {
                        "id": "Class90189",
                        "name": "Staging Interface - Update Master Org Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91838",
                            "name": "Staging Database - ExtractABC",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class93632",
                                "name": "Staging Interface - Rates Data",
                                "data": {"nodeType": "busLogic"},
                                "children": [{
                                    "id": "Class90125",
                                    "name": "Operational Data Stored Procedures - Data",
                                    "data": {"nodeType": "interface"},
                                    "children": [{
                                        "id": "Class90387",
                                        "name": "sim_xyz_rates",
                                        "data": {"nodeType": "feed"},
                                        "children": []
                                    }]
                                }]
                            }]
                        }]
                    },
                    {
                        "id": "Class90340",
                        "name": "Staging Interface - Update  Master tables Budget Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91889",
                            "name": "Staging Database - ExtractPQR_Fact01",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class90308",
                                "name": "Web UI Interface - Export Template Data",
                                "data": {"nodeType": "interface"},
                                "children": [{
                                    "id": "Class91942",
                                    "name": "HTC Staging Database - DEF_Template",
                                    "data": {"nodeType": "dataRep"},
                                    "children": []
                                }]
                            }]
                        }]
                    },
                    {
                        "id": "Class90342",
                        "name": "Staging Interface - Update  Master tables Forecast Data",
                        "data": {"nodeType": "interface"},
                        "children": [{
                            "id": "Class91889",
                            "name": "Staging Database - ExtractPQR_Fact01",
                            "data": {"nodeType": "dataRep"},
                            "children": [{
                                "id": "Class90308",
                                "name": "Web UI Interface - Export Template Data",
                                "data": {"nodeType": "interface"},
                                "children": [{
                                    "id": "Class91942",
                                    "name": "HTC Staging Database - DEF_Template",
                                    "data": {"nodeType": "dataRep"},
                                    "children": []
                                }]
                            }]
                        }]
                    }
                ]
            }]
        }
    ]
}]

}

这可能不是导致问题的原因,但 json 结构中有重复的节点。 Id 在 JIT 中的 SpaceTree 中必须是唯一的

相关内容

  • 没有找到相关文章

最新更新