Skip to content

Commit 113c03b

Browse files
author
HarshKhandeparkar
committed
fix: line tool perfect preview
1 parent 1ca89bb commit 113c03b

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

dist/gpujs-real-renderer-browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,10 +1173,10 @@
11731173
exports._doStroke = _doStroke;
11741174
function _toolPreview(coords, identifier) {
11751175
if (_startCoords.has(identifier)) {
1176-
return this._strokeKernel(this._cloneTexture(this.graphPixels), _startCoords.get(identifier), coords, this.brushSize, this.brushColor);
1176+
return this._previewPlot(this._strokeKernel(this._cloneTexture(this.graphPixels), _startCoords.get(identifier), coords, this.brushSize, this.brushColor), coords[0], coords[1], this.brushSize, this.brushColor);
11771177
}
11781178
else
1179-
return this.graphPixels;
1179+
return this._previewPlot(this.graphPixels, coords[0], coords[1], this.brushSize, this.brushColor);
11801180
}
11811181
exports._toolPreview = _toolPreview;
11821182
});

0 commit comments

Comments
 (0)