From f5824b50397a7b1056bd2df9348b26543eb96c7b Mon Sep 17 00:00:00 2001 From: strawberry <2806566736@.qq.com> Date: Sun, 19 Oct 2025 20:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=A9=E7=95=A5=E5=9B=BEbu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/core.js | 1 - libs/maps.js | 2 +- libs/ui.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/core.js b/libs/core.js index 1f28d12..a6da0df 100644 --- a/libs/core.js +++ b/libs/core.js @@ -289,7 +289,6 @@ core.prototype.init = function (coreData, callback) { core.canvas[name].canvas.width = (b ? core.__PIXELS__ : core._PX_); core.canvas[name].canvas.height = (b ? core.__PIXELS__ : core._PY_); } - core.canvas[name].imageSmoothingEnabled = false } core.loader._load(function () { diff --git a/libs/maps.js b/libs/maps.js index 19e63ea..f291592 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -1832,7 +1832,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) { if (centerY == null) centerY = Math.floor(height / 2); var tempCanvas = core.bigmap.tempCanvas; - const scale = core.domStyle.scale * devicePixelRatio; + const scale = core.domStyle.ratio * devicePixelRatio; if (options.all) { var tempWidth = tempCanvas.canvas.width, tempHeight = tempCanvas.canvas.height; // 绘制全景图 diff --git a/libs/ui.js b/libs/ui.js index 08cd1d8..903df2a 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1159,7 +1159,7 @@ ui.prototype._drawTextContent_draw = function (ctx, tempCtx, content, config) { var block = config.blocks[config.index++]; if (block != null) { // It works, why? - const scale = config.isHD ? devicePixelRatio * core.domStyle.scale : 1; + const scale = config.isHD ? devicePixelRatio * core.domStyle.ratio : 1; core.drawImage( ctx, tempCtx.canvas,