华为项目Tree canvas画图 数据

Posted duguangyan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了华为项目Tree canvas画图 数据相关的知识,希望对你有一定的参考价值。

var radarLeftRight = {
"Reusability": [
"System Coupling", "Service Complexity", "Service Coupling", "System Consistency",
"Component Coupling","Component Complexity","Module Independency",
"Construct Complexity","Module Independency",
"File Complexity","Module Independency"
],
"Constructability": [
"System Coupling", "Service Complexity", "Service Coupling", "System Consistency",
"Sub-System Consistency", "Component Coupling","Component Complexity","Module Independency",
"Construct Complexity", "Construct Redundancy","Module Independency",
"File Size", "File Complexity","Module Independency"
],
"Evolutionability": [
"System Coupling", "System Redundancy", "Service Coupling",
"Sub-System Redundancy","Sub-System Consistency","Component Coupling","Component Complexity","Module Independency",
"Service Redundancy","Module Independency","Component Redundancy",
"Module Redundancy","File Size","File Complexity","Interface Rationality","Function Complexity"
],
"Testability": [
"System Coupling", "", "Service Complexity", "Service Coupling",
"Component Coupling","Component Complexity","Module Independency",
"Module Independency",
"File Size","File Complexity","Function Complexity"
]
};



/*1
var system = {
"Reusability": ["System Coupling", "Service Complexity", "Service Coupling", "System Consistancy"],
"Constructability": [ "System Coupling", "Service Complexity", "Service Coupling", "System Consistancy"],
"Modifiability": ["System Coupling", "System Redundancy", "Service Coupling"],
"Testability": ["System Coupling", "", "Service Complexity", "Service Coupling"]
};

var subsystem ={
"Reusability": ["Component Coupling","Component Complexity","Module Independency"],
"Constructability": ["Sub-System Consistancy", "Component Coupling","Component Complexity","Module Independency"],
"Modifiability": ["Sub-System Redundancy","Sub-System Consistancy","Component Coupling","Component Complexity","Module Independency"],
"Testability": ["Component Coupling","Component Complexity","Module Independency"]
};
3
var service ={
"Reusability": ["Construct Complexity","Module Independency"],
"Constructability": ["Construct Complexity", "Construct Redundancy","Module Independency"],
"Modifiability": ["Service Redundancy","Module Independency"],
"Testability": ["Module Independency"]
};
4
var component ={
"Reusability": ["Construct Complexity","Module Independency"],
"Constructability": ["Construct Complexity", "Construct Redundancy","Module Independency"],
"Modifiability": ["Component Redundancy","Module Independency"],
"Testability": ["Module Independency"]
};
5
var module ={
"Reusability": ["File Complexity","Module Independency"],
"Constructability": ["File Size", "File Complexity","Module Independency"],
"Modifiability": ["Module Redundancy","File Size","File Complexity","Interface Rationality","Function Complexity"],
"Testability": ["File Size","File Complexity","Function Complexity"]
};
*/
/*var dates = {
"code": "0",
"message": "success",
"data": {
"top10ProjectDefect": [
{
"description_en": "The over-complexity function means its cyclomatic complexity exceeds 15. The more the over-complexity functions in the system, the more difficult to understand and maintain.",
"other": "",
"name": "Over-Complexity Function",
"value": 6.0
},
{
"description_en": "The implements of a single module should be concentrated in an independent directory, otherwise it‘s fragile in configuration or maintaining.",
"other": "",
"name": "The Overlapped Module",
"value": 2.0
},
{
"description_en": "The Insufficient Module means the count of the sibling modules are less than 4.",
"other": "",
"name": "Insufficient Module",
"value": 2.0
},
{
"description_en": "An instance of \"cyclic dependency\" is detected by identifying a cycle in the subsystem dependency graph.",
"other": "",
"name": "Cyclic Dependencies",
"value": 2.0
},
{
"description_en": "The over-large Module means its size exceeds 40% of the parent module total LOC. ",
"other": "",
"name": "Over-Large Module",
"value": 2.0
},
{
"description_en": "The reduplicate code means more than 10 continuous lines of code are similar.",
"other": "",
"name": "Reduplicate Code",
"value": 89.0
},
{
"description_en": "Functions or methods seem more interested in the data of other capsules than the data of those in which they reside.",
"other": "",
"name": "Feature Envy",
"value": 2.0
},
{
"description_en": "The mismatch between a subsystem‘s stability and its level of abstractness.",
"other": "",
"name": "SAP Breakers",
"value": 1.0
},
{
"description_en": "large(head) file exceed some value.",
"other": "",
"name": "LargeFile",
"value": 7.0
},
{
"description_en": "A \"god class\" is a class that manipulates data that belongs to other classes in the system, and tends to concentrate functionality from several unrelated classes.",
"other": "",
"name": "God Class",
"value": 1.0
}
],
"saiDetail": [
{
"name": "ARCHATTRIBUTE",
"children": [
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Constructability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可重构性",
"score": 5.11,
"dataIndex": "Constructability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Reusability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可重用性",
"score": 35.24,
"dataIndex": "Reusability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Modifiability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可修改性",
"score": 7.058,
"dataIndex": "Modifiability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Testability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可测试性",
"score": 8.19,
"dataIndex": "Testability"
}
]
},
{

以上是关于华为项目Tree canvas画图 数据的主要内容,如果未能解决你的问题,请参考以下文章

华为项目Tree canvas画图 数据4

微信小程序canvas画图,保存页面为海报

使用 canvas 绘图的几种方法

在Canvas上放置.png文件的好方法?

如何在 Linux 中的 NodeJs Azure Functions 上修复“错误:/home/site/wwwroot/node_modules/canvas/build/Release/canv

vue svg的使用