pyegeria 5.3.4.7.dev1__py3-none-any.whl → 5.3.4.7.dev2__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.
@@ -13,6 +13,7 @@ These functions have been tested in a Jupyter notebook - but may work in other e
13
13
  import html
14
14
  import os
15
15
  import time
16
+ import uuid
16
17
 
17
18
  import nest_asyncio
18
19
 
@@ -231,7 +232,7 @@ def construct_mermaid_html(mermaid_str: str) -> str:
231
232
  """
232
233
  title_label, guid, mermaid_code = parse_mermaid_code(mermaid_str)
233
234
 
234
- graph_id = title_label.replace(" ", "_")
235
+ graph_id = f"mermaid-graph-{guid}"
235
236
  escaped_header = html.escape(title_label) if title_label else "" # Sanitize the header safely
236
237
  escaped_mermaid_code = html.escape(mermaid_code)
237
238
 
@@ -272,7 +273,8 @@ def construct_mermaid_html(mermaid_str: str) -> str:
272
273
  script.onload = () => initializeMermaid();
273
274
  document.head.appendChild(script);
274
275
  }} else {{
275
- initializeMermaid();
276
+ mermaid.init(undefined, "#{graph_id}");
277
+
276
278
  }}
277
279
 
278
280
  function initializeMermaid() {{
@@ -281,8 +283,9 @@ def construct_mermaid_html(mermaid_str: str) -> str:
281
283
  mermaid.init(undefined, document.querySelector("#pz-{graph_id}"));
282
284
 
283
285
  // Add interactivity for pan and zoom
284
- const container = document.querySelector('.pan-zoom-container');
285
- const content = document.querySelector('.pan-zoom-content');
286
+ const container = document.querySelector(`#pz-${graph_id}`);
287
+ const content = container.querySelector(`.pan-zoom-content`);
288
+
286
289
 
287
290
  let scale = 1; // Current zoom level
288
291
  let panX = 0; // X-axis pan
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyegeria
3
- Version: 5.3.4.7.dev1
3
+ Version: 5.3.4.7.dev2
4
4
  Summary: A python client for Egeria
5
5
  License: Apache 2.0
6
6
  Keywords: egeria,metadata,governance
@@ -416,7 +416,7 @@ pyegeria/feedback_manager_omvs.py,sha256=B66e3ZCaC_dirb0mcb2Nz3PYh2ZKsoMAYNOb3eu
416
416
  pyegeria/full_omag_server_config.py,sha256=CQqLCy_3DZFvJZEOcGf50HWdFaWpiAIs6z-kKyjvpDA,47464
417
417
  pyegeria/glossary_browser_omvs.py,sha256=RCvZ1l2xg6uZ1o4xGJUkIVJQO9NZG00F_jGSc4fAERU,93538
418
418
  pyegeria/glossary_manager_omvs.py,sha256=CN04lhnAFk_g4soE5V_jZ0GDrLPClhX5yX9iE0t6NDk,132440
419
- pyegeria/mermaid_utilities.py,sha256=rDjrBos1EoGoXClOG_2O1l0o3a615LrqFWTGt6mEQAE,28231
419
+ pyegeria/mermaid_utilities.py,sha256=yFYp24m_v5Qs7qoWS2b4mUZI14HtswTzSA_F7iXfyvc,28255
420
420
  pyegeria/metadata_explorer_omvs.py,sha256=u66o4IOhSo-i75KYeHogGql-gECBzZPT-RYbvfYuzoI,86932
421
421
  pyegeria/my_profile_omvs.py,sha256=i0e29KXRKZzZGgxuQI7c2_w7dyDuQWFIykky1Nqc0_8,34673
422
422
  pyegeria/platform_services.py,sha256=xlF5p5HPKDGTFFDsuxm2RLhr8vjZPv4T7e2qCkDgKXE,41654
@@ -433,8 +433,8 @@ pyegeria/test_mer.ipynb,sha256=G7hpHn07IXnt_VKvnTDvljwwHB7RfC0etOMyZKt1icQ,30809
433
433
  pyegeria/utils.py,sha256=GCt1C0bp0Xng1ahzbZhzV9qQwH7Dj93IaCt2dvWb-sg,5417
434
434
  pyegeria/valid_metadata_omvs.py,sha256=UyIT4DfB1_QIG55Hmop7ozbsq8cNdrpYB7Tb6EOFiN8,65035
435
435
  pyegeria/x_action_author_omvs.py,sha256=6b725SPsC52AI7ols7Qq8MsBlZuAXr_BgJ_-ychVRCw,6386
436
- pyegeria-5.3.4.7.dev1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
437
- pyegeria-5.3.4.7.dev1.dist-info/METADATA,sha256=F3qO3h0UDiM2hi-pULeaQmbelxvDSdJWf99d19uA1k0,2740
438
- pyegeria-5.3.4.7.dev1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
439
- pyegeria-5.3.4.7.dev1.dist-info/entry_points.txt,sha256=E83aZ9RhrxffYGmHgBwhLdS5fvEeYhrIPp0FZRvaFOI,6180
440
- pyegeria-5.3.4.7.dev1.dist-info/RECORD,,
436
+ pyegeria-5.3.4.7.dev2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
437
+ pyegeria-5.3.4.7.dev2.dist-info/METADATA,sha256=uB7DYHktbdag5XNjo4cJEw3RWffT45M8qVt42sUtvLU,2740
438
+ pyegeria-5.3.4.7.dev2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
439
+ pyegeria-5.3.4.7.dev2.dist-info/entry_points.txt,sha256=E83aZ9RhrxffYGmHgBwhLdS5fvEeYhrIPp0FZRvaFOI,6180
440
+ pyegeria-5.3.4.7.dev2.dist-info/RECORD,,