257 lines
86 KiB
HTML
257 lines
86 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>graphify - /Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/graphify-out/graph.html</title>
|
|
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
|
|
<style>
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body { background: #0f0f1a; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; height: 100vh; overflow: hidden; }
|
|
#graph { flex: 1; }
|
|
#sidebar { width: 280px; background: #1a1a2e; border-left: 1px solid #2a2a4e; display: flex; flex-direction: column; overflow: hidden; }
|
|
#search-wrap { padding: 12px; border-bottom: 1px solid #2a2a4e; }
|
|
#search { width: 100%; background: #0f0f1a; border: 1px solid #3a3a5e; color: #e0e0e0; padding: 7px 10px; border-radius: 6px; font-size: 13px; outline: none; }
|
|
#search:focus { border-color: #4E79A7; }
|
|
#search-results { max-height: 140px; overflow-y: auto; padding: 4px 12px; border-bottom: 1px solid #2a2a4e; display: none; }
|
|
.search-item { padding: 4px 6px; cursor: pointer; border-radius: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.search-item:hover { background: #2a2a4e; }
|
|
#info-panel { padding: 14px; border-bottom: 1px solid #2a2a4e; min-height: 140px; }
|
|
#info-panel h3 { font-size: 13px; color: #aaa; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
#info-content { font-size: 13px; color: #ccc; line-height: 1.6; }
|
|
#info-content .field { margin-bottom: 5px; }
|
|
#info-content .field b { color: #e0e0e0; }
|
|
#info-content .empty { color: #555; font-style: italic; }
|
|
.neighbor-link { display: block; padding: 2px 6px; margin: 2px 0; border-radius: 3px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid #333; }
|
|
.neighbor-link:hover { background: #2a2a4e; }
|
|
#neighbors-list { max-height: 160px; overflow-y: auto; margin-top: 4px; }
|
|
#legend-wrap { flex: 1; overflow-y: auto; padding: 12px; }
|
|
#legend-wrap h3 { font-size: 13px; color: #aaa; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; border-radius: 4px; font-size: 12px; }
|
|
.legend-item:hover { background: #2a2a4e; padding-left: 4px; }
|
|
.legend-item.dimmed { opacity: 0.35; }
|
|
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
|
|
.legend-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.legend-count { color: #666; font-size: 11px; }
|
|
#stats { padding: 10px 14px; border-top: 1px solid #2a2a4e; font-size: 11px; color: #555; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="graph"></div>
|
|
<div id="sidebar">
|
|
<div id="search-wrap">
|
|
<input id="search" type="text" placeholder="Search nodes..." autocomplete="off">
|
|
<div id="search-results"></div>
|
|
</div>
|
|
<div id="info-panel">
|
|
<h3>Node Info</h3>
|
|
<div id="info-content"><span class="empty">Click a node to inspect it</span></div>
|
|
</div>
|
|
<div id="legend-wrap">
|
|
<h3>Communities</h3>
|
|
<div id="legend"></div>
|
|
</div>
|
|
<div id="stats">87 nodes · 121 edges · 17 communities</div>
|
|
</div>
|
|
<script>
|
|
const RAW_NODES = [{"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_init_py", "label": "__init__.py", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 9, "community_name": "Community 9", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/__init__.py", "file_type": "code", "degree": 3}, {"id": "init_pre_init_hook", "label": "_pre_init_hook()", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "_pre_init_hook()", "community": 9, "community_name": "Community 9", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/__init__.py", "file_type": "code", "degree": 2}, {"id": "init_rationale_11", "label": "Re-assign loaner data record ownership from fusion_claims before install. P", "color": {"background": "#BAB0AC", "border": "#BAB0AC", "highlight": {"background": "#ffffff", "border": "#BAB0AC"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "Re-assign loaner data record ownership from fusion_claims before install. P", "community": 9, "community_name": "Community 9", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/__init__.py", "file_type": "rationale", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_manifest_py", "label": "__manifest__.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "__manifest__.py", "community": 14, "community_name": "Community 14", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/__manifest__.py", "file_type": "code", "degree": 0}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_init_py", "label": "__init__.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 11, "community_name": "Community 11", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/__init__.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_checkout_wizard_py", "label": "loaner_checkout_wizard.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "loaner_checkout_wizard.py", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_checkout_wizard.py", "file_type": "code", "degree": 5}, {"id": "loaner_checkout_wizard_loanercheckoutwizard", "label": "LoanerCheckoutWizard", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "LoanerCheckoutWizard", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_checkout_wizard.py", "file_type": "code", "degree": 2}, {"id": "loaner_checkout_wizard_compute_available_lots", "label": "_compute_available_lots()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_available_lots()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_checkout_wizard.py", "file_type": "code", "degree": 1}, {"id": "loaner_checkout_wizard_compute_expected_return", "label": "_compute_expected_return()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_expected_return()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_checkout_wizard.py", "file_type": "code", "degree": 1}, {"id": "loaner_checkout_wizard_onchange_product_id", "label": "_onchange_product_id()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_onchange_product_id()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_checkout_wizard.py", "file_type": "code", "degree": 1}, {"id": "loaner_checkout_wizard_default_get", "label": "default_get()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "default_get()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_checkout_wizard.py", "file_type": "code", "degree": 1}, {"id": "loaner_checkout_wizard_loanercheckoutwizard_action_checkout", "label": ".action_checkout()", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_checkout()", "community": 3, "community_name": "Community 3", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_checkout_wizard.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_return_wizard_py", "label": "loaner_return_wizard.py", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "loaner_return_wizard.py", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_return_wizard.py", "file_type": "code", "degree": 2}, {"id": "loaner_return_wizard_loanerreturnwizard", "label": "LoanerReturnWizard", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "LoanerReturnWizard", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_return_wizard.py", "file_type": "code", "degree": 2}, {"id": "loaner_return_wizard_default_get", "label": "default_get()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "default_get()", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_return_wizard.py", "file_type": "code", "degree": 1}, {"id": "loaner_return_wizard_loanerreturnwizard_action_return", "label": ".action_return()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_return()", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/wizard/loaner_return_wizard.py", "file_type": "code", "degree": 3}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_loaner_email_mixin_py", "label": "loaner_email_mixin.py", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "loaner_email_mixin.py", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 1}, {"id": "loaner_email_mixin_loaneremailmixin", "label": "LoanerEmailMixin", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 22.9, "font": {"size": 12, "color": "#ffffff"}, "title": "LoanerEmailMixin", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 9}, {"id": "loaner_email_mixin_loaneremailmixin_email_build", "label": "._email_build()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 24.3, "font": {"size": 12, "color": "#ffffff"}, "title": "._email_build()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 10}, {"id": "loaner_email_mixin_loaneremailmixin_email_section", "label": "._email_section()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "._email_section()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 2}, {"id": "loaner_email_mixin_loaneremailmixin_email_note", "label": "._email_note()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "._email_note()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 2}, {"id": "loaner_email_mixin_loaneremailmixin_email_button", "label": "._email_button()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "._email_button()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 2}, {"id": "loaner_email_mixin_loaneremailmixin_email_attachment_note", "label": "._email_attachment_note()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "._email_attachment_note()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 2}, {"id": "loaner_email_mixin_loaneremailmixin_email_status_badge", "label": "._email_status_badge()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "._email_status_badge()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 1}, {"id": "loaner_email_mixin_loaneremailmixin_get_company_info", "label": "._get_company_info()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_company_info()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 2}, {"id": "loaner_email_mixin_loaneremailmixin_email_is_enabled", "label": "._email_is_enabled()", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "._email_is_enabled()", "community": 1, "community_name": "Community 1", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/loaner_email_mixin.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_sale_order_py", "label": "sale_order.py", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "sale_order.py", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/sale_order.py", "file_type": "code", "degree": 2}, {"id": "sale_order_saleorder", "label": "SaleOrder", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 15.7, "font": {"size": 12, "color": "#ffffff"}, "title": "SaleOrder", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/sale_order.py", "file_type": "code", "degree": 4}, {"id": "sale_order_compute_loaner_count", "label": "_compute_loaner_count()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_loaner_count()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/sale_order.py", "file_type": "code", "degree": 1}, {"id": "sale_order_saleorder_action_view_loaners", "label": ".action_view_loaners()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_view_loaners()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/sale_order.py", "file_type": "code", "degree": 1}, {"id": "sale_order_saleorder_action_checkout_loaner", "label": ".action_checkout_loaner()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_checkout_loaner()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/sale_order.py", "file_type": "code", "degree": 1}, {"id": "sale_order_saleorder_action_checkin_loaner", "label": ".action_checkin_loaner()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_checkin_loaner()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/sale_order.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_init_py", "label": "__init__.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 12, "community_name": "Community 12", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/__init__.py", "file_type": "code", "degree": 2}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_product_template_py", "label": "product_template.py", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "product_template.py", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/product_template.py", "file_type": "code", "degree": 3}, {"id": "product_template_producttemplate", "label": "ProductTemplate", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "ProductTemplate", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/product_template.py", "file_type": "code", "degree": 2}, {"id": "product_template_compute_serial_count", "label": "_compute_serial_count()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_serial_count()", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/product_template.py", "file_type": "code", "degree": 1}, {"id": "product_template_producttemplate_action_view_serial_numbers", "label": ".action_view_serial_numbers()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_view_serial_numbers()", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/product_template.py", "file_type": "code", "degree": 1}, {"id": "product_template_compute_current_location", "label": "_compute_current_location()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_current_location()", "community": 8, "community_name": "Community 8", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/product_template.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_history_py", "label": "fusion_loaner_history.py", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "fusion_loaner_history.py", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_history.py", "file_type": "code", "degree": 3}, {"id": "fusion_loaner_history_fusionloanerhistory", "label": "FusionLoanerHistory", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "FusionLoanerHistory", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_history.py", "file_type": "code", "degree": 3}, {"id": "fusion_loaner_history_fusionloanerhistory_get_action_label", "label": "._get_action_label()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_action_label()", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_history.py", "file_type": "code", "degree": 2}, {"id": "fusion_loaner_history_fusionloanerhistory_name_get", "label": ".name_get()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": ".name_get()", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_history.py", "file_type": "code", "degree": 2}, {"id": "fusion_loaner_history_get_history_by_serial", "label": "get_history_by_serial()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "get_history_by_serial()", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_history.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_history_get_history_by_product", "label": "get_history_by_product()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "get_history_by_product()", "community": 5, "community_name": "Community 5", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_history.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "label": "fusion_loaner_checkout.py", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 21.4, "font": {"size": 12, "color": "#ffffff"}, "title": "fusion_loaner_checkout.py", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 8}, {"id": "fusion_loaner_checkout_fusionloanercheckout", "label": "FusionLoanerCheckout", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 40.0, "font": {"size": 12, "color": "#ffffff"}, "title": "FusionLoanerCheckout", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 21}, {"id": "fusion_loaner_checkout_compute_expected_return_date", "label": "_compute_expected_return_date()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_expected_return_date()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_compute_days_out", "label": "_compute_days_out()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_days_out()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_compute_days_overdue", "label": "_compute_days_overdue()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_compute_days_overdue()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_fusionloanercheckout_compute_history_count", "label": "._compute_history_count()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "._compute_history_count()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_onchange_product_id", "label": "_onchange_product_id()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_onchange_product_id()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_onchange_sale_order_id", "label": "_onchange_sale_order_id()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "_onchange_sale_order_id()", "community": 7, "community_name": "Community 7", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_create", "label": "create()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 25.7, "font": {"size": 12, "color": "#ffffff"}, "title": "create()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 11}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_checkout", "label": ".action_checkout()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_checkout()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_return", "label": ".action_return()", "color": {"background": "#59A14F", "border": "#59A14F", "highlight": {"background": "#ffffff", "border": "#59A14F"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_return()", "community": 4, "community_name": "Community 4", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 2}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_process_return", "label": ".action_process_return()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 18.6, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_process_return()", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 6}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_mark_lost", "label": ".action_mark_lost()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_mark_lost()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 2}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_convert_to_rental", "label": ".action_convert_to_rental()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 15.7, "font": {"size": 12, "color": "#ffffff"}, "title": ".action_convert_to_rental()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 4}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_view_history", "label": ".action_view_history()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_view_history()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_view_sale_order", "label": ".action_view_sale_order()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_view_sale_order()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_fusionloanercheckout_action_view_partner", "label": ".action_view_partner()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": ".action_view_partner()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 1}, {"id": "fusion_loaner_checkout_fusionloanercheckout_get_loaner_location", "label": "._get_loaner_location()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_loaner_location()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 3}, {"id": "fusion_loaner_checkout_fusionloanercheckout_get_customer_location", "label": "._get_customer_location()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "._get_customer_location()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 3}, {"id": "fusion_loaner_checkout_fusionloanercheckout_create_stock_transfer", "label": "._create_stock_transfer()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 15.7, "font": {"size": 12, "color": "#ffffff"}, "title": "._create_stock_transfer()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 4}, {"id": "fusion_loaner_checkout_fusionloanercheckout_create_checkout_stock_move", "label": "._create_checkout_stock_move()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "._create_checkout_stock_move()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_fusionloanercheckout_create_return_stock_move", "label": "._create_return_stock_move()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "._create_return_stock_move()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_fusionloanercheckout_log_history", "label": "._log_history()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 20.0, "font": {"size": 12, "color": "#ffffff"}, "title": "._log_history()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 7}, {"id": "fusion_loaner_checkout_fusionloanercheckout_get_email_recipients", "label": "._get_email_recipients()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "._get_email_recipients()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_fusionloanercheckout_send_checkout_email", "label": "._send_checkout_email()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "._send_checkout_email()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_fusionloanercheckout_send_return_email", "label": "._send_return_email()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "._send_return_email()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_fusionloanercheckout_send_rental_conversion_email", "label": "._send_rental_conversion_email()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "._send_rental_conversion_email()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_fusionloanercheckout_send_reminder_email", "label": "._send_reminder_email()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 17.1, "font": {"size": 12, "color": "#ffffff"}, "title": "._send_reminder_email()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 5}, {"id": "fusion_loaner_checkout_cron_check_overdue_loaners", "label": "_cron_check_overdue_loaners()", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 15.7, "font": {"size": 12, "color": "#ffffff"}, "title": "_cron_check_overdue_loaners()", "community": 0, "community_name": "Community 0", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/fusion_loaner_checkout.py", "file_type": "code", "degree": 4}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_res_users_py", "label": "res_users.py", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "res_users.py", "community": 10, "community_name": "Community 10", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/res_users.py", "file_type": "code", "degree": 1}, {"id": "res_users_resusers", "label": "ResUsers", "color": {"background": "#4E79A7", "border": "#4E79A7", "highlight": {"background": "#ffffff", "border": "#4E79A7"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "ResUsers", "community": 10, "community_name": "Community 10", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/models/res_users.py", "file_type": "code", "degree": 1}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_static_src_js_loaner_portal_js", "label": "loaner_portal.js", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "loaner_portal.js", "community": 15, "community_name": "Community 15", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/static/src/js/loaner_portal.js", "file_type": "code", "degree": 0}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "label": "loaner_portal.py", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 21.4, "font": {"size": 12, "color": "#ffffff"}, "title": "loaner_portal.py", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 8}, {"id": "loaner_portal_loanerportalcontroller", "label": "LoanerPortalController", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "LoanerPortalController", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 1}, {"id": "loaner_portal_portal_loaner_categories", "label": "portal_loaner_categories()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "portal_loaner_categories()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 1}, {"id": "loaner_portal_portal_loaner_products", "label": "portal_loaner_products()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "portal_loaner_products()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 1}, {"id": "loaner_portal_portal_loaner_locations", "label": "portal_loaner_locations()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "portal_loaner_locations()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 1}, {"id": "loaner_portal_portal_equipment_locations", "label": "portal_equipment_locations()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 11.4, "font": {"size": 0, "color": "#ffffff"}, "title": "portal_equipment_locations()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 1}, {"id": "loaner_portal_portal_loaner_checkout", "label": "portal_loaner_checkout()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 14.3, "font": {"size": 0, "color": "#ffffff"}, "title": "portal_loaner_checkout()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 3}, {"id": "loaner_portal_portal_loaner_create_product", "label": "portal_loaner_create_product()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "portal_loaner_create_product()", "community": 2, "community_name": "Community 2", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 2}, {"id": "loaner_portal_portal_loaner_return", "label": "portal_loaner_return()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "portal_loaner_return()", "community": 6, "community_name": "Community 6", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "code", "degree": 2}, {"id": "loaner_portal_rationale_71", "label": "Return current location of all loaner equipment for the portal.", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "Return current location of all loaner equipment for the portal.", "community": 16, "community_name": "Community 16", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/loaner_portal.py", "file_type": "rationale", "degree": 0}, {"id": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_init_py", "label": "__init__.py", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 12.9, "font": {"size": 0, "color": "#ffffff"}, "title": "__init__.py", "community": 13, "community_name": "Community 13", "source_file": "/Users/gurpreet/Github/Odoo-Modules/fusion_loaners_management/controllers/__init__.py", "file_type": "code", "degree": 2}];
|
|
const RAW_EDGES = [{"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_loaners_management_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_init_py", "to": "init_pre_init_hook", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "init_pre_init_hook", "to": "init_rationale_11", "label": "rationale_for", "title": "rationale_for [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_checkout_wizard_py", "to": "loaner_checkout_wizard_loanercheckoutwizard", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_checkout_wizard_py", "to": "loaner_checkout_wizard_compute_available_lots", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_checkout_wizard_py", "to": "loaner_checkout_wizard_compute_expected_return", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_checkout_wizard_py", "to": "loaner_checkout_wizard_onchange_product_id", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_checkout_wizard_py", "to": "loaner_checkout_wizard_default_get", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_checkout_wizard_loanercheckoutwizard", "to": "loaner_checkout_wizard_loanercheckoutwizard_action_checkout", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_checkout_wizard_loanercheckoutwizard_action_checkout", "to": "fusion_loaner_checkout_create", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_return_wizard_py", "to": "loaner_return_wizard_loanerreturnwizard", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_wizard_loaner_return_wizard_py", "to": "loaner_return_wizard_default_get", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_return_wizard_loanerreturnwizard", "to": "loaner_return_wizard_loanerreturnwizard_action_return", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_return_wizard_loanerreturnwizard_action_return", "to": "fusion_loaner_checkout_create", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "loaner_return_wizard_loanerreturnwizard_action_return", "to": "fusion_loaner_checkout_fusionloanercheckout_action_process_return", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_loaner_email_mixin_py", "to": "loaner_email_mixin_loaneremailmixin", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_email_build", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_email_section", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_email_note", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_email_button", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_email_attachment_note", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_email_status_badge", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_get_company_info", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin", "to": "loaner_email_mixin_loaneremailmixin_email_is_enabled", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "loaner_email_mixin_loaneremailmixin_get_company_info", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "loaner_email_mixin_loaneremailmixin_email_section", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "loaner_email_mixin_loaneremailmixin_email_note", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "loaner_email_mixin_loaneremailmixin_email_attachment_note", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "loaner_email_mixin_loaneremailmixin_email_button", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "fusion_loaner_checkout_fusionloanercheckout_send_checkout_email", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "fusion_loaner_checkout_fusionloanercheckout_send_return_email", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "fusion_loaner_checkout_fusionloanercheckout_send_rental_conversion_email", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "loaner_email_mixin_loaneremailmixin_email_build", "to": "fusion_loaner_checkout_fusionloanercheckout_send_reminder_email", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_sale_order_py", "to": "sale_order_saleorder", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_sale_order_py", "to": "sale_order_compute_loaner_count", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sale_order_saleorder", "to": "sale_order_saleorder_action_view_loaners", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sale_order_saleorder", "to": "sale_order_saleorder_action_checkout_loaner", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sale_order_saleorder", "to": "sale_order_saleorder_action_checkin_loaner", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "sale_order_saleorder_action_checkin_loaner", "to": "fusion_loaner_checkout_fusionloanercheckout_action_return", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_product_template_py", "to": "product_template_producttemplate", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_product_template_py", "to": "product_template_compute_serial_count", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_product_template_py", "to": "product_template_compute_current_location", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "product_template_producttemplate", "to": "product_template_producttemplate_action_view_serial_numbers", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_history_py", "to": "fusion_loaner_history_fusionloanerhistory", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_history_py", "to": "fusion_loaner_history_get_history_by_serial", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_history_py", "to": "fusion_loaner_history_get_history_by_product", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_history_fusionloanerhistory", "to": "fusion_loaner_history_fusionloanerhistory_get_action_label", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_history_fusionloanerhistory", "to": "fusion_loaner_history_fusionloanerhistory_name_get", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_history_fusionloanerhistory_get_action_label", "to": "fusion_loaner_history_fusionloanerhistory_name_get", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_fusionloanercheckout", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_compute_expected_return_date", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_compute_days_out", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_compute_days_overdue", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_onchange_product_id", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_onchange_sale_order_id", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_create", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_fusion_loaner_checkout_py", "to": "fusion_loaner_checkout_cron_check_overdue_loaners", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_compute_history_count", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_checkout", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_return", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_process_return", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_mark_lost", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_convert_to_rental", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_view_history", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_view_sale_order", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_action_view_partner", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_get_loaner_location", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_get_customer_location", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_create_stock_transfer", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_create_checkout_stock_move", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_create_return_stock_move", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_log_history", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_get_email_recipients", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_send_checkout_email", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_send_return_email", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_send_rental_conversion_email", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout", "to": "fusion_loaner_checkout_fusionloanercheckout_send_reminder_email", "label": "method", "title": "method [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_create", "to": "fusion_loaner_checkout_fusionloanercheckout_log_history", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_create", "to": "fusion_loaner_checkout_fusionloanercheckout_create_stock_transfer", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_create", "to": "fusion_loaner_checkout_fusionloanercheckout_send_checkout_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_create", "to": "fusion_loaner_checkout_fusionloanercheckout_send_return_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_create", "to": "fusion_loaner_checkout_fusionloanercheckout_send_rental_conversion_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_create", "to": "fusion_loaner_checkout_fusionloanercheckout_send_reminder_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_create", "to": "loaner_portal_portal_loaner_checkout", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "fusion_loaner_checkout_create", "to": "loaner_portal_portal_loaner_create_product", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_checkout", "to": "fusion_loaner_checkout_fusionloanercheckout_log_history", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_checkout", "to": "fusion_loaner_checkout_fusionloanercheckout_create_checkout_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_checkout", "to": "fusion_loaner_checkout_fusionloanercheckout_send_checkout_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_checkout", "to": "loaner_portal_portal_loaner_checkout", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_process_return", "to": "fusion_loaner_checkout_fusionloanercheckout_log_history", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_process_return", "to": "fusion_loaner_checkout_fusionloanercheckout_create_return_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_process_return", "to": "fusion_loaner_checkout_fusionloanercheckout_send_return_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_process_return", "to": "loaner_portal_portal_loaner_return", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_mark_lost", "to": "fusion_loaner_checkout_fusionloanercheckout_log_history", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_convert_to_rental", "to": "fusion_loaner_checkout_fusionloanercheckout_log_history", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_convert_to_rental", "to": "fusion_loaner_checkout_fusionloanercheckout_send_rental_conversion_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_action_convert_to_rental", "to": "fusion_loaner_checkout_cron_check_overdue_loaners", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_loaner_location", "to": "fusion_loaner_checkout_fusionloanercheckout_create_checkout_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_loaner_location", "to": "fusion_loaner_checkout_fusionloanercheckout_create_return_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_customer_location", "to": "fusion_loaner_checkout_fusionloanercheckout_create_checkout_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_customer_location", "to": "fusion_loaner_checkout_fusionloanercheckout_create_return_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_create_stock_transfer", "to": "fusion_loaner_checkout_fusionloanercheckout_create_checkout_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_create_stock_transfer", "to": "fusion_loaner_checkout_fusionloanercheckout_create_return_stock_move", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_log_history", "to": "fusion_loaner_checkout_cron_check_overdue_loaners", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_email_recipients", "to": "fusion_loaner_checkout_fusionloanercheckout_send_checkout_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_email_recipients", "to": "fusion_loaner_checkout_fusionloanercheckout_send_return_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_email_recipients", "to": "fusion_loaner_checkout_fusionloanercheckout_send_rental_conversion_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_get_email_recipients", "to": "fusion_loaner_checkout_fusionloanercheckout_send_reminder_email", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "fusion_loaner_checkout_fusionloanercheckout_send_reminder_email", "to": "fusion_loaner_checkout_cron_check_overdue_loaners", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_models_res_users_py", "to": "res_users_resusers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_loanerportalcontroller", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_portal_loaner_categories", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_portal_loaner_products", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_portal_loaner_locations", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_portal_equipment_locations", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_portal_loaner_checkout", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_portal_loaner_create_product", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_loaner_portal_py", "to": "loaner_portal_portal_loaner_return", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_init_py", "to": "users_gurpreet_github_odoo_modules_fusion_loaners_management_controllers_init_py", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}];
|
|
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 21}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 10}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 8}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 7}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 7}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 6}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 6}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 6}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 5}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 3}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 2}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 1}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 1}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 1}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 1}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 1}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 1}];
|
|
|
|
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
|
function esc(s) {
|
|
return String(s).replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');
|
|
}
|
|
|
|
// Build vis datasets
|
|
const nodesDS = new vis.DataSet(RAW_NODES.map(n => ({
|
|
id: n.id, label: n.label, color: n.color, size: n.size,
|
|
font: n.font, title: n.title,
|
|
_community: n.community, _community_name: n.community_name,
|
|
_source_file: n.source_file, _file_type: n.file_type, _degree: n.degree,
|
|
})));
|
|
|
|
const edgesDS = new vis.DataSet(RAW_EDGES.map((e, i) => ({
|
|
id: i, from: e.from, to: e.to,
|
|
label: '',
|
|
title: e.title,
|
|
dashes: e.dashes,
|
|
width: e.width,
|
|
color: e.color,
|
|
arrows: { to: { enabled: true, scaleFactor: 0.5 } },
|
|
})));
|
|
|
|
const container = document.getElementById('graph');
|
|
const network = new vis.Network(container, { nodes: nodesDS, edges: edgesDS }, {
|
|
physics: {
|
|
enabled: true,
|
|
solver: 'forceAtlas2Based',
|
|
forceAtlas2Based: {
|
|
gravitationalConstant: -60,
|
|
centralGravity: 0.005,
|
|
springLength: 120,
|
|
springConstant: 0.08,
|
|
damping: 0.4,
|
|
avoidOverlap: 0.8,
|
|
},
|
|
stabilization: { iterations: 200, fit: true },
|
|
},
|
|
interaction: {
|
|
hover: true,
|
|
tooltipDelay: 100,
|
|
hideEdgesOnDrag: true,
|
|
navigationButtons: false,
|
|
keyboard: false,
|
|
},
|
|
nodes: { shape: 'dot', borderWidth: 1.5 },
|
|
edges: { smooth: { type: 'continuous', roundness: 0.2 }, selectionWidth: 3 },
|
|
});
|
|
|
|
network.once('stabilizationIterationsDone', () => {
|
|
network.setOptions({ physics: { enabled: false } });
|
|
});
|
|
|
|
function showInfo(nodeId) {
|
|
const n = nodesDS.get(nodeId);
|
|
if (!n) return;
|
|
const neighborIds = network.getConnectedNodes(nodeId);
|
|
const neighborItems = neighborIds.map(nid => {
|
|
const nb = nodesDS.get(nid);
|
|
const color = nb ? nb.color.background : '#555';
|
|
return `<span class="neighbor-link" style="border-left-color:${esc(color)}" onclick="focusNode(${JSON.stringify(nid)})">${esc(nb ? nb.label : nid)}</span>`;
|
|
}).join('');
|
|
document.getElementById('info-content').innerHTML = `
|
|
<div class="field"><b>${esc(n.label)}</b></div>
|
|
<div class="field">Type: ${esc(n._file_type || 'unknown')}</div>
|
|
<div class="field">Community: ${esc(n._community_name)}</div>
|
|
<div class="field">Source: ${esc(n._source_file || '-')}</div>
|
|
<div class="field">Degree: ${n._degree}</div>
|
|
${neighborIds.length ? `<div class="field" style="margin-top:8px;color:#aaa;font-size:11px">Neighbors (${neighborIds.length})</div><div id="neighbors-list">${neighborItems}</div>` : ''}
|
|
`;
|
|
}
|
|
|
|
function focusNode(nodeId) {
|
|
network.focus(nodeId, { scale: 1.4, animation: true });
|
|
network.selectNodes([nodeId]);
|
|
showInfo(nodeId);
|
|
}
|
|
|
|
// Track hovered node — hover detection is more reliable than click params
|
|
let hoveredNodeId = null;
|
|
network.on('hoverNode', params => {
|
|
hoveredNodeId = params.node;
|
|
container.style.cursor = 'pointer';
|
|
});
|
|
network.on('blurNode', () => {
|
|
hoveredNodeId = null;
|
|
container.style.cursor = 'default';
|
|
});
|
|
container.addEventListener('click', () => {
|
|
if (hoveredNodeId !== null) {
|
|
showInfo(hoveredNodeId);
|
|
network.selectNodes([hoveredNodeId]);
|
|
}
|
|
});
|
|
network.on('click', params => {
|
|
if (params.nodes.length > 0) {
|
|
showInfo(params.nodes[0]);
|
|
} else if (hoveredNodeId === null) {
|
|
document.getElementById('info-content').innerHTML = '<span class="empty">Click a node to inspect it</span>';
|
|
}
|
|
});
|
|
|
|
const searchInput = document.getElementById('search');
|
|
const searchResults = document.getElementById('search-results');
|
|
searchInput.addEventListener('input', () => {
|
|
const q = searchInput.value.toLowerCase().trim();
|
|
searchResults.innerHTML = '';
|
|
if (!q) { searchResults.style.display = 'none'; return; }
|
|
const matches = RAW_NODES.filter(n => n.label.toLowerCase().includes(q)).slice(0, 20);
|
|
if (!matches.length) { searchResults.style.display = 'none'; return; }
|
|
searchResults.style.display = 'block';
|
|
matches.forEach(n => {
|
|
const el = document.createElement('div');
|
|
el.className = 'search-item';
|
|
el.textContent = n.label;
|
|
el.style.borderLeft = `3px solid ${n.color.background}`;
|
|
el.style.paddingLeft = '8px';
|
|
el.onclick = () => {
|
|
network.focus(n.id, { scale: 1.5, animation: true });
|
|
network.selectNodes([n.id]);
|
|
showInfo(n.id);
|
|
searchResults.style.display = 'none';
|
|
searchInput.value = '';
|
|
};
|
|
searchResults.appendChild(el);
|
|
});
|
|
});
|
|
document.addEventListener('click', e => {
|
|
if (!searchResults.contains(e.target) && e.target !== searchInput)
|
|
searchResults.style.display = 'none';
|
|
});
|
|
|
|
const hiddenCommunities = new Set();
|
|
const legendEl = document.getElementById('legend');
|
|
LEGEND.forEach(c => {
|
|
const item = document.createElement('div');
|
|
item.className = 'legend-item';
|
|
item.innerHTML = `<div class="legend-dot" style="background:${c.color}"></div>
|
|
<span class="legend-label">${c.label}</span>
|
|
<span class="legend-count">${c.count}</span>`;
|
|
item.onclick = () => {
|
|
if (hiddenCommunities.has(c.cid)) {
|
|
hiddenCommunities.delete(c.cid);
|
|
item.classList.remove('dimmed');
|
|
} else {
|
|
hiddenCommunities.add(c.cid);
|
|
item.classList.add('dimmed');
|
|
}
|
|
const updates = RAW_NODES
|
|
.filter(n => n.community === c.cid)
|
|
.map(n => ({ id: n.id, hidden: hiddenCommunities.has(c.cid) }));
|
|
nodesDS.update(updates);
|
|
};
|
|
legendEl.appendChild(item);
|
|
});
|
|
</script>
|
|
<script>
|
|
// Render hyperedges as shaded regions
|
|
const hyperedges = [];
|
|
// afterDrawing passes ctx already transformed to network coordinate space.
|
|
// Draw node positions raw — no manual pan/zoom/DPR math needed.
|
|
network.on('afterDrawing', function(ctx) {
|
|
hyperedges.forEach(h => {
|
|
const positions = h.nodes
|
|
.map(nid => network.getPositions([nid])[nid])
|
|
.filter(p => p !== undefined);
|
|
if (positions.length < 2) return;
|
|
ctx.save();
|
|
ctx.globalAlpha = 0.12;
|
|
ctx.fillStyle = '#6366f1';
|
|
ctx.strokeStyle = '#6366f1';
|
|
ctx.lineWidth = 2;
|
|
ctx.beginPath();
|
|
// Centroid and expanded hull in network coordinates
|
|
const cx = positions.reduce((s, p) => s + p.x, 0) / positions.length;
|
|
const cy = positions.reduce((s, p) => s + p.y, 0) / positions.length;
|
|
const expanded = positions.map(p => ({
|
|
x: cx + (p.x - cx) * 1.15,
|
|
y: cy + (p.y - cy) * 1.15
|
|
}));
|
|
ctx.moveTo(expanded[0].x, expanded[0].y);
|
|
expanded.slice(1).forEach(p => ctx.lineTo(p.x, p.y));
|
|
ctx.closePath();
|
|
ctx.fill();
|
|
ctx.globalAlpha = 0.4;
|
|
ctx.stroke();
|
|
// Label
|
|
ctx.globalAlpha = 0.8;
|
|
ctx.fillStyle = '#4f46e5';
|
|
ctx.font = 'bold 11px sans-serif';
|
|
ctx.textAlign = 'center';
|
|
ctx.fillText(h.label, cx, cy - 5);
|
|
ctx.restore();
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |