-
Notifications
You must be signed in to change notification settings - Fork 0
/
ErdSettings.js
88 lines (80 loc) · 3.34 KB
/
ErdSettings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
"use strict";
/**
* NAV ERD Settings.
*
* Adjust this file to customize the look and feel of NAV ERD.
*/
const ERDSETTINGS =
{
// ### SETTING ##################################################
// In this section you may adjust what exactly will be rendered to the ERD and how.
showObjects : "included", //Options: "all", "included", "included_with_calls"
showLocalFunctions : "all", //Options: "all", "with_calls", "none"
showGlobalFunctions : "all", //Options: "all", "with_calls", "none"
showTriggerFunctions : "all", //Options: "all", "with_calls", "none"
// ### STYLE ##################################################
// In this section you may adjust the style of ERD.
navObjectFontSize : 17,
navObjectFontWeight : "bold",
navObjectFontFamily : "'Source Sans Pro', sans-serif",
navObjectFillOpacity : 0.75,
navObjectStrokeWidth : 4,
navStrokeColor : //Color for objects
{
table : "#ce362c",
page : "#00aba9",
codeunit : "#1ba1e2",
report : "#f0a30a",
xmlport : "#bebebe",
query : "#bebebe",
menusuite : "#bebebe",
},
navFunctionFontSize : 14,
navFunctionFontWeight : "bold",
navFunctionFontFamily : "'Courier New', Courier, monospace",
navFunctionFillOpacity : 0.75,
navFunctionStrokeWidth : 4,
navFunctionStroke : //Color for functions
{
0 : "#888888", //local function
1 : "#455a64", //global function
2 : "#885a64", //trigger function
},
navFunctionRx :
{
0 : 5, //local function
1 : 5, //global function
2 : 0, //trigger function
},
navFunctionRy :
{
0 : 5, //local function
1 : 5, //global function
2 : 0, //trigger function
},
linkLabelFill : "#fff",
linkLabelFontSize : 13,
linkLabelFontWeight : "bold",
linkLabelFontFamily : "'Source Sans Pro', sans-serif",
linkLabelStrokeFill : "#999",
linkLabelStrokeWidth : 13,
// ### MARGINS and OFFSETS [px] ##################################################
// !!! You should not change that, unless you want to f*ck up your ERD !!!
navObjectEntityWidth : 420,
navObjectEntityMarginX : 80,
navObjectEntityMarginY : 70,
navObjectEntityYOffset : 15,
navObjectEntityMinHeight : 60,
navObjectEntityHeightOffset : 60,
navFunctionEntityHeight : 32,
navFunctionEntityMaring : 15,
navFunctionEntityXMargin : 60,
navFunctionEntityYOffset : 50,
testPerformance : true,
htmlIdErdDiv : "ig-erd",
htmlIdFileInput : "ig-file",
htmlIdLoaderButton : "ig-load",
htmlIdSvgDownload : "ig-download-svg",
callUidSeparator : ".",
triggers : ["OnRun","OnInsert","OnModify","OnDelete","OnRename","OnValidate","OnLookup","OnInitReport","OnPreReport","OnPostReport","OnPreDataItem","OnAfterGetRecord","OnPostDataItem","OnAfterAssignField","OnAfterAssignVariable","OnAfterGetField","OnAfterGetRecord","OnAfterInitRecord","OnAfterInsertRecord","OnAfterModifyRecord","OnBeforeInsertRecord","OnBeforeModifyRecord","OnBeforePassField","OnBeforePassVariable","OnInitXMLport","OnPreXMLport","OnPostXMLport","OnPreXMLItem","OnInit","OnOpenPage","OnClosePage","OnFindRecord","OnNextRecord","OnAfterGetCurrRecord","OnAfterGetRecord","OnNewRecord","OnInsertRecord","OnModifyRecord","OnDeleteRecord","OnQueryClosePage","OnValidate (Page fields)","OnLookup (Page fields)","OnDrillDown","OnAssistEdit","OnControlAddin","OnAction","OnBeforeTestRun","OnAfterTestRun","OnBeforeOpen"]
};