mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
SYNC: fixed diagram zoom GL#57
This commit is contained in:
committed by
Diflow
parent
912b06b145
commit
1e47ace527
@@ -764,7 +764,11 @@
|
||||
}
|
||||
|
||||
function getWatermarkHtml() {
|
||||
const replaceLinks = text => text.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" style="color: var(--theme-font-link)" target="_blank">$1</a>');
|
||||
const replaceLinks = text =>
|
||||
text.replace(
|
||||
/\[([^\]]+)\]\(([^)]+)\)/g,
|
||||
'<a href="$2" style="color: var(--theme-font-link)" target="_blank">$1</a>'
|
||||
);
|
||||
|
||||
if (value?.style?.omitExportWatermark) return null;
|
||||
if (value?.style?.exportWatermark) {
|
||||
@@ -890,8 +894,8 @@
|
||||
function handleWheel(event) {
|
||||
if (event.ctrlKey) {
|
||||
event.preventDefault();
|
||||
const zoomIndex = DIAGRAM_ZOOMS.findIndex(x => x == value?.style?.zoomKoef);
|
||||
if (zoomIndex < 0) DIAGRAM_ZOOMS.findIndex(x => x == 1);
|
||||
let zoomIndex = DIAGRAM_ZOOMS.findIndex(x => x == value?.style?.zoomKoef);
|
||||
if (zoomIndex < 0) zoomIndex = DIAGRAM_ZOOMS.findIndex(x => x == 1);
|
||||
|
||||
let newZoomIndex = zoomIndex;
|
||||
if (event.deltaY < 0) {
|
||||
|
||||
Reference in New Issue
Block a user