pyegeria 5.3.9.9.7__py3-none-any.whl → 5.4.0__py3-none-any.whl
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.
- commands/cat/debug_log +2806 -0
- commands/cat/debug_log.2025-07-15_14-28-38_087378.zip +0 -0
- commands/cat/debug_log.2025-07-16_15-48-50_037087.zip +0 -0
- commands/cat/dr_egeria_command_help.py +273 -0
- commands/cat/dr_egeria_md.py +90 -20
- commands/cat/glossary_actions.py +2 -2
- commands/cat/list_collections.py +24 -10
- commands/cat/list_data_designer.py +183 -0
- md_processing/__init__.py +28 -5
- md_processing/data/commands.json +31474 -1096
- md_processing/dr_egeria_outbox-pycharm/.obsidian/app.json +1 -0
- md_processing/dr_egeria_outbox-pycharm/.obsidian/appearance.json +1 -0
- md_processing/dr_egeria_outbox-pycharm/.obsidian/core-plugins.json +31 -0
- md_processing/dr_egeria_outbox-pycharm/.obsidian/workspace.json +177 -0
- md_processing/dr_egeria_outbox-pycharm/monday/processed-2025-07-14 12:38-data_designer_out.md +663 -0
- md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 15:00-Derive-Dr-Gov-Defs.md +719 -0
- md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:13-Derive-Dr-Gov-Defs.md +41 -0
- md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:14-Derive-Dr-Gov-Defs.md +33 -0
- md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:50-Derive-Dr-Gov-Defs.md +192 -0
- md_processing/dr_egeria_outbox-pycharm/tuesday/processed-2025-07-16 19:15-gov_def2.md +527 -0
- md_processing/dr_egeria_outbox-pycharm/tuesday/processed-2025-07-17 12:08-gov_def2.md +527 -0
- md_processing/dr_egeria_outbox-pycharm/tuesday/processed-2025-07-17 14:27-gov_def2.md +474 -0
- md_processing/family_docs/Data Designer/Create_Data_Class.md +164 -0
- md_processing/family_docs/Data Designer/Create_Data_Dictionary.md +30 -0
- md_processing/family_docs/Data Designer/Create_Data_Field.md +162 -0
- md_processing/family_docs/Data Designer/Create_Data_Specification.md +36 -0
- md_processing/family_docs/Data Designer/Create_Data_Structure.md +38 -0
- md_processing/family_docs/Data Designer/View_Data_Classes.md +78 -0
- md_processing/family_docs/Data Designer/View_Data_Dictionaries.md +78 -0
- md_processing/family_docs/Data Designer/View_Data_Fields.md +78 -0
- md_processing/family_docs/Data Designer/View_Data_Specifications.md +78 -0
- md_processing/family_docs/Data Designer/View_Data_Structures.md +78 -0
- md_processing/family_docs/Data Designer.md +842 -0
- md_processing/family_docs/Digital Product Manager/Add_Member->Collection.md +42 -0
- md_processing/family_docs/Digital Product Manager/Attach_Collection->Resource.md +36 -0
- md_processing/family_docs/Digital Product Manager/Create_Agreement.md +96 -0
- md_processing/family_docs/Digital Product Manager/Create_Data_Sharing_Agreement.md +72 -0
- md_processing/family_docs/Digital Product Manager/Create_DigitalSubscription.md +102 -0
- md_processing/family_docs/Digital Product Manager/Create_Digital_Product.md +134 -0
- md_processing/family_docs/Digital Product Manager/Link_Agreement_Items.md +60 -0
- md_processing/family_docs/Digital Product Manager/Link_Contracts.md +26 -0
- md_processing/family_docs/Digital Product Manager/Link_Digital_Product_-_Digital_Product.md +30 -0
- md_processing/family_docs/Digital Product Manager/Link_Subscribers.md +48 -0
- md_processing/family_docs/Digital Product Manager.md +668 -0
- md_processing/family_docs/Glossary/Attach_Category_Parent.md +18 -0
- md_processing/family_docs/Glossary/Attach_Term-Term_Relationship.md +26 -0
- md_processing/family_docs/Glossary/Create_Category.md +38 -0
- md_processing/family_docs/Glossary/Create_Glossary.md +42 -0
- md_processing/family_docs/Glossary/Create_Term.md +70 -0
- md_processing/family_docs/Glossary.md +206 -0
- md_processing/family_docs/Governance Officer/Create_Business_Imperative.md +106 -0
- md_processing/family_docs/Governance Officer/Create_Certification_Type.md +112 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Approach.md +114 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Obligation.md +114 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Principle.md +114 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Procedure.md +128 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Process.md +122 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Processing_Purpose.md +106 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Responsibility.md +122 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Rule.md +122 -0
- md_processing/family_docs/Governance Officer/Create_Governance_Strategy.md +106 -0
- md_processing/family_docs/Governance Officer/Create_License_Type.md +112 -0
- md_processing/family_docs/Governance Officer/Create_Naming_Standard_Rule.md +122 -0
- md_processing/family_docs/Governance Officer/Create_Regulation_Article.md +106 -0
- md_processing/family_docs/Governance Officer/Create_Regulation_Definition.md +118 -0
- md_processing/family_docs/Governance Officer/Create_Security_Access_Control.md +114 -0
- md_processing/family_docs/Governance Officer/Create_Security_Group.md +120 -0
- md_processing/family_docs/Governance Officer/Create_Service_Level_Objectives.md +122 -0
- md_processing/family_docs/Governance Officer/Create_Threat_Definition.md +106 -0
- md_processing/family_docs/Governance Officer/Link_Governance_Controls.md +32 -0
- md_processing/family_docs/Governance Officer/Link_Governance_Drivers.md +32 -0
- md_processing/family_docs/Governance Officer/Link_Governance_Policies.md +32 -0
- md_processing/family_docs/Governance Officer/View_Governance_Definitions.md +82 -0
- md_processing/family_docs/Governance Officer.md +2412 -0
- md_processing/family_docs/Solution Architect/Create_Information_Supply_Chain.md +70 -0
- md_processing/family_docs/Solution Architect/Create_Solution_Blueprint.md +44 -0
- md_processing/family_docs/Solution Architect/Create_Solution_Component.md +96 -0
- md_processing/family_docs/Solution Architect/Create_Solution_Role.md +66 -0
- md_processing/family_docs/Solution Architect/Link_Information_Supply_Chain_Peers.md +32 -0
- md_processing/family_docs/Solution Architect/Link_Solution_Component_Peers.md +32 -0
- md_processing/family_docs/Solution Architect/View_Information_Supply_Chains.md +32 -0
- md_processing/family_docs/Solution Architect/View_Solution_Blueprints.md +32 -0
- md_processing/family_docs/Solution Architect/View_Solution_Components.md +32 -0
- md_processing/family_docs/Solution Architect/View_Solution_Roles.md +32 -0
- md_processing/family_docs/Solution Architect.md +490 -0
- md_processing/md_commands/data_designer_commands.py +1192 -710
- md_processing/md_commands/glossary_commands.py +19 -32
- md_processing/md_commands/governance_officer_commands.py +420 -0
- md_processing/md_commands/product_manager_commands.py +1180 -0
- md_processing/md_commands/project_commands.py +5 -2
- md_processing/md_commands/solution_architect_commands.py +1140 -0
- md_processing/md_processing_utils/common_md_proc_utils.py +288 -96
- md_processing/md_processing_utils/common_md_utils.py +205 -6
- md_processing/md_processing_utils/debug_log +574 -0
- md_processing/md_processing_utils/dr-egeria-help-2025-07-17T17:22:09.md +2065 -0
- md_processing/md_processing_utils/extraction_utils.py +1 -1
- md_processing/md_processing_utils/generate_dr_help.py +165 -0
- md_processing/md_processing_utils/generate_md_cmd_templates.py +143 -0
- md_processing/md_processing_utils/generate_md_templates.py +92 -0
- md_processing/md_processing_utils/generated_help_terms.md +842 -0
- md_processing/md_processing_utils/md_processing_constants.py +94 -17
- pyegeria/__init__.py +1 -0
- pyegeria/_client.py +39 -1
- pyegeria/classification_manager_omvs.py +1 -1
- pyegeria/collection_manager_omvs.py +4667 -1178
- pyegeria/data_designer_omvs.py +348 -31
- pyegeria/egeria_tech_client.py +9 -25
- pyegeria/glossary_browser_omvs.py +5 -6
- pyegeria/glossary_manager_omvs.py +2 -2
- pyegeria/governance_officer_omvs.py +2367 -0
- pyegeria/output_formatter.py +157 -32
- pyegeria/solution_architect_omvs.py +5063 -1110
- pyegeria/utils.py +22 -2
- {pyegeria-5.3.9.9.7.dist-info → pyegeria-5.4.0.dist-info}/METADATA +3 -1
- pyegeria-5.4.0.dist-info/RECORD +243 -0
- {pyegeria-5.3.9.9.7.dist-info → pyegeria-5.4.0.dist-info}/entry_points.txt +5 -0
- commands/cat/.DS_Store +0 -0
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro.md +0 -254
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_more_terms.md +0 -696
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part1.md +0 -254
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part2.md +0 -298
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part3.md +0 -608
- md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part4.md +0 -94
- md_processing/dr_egeria_inbox/archive/freddie_intro.md +0 -284
- md_processing/dr_egeria_inbox/archive/freddie_intro_orig.md +0 -275
- md_processing/dr_egeria_inbox/archive/test-term.md +0 -110
- md_processing/dr_egeria_inbox/cat_test.md +0 -100
- md_processing/dr_egeria_inbox/data_field.md +0 -54
- md_processing/dr_egeria_inbox/data_spec.md +0 -77
- md_processing/dr_egeria_inbox/data_spec_test.md +0 -2406
- md_processing/dr_egeria_inbox/data_test.md +0 -86
- md_processing/dr_egeria_inbox/dr_egeria_intro_categories.md +0 -168
- md_processing/dr_egeria_inbox/dr_egeria_intro_part1.md +0 -280
- md_processing/dr_egeria_inbox/dr_egeria_intro_part2.md +0 -313
- md_processing/dr_egeria_inbox/dr_egeria_intro_part3.md +0 -1073
- md_processing/dr_egeria_inbox/dr_egeria_isc1.md +0 -44
- md_processing/dr_egeria_inbox/glossary_test1.md +0 -324
- md_processing/dr_egeria_inbox/rel.md +0 -8
- md_processing/dr_egeria_inbox/sb.md +0 -119
- md_processing/dr_egeria_inbox/search_test.md +0 -39
- md_processing/dr_egeria_inbox/solution-components.md +0 -154
- md_processing/dr_egeria_inbox/solution_blueprints.md +0 -118
- md_processing/dr_egeria_inbox/synonym_test.md +0 -42
- md_processing/dr_egeria_inbox/t1.md +0 -0
- md_processing/dr_egeria_inbox/t2.md +0 -268
- md_processing/dr_egeria_outbox/processed-2025-05-15 19:52-data_test.md +0 -94
- md_processing/dr_egeria_outbox/processed-2025-05-16 07:39-data_test.md +0 -88
- md_processing/dr_egeria_outbox/processed-2025-05-17 16:01-data_field.md +0 -56
- md_processing/dr_egeria_outbox/processed-2025-05-18 15:51-data_test.md +0 -103
- md_processing/dr_egeria_outbox/processed-2025-05-18 16:47-data_test.md +0 -94
- md_processing/dr_egeria_outbox/processed-2025-05-19 07:14-data_test.md +0 -96
- md_processing/dr_egeria_outbox/processed-2025-05-19 07:20-data_test.md +0 -100
- md_processing/dr_egeria_outbox/processed-2025-05-19 07:22-data_test.md +0 -88
- md_processing/dr_egeria_outbox/processed-2025-05-19 09:26-data_test.md +0 -91
- md_processing/dr_egeria_outbox/processed-2025-05-19 10:27-data_test.md +0 -91
- md_processing/dr_egeria_outbox/processed-2025-05-19 14:04-data_test.md +0 -91
- md_processing/md_commands/blueprint_commands.py +0 -303
- pyegeria/.DS_Store +0 -0
- pyegeria/m_test.py +0 -118
- pyegeria-5.3.9.9.7.dist-info/RECORD +0 -196
- /commands/cat/{list_data_structures.py → list_data_structures_full.py} +0 -0
- {pyegeria-5.3.9.9.7.dist-info → pyegeria-5.4.0.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.9.9.7.dist-info → pyegeria-5.4.0.dist-info}/WHEEL +0 -0
md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:13-Derive-Dr-Gov-Defs.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
# `Governance Definition Context` with Qualified Name: `GovernanceApproach::New Sustainability Governance Domain`
|
3
|
+
|
4
|
+
|
5
|
+
# Update Governance Definition Form - created at 2025-07-17 20:13
|
6
|
+
Governance Definition found from the search string: `All`
|
7
|
+
|
8
|
+
# Update Governance Definition
|
9
|
+
|
10
|
+
## Governance Definition Name
|
11
|
+
|
12
|
+
New Sustainability Governance Domain
|
13
|
+
|
14
|
+
## Type Name
|
15
|
+
GovernanceApproach
|
16
|
+
|
17
|
+
## Extended Properties
|
18
|
+
{'summary': 'Set up a new governance domain for sustainability to educate and drive action.', 'implications': {'typeName': 'array<string>', 'arrayCount': 1, 'arrayValues': {'propertyValueMap': {'0': {'class': 'PrimitiveTypePropertyValue', 'typeName': 'string', 'primitiveTypeCategory': 'OM_PRIMITIVE_TYPE_STRING', 'primitiveValue': 'Individuals in the company will be assigned new responsibilities to drive initiatives.'}}, 'propertyCount': 1, 'propertyNames': ['0'], 'propertiesAsStrings': {'0': 'Individuals in the company will be assigned new responsibilities to drive initiatives.'}}}, 'description': 'The new governance domain would provide a focal point for education, initiatives and awards that improve the sustainability of Coco Pharmaceuticals. particularly where cross-organizational collaboration is required. It will include a leader, a community of advocates and location leaders to help drive initiatives across the organization'}
|
19
|
+
|
20
|
+
## Document Identifier
|
21
|
+
GovernanceApproach::New Sustainability Governance Domain
|
22
|
+
|
23
|
+
## Title
|
24
|
+
New Sustainability Governance Domain
|
25
|
+
|
26
|
+
## Scope
|
27
|
+
Across Coco Pharmaceuticals
|
28
|
+
|
29
|
+
## Domain Identifier
|
30
|
+
9
|
31
|
+
|
32
|
+
## Importance
|
33
|
+
High
|
34
|
+
|
35
|
+
## GUID
|
36
|
+
334fc1df-692a-4960-bbff-343bf7c486d2
|
37
|
+
|
38
|
+
|
39
|
+
# Provenance
|
40
|
+
|
41
|
+
* Results from processing file Derive-Dr-Gov-Defs.md on 2025-07-17 20:13
|
md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:14-Derive-Dr-Gov-Defs.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
# `Governance Definition Context` with Qualified Name: `GovernanceApproach::New Sustainability Governance Domain`
|
3
|
+
```mermaid
|
4
|
+
---
|
5
|
+
title: Governance Definition - New Sustainability Governance Domain [334fc1df-692a-4960-bbff-343bf7c486d2]
|
6
|
+
---
|
7
|
+
flowchart LR
|
8
|
+
%%{init: {"flowchart": {"htmlLabels": false}} }%%
|
9
|
+
|
10
|
+
1@{ shape: doc, label: "*Governance Approach* **New Sustainability Governance Domain**"}
|
11
|
+
2@{ shape: text, label: "*Scope* **Across Coco Pharmaceuticals**"}
|
12
|
+
3@{ shape: text, label: "*Importance***High**"}
|
13
|
+
2~~~3
|
14
|
+
4@{ shape: doc, label: "*Governance Strategy* **Operate Coco Pharmaceuticals in an increasingly sustainable way**"}
|
15
|
+
4==>|"Governance Response"|1
|
16
|
+
5@{ shape: doc, label: "*Governance Responsibility* **Sustainability leadership**"}
|
17
|
+
1==>|"Governance Implementation"|5
|
18
|
+
6@{ shape: doc, label: "*Governance Responsibility* **Sustainability Champion**"}
|
19
|
+
1==>|"Governance Implementation"|6
|
20
|
+
7@{ shape: doc, label: "*Governance Responsibility* **Deliver Sustainability Reporting Capability**"}
|
21
|
+
1==>|"Governance Implementation"|7
|
22
|
+
style 1 color:#FFFFFF, fill:#006400, stroke:#000000
|
23
|
+
style 2 color:#000000, fill:#F9F7ED, stroke:#b7c0c7
|
24
|
+
style 3 color:#000000, fill:#F9F7ED, stroke:#b7c0c7
|
25
|
+
style 4 color:#FFFFFF, fill:#006400, stroke:#000000
|
26
|
+
style 5 color:#FFFFFF, fill:#006400, stroke:#000000
|
27
|
+
style 6 color:#FFFFFF, fill:#006400, stroke:#000000
|
28
|
+
style 7 color:#FFFFFF, fill:#006400, stroke:#000000
|
29
|
+
|
30
|
+
```
|
31
|
+
# Provenance
|
32
|
+
|
33
|
+
* Results from processing file Derive-Dr-Gov-Defs.md on 2025-07-17 20:14
|
md_processing/dr_egeria_outbox-pycharm/thursday/processed-2025-07-17 20:50-Derive-Dr-Gov-Defs.md
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
|
2
|
+
# `Governance Definition Context` with Qualified Name: `GovernanceApproach::New Sustainability Governance Domain`
|
3
|
+
|
4
|
+
|
5
|
+
<!DOCTYPE html>
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<meta charset="UTF-8">
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
10
|
+
<title>Egeria Report</title>
|
11
|
+
<style>
|
12
|
+
body { font-family: Arial, sans-serif; line-height: 1.6; padding: 20px; }
|
13
|
+
h1 { color: #2c3e50; }
|
14
|
+
h2 { color: #3498db; }
|
15
|
+
pre { background-color: #f8f8f8; padding: 10px; border-radius: 5px; overflow-x: auto; }
|
16
|
+
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
|
17
|
+
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
|
18
|
+
th { background-color: #f2f2f2; }
|
19
|
+
tr:nth-child(even) { background-color: #f9f9f9; }
|
20
|
+
</style>
|
21
|
+
</head>
|
22
|
+
<body>
|
23
|
+
<h1>Governance Definition Report - created at 2025-07-17 20:50</h1>
|
24
|
+
<pre><code>Governance Definition found from the search string: `All`
|
25
|
+
</code></pre>
|
26
|
+
<p><a id="334fc1df-692a-4960-bbff-343bf7c486d2"></a></p>
|
27
|
+
<h1>Governance Definition Name: New Sustainability Governance Domain</h1>
|
28
|
+
<h2>Type Name</h2>
|
29
|
+
<p>GovernanceApproach</p>
|
30
|
+
<h2>Extended Properties</h2>
|
31
|
+
<p>{'summary': 'Set up a new governance domain for sustainability to educate and drive action.', 'implications': {'typeName': 'array<string>', 'arrayCount': 1, 'arrayValues': {'propertyValueMap': {'0': {'class': 'PrimitiveTypePropertyValue', 'typeName': 'string', 'primitiveTypeCategory': 'OM_PRIMITIVE_TYPE_STRING', 'primitiveValue': 'Individuals in the company will be assigned new responsibilities to drive initiatives.'}}, 'propertyCount': 1, 'propertyNames': ['0'], 'propertiesAsStrings': {'0': 'Individuals in the company will be assigned new responsibilities to drive initiatives.'}}}, 'description': 'The new governance domain would provide a focal point for education, initiatives and awards that improve the sustainability of Coco Pharmaceuticals. particularly where cross-organizational collaboration is required. It will include a leader, a community of advocates and location leaders to help drive initiatives across the organization'}</p>
|
32
|
+
<h2>Document Identifier</h2>
|
33
|
+
<p>GovernanceApproach::New Sustainability Governance Domain</p>
|
34
|
+
<h2>Title</h2>
|
35
|
+
<p>New Sustainability Governance Domain</p>
|
36
|
+
<h2>Scope</h2>
|
37
|
+
<p>Across Coco Pharmaceuticals</p>
|
38
|
+
<h2>Domain Identifier</h2>
|
39
|
+
<p>9</p>
|
40
|
+
<h2>Importance</h2>
|
41
|
+
<p>High</p>
|
42
|
+
<h2>GUID</h2>
|
43
|
+
<p>334fc1df-692a-4960-bbff-343bf7c486d2</p>
|
44
|
+
<h2>Mermaid Graph</h2>
|
45
|
+
<p>
|
46
|
+
<!DOCTYPE html>
|
47
|
+
<html>
|
48
|
+
<head>
|
49
|
+
<style type="text/css">
|
50
|
+
#mySvgId {
|
51
|
+
width: 100%;
|
52
|
+
height: 1200px;
|
53
|
+
overflow: scroll;
|
54
|
+
border: 2px solid #ccc;
|
55
|
+
position: relative;
|
56
|
+
margin-bottom: 10px;
|
57
|
+
}
|
58
|
+
svg {
|
59
|
+
cursor: grab;
|
60
|
+
}
|
61
|
+
|
62
|
+
</style>
|
63
|
+
</head>
|
64
|
+
|
65
|
+
<title>Governance Definition - New Sustainability Governance Domain </title>
|
66
|
+
<h3>Governance Definition - New Sustainability Governance Domain </h3>
|
67
|
+
GUID : 334fc1df-692a-4960-bbff-343bf7c486d2
|
68
|
+
|
69
|
+
|
70
|
+
<body>
|
71
|
+
|
72
|
+
<div id="graphDiv"></div>
|
73
|
+
<script src="https://bumbu.me/svg-pan-zoom/dist/svg-pan-zoom.min.js"></script>
|
74
|
+
<script type="module">
|
75
|
+
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
|
76
|
+
|
77
|
+
mermaid.initialize({startOnLoad: false});
|
78
|
+
await mermaid.run({
|
79
|
+
querySelector: '.mermaid',
|
80
|
+
postRenderCallback: (id) => {
|
81
|
+
const container = document.getElementById("diagram-container");
|
82
|
+
const svgElement = container.querySelector("svg");
|
83
|
+
|
84
|
+
// Initialize Panzoom
|
85
|
+
const panzoomInstance = Panzoom(svgElement, {
|
86
|
+
maxScale: 5,
|
87
|
+
minScale: 0.5,
|
88
|
+
step: 0.1,
|
89
|
+
});
|
90
|
+
|
91
|
+
// Add mouse wheel zoom
|
92
|
+
container.addEventListener("wheel", (event) => {
|
93
|
+
panzoomInstance.zoomWithWheel(event);
|
94
|
+
});
|
95
|
+
}
|
96
|
+
});
|
97
|
+
|
98
|
+
|
99
|
+
const drawDiagram = async function () {
|
100
|
+
const element = document.querySelector('#graphDiv');
|
101
|
+
const graphDefinition = `
|
102
|
+
flowchart LR
|
103
|
+
%%{init: {"flowchart": {"htmlLabels": false}} }%%
|
104
|
+
|
105
|
+
1@{ shape: doc, label: "*Governance Approach*
|
106
|
+
**New Sustainability Governance Domain**"}
|
107
|
+
2@{ shape: text, label: "*Scope*
|
108
|
+
**Across Coco Pharmaceuticals**"}
|
109
|
+
3@{ shape: text, label: "*Importance*
|
110
|
+
**High**"}
|
111
|
+
2~~~3
|
112
|
+
4@{ shape: doc, label: "*Governance Strategy*
|
113
|
+
**Operate Coco Pharmaceuticals in an increasingly sustainable way**"}
|
114
|
+
4==>|"Governance Response"|1
|
115
|
+
5@{ shape: doc, label: "*Governance Responsibility*
|
116
|
+
**Sustainability leadership**"}
|
117
|
+
1==>|"Governance Implementation"|5
|
118
|
+
6@{ shape: doc, label: "*Governance Responsibility*
|
119
|
+
**Sustainability Champion**"}
|
120
|
+
1==>|"Governance Implementation"|6
|
121
|
+
7@{ shape: doc, label: "*Governance Responsibility*
|
122
|
+
**Deliver Sustainability Reporting Capability**"}
|
123
|
+
1==>|"Governance Implementation"|7
|
124
|
+
style 1 color:#FFFFFF, fill:#006400, stroke:#000000
|
125
|
+
style 2 color:#000000, fill:#F9F7ED, stroke:#b7c0c7
|
126
|
+
style 3 color:#000000, fill:#F9F7ED, stroke:#b7c0c7
|
127
|
+
style 4 color:#FFFFFF, fill:#006400, stroke:#000000
|
128
|
+
style 5 color:#FFFFFF, fill:#006400, stroke:#000000
|
129
|
+
style 6 color:#FFFFFF, fill:#006400, stroke:#000000
|
130
|
+
style 7 color:#FFFFFF, fill:#006400, stroke:#000000`;
|
131
|
+
const {svg} = await mermaid.render('mySvgId', graphDefinition);
|
132
|
+
element.innerHTML = svg.replace(/( )*max-width:( 0-9\.)*px;/i, '');
|
133
|
+
|
134
|
+
var doPan = false;
|
135
|
+
var eventsHandler;
|
136
|
+
var panZoom;
|
137
|
+
var mousepos;
|
138
|
+
|
139
|
+
eventsHandler = {
|
140
|
+
haltEventListeners: ['mousedown', 'mousemove', 'mouseup']
|
141
|
+
|
142
|
+
, mouseDownHandler: function (ev) {
|
143
|
+
if (event.target.className == "[object SVGAnimatedString]") {
|
144
|
+
doPan = true;
|
145
|
+
mousepos = {x: ev.clientX, y: ev.clientY}
|
146
|
+
}
|
147
|
+
;
|
148
|
+
}
|
149
|
+
|
150
|
+
, mouseMoveHandler: function (ev) {
|
151
|
+
if (doPan) {
|
152
|
+
panZoom.panBy({x: ev.clientX - mousepos.x, y: ev.clientY - mousepos.y});
|
153
|
+
mousepos = {x: ev.clientX, y: ev.clientY};
|
154
|
+
window.getSelection().removeAllRanges();
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
, mouseUpHandler: function (ev) {
|
159
|
+
doPan = false;
|
160
|
+
}
|
161
|
+
|
162
|
+
, init: function (options) {
|
163
|
+
options.svgElement.addEventListener('mousedown', this.mouseDownHandler, false);
|
164
|
+
options.svgElement.addEventListener('mousemove', this.mouseMoveHandler, false);
|
165
|
+
options.svgElement.addEventListener('mouseup', this.mouseUpHandler, false);
|
166
|
+
}
|
167
|
+
|
168
|
+
, destroy: function (options) {
|
169
|
+
options.svgElement.removeEventListener('mousedown', this.mouseDownHandler, false);
|
170
|
+
options.svgElement.removeEventListener('mousemove', this.mouseMoveHandler, false);
|
171
|
+
options.svgElement.removeEventListener('mouseup', this.mouseUpHandler, false);
|
172
|
+
}
|
173
|
+
}
|
174
|
+
panZoom = svgPanZoom('#mySvgId', {
|
175
|
+
zoomEnabled: true
|
176
|
+
, controlIconsEnabled: true
|
177
|
+
, fit: 1
|
178
|
+
, center: 1
|
179
|
+
, customEventsHandler: eventsHandler
|
180
|
+
})
|
181
|
+
};
|
182
|
+
await drawDiagram();
|
183
|
+
</script>
|
184
|
+
</body>
|
185
|
+
</p>
|
186
|
+
|
187
|
+
</body>
|
188
|
+
</html>
|
189
|
+
|
190
|
+
# Provenance
|
191
|
+
|
192
|
+
* Results from processing file Derive-Dr-Gov-Defs.md on 2025-07-17 20:50
|