修改缩略图bug
This commit is contained in:
parent
7e2281fbb7
commit
f5824b5039
@ -289,7 +289,6 @@ core.prototype.init = function (coreData, callback) {
|
|||||||
core.canvas[name].canvas.width = (b ? core.__PIXELS__ : core._PX_);
|
core.canvas[name].canvas.width = (b ? core.__PIXELS__ : core._PX_);
|
||||||
core.canvas[name].canvas.height = (b ? core.__PIXELS__ : core._PY_);
|
core.canvas[name].canvas.height = (b ? core.__PIXELS__ : core._PY_);
|
||||||
}
|
}
|
||||||
core.canvas[name].imageSmoothingEnabled = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
core.loader._load(function () {
|
core.loader._load(function () {
|
||||||
|
@ -1832,7 +1832,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
|
|||||||
if (centerY == null) centerY = Math.floor(height / 2);
|
if (centerY == null) centerY = Math.floor(height / 2);
|
||||||
var tempCanvas = core.bigmap.tempCanvas;
|
var tempCanvas = core.bigmap.tempCanvas;
|
||||||
|
|
||||||
const scale = core.domStyle.scale * devicePixelRatio;
|
const scale = core.domStyle.ratio * devicePixelRatio;
|
||||||
if (options.all) {
|
if (options.all) {
|
||||||
var tempWidth = tempCanvas.canvas.width, tempHeight = tempCanvas.canvas.height;
|
var tempWidth = tempCanvas.canvas.width, tempHeight = tempCanvas.canvas.height;
|
||||||
// 绘制全景图
|
// 绘制全景图
|
||||||
|
@ -1159,7 +1159,7 @@ ui.prototype._drawTextContent_draw = function (ctx, tempCtx, content, config) {
|
|||||||
var block = config.blocks[config.index++];
|
var block = config.blocks[config.index++];
|
||||||
if (block != null) {
|
if (block != null) {
|
||||||
// It works, why?
|
// It works, why?
|
||||||
const scale = config.isHD ? devicePixelRatio * core.domStyle.scale : 1;
|
const scale = config.isHD ? devicePixelRatio * core.domStyle.ratio : 1;
|
||||||
core.drawImage(
|
core.drawImage(
|
||||||
ctx,
|
ctx,
|
||||||
tempCtx.canvas,
|
tempCtx.canvas,
|
||||||
|
Loading…
Reference in New Issue
Block a user