mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 17:13:58 +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() {
|
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?.omitExportWatermark) return null;
|
||||||
if (value?.style?.exportWatermark) {
|
if (value?.style?.exportWatermark) {
|
||||||
@@ -890,8 +894,8 @@
|
|||||||
function handleWheel(event) {
|
function handleWheel(event) {
|
||||||
if (event.ctrlKey) {
|
if (event.ctrlKey) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const zoomIndex = DIAGRAM_ZOOMS.findIndex(x => x == value?.style?.zoomKoef);
|
let zoomIndex = DIAGRAM_ZOOMS.findIndex(x => x == value?.style?.zoomKoef);
|
||||||
if (zoomIndex < 0) DIAGRAM_ZOOMS.findIndex(x => x == 1);
|
if (zoomIndex < 0) zoomIndex = DIAGRAM_ZOOMS.findIndex(x => x == 1);
|
||||||
|
|
||||||
let newZoomIndex = zoomIndex;
|
let newZoomIndex = zoomIndex;
|
||||||
if (event.deltaY < 0) {
|
if (event.deltaY < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user