Fix zoom and center rendering.

This commit is contained in:
Paulo Gustavo Veiga 2022-11-19 11:36:09 -08:00
parent 4f701d0b74
commit ea071562ca

View File

@ -76,37 +76,36 @@
</head> </head>
<body> <body>
<div id="root" class="mindplot-root"> <div id="root" class="mindplot-root">
<mindplot-component id="mindmap-comp"/> <mindplot-component id="mindmap-comp"/>
<div id="mindplot-tooltips" className="wise-editor"></div> </div>
<div id="mindplot-tooltips" className="wise-editor"></div>
<a href="${requestScope['site.homepage']}" target="new" aria-label="WiseMapping Homepage"> <a href="${requestScope['site.homepage']}" target="new" aria-label="WiseMapping Homepage">
<div id="footerLogo"></div> <div id="footerLogo"></div>
</a> </a>
<div id="mapDetails"> <div id="mapDetails">
<span class="title"><spring:message code="CREATOR"/>:</span><span>${mindmap.creator.fullName}</span> <span class="title"><spring:message code="CREATOR"/>:</span><span>${mindmap.creator.fullName}</span>
<span class="title"><spring:message code="DESCRIPTION"/>:</span><span>${mindmap.title}</span> <span class="title"><spring:message code="DESCRIPTION"/>:</span><span>${mindmap.title}</span>
</div> </div>
<script type="text/javascript" src="${requestScope['site.static.js.url']}/mindplot/loader.js" crossorigin="anonymous"></script> <script type="text/javascript" src="${requestScope['site.static.js.url']}/mindplot/loader.js" crossorigin="anonymous"></script>
<div id="floating-panel"> <div id="floating-panel">
<div id="zoom-button"> <div id="zoom-button">
<button id="zoom-plus" title="Zoom Out" alt="Zoom Out"> <button id="zoom-plus" title="Zoom Out" alt="Zoom Out">
<img src="../../images/add.svg" width="24" height="24"/> <img src="../../images/add.svg" width="24" height="24"/>
</button> </button>
<button id="zoom-minus" title="Zoom In" title="Zoom Out" alt="Zoom In"> <button id="zoom-minus" title="Zoom In" title="Zoom Out" alt="Zoom In">
<img src="../../images/minus.svg" width="24" height="24"/> <img src="../../images/minus.svg" width="24" height="24"/>
</button> </button>
<div id="position"> <div id="position">
<button id="position-button" title="Zoom To Fit" alt="Zoom To Fit"> <button id="position-button" title="Zoom To Fit" alt="Zoom To Fit">
<img src="../../images/center_focus.svg" width="24" height="24"/> <img src="../../images/center_focus.svg" width="24" height="24"/>
</button> </button>
</div> </div>
</div> </div>
</div> </div>
</div>
<script type="text/javascript"> <script type="text/javascript">
// Hook zoom events ... // Hook zoom events ...