修改缩略图bug

This commit is contained in:
strawberry 2025-10-19 20:33:31 +08:00
parent 7e2281fbb7
commit f5824b5039
3 changed files with 2 additions and 3 deletions

View File

@ -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 () {

View File

@ -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;
// 绘制全景图

View File

@ -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,