From 2395f3bcba568fb9a45db8ac5aee1b7a80783107 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 3 May 2024 08:50:01 +0900 Subject: [PATCH] no message --- .../resources/libs/fims/paintweb/paintweb.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js index acd62968..47f205e1 100644 --- a/src/main/webapp/resources/libs/fims/paintweb/paintweb.js +++ b/src/main/webapp/resources/libs/fims/paintweb/paintweb.js @@ -1580,15 +1580,13 @@ function PaintWeb (win, doc) { if (layerContext.getImageData) { // TODO: handle "out of memory" errors. try { - layerData = layerContext.getImageData(cropX, cropY, dataWidth, - dataHeight); + layerData = layerContext.getImageData(cropX, cropY, dataWidth, dataHeight); } catch (err) { } } if (bufferContext.getImageData) { try { - bufferData = bufferContext.getImageData(cropX, cropY, dataWidth, - dataHeight); + bufferData = bufferContext.getImageData(cropX, cropY, dataWidth, dataHeight); } catch (err) { } } @@ -1620,8 +1618,7 @@ function PaintWeb (win, doc) { bufferState = layerState = layerData = bufferData = null; this.events.dispatch(new appEvent.imageSizeChange(cropWidth, cropHeight)); - this.events.dispatch(new appEvent.canvasSizeChange(scaledWidth, - scaledHeight, image.canvasScale)); + this.events.dispatch(new appEvent.canvasSizeChange(scaledWidth, scaledHeight, image.canvasScale)); //-------------------------------------------------------------------- // FIXME: 변경된 부분 : 변경된 내용이 없으면 skip @@ -1770,8 +1767,7 @@ function PaintWeb (win, doc) { // TODO: in case of "out of memory" errors... I should show up some error. try { - history.states.push(layerContext.getImageData(0, 0, this.image.width, - this.image.height)); + history.states.push(layerContext.getImageData(0, 0, this.image.width, this.image.height)); } catch (err) { return false; } @@ -1780,8 +1776,7 @@ function PaintWeb (win, doc) { if ('historyLimit' in this.config && history.states.length > this.config.historyLimit) { - history.states.splice(0, history.states.length - - this.config.historyLimit); + history.states.splice(0, history.states.length - this.config.historyLimit); } history.pos = history.states.length;